Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3673213
  • 博文数量: 715
  • 博客积分: 1860
  • 博客等级: 上尉
  • 技术积分: 7745
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-07 08:51
个人简介

偶尔有空上来看看

文章分类

全部博文(715)

文章存档

2023年(75)

2022年(134)

2021年(238)

2020年(115)

2019年(11)

2018年(9)

2017年(9)

2016年(17)

2015年(7)

2014年(4)

2013年(1)

2012年(11)

2011年(27)

2010年(35)

2009年(11)

2008年(11)

分类: Oracle

2021-11-26 06:57:30

好久不用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

阅读(1700) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~