|
INTERVIEW QUESTIONS
ORACLE APPS
AOL
DETAILS
Question: How do i recover the responsibility in apps if it is disabled?
Answer: Here is the API script which add the System Administrator responsibility through which you add the other responsibility.
DECLARE CURSOR c1_cur IS SELECT u.user_name ,u.user_id,u.end_date,u.start_date,u.description FROM fnd_user u WHERE u.user_name IN ('subbarab') AND (u.end_date IS NULL OR u.end_date = TO_DATE('31-dec-4712','dd-mon-yyyy')) ORDER BY u.user_name;
BEGIN FOR c1 IN c1_cur LOOP BEGIN fnd_user_pkg.addresp(username => c1.user_name --varchar2, ,resp_app => 'SYSADMIN' --varchar2, ,resp_key => 'SYSTEM_ADMINISTRATOR' --varchar2, ,security_group => 'STANDARD' --varchar2, ,description => c1.description --varchar2, ,start_date => sysdate --date, ,end_date => c1.end_date --date ); dbms_output.put_line('Inserted '||c1.user_name); EXCEPTION WHEN OTHERS THEN dbms_output.put_line('ERROR '||c1.user_name|| SQLERRM); END; END LOOP; COMMIT; END;
|
|
|
Category |
AOL Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.3) By 7728 users |
Added on |
7/29/2011 |
Views |
70627 |
Rate it! |
|
|
Question:
How do i recover the responsibility in apps if it is disabled?
Answer:
Here is the API script which add the System Administrator responsibility through which you add the other responsibility.
DECLARE CURSOR c1_cur IS SELECT u.user_name ,u.user_id,u.end_date,u.start_date,u.description FROM fnd_user u WHERE u.user_name IN ('subbarab') AND (u.end_date IS NULL OR u.end_date = TO_DATE('31-dec-4712','dd-mon-yyyy')) ORDER BY u.user_name;
BEGIN FOR c1 IN c1_cur LOOP BEGIN fnd_user_pkg.addresp(username => c1.user_name --varchar2, ,resp_app => 'SYSADMIN' --varchar2, ,resp_key => 'SYSTEM_ADMINISTRATOR' --varchar2, ,security_group => 'STANDARD' --varchar2, ,description => c1.description --varchar2, ,start_date => sysdate --date, ,end_date => c1.end_date --date ); dbms_output.put_line('Inserted '||c1.user_name); EXCEPTION WHEN OTHERS THEN dbms_output.put_line('ERROR '||c1.user_name|| SQLERRM); END; END LOOP; COMMIT; END;
Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
I have applied a patch. at the time of applying he update a table and suddenly he gives the error that table is lock. Now what i do?
|
View Answer
|
|
I have run a request but it is not completed. His status is (running normal) and those requests are giving after this he will be completed.So,now what steps i have follow for the unning request?
|
View Answer
|
|
How cam i changes in custom.pll? After changes how can i send on the server and what's effect in this condition?
|
View Answer
|
|
How can i implementing and managing the custom schema? please give me quick reply.
|
View Answer
|
|
What is '$flex$ and '$profile$, Waht is the use of '$flex$'?
|
View Answer
|
|
What is quick code? why is it called a quick code? What is steps of defining a quick code?
|
View Answer
|
|
What is the difference between organization id and master organization id?
|
View Answer
|
|
What so you mean by Hierarchical and non Hierarchical security type in value set?
|
View Answer
|
|
What is US directory under any TOP?
|
View Answer
|
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.
View All AOL Interview Questions & Answers - Exam Mode /
Learning Mode
|