Sie sind auf Seite 1von 2

Add any responsibility (Even without Sysadmin) declare v_user_name varchar2(30):=upper('&Enter_User_Name'); v_resp varchar2(30):='&Enter_Responsibility'; v_resp_key varchar2(30); v_app_short_name varchar2(50);

begin select r.responsibility_key , a.application_short_name into v_resp_key,v_app_short_name from fnd_responsibility_vl r, fnd_application_vl a where r.application_id =a.application_id and upper(r.responsibility_name) = upper(v_resp); fnd_user_pkg.AddResp ( username => v_user_name, resp_app => v_app_short_name, resp_key => v_resp_key, security_group => 'STANDARD', description => null, start_date => sysdate, end_date => null ); commit; DBMS_OUTPUT.put_line ('Responsibility:'||v_resp||' '||'is added to the User:'| |v_user_name); EXCEPTION when others then DBMS_OUTPUT.put_line ('Unable to add the responsibility due to'||SQLCODE||' '| |SUBSTR(SQLERRM, 1, 100)); rollback; end;

Change User password from backend begin fnd_user_pkg.updateuser( x_user_name => '&username' , x_owner => 'CUST' , x_unencrypted_password => '&new_password' , x_password_date => to_date('2','J')); commit; end;

All responsibilities registered to a concurrent program select frt.responsibility_name, frg.request_group_name, frgu.request_unit_type,frgu.request_unit_id, fcpt.user_concurrent_program_name From fnd_Responsibility fr, fnd_responsibility_tl frt, fnd_request_groups frg, fnd_request_group_units frgu, fnd_concurrent_programs_tl fcpt where frt.responsibility_id = fr.responsibility_id and frg.request_group_id = fr.request_group_id and frgu.request_group_id = frg.request_group_id and fcpt.concurrent_program_id = frgu.request_unit_id and frt.language = USERENV('LANG') and fcpt.language = USERENV('LANG') and fcpt.user_concurrent_program_name = :conc_prg_name order by 1,2,3,4

All Profile options SELECT SUBSTR(e.profile_option_name,1,30) PROFILE, DECODE(a.level_id,10001,'Site',10002,'Application',10003,'Responsibility',10 004,'User') L, DECODE(a.level_id,10001,'Site',10002,c.application_short_name,10003,b.respon sibility_name,10004,d.user_name) LValue, NVL(a.profile_option_value,'Is Null') Value, SUBSTR(a.last_update_date,1,25) UPDATED_DATE FROM fnd_profile_option_values a INNER JOIN fnd_profile_options e ON a.profile_option_id = e.profile_option_id LEFT OUTER JOIN fnd_responsibility_tl b ON a.level_value = b.responsibility_id LEFT OUTER JOIN fnd_application c ON a.level_value = c.application_id LEFT OUTER JOIN fnd_user d ON a.level_value = d.user_id WHERE e.profile_option_name LIKE '%&1%' ORDER BY profile_option_name;