RMAN使用备份传输表空间的各种自定义操作(七)

2015-04-07 14:09:47 · 作者: · 浏览: 133
log thread 1 sequence 83 is already on disk as file /u02/1_83_870806981.dbf
archive log thread 1 sequence 84 is already on disk as file /u02/1_84_870806981.dbf
archive log thread 1 sequence 85 is already on disk as file /u02/1_85_870806981.dbf
archive log thread 1 sequence 86 is already on disk as file /u02/1_86_870806981.dbf
archive log thread 1 sequence 87 is already on disk as file /u02/1_87_870806981.dbf
archive log filename=/u02/1_80_870806981.dbf thread=1 sequence=80
archive log filename=/u02/1_81_870806981.dbf thread=1 sequence=81
archive log filename=/u02/1_82_870806981.dbf thread=1 sequence=82
archive log filename=/u02/1_83_870806981.dbf thread=1 sequence=83
archive log filename=/u02/1_84_870806981.dbf thread=1 sequence=84
archive log filename=/u02/1_85_870806981.dbf thread=1 sequence=85
archive log filename=/u02/1_86_870806981.dbf thread=1 sequence=86
archive log filename=/u02/1_87_870806981.dbf thread=1 sequence=87
media recovery complete, elapsed time: 00:00:43
Finished recover at 28-MAR-15


database opened


contents of Memory Script:
{
#mark read only the tablespace that will be exported
sql clone "alter tablespace TSPITR read only";
#mark read only the tablespace that will be exported
sql clone "alter tablespace TEST read only";
# export the tablespaces in the recovery set
host 'expdp userid=\"/@\(DESCRIPTION=\(ADDRESS=\(PROTOCOL=beq\)\(PROGRAM=/u01/app/oracle/10.2.0/db/bin/oracle\)\(ARGV0=oraclemeiB\)\(ARGS=^'\(DESCRIPTION=\(LOCAL=YES\)\(ADDRESS=\(PROTOCOL=beq\)\)\)^'\)\(ENVS=^'ORACLE_SID=meiB^'\)\)\(CONNECT_DATA=\(SID=meiB\)\)\) as sysdba\" transport_tablespaces=
?TSPITR,
?TEST dumpfile=
test.dmp directory=
test_dump logfile=
testexport.log';
}
executing Memory Script


sql statement: alter tablespace TSPITR read only


sql statement: alter tablespace TEST read only



Export: Release 10.2.0.5.0 - Production on Saturday, 28 March, 2015 19:09:17


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


Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Starting "SYS"."SYS_EXPORT_TRANSPORTABLE_01":? userid="/********@(DESCRIPTION=(ADDRESS=(PROTOCOL=beq)(PROGRAM=/u01/app/oracle/10.2.0/db/bin/oracle)(ARGV0=oraclemeiB)(ARGS=\(DESCRIPTION=\(LOCAL=YES\)\(ADDRESS=\(PROTOCOL=beq\)\)\))(ENVS=ORACLE_SID=meiB))(CONNECT_DATA=(SID=meiB))) AS SYSDBA" transport_tablespaces= TSPITR, TEST dumpfile=test.dmp directory=test_dump logfile=testexport.log
Processing object type TRANSPORTABLE_EXPORT/PLUGTS_BLK
Processing object type TRANSPORTABLE_EXPORT/TABLE
Processing object type TRANSPORTABLE_EXPORT/TABLE_STATISTICS
Processing object type TRANSPORTABLE_EXPORT/POST_INSTANCE/PLUGTS_BLK
Master table "SYS"."SYS_EXPORT_TRANSPORTABLE_01" successfully loaded/unloaded
******************************************************************************
Dump file set for SYS.SYS_EXPORT_TRANSPORTABLE_01 is:
? /u02/dump_test/test.dmp
Job "SYS"."SYS_EXPORT_TRANSPORTABLE_01" successfully completed at 19:10:21


host command complete
/*
? The following command may be used to import the tablespaces.
? Substitute values for? and .
? impdp? directory= dumpfile= 'test.dmp' transport_datafiles= /u02/transport/tspitr01.dbf, /u02/transport/test01.dbf
*/
-----------------------------------