问题已解决,需要在本地数据库,用sys用户,执行 GRANT exp_full_database TO db_exp; (db_exp为本地数据库用户)
C:\Users\jadl>sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on 星期三 12月 7 15:10:13 2016
Copyright (c) 1982, 2010, Oracle. All rights reserved.
连接到:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> GRANT exp_full_database TO db_exp;
授权成功。
SQL> exit
从 Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options 断开
C:\Users\jadl>expdp db_exp/db_exp directory=DIR_EXP, dumpfile=expdp_02.dmp, logfile=1.log, network_link=to_exp_200 schemas=user_exp (导出用户)
Export: Release 11.2.0.1.0 - Production on 星期三 12月 7 15:11:01 2016
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
启动 "DB_EXP"."SYS_EXPORT_SCHEMA_01": db_exp/******** directory=DIR_EXP, dumpfile=expdp_02.dmp, logfile=1.log, network_link=to_exp_
xp
正在使用 BLOCKS 方法进行估计...
处理对象类型 SCHEMA_EXPORT/TABLE/TABLE_DATA
使用 BLOCKS 方法的总估计: 344 MB
处理对象类型 SCHEMA_EXPORT/USER
处理对象类型 SCHEMA_EXPORT/SYSTEM_GRANT
处理对象类型 SCHEMA_EXPORT/ROLE_GRANT
处理对象类型 SCHEMA_EXPORT/DEFAULT_ROLE
处理对象类型 SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
处理对象类型 SCHEMA_EXPORT/TABLE/TABLE
. . 导出了 "USER_EXP"."T_EXP" 294.5 MB 10000014 行
已成功加载/卸载了主表 "DB_EXP"."SYS_EXPORT_SCHEMA_01"
******************************************************************************
DB_EXP.SYS_EXPORT_SCHEMA_01 的转储文件集为:
E:\EXPDP_02.DMP
作业 "DB_EXP"."SYS_EXPORT_SCHEMA_01" 已于 15:12:25 成功完成
C:\Users\jadl>expdp db_exp/db_exp directory=DIR_EXP, dumpfile=expdp_03.dmp, logfile=3.log,tables=user_exp.t_exp network_link=to_exp_200 (导出t_exp表)
Export: Release 11.2.0.1.0 - Production on 星期三 12月 7 15:34:29 2016
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
启动 "DB_EXP"."SYS_EXPORT_TABLE_01": db_exp/******** directory=DIR_EXP, dumpfile=expdp_03.dmp, logfile=3.log,tables=user_exp.t_exp network_link=to_ex
p_200
正在使用 BLOCKS 方法进行估计...
处理对象类型 TABLE_EXPORT/TABLE/TABLE_DATA
使用 BLOCKS 方法的总估计: 344 MB
处理对象类型 TABLE_EXPORT/TABLE/TABLE
. . 导出了 "USER_EXP"."T_EXP" 294.5 MB 10000014 行
已成功加载/卸载了主表 "DB_EXP"."SYS_EXPORT_TABLE_01"
******************************************************************************
DB_EXP.SYS_EXPORT_TABLE_01 的转储文件集为:
E:\EXPDP_03.DMP
作业 "DB_EXP"."SYS_EXPORT_TABLE_01" 已于 15:34:59 成功完成