优秀的编程知识分享平台

网站首页 > 技术文章 正文

oracle给用户授权(实用代码,留着 备用)

nanyue 2024-07-23 13:37:39 技术文章 8 ℃

oracle创建一个cfr用户后,dba权限已经赋权了,但是cfr在调用各种存储过程的时候还是报无权限运行,通过下面方法解决

做下备份

grant execute on sys.dbms_crypto to cfr with grant option;
grant execute on SYS.DBMS_AQADM to cfr with grant option;
grant execute on SYS.DBMS_AQELM to cfr with grant option;
grant execute on SYS.DBMS_AQ_IMPORT_INTERNAL to cfr with grant option;
grant execute on SYS.DBMS_DEFER_IMPORT_INTERNAL to cfr;
grant execute on SYS.DBMS_REPCAT to cfr;
grant execute on SYS.DBMS_RULE_EXIMP to cfr with grant option;
grant execute on SYS.DBMS_SQL to cfr;
grant execute on SYS.DBMS_SYS_ERROR to cfr;
grant execute on SYS.DBMS_SYS_SQL to cfr;
grant execute on SYS.DBMS_TRANSFORM_EXIMP to cfr with grant option;
grant select, insert, update, delete, references, alter, index on SYS.INCEXP to cfr;
grant select, insert, update, delete, references, alter, index on SYS.INCFIL to cfr;
grant select, insert, update, delete, references, alter, index on SYS.INCVID to cfr;
grant execute on SYS.SYS_GROUP to cfr;
grant select on WMSYS.WM$UDTRIG_INFO to cfr;
grant aq_administrator_role to cfr with admin option;
grant dba to NEWUSER123 with admin option;
grant sales_history_role to cfr with admin option;
grant students to cfr with admin option;
grant unlimited tablespace to cfr with admin option;
最近发表
标签列表