ORA-04045: errors during recompilation/revalidation of MDSYS.SDO_GEOR_ADDL_TRIGGER ORA-01031: insufficient privileges
环境:windows server 2008 ORACLE 11.2.0.4 单实例
添加数据文件提示
ORA-04045: errors during recompilation/revalidation of MDSYS.SDO_GEOR_ADDL_TRIGGER ORA-01031: insufficient privileges
查询mos说是需要给mdsys授权,命令如下
grant administer database trigger to mdsys;
结果依然是提示没权限。
几经周折,终于还是解决了,打开Oracle隐藏权限,慎用,关闭不能删的东西也能删了
alter system set "_system_trig_enabled"=falese scope=both;
关闭后重新编译触发器或者是关闭触发即可。随后更改隐藏参数
alter system set "_system_trig_enabled"=true scope=both;
或者尝试下面的方式,改方法未经测试,不知道啊结果。上面的方法亲测可用
sysdbaexecutes ORACLE_HOME/rdbms/admin/utlrp.sql script There are also two ways to compile invalid objects: 1 Use alter **** compile statement to compile 2 Use the DBMS_UTILITYpackage to compile .