Oracle 10g新特性之-跨平台表空间传输(四)

2014-11-24 18:59:04 · 作者: · 浏览: 48
200 Type set to I.
mget data_D-wwl_I-1337390772_TS-TRANS_FNO-8_01fk92hg y
200 PORT command successful.
150 Binary data connection for data_D-wwl_I-1337390772_TS-TRANS_FNO-8_01fk92hg (192.168.96.5,2885) (10493952 bytes).
226 Binary Transfer complete.
ftp: 10493952 bytes received in 15.90Seconds 659.87Kbytes/sec.
ftp> cd /opt/oracle/dpdata
250 CWD command successful.
ftp> ls
200 PORT command successful.
150 ASCII data connection for /bin/ls (192.168.96.5,2889) (0 bytes).
export.log
trans.dmp
226 ASCII Transfer complete.
ftp: 23 bytes received in 0.01Seconds 2.30Kbytes/sec.
ftp> bin
200 Type set to I.
ftp> mget trans.dmp
200 Type set to I.
mget trans.dmp y
200 PORT command successful.
150 Binary data connection for trans.dmp (192.168.96.5,2893) (73728 bytes).
226 Binary Transfer complete.
ftp: 73728 bytes received in 0.03Seconds 2457.60Kbytes/sec.
ftp> bye
221 Goodbye.



7.使用rman在目标数据库转换文件


E:\Oracle\oradata\wwl\dpdata>rman target /


恢复管理器: 版本10.1.0.2.0 - Production


Copyright (c) 1995, 2004, Oracle. All rights reserved.


连接到目标数据库: wwl (DBID=1587222708)



RMAN> CONVERT DATAFILE 'E:\Oracle\oradata\wwl\dpdata\data_D-wwl_I-1337390772_TS-TRANS_FNO-8_01fk92hg'
2> DB_FILE_NAME_CONVERT
3> 'E:\Oracle\oradata\wwl\dpdata\data_D-wwl_I-1337390772_TS-TRANS_FNO-8_01fk92hg','E:\Oracle\oradata\wwl\wwl\DATAFILE\trans01.dbf';


启动 backup 于 27-4月 -04
使用通道 ORA_DISK_1
通道 ORA_DISK_1: 启动数据文件转换
输出文件名=E:\ORACLE\ORADATA\wwl\DPDATA\DATA_D-wwl_I-1337390772_TS-TRANS_FNO-8_01FK92HG
已转换的数据文件 = E:\ORACLE\ORADATA\wwl\wwl\DATAFILE\TRANS01.DBF
通道 ORA_DISK_1: 数据文件转换完毕, 经过时间: 00:00:04
完成 backup 于 27-4月 -04


RMAN>



8.在目标数据库plugin数据文件


注意目标数据库中的目标用户必须存在,否则会报错.


E:\Oracle\oradata\wwl\dpdata>impdp wwl/wwl dumpfile=trans.dmp directory=dpdata transport_datafiles='E:\Oracle\orad
ata\wwl\wwl\DATAFILE\TRANS01.DBF'


Import: Release 10.1.0.2.0 - Production on 星期二, 27 4月, 2004 15:02


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


连接到: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
已成功加载/卸载了主表 "wwl"."SYS_IMPORT_TRANSPORTABLE_01"
启动 "wwl"."SYS_IMPORT_TRANSPORTABLE_01": wwl/******** dumpfile=trans.dmp directory=dpdata transport_datafiles='E:\
Oracle\oradata\wwl\wwl\DATAFILE\TRANS01.DBF'
处理对象类型 TRANSPORTABLE_EXPORT/PLUGTS_BLK
ORA-39123: 数据泵可传输的表空间作业中止
ORA-29342: 数据库中不存在用户 TRANS


作业 "wwl"."SYS_IMPORT_TRANSPORTABLE_01" 因致命错误于 15:02 停止



E:\Oracle\oradata\wwl\dpdata>sqlplus "/ as sysdba"


SQL*Plus: Release 10.1.0.2.0 - Production on 星期二 4月 27 15:03:03 2004


Copyright (c) 1982, 2004, Oracle. All rights reserved.



连接到:
Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options


SQL> create user trans identified by trans;


用户已创建。


SQL> grant connect,resource to trans;


授权成功。


SQL> exit
从 Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options 断开


E:\Oracle\oradata\wwl\dpdata>impdp wwl/wwl dumpfile=trans.dmp directory=dpdata transport_datafiles='E:\Oracle\orad
ata\wwl\wwl\DATAFILE\TRANS01.DBF'


Import: Release 10.1.0.2.0 - Production on 星期二, 27 4月, 2004 15:03


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


连接到: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data