zoukankan      html  css  js  c++  java
  • 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 .
  • 相关阅读:
    抽象类的练习
    Java异常处理1
    接口的应用
    接口之代理模式
    接口之工厂方法的设计模式
    给ubuntu系统换新装
    2的幂次方表示(OJ 8758)
    Fibonacci【矩阵乘法】(POJ 3070)
    斐波那契公约数(luogu 1306)
    枪战Maf (bzoj 1124)
  • 原文地址:https://www.cnblogs.com/Roobbin/p/15303808.html
Copyright © 2011-2022 走看看