修改时间:2012-11-23类型:PROBLEM状态:PUBLISHED优先级:3 注释 (0)
In this Document
Symptoms
Cause
Solution
References
--------------------------------------------------------------------------------
Applies to:
Oracle Server - Enterprise Edition - Version 10.2.0.3 and later
Information in this document applies to any platform.
***Checked for relevance on 23-NOV-2012***
Symptoms
DataPump export of table SYS.AUD$ fails with errors:
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
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:
#> exp system/<password> file=dumpfile.dmp log=logfile.log tables=sys.aud$
Other options are:
- 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.
NOTE: This issue also applies to other SYS owned auditing tables such as FGA_LOG$
References
BUG:5647223 - DATAPUMP EXPORT FAILS ORA-31655
NOTE:731908.1 - New Feature DBMS_AUDIT_MGMT To Manage And Purge Audit Information
DataPump导出SYS方案失败解决

本文解决Oracle DataPump Export(EXPDP)在尝试导出SYS.AUD$表时遇到ORA-39165错误的问题。由于DataPump无法处理特定的系统方案,文中提供了几种替代方案,包括使用传统导出命令、CTAS复制数据或使用DBMS_AUDIT_MGMT包来管理审计数据。
656

被折叠的 条评论
为什么被折叠?



