expdp / as sysdba

原文地址:http://jotey.blog.163.com/blog/static/14926370201262315327525/

Export as SYS or not?


but this mean that I can't use expdp to exporting from 10.1 to 10.2 using SYS?

It seems so, it generates ORA-39135 error :


$   expdp \"/ as sysdba\" directory=dpump_dir dumpfile=test10.dmp full=y

Export: Release 10.1.0.3.0 - Production on Monday, 30 January, 2006 16:28

Copyright (c) 2003, Oracle.  All rights reserved.

Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options
ORA-39002: invalid operation
ORA-39135: SYS schema cannot read data using specific SCNs

$ oerr ora 39135
39135, 00000, "SYS schema cannot read data using specific SCNs"
// *Cause:  The user was operating under the SYS schema and either explicitly
//          specified an SCN via the FLASHBACK_SCN or FLASHBACK_TIME or
//          TABLE_CONSISTENCY parameters or the job required that a
//          specific SCN be used because of streams or
//          logical replication activity.
// *Action: Do not perform Data Pump jobs using the SYS schema or 'AS SYSDBA'.



$   expdp 'userid="/ as sysdba"' full=y

Export: Release 10.1.0.4.0 - 64bit Production on Monday, 30 January, 2006 17:22

Copyright (c) 2003, Oracle.  All rights reserved.

Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - 64bit Production
With the Partitioning, Oracle Label Security and Data Mining options
FLASHBACK automatically enabled to preserve database integrity.
Starting "SYS"."SYS_EXPORT_FULL_02":  userid="/******** AS SYSDBA" full=y
Estimate in progress using BLOCKS method...
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 20.56 MB
Processing object type DATABASE_EXPORT/TABLESPACE
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值