签到成功

知道了

CNDBA社区CNDBA社区

oracle expdp导出sys schema下表出错解决方案

2022-05-26 20:29 1614 0 原创 oracle
作者: hbhe0316

Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Backup Service - Version N/A and later
Information in this document applies to any platform.
SYMPTOMS
DataPump export of table SYS.AUD$ fails with errors:

http://www.cndba.cn/hbhe0316/article/108026
http://www.cndba.cn/hbhe0316/article/108026
http://www.cndba.cn/hbhe0316/article/108026

ORA-39165: Schema SYS was not found.
ORA-39166: Object AUD$ was not found.
ORA-31655: no data or metadata objects selected for job
Job "SYS"."SYS_EXPORT_TABLE_01" completed with 3 error(s) at 13:49:47

CHANGEShttp://www.cndba.cn/hbhe0316/article/108026http://www.cndba.cn/hbhe0316/article/108026http://www.cndba.cn/hbhe0316/article/108026

CAUSE
There is a restriction on DataPump export. It cannot export schemas like SYS, ORDSYS, EXFSYS, MDSYS, DMSYS, CTXSYS, ORDPLUGINS, LBACSYS, XDB, SI_INFORMTN_SCHEMA, DIP, DBSNMP and WMSYS in any mode. The Utilities Guide indicates the restriction only on full export mode, but the restriction actually applies to all modes.

SOLUTION
Export the table SYS.AUD$ using the traditional export:http://www.cndba.cn/hbhe0316/article/108026http://www.cndba.cn/hbhe0316/article/108026

#exp system/<password> file=dumpfile.dmp log=logfile.log tables=sys.aud$

Other options are:

http://www.cndba.cn/hbhe0316/article/108026

Use CTAS (Create Table As Select) to copy the SYS.AUD$ data into a non-restricted schema.

Use the DBMS_AUDIT_MGMT package of Audit Vault to manage and purge audit data (see Note 731908.1).
This allows for the facility to move the AUD$ table out of the SYSTEM tablespace, which can negate the need to export the table.http://www.cndba.cn/hbhe0316/article/108026

版权声明:本文为博主原创文章,未经博主允许不得转载。

oracle

用户评论
* 以下用户言论只代表其个人观点,不代表CNDBA社区的观点或立场
hbhe0316

hbhe0316

关注

1.只有承认无知,才能装下新的东西; 2.进步来自一点点滴滴的积累; 3.广博让你更优秀,而专业让你无法替代; 4.挫折和失败能够转换为一种财富。

  • 889
    原创
  • 1
    翻译
  • 13
    转载
  • 24
    评论
  • 访问:1038637次
  • 积分:1523
  • 等级:核心会员
  • 排名:第6名
精华文章
    最新问题
    查看更多+
    热门文章
      热门用户
      推荐用户
        Copyright © 2016 All Rights Reserved. Powered by CNDBA · 皖ICP备2022006297号-1·

        QQ交流群

        注册联系QQ