一、10.2.0.5要求expdp导出a用户b表空间下的数据。

expdp \'/ as sysdba\' directory=mydir dumpfile=1.dmp schemas=a exclude=table:\"in \(select table_name from dba_tables where owner=\'A\' and tablespace_name != \'B\' \) \" logfile=1.log

某些较早版本:

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

折腾心得:

1、同时使用schemas=a tablespaces=b会报错“UDE-00010: multiple job modes requested, schema and tablespaces.”

2、尽管可以sqlplus '/ as sysdba',但对于expdp必须转义expdp \'/ as sysdba\' 

3、exclude中的" ' ()也必须转义

4、exclude条件中如果报语法错误,可以加空格后再试一下,特别是括号前后。

5、尽管sqlplus中可以用<>,expdp条件中只能用!=表示不等于。

 

二、expdp远程数据库

本地数据库create database link dbl1 ....

expdp localuser/pass network_link=dbl1 full=y

 

posted on 2014-11-25 15:19  perel  阅读(654)  评论(0编辑  收藏  举报