ORA-04088 LBACSYS.LBAC_EVENTS

1550阅读 0评论2021-11-26 brjl
分类:Oracle

好久不用imp,今日从11.2.0.4取了一个dba_hist_active_sess_history 时:
  1. [oracle@apex ~]$ imp file=ash.dmp fromuser=sys touser=a

  2. Import: Release 19.0.0.0.0 - Production on Thu Nov 25 14:51:25 2021
  3. Version 19.10.0.0.0

  4. Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.

  5. Username: / as sysdba

  6. Connected to: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
  7. Version 19.10.0.0.0

  8. Export file created by EXPORT:V11.02.00 via conventional path
  9. import done in ZHS16GBK character set and AL16UTF16 NCHAR character set
  10. export client uses US7ASCII character set (possible charset conversion)
  11. IMP-00403:

  12. Warning: This import generated a separate SQL file "import_sys" which contains DDL that failed due to a privilege issue.

  13. . importing SYS's objects into A
  14. . . importing table "ASH1126"
  15. IMP-00058: ORACLE error 604 encountered
  16. ORA-00604: error occurred at recursive SQL level 1
  17. ORA-04088: error during execution of trigger 'LBACSYS.LBAC$AFTER_DROP
似乎和标签安全有关,先禁用
alter trigger LBACSYS.LBAC$AFTER_DROP disable;
重新导入

  1. [oracle@apex ~]$ imp file=ash.dmp fromuser=sys touser=a

  2. Import: Release 19.0.0.0.0 - Production on Thu Nov 25 14:52:51 2021
  3. Version 19.10.0.0.0

  4. Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.

  5. Username: / as sysdba

  6. Connected to: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
  7. Version 19.10.0.0.0

  8. Export file created by EXPORT:V11.02.00 via conventional path
  9. import done in ZHS16GBK character set and AL16UTF16 NCHAR character set
  10. export client uses US7ASCII character set (possible charset conversion)
  11. IMP-00403:

  12. Warning: This import generated a separate SQL file "import_sys" which contains DDL that failed due to a privilege issue.

  13. . importing SYS

上一篇:立即分析归档日志 log miner
下一篇:微不足道的检测私网通信脚本