Add Responsibility to USER using pl/sql
来源:互联网 发布:淘宝新规店铺负责人 编辑:程序博客网 时间:2024/05/20 00:39
beginfnd_user_pkg.addresp( ‘&User_Name’, /*Application User Name */ ‘&Responsablity_Application_Short_Name’, /*get from Query Below */ ‘&Responsibility_Key’,/*get from Query Below */ ‘&Security_Group’, /* Most of cases it is ‘STANDARD’ so you can hard code it */ ‘&Description’, /* Any comments you want */ ‘&Start_Date’, /* Sysdate From Today */ ‘&End_Date’ ); /* Sysdate + 365 Rights for Next One Year*/commit;dbms_output.put_line(‘Responsibility Added Successfully’);exception when others then dbms_output.put_line(‘ Responsibility is not added due to ‘ ” SQLCODE ” substr(SQLERRM, 1, 100)); Rollback;end;/
Sample:add Responsibility of “Receivables Manager” to User Jiltin
BEGIN fnd_user_pkg.addresp (‘JILTIN’,‘AR’,‘RECEIVABLES_MANAGER’,‘STANDARD’,‘Add Responsibility to USER using pl/sql’,SYSDATE,SYSDATE + 100); COMMIT; DBMS_OUTPUT.put_line (‘Responsibility Added Successfully’);EXCEPTION WHEN OTHERS THEN DBMS_OUTPUT.put_line ( ‘ Responsibility is not added due to ‘” SQLCODE” SUBSTR (SQLERRM, 1, 100)); ROLLBACK;END;
Related:Oracle Apps Script to create a new User Login Account
- Add Responsibility to USER using pl/sql
- How to run workflow using PL/SQL
- Add user to sudoers
- add user to group
- Add user to tomcat
- Linux Add User To Group
- Oralce Create User PL/SQL
- Using OLE to Add Data
- Using Delegates with Data Readers to Control DAL Responsibility
- Introduction to PL/SQL
- How To Load CLOB Data from a File into a CLOB column using PL/SQL
- Howto: Linux Add User To Group (tips)
- Howto: Linux Add User To Group
- Howto: Linux Add User To Group
- [Linux]--add user to sudo group
- How to add user in gerrit
- Oracle PL/SQL之不能在function里面调用DBMS_LOCK(Grant to role OR Grant to user)
- User,Responsibility,Organization
- joomla模板、模块关系 | joomla网站建设第二贴
- onbeforeunload与onunload事件
- mac 系统下删除目录的所有.svn文件
- Linux下QoS模块之tc(traffic control)操作简介
- 文本后定义float ie6、7换行
- Add Responsibility to USER using pl/sql
- 100枚硬币,最初全部朝下,第一次将所有硬币反转过来, 第二次反转位置是2的倍数的硬币,第三次反转3的倍数,.....执行一百次,问最终共有多少个硬币面朝上?
- 瞎想 货币
- const再总结
- 优秀嵌入式linux工程师是怎样炼成的?
- 话说程序员的职业生涯
- What really happens when you navigate to a URL
- 系统IO地址
- 周鸿祎:做到这五点,才算是好用户体验