oracle expdp导出用户下的表,expdp 导出sys用户下的表报错ORA-39165 和ORA-39166

expdp 导出sys用户下的表报错ORA-39165 和ORA-39166

在用expdp导出sys用户下的table,结果报错,全部的log 如下:

[oracle@hosta ~]$ expdp sys/**** directory=exp_dir dumpfile=fga_log.dmp logfile=fga_log.log tables=fga_log$

Export: Release 11.2.0.3.0 - Production on Thu Jan 17 13:07:23 2014

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

UDE-01017: operation generated ORACLE error 1017

ORA-01017: invalid username/password; logon denied

Username: sys as sysdba

Password:

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production

With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,

Data Mining and Real Application Testing options

Starting "SYS"."SYS_EXPORT_TABLE_01": sys/******** AS SYSDBA directory=exp_dir dumpfile=fga_log.dmp logfile=fga_log.log tables=fga_log$

Estimate in progress using BLOCKS method...

Total estimation using BLOCKS method: 0 KB

ORA-39166: Object SYS.FGA_LOG$ was not found.

ORA-31655: no data or metadata objects selected for job

Job "SYS"."SYS_EXPORT_TABLE_01" completed with 2 error(s) at 13:12:8于是就搜到了如下文章:

ataPump Export (EXPDP) Fails With Error ORA-39165 Schema SYS Was Not Found (Doc ID 553402.1)

该文章给出了如下答案:

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.解决该报错的方法是: 1. 使用exp 导出 2.ctas的方法在不受限制的schema下创建表,然后导出该新建的表 3. 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. 注意:This issue also applies to other SYS owned auditing tables such as FGA_LOG$

ORA-39002是Oracle数据库的错误代码,与使用expdp命令导出数据时出现的问题有关。在Windows操作系统下,可能会遇到ORA-39002错误的多种情况。下面是几种常见的情况及其解决方法: 1. 数据库连接问题:首先要确保可以成功连接到Oracle数据库。可以使用sqlplus命令测试连接是否正常。如果连接失败,可能是数据库参数配置或者网络问题。需要检查数据库参数是否正确,并确保网络连接正常。 2. 导出目录权限问题:在执行expdp命令时,需要指定一个目录作为导出文件的存放位置。如果导出目录没有正确设置权限,也可能导致ORA-39002错误。应该确保导出目录所属用户具有写入权限,并且确认目录是否存在。 3. 数据库版本不兼容:在导出数据时,可能会由于数据库版本不兼容导致ORA-39002错误。此时需要检查Oracle数据库版本是否支持当前使用的expdp命令版本。如果版本不兼容,可以尝试升级数据库或使用对应版本的expdp命令。 4. 参数配置错误:在执行expdp命令时,需要指定一些参数,如导出名、导出的数据类型等。如果参数配置不正确,可能会导致ORA-39002错误。应该仔细检查expdp命令中的参数是否正确,并根据需要进行修改。 总之,遇到ORA-39002错误时,首先需要检查数据库连接是否正常,然后检查导出目录权限和数据库版本兼容性,最后确认参数配置是否正确。根据具体情况进行排查和解决,即可解决ORA-39002错误。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值