>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>> Output 2.1: Results of creating a transportable tablespace from RMAN backups
>>             (in Windows NT environment)
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

RMAN-05026: WARNING: presuming following set of tablespaces applies to specified point in time

List of tablespaces expected to have UNDO segments
tablespace SYSTEM
tablespace UNDOTBS1

Creating automatic instance, with SID='wylp'

initialization parameters used for automatic instance:
db_name=ORCL102
compatible=10.2.0.1.0
db_block_size=8192
db_files=200
db_unique_name=tspitr_ORCL102_wylp
large_pool_size=1M
shared_pool_size=110M
#No auxiliary parameter file used
db_create_file_dest=E:/tmprptrepos
control_files=E:/tmprptrepos/cntrl_tspitr_ORCL102_wylp.f


starting up automatic instance ORCL102

Oracle instance started

Total System Global Area     201326592 bytes

Fixed Size                     1248092 bytes
Variable Size                146801828 bytes
Database Buffers              50331648 bytes
Redo Buffers                   2945024 bytes
Automatic instance created

contents of Memory Script:
{
# set the until clause
set until  scn 1643138;
# restore the controlfile
restore clone controlfile;
# mount the controlfile
sql clone 'alter database mount clone database';
# archive current online log for tspitr to a resent until time
sql 'alter system archive log current';
# avoid unnecessary autobackups for structural changes during TSPITR
sql 'begin dbms_backup_restore.AutoBackupFlag(FALSE); end;';
}
executing Memory Script

executing command: SET until clause

Starting restore at 30-APR-06
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: sid=37 devtype=DISK

channel ORA_AUX_DISK_1: starting datafile backupset restore
channel ORA_AUX_DISK_1: restoring control file
channel ORA_AUX_DISK_1: reading from backup piece C:\ORACLE\PRODUCT\10.2.0\DB_1\FLASH_RECOVERY_AREA\ORCL102\BA
CKUPSET\2006_04_30\O1_MF_NCSNF_TAG20060430T202622_25BS4WM3_.BKP
channel ORA_AUX_DISK_1: restored backup piece 1
piece handle=C:\ORACLE\PRODUCT\10.2.0\DB_1\FLASH_RECOVERY_AREA\ORCL102\BACKUPSET\2006_04_30\O1_MF_NCSNF_TAG200
60430T202622_25BS4WM3_.BKP tag=TAG20060430T202622
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:17
output filename=E:\TMPRPTREPOS\CNTRL_TSPITR_ORCL102_WYLP.F
Finished restore at 30-APR-06

sql statement: alter database mount clone database

sql statement: alter system archive log current

sql statement: begin dbms_backup_restore.AutoBackupFlag(FALSE); end;
released channel: ORA_DISK_1
released channel: ORA_AUX_DISK_1

contents of Memory Script:
{
# generated tablespace point-in-time recovery script
# set the until clause
set until  scn 1643138;
# set an omf destination filename for restore
set newname for clone datafile  1 to new;
# set an omf destination filename for restore
set newname for clone datafile  2 to new;
# set an omf destination filename for restore
set newname for clone datafile  3 to new;
# set an omf destination tempfile
set newname for clone tempfile  1 to new;
# set a destination filename for restore
set newname for datafile  6 to
 "E:/tmprptrepos\LMT_SFH.DBF";
# rename all tempfiles
switch clone tempfile all;
# restore the tablespaces in the recovery set plus the auxilliary tablespaces
restore clone datafile  1, 2, 3, 6;
switch clone datafile all;
#online the datafiles restored or flipped
sql clone "alter database datafile  1 online";
#online the datafiles restored or flipped
sql clone "alter database datafile  2 online";
#online the datafiles restored or flipped
sql clone "alter database datafile  3 online";
#online the datafiles restored or flipped
sql clone "alter database datafile  6 online";
# make the controlfile point at the restored datafiles, then recover them
recover clone database tablespace  "LMT_SFH", "SYSTEM", "UNDOTBS1", "SYSAUX" delete archivelog;
alter clone database open resetlogs;
# PLUG HERE the creation of a temporary tablespace if export fails due to lack
# of temporary space.
# For example in Unix these two lines would do that:
#sql clone "create tablespace aux_tspitr_tmp
#           datafile ''/tmp/aux_tspitr_tmp.dbf'' size 500K";
}
executing Memory Script

executing command: SET until clause

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

renamed temporary file 1 to E:\TMPRPTREPOS\TSPITR_O\DATAFILE\O1_MF_TEMP_%U_.TMP in control file

Starting restore at 30-APR-06
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: sid=39 devtype=DISK

channel ORA_AUX_DISK_1: starting datafile backupset restore
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
restoring datafile 00001 to E:\TMPRPTREPOS\TSPITR_O\DATAFILE\O1_MF_SYSTEM_%U_.DBF
restoring datafile 00002 to E:\TMPRPTREPOS\TSPITR_O\DATAFILE\O1_MF_UNDOTBS1_%U_.DBF
restoring datafile 00003 to E:\TMPRPTREPOS\TSPITR_O\DATAFILE\O1_MF_SYSAUX_%U_.DBF
restoring datafile 00006 to E:\TMPRPTREPOS\LMT_SFH.DBF
channel ORA_AUX_DISK_1: reading from backup piece C:\ORACLE\PRODUCT\10.2.0\DB_1\FLASH_RECOVERY_AREA\ORCL102\BA
CKUPSET\2006_04_30\O1_MF_NNNDF_TAG20060430T202622_25BRY2KR_.BKP
channel ORA_AUX_DISK_1: restored backup piece 1
piece handle=C:\ORACLE\PRODUCT\10.2.0\DB_1\FLASH_RECOVERY_AREA\ORCL102\BACKUPSET\2006_04_30\O1_MF_NNNDF_TAG200
60430T202622_25BRY2KR_.BKP tag=TAG20060430T202622
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:14:01
Finished restore at 30-APR-06

datafile 1 switched to datafile copy
input datafile copy recid=6 stamp=589150130 filename=E:\TMPRPTREPOS\TSPITR_O\DATAFILE\O1_MF_SYSTEM_25BSFPL0_.D
BF
datafile 2 switched to datafile copy
input datafile copy recid=7 stamp=589150131 filename=E:\TMPRPTREPOS\TSPITR_O\DATAFILE\O1_MF_UNDOTBS1_25BSFQLP_
.DBF
datafile 3 switched to datafile copy
input datafile copy recid=8 stamp=589150133 filename=E:\TMPRPTREPOS\TSPITR_O\DATAFILE\O1_MF_SYSAUX_25BSFQ57_.D
BF
datafile 6 switched to datafile copy
input datafile copy recid=9 stamp=589150135 filename=E:\TMPRPTREPOS\LMT_SFH.DBF

sql statement: alter database datafile  1 online

sql statement: alter database datafile  2 online

sql statement: alter database datafile  3 online

sql statement: alter database datafile  6 online

Starting recover at 30-APR-06
using channel ORA_AUX_DISK_1

starting media recovery

channel ORA_AUX_DISK_1: starting archive log restore to default destination
channel ORA_AUX_DISK_1: restoring archive log
archive log thread=1 sequence=42
channel ORA_AUX_DISK_1: reading from backup piece C:\ORACLE\PRODUCT\10.2.0\DB_1\FLASH_RECOVERY_AREA\ORCL102\BA
CKUPSET\2006_04_30\O1_MF_ANNNN_TAG20060430T203014_25BS58M0_.BKP
channel ORA_AUX_DISK_1: restored backup piece 1
piece handle=C:\ORACLE\PRODUCT\10.2.0\DB_1\FLASH_RECOVERY_AREA\ORCL102\BACKUPSET\2006_04_30\O1_MF_ANNNN_TAG200
60430T203014_25BS58M0_.BKP tag=TAG20060430T203014
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:02
archive log filename=C:\ORACLE\PRODUCT\10.2.0\DB_1\RDBMS\ARC00042_0578445806.001 thread=1 sequence=42
channel clone_default: deleting archive log(s)
archive log filename=C:\ORACLE\PRODUCT\10.2.0\DB_1\RDBMS\ARC00042_0578445806.001 recid=7 stamp=589150170
media recovery complete, elapsed time: 00:00:08
Finished recover at 30-APR-06

database opened

contents of Memory Script:
{
#mark read only the tablespace that will be exported
sql clone "alter tablespace LMT_SFH read only";
# create directory for datapump export
sql clone "create or replace directory STREAMS_DIROBJ_DPDIR as ''
E:/tmprptrepos''";
# export the tablespaces in the recovery set
host 'expdp userid=\"/@(DESCRIPTION=(ADDRESS=(PROTOCOL=beq)(PROGRAM=oracle)(ARGV0=oraclewylp)(ARGS=^'(DESCRIPT
ION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))^')(ENVS=^'ORACLE_SID=wylp^'))(CONNECT_DATA=(SID=wylp))) as sysdba\" t
ransport_tablespaces=
 LMT_SFH dumpfile=
dmpfile.dmp directory=
STREAMS_DIROBJ_DPDIR logfile=
explog.log';
}
executing Memory Script

sql statement: alter tablespace LMT_SFH read only

sql statement: create or replace directory STREAMS_DIROBJ_DPDIR as ''E:/tmprptrepos''


Export: Release 10.2.0.1.0 - Production on Sunday, 30 April, 2006 20:54:02

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

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
Starting "SYS"."SYS_EXPORT_TRANSPORTABLE_01":  userid="/********@(DESCRIPTION=(ADDRESS=(PROTOCOL=beq)(PROGRAM=
oracle)(ARGV0=oraclewylp)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))')(ENVS='ORACLE_SID=wylp'))(C
ONNECT_DATA=(SID=wylp))) AS SYSDBA" transport_tablespaces= LMT_SFH dumpfile=dmpfile.dmp directory=STREAMS_DIRO
BJ_DPDIR logfile=explog.log
Processing object type TRANSPORTABLE_EXPORT/PLUGTS_BLK
Processing object type TRANSPORTABLE_EXPORT/TABLE
Processing object type TRANSPORTABLE_EXPORT/CONSTRAINT/CONSTRAINT
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:
  E:\TMPRPTREPOS\DMPFILE.DMP
Job "SYS"."SYS_EXPORT_TRANSPORTABLE_01" successfully completed at 20:56:48

host command complete
/*
   The following command may be used to import the tablespaces.
   Substitute values for <logon> and <directory>.
   impdp <logon> directory=<directory> dumpfile= 'dmpfile.dmp' transport_datafiles= E:/tmprptrepos\LMT_SFH.DBF

*/
--------------------------------------------------------------
-- Start of sample PL/SQL script for importing the tablespaces
--------------------------------------------------------------
-- creating directory objects
CREATE DIRECTORY STREAMS$DIROBJ$1 AS  'E:/tmprptrepos\';
CREATE DIRECTORY STREAMS$DIROBJ$DPDIR AS  'E:/tmprptrepos';
/* PL/SQL Script to import the exported tablespaces */
DECLARE
  -- the datafiles
  tbs_files     dbms_streams_tablespace_adm.file_set;
  cvt_files     dbms_streams_tablespace_adm.file_set;
  -- the dumpfile to import
  dump_file     dbms_streams_tablespace_adm.file;
  dp_job_name   VARCHAR2(30) := NULL;
  -- names of tablespaces that were imported
  ts_names       dbms_streams_tablespace_adm.tablespace_set;
BEGIN
  -- dump file name and location
  dump_file.file_name :=  'dmpfile.dmp';
  dump_file.directory_object := 'STREAMS$DIROBJ$DPDIR';
  -- forming list of datafiles for import
  tbs_files( 1).file_name :=  'LMT_SFH.DBF';
  tbs_files( 1).directory_object :=  'STREAMS$DIROBJ$1';
  -- import tablespaces
  dbms_streams_tablespace_adm.attach_tablespaces(
    datapump_job_name      => dp_job_name,
    dump_file              => dump_file,
    tablespace_files       => tbs_files,
    converted_files        => cvt_files,
    tablespace_names       => ts_names);
  -- output names of imported tablespaces
  IF ts_names IS NOT NULL AND ts_names.first IS NOT NULL THEN
    FOR i IN ts_names.first .. ts_names.last LOOP
      dbms_output.put_line('imported tablespace '|| ts_names(i));
    END LOOP;
  END IF;
END;
/
-- dropping directory objects
DROP DIRECTORY STREAMS$DIROBJ$1;
DROP DIRECTORY STREAMS$DIROBJ$DPDIR;
--------------------------------------------------------------
-- End of sample PL/SQL script
--------------------------------------------------------------

Removing automatic instance
shutting down automatic instance
Oracle instance shut down
Automatic instance removed
auxiliary instance file E:\TMPRPTREPOS\CNTRL_TSPITR_ORCL102_WYLP.F deleted
auxiliary instance file E:\TMPRPTREPOS\TSPITR_O\DATAFILE\O1_MF_SYSTEM_25BSFPL0_.DBF deleted
auxiliary instance file E:\TMPRPTREPOS\TSPITR_O\DATAFILE\O1_MF_UNDOTBS1_25BSFQLP_.DBF deleted
auxiliary instance file E:\TMPRPTREPOS\TSPITR_O\DATAFILE\O1_MF_SYSAUX_25BSFQ57_.DBF deleted
auxiliary instance file E:\TMPRPTREPOS\TSPITR_O\DATAFILE\O1_MF_TEMP_25BTG4YB_.TMP deleted
auxiliary instance file E:\TMPRPTREPOS\TSPITR_O\ONLINELOG\O1_MF_1_25BT9NJY_.LOG deleted
auxiliary instance file E:\TMPRPTREPOS\TSPITR_O\ONLINELOG\O1_MF_2_25BTBZH4_.LOG deleted
auxiliary instance file E:\TMPRPTREPOS\TSPITR_O\ONLINELOG\O1_MF_3_25BTDBGW_.LOG deleted

RMAN>
 
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>> Output 2.2: Results of creating a transportable tablespace from RMAN backups
>>             (in Linux environment)
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

RMAN-05026: WARNING: presuming following set of tablespaces applies to specified point in time
 
List of tablespaces expected to have UNDO segments
tablespace SYSTEM
tablespace UNDOTBS1
 
Creating automatic instance, with SID='oczx'
 
initialization parameters used for automatic instance:
db_name=ORCL
compatible=10.2.0.1.0
db_block_size=8192
db_files=200
db_unique_name=tspitr_ORCL_oczx
large_pool_size=1M
shared_pool_size=110M
#No auxiliary parameter file used
db_create_file_dest=/u02/ttxports
control_files=/u02/ttxports/cntrl_tspitr_ORCL_oczx.f
 
 
starting up automatic instance ORCL
Oracle instance started
Total System Global Area     201326592 bytes
Fixed Size                     1218508 bytes
Variable Size                146802740 bytes
Database Buffers              50331648 bytes
Redo Buffers                   2973696 bytes
Automatic instance created
 
contents of Memory Script:
{
# set the until clause
set until  scn 1632728;
# restore the controlfile
restore clone controlfile;
# mount the controlfile
sql clone 'alter database mount clone database';
# archive current online log for tspitr to a resent until time
sql 'alter system archive log current';
# avoid unnecessary autobackups for structural changes during TSPITR
sql 'begin dbms_backup_restore.AutoBackupFlag(FALSE); end;';
}
executing Memory Script
 
executing command: SET until clause
 
Starting restore at 17-APR-06
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: sid=37 devtype=DISK
 
channel ORA_AUX_DISK_1: starting datafile backupset restore
channel ORA_AUX_DISK_1: restoring control file
channel ORA_AUX_DISK_1: reading from backup piece /u01/app/oracle/flash_recovery_area/ORCL/autobackup/2006_04_17/o1_mf_s_588022249_248dsxhq_.bkp
channel ORA_AUX_DISK_1: restored backup piece 1
piece handle=/u01/app/oracle/flash_recovery_area/ORCL/autobackup/2006_04_17/o1_mf_s_588022249_248dsxhq_.bkp tag=TAG20060417T193049
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:10
output filename=/u02/ttxports/cntrl_tspitr_ORCL_oczx.f
Finished restore at 17-APR-06
 
sql statement: alter database mount clone database
sql statement: alter system archive log current
sql statement: begin dbms_backup_restore.AutoBackupFlag(FALSE); end;
released channel: ORA_AUX_DISK_1
 
contents of Memory Script:
{
# generated tablespace point-in-time recovery script
# set the until clause
set until  scn 1632728;
# set an omf destination filename for restore
set newname for clone datafile  1 to new;
# set an omf destination filename for restore
set newname for clone datafile  2 to new;
# set an omf destination filename for restore
set newname for clone datafile  3 to new;
# set an omf destination tempfile
set newname for clone tempfile  1 to new;
# set a destination filename for restore
set newname for datafile  8 to
 "/u02/ttxports/lmt_sfh.dbf";
# rename all tempfiles
switch clone tempfile all;
# restore the tablespaces in the recovery set plus the auxilliary tablespaces
restore clone datafile  1, 2, 3, 8;
switch clone datafile all;
#online the datafiles restored or flipped
sql clone "alter database datafile  1 online";
#online the datafiles restored or flipped
sql clone "alter database datafile  2 online";
#online the datafiles restored or flipped
sql clone "alter database datafile  3 online";
#online the datafiles restored or flipped
sql clone "alter database datafile  8 online";
# make the controlfile point at the restored datafiles, then recover them
recover clone database tablespace  "LMT_SFH", "SYSTEM", "UNDOTBS1", "SYSAUX" delete archivelog;
alter clone database open resetlogs;
# PLUG HERE the creation of a temporary tablespace if export fails due to lack
# of temporary space.
# For example in Unix these two lines would do that:
#sql clone "create tablespace aux_tspitr_tmp
#           datafile ''/tmp/aux_tspitr_tmp.dbf'' size 500K";
}
executing Memory Script
executing command: SET until clause
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
renamed temporary file 1 to /u02/ttxports/TSPITR_ORCL_OCZX/datafile/o1_mf_temp_%u_.tmp in control file
 
Starting restore at 17-APR-06
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: sid=39 devtype=DISK
 
channel ORA_AUX_DISK_1: starting datafile backupset restore
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
restoring datafile 00002 to /u02/ttxports/TSPITR_ORCL_OCZX/datafile/o1_mf_undotbs1_%u_.dbf
restoring datafile 00003 to /u02/ttxports/TSPITR_ORCL_OCZX/datafile/o1_mf_sysaux_%u_.dbf
channel ORA_AUX_DISK_1: reading from backup piece /u01/app/oracle/flash_recovery_area/ORCL/backupset/2006_04_17/o1_mf_nnndf_TAG20060417T192418_248dfmsg_.bkp
channel ORA_AUX_DISK_1: restored backup piece 1
piece handle=/u01/app/oracle/flash_recovery_area/ORCL/backupset/2006_04_17/o1_mf_nnndf_TAG20060417T192418_248dfmsg_.bkp tag=TAG20060417T192418
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:02:28
channel ORA_AUX_DISK_1: starting datafile backupset restore
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
restoring datafile 00001 to /u02/ttxports/TSPITR_ORCL_OCZX/datafile/o1_mf_system_%u_.dbf
restoring datafile 00008 to /u02/ttxports/lmt_sfh.dbf
channel ORA_AUX_DISK_1: reading from backup piece /u01/app/oracle/flash_recovery_area/ORCL/backupset/2006_04_17/o1_mf_nnndf_TAG20060417T192418_248dfmf9_.bkp
channel ORA_AUX_DISK_1: restored backup piece 1
piece handle=/u01/app/oracle/flash_recovery_area/ORCL/backupset/2006_04_17/o1_mf_nnndf_TAG20060417T192418_248dfmf9_.bkp tag=TAG20060417T192418
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:03:46
Finished restore at 17-APR-06
 
datafile 1 switched to datafile copy
input datafile copy recid=6 stamp=588025006 filename=/u02/ttxports/TSPITR_ORCL_OCZX/datafile/o1_mf_system_248h8wjw_.dbf
datafile 2 switched to datafile copy
input datafile copy recid=7 stamp=588025006 filename=/u02/ttxports/TSPITR_ORCL_OCZX/datafile/o1_mf_undotbs1_248h4blb_.dbf
datafile 3 switched to datafile copy
input datafile copy recid=8 stamp=588025006 filename=/u02/ttxports/TSPITR_ORCL_OCZX/datafile/o1_mf_sysaux_248h4b98_.dbf
datafile 8 switched to datafile copy
input datafile copy recid=9 stamp=588025006 filename=/u02/ttxports/lmt_sfh.dbf
 
sql statement: alter database datafile  1 online
sql statement: alter database datafile  2 online
sql statement: alter database datafile  3 online
sql statement: alter database datafile  8 online
 
Starting recover at 17-APR-06
using channel ORA_AUX_DISK_1
 
starting media recovery
 
archive log thread 1 sequence 33 is already on disk as file /u01/app/oracle/flash_recovery_area/ORCL/archivelog/2006_04_17/o1_mf_1_33_248gj5pv_.arc
archive log thread 1 sequence 34 is already on disk as file /u01/app/oracle/flash_recovery_area/ORCL/archivelog/2006_04_17/o1_mf_1_34_248gmqb7_.arc
channel ORA_AUX_DISK_1: starting archive log restore to default destination
channel ORA_AUX_DISK_1: restoring archive log
archive log thread=1 sequence=32
channel ORA_AUX_DISK_1: reading from backup piece /u01/app/oracle/flash_recovery_area/ORCL/backupset/2006_04_17/o1_mf_annnn_TAG20060417T193046_248dsr4o_.bkp
channel ORA_AUX_DISK_1: restored backup piece 1
piece handle=/u01/app/oracle/flash_recovery_area/ORCL/backupset/2006_04_17/o1_mf_annnn_TAG20060417T193046_248dsr4o_.bkp tag=TAG20060417T193046
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
archive log filename=/u01/app/oracle/product/10.2.0/db_1/dbs/arch1_32_587820736.dbf thread=1 sequence=32
channel clone_default: deleting archive log(s)
archive log filename=/u01/app/oracle/product/10.2.0/db_1/dbs/arch1_32_587820736.dbf recid=30 stamp=588025009
archive log filename=/u01/app/oracle/flash_recovery_area/ORCL/archivelog/2006_04_17/o1_mf_1_33_248gj5pv_.arc thread=1 sequence=33
archive log filename=/u01/app/oracle/flash_recovery_area/ORCL/archivelog/2006_04_17/o1_mf_1_34_248gmqb7_.arc thread=1 sequence=34
media recovery complete, elapsed time: 00:00:10
Finished recover at 17-APR-06
 
database opened
 
contents of Memory Script:
{
#mark read only the tablespace that will be exported
sql clone "alter tablespace LMT_SFH read only";
# create directory for datapump export
sql clone "create or replace directory STREAMS_DIROBJ_DPDIR as ''
/u02/ttxports''";
# export the tablespaces in the recovery set
host 'expdp userid=\"/@\(DESCRIPTION=\(ADDRESS=\(PROTOCOL=beq\)\(PROGRAM=/u01/app/oracle/product/10.2.0/db_1/bin/oracle\)\(ARGV0=oracleoczx\)\(ARGS=^'\(DESCRIPTION=\(LOCAL=YES\)\(ADDRESS=\(PROTOCOL=beq\)\)\)^'\)\(ENVS=^'ORACLE_SID=oczx^'\)\)\(CONNECT_DATA=\(SID=oczx\)\)\) as sysdba\" transport_tablespaces=
 LMT_SFH dumpfile=
dmpfile.dmp directory=
STREAMS_DIROBJ_DPDIR logfile=
explog.log';
}
executing Memory Script
 
sql statement: alter tablespace LMT_SFH read only

sql statement: create or replace directory STREAMS_DIROBJ_DPDIR as ''/u02/ttxports''
 
 
Export: Release 10.2.0.1.0 - Production on Monday, 17 April, 2006 20:17:25
 
Copyright (c) 2003, 2005, Oracle.  All rights reserved.
 
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
Starting "SYS"."SYS_EXPORT_TRANSPORTABLE_01":  userid="/********@(DESCRIPTION=(ADDRESS=(PROTOCOL=beq)(PROGRAM=/u01/app/oracle/product/10.2.0/db_1/bin/oracle)(ARGV0=oracleoczx)(ARGS=\(DESCRIPTION=\(LOCAL=YES\)\(ADDRESS=\(PROTOCOL=beq\)\)\))(ENVS=ORACLE_SID=oczx))(CONNECT_DATA=(SID=oczx))) AS SYSDBA" transport_tablespaces= LMT_SFH dumpfile=dmpfile.dmp directory=STREAMS_DIROBJ_DPDIR logfile=explog.log
Processing object type TRANSPORTABLE_EXPORT/PLUGTS_BLK
Processing object type TRANSPORTABLE_EXPORT/TABLE
Processing object type TRANSPORTABLE_EXPORT/CONSTRAINT/CONSTRAINT
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/ttxports/dmpfile.dmp
Job "SYS"."SYS_EXPORT_TRANSPORTABLE_01" successfully completed at 20:18:16
 
host command complete
/*
   The following command may be used to import the tablespaces.
   Substitute values for <logon> and <directory>.
   impdp <logon> directory=<directory> dumpfile= 'dmpfile.dmp' transport_datafiles= /u02/ttxports/lmt_sfh.dbf
*/
--------------------------------------------------------------
-- Start of sample PL/SQL script for importing the tablespaces
--------------------------------------------------------------
-- creating directory objects
CREATE DIRECTORY STREAMS$DIROBJ$1 AS  '/u02/ttxports/';
CREATE DIRECTORY STREAMS$DIROBJ$DPDIR AS  '/u02/ttxports';
/* PL/SQL Script to import the exported tablespaces */
DECLARE
  -- the datafiles
  tbs_files     dbms_streams_tablespace_adm.file_set;
  cvt_files     dbms_streams_tablespace_adm.file_set;
  -- the dumpfile to import
  dump_file     dbms_streams_tablespace_adm.file;
  dp_job_name   VARCHAR2(30) := NULL;
  -- names of tablespaces that were imported
  ts_names       dbms_streams_tablespace_adm.tablespace_set;
BEGIN
  -- dump file name and location
  dump_file.file_name :=  'dmpfile.dmp';
  dump_file.directory_object := 'STREAMS$DIROBJ$DPDIR';
  -- forming list of datafiles for import
  tbs_files( 1).file_name :=  'lmt_sfh.dbf';
  tbs_files( 1).directory_object :=  'STREAMS$DIROBJ$1';
  -- import tablespaces
  dbms_streams_tablespace_adm.attach_tablespaces(
    datapump_job_name      => dp_job_name,
    dump_file              => dump_file,
    tablespace_files       => tbs_files,
    converted_files        => cvt_files,
    tablespace_names       => ts_names);
  -- output names of imported tablespaces
  IF ts_names IS NOT NULL AND ts_names.first IS NOT NULL THEN
    FOR i IN ts_names.first .. ts_names.last LOOP
      dbms_output.put_line('imported tablespace '|| ts_names(i));
    END LOOP;
  END IF;
END;
/
-- dropping directory objects
DROP DIRECTORY STREAMS$DIROBJ$1;
DROP DIRECTORY STREAMS$DIROBJ$DPDIR;
--------------------------------------------------------------
-- End of sample PL/SQL script
--------------------------------------------------------------
 
Removing automatic instance
shutting down automatic instance
Oracle instance shut down
Automatic instance removed
auxiliary instance file /u02/ttxports/cntrl_tspitr_ORCL_oczx.f deleted
auxiliary instance file /u02/ttxports/TSPITR_ORCL_OCZX/datafile/o1_mf_system_248h8wjw_.dbf deleted
auxiliary instance file /u02/ttxports/TSPITR_ORCL_OCZX/datafile/o1_mf_undotbs1_248h4blb_.dbf deleted
auxiliary instance file /u02/ttxports/TSPITR_ORCL_OCZX/datafile/o1_mf_sysaux_248h4b98_.dbf deleted
auxiliary instance file /u02/ttxports/TSPITR_ORCL_OCZX/datafile/o1_mf_temp_248hjpon_.tmp deleted
auxiliary instance file /u02/ttxports/TSPITR_ORCL_OCZX/onlinelog/o1_mf_1_248hjf03_.log deleted
auxiliary instance file /u02/ttxports/TSPITR_ORCL_OCZX/onlinelog/o1_mf_2_248hjhpb_.log deleted
auxiliary instance file /u02/ttxports/TSPITR_ORCL_OCZX/onlinelog/o1_mf_3_248hjld2_.log deleted

 
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>> Output 2.3: Snippet from this database's alert log during creation of
>>>             this tablespace version (in Windows NT environment)
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

...
Sun May 14 14:01:34 2006
ALTER TABLESPACE "LMT_REF" READ ONLY
Sun May 14 14:01:36 2006
 Converting block 0 to version 10 format
Completed: ALTER TABLESPACE "LMT_REF" READ ONLY
Sun May 14 14:01:37 2006
ALTER TABLESPACE "LMT_SFH" READ ONLY
 Converting block 0 to version 10 format
Completed: ALTER TABLESPACE "LMT_SFH" READ ONLY
Sun May 14 14:01:38 2006
ALTER TABLESPACE "LMT_XACT" READ ONLY
 Converting block 0 to version 10 format
Completed: ALTER TABLESPACE "LMT_XACT" READ ONLY
The value (30) of MAXTRANS parameter ignored.
kupprdp: master process DM00 started with pid=29, OS id=4008
         to execute - SYS.KUPM$MCP.MAIN('SYS_EXPORT_TRANSPORTABLE_02', 'SYS', 'KUPC$C_1_20060514140149', 'KUPC$S_1_20060514140149', 0);
kupprdp: worker process DW01 started with worker id=1, pid=30, OS id=3588
         to execute - SYS.KUPW$WORKER.MAIN('SYS_EXPORT_TRANSPORTABLE_02', 'SYS');
...
Sun May 14 14:03:55 2006
ALTER TABLESPACE "LMT_REF" READ WRITE
Sun May 14 14:03:56 2006
Completed: ALTER TABLESPACE "LMT_REF" READ WRITE
Sun May 14 14:03:56 2006
ALTER TABLESPACE "LMT_SFH" READ WRITE
Completed: ALTER TABLESPACE "LMT_SFH" READ WRITE
Sun May 14 14:03:57 2006
ALTER TABLESPACE "LMT_XACT" READ WRITE
Completed: ALTER TABLESPACE "LMT_XACT" READ WRITE
Sun May 14 14:04:19 2006
The value (30) of MAXTRANS parameter ignored.
kupprdp: master process DM00 started with pid=26, OS id=4036
         to execute - SYS.KUPM$MCP.MAIN('FGR$MT$4', 'SYS', 'KUPC$C_1_20060514140420', 'KUPC$S_1_20060514140420', 0);
kupprdp: worker process DW01 started with worker id=1, pid=29, OS id=2012
         to execute - SYS.KUPW$WORKER.MAIN('FGR$MT$4', 'SYS');
Sun May 14 14:04:30 2006
The value (30) of MAXTRANS parameter ignored.
kupprdp: master process DM01 started with pid=29, OS id=916
         to execute - SYS.KUPM$MCP.MAIN('FGR$MT$5', 'SYS', 'KUPC$C_1_20060514140430', 'KUPC$S_1_20060514140430', 0);
kupprdp: worker process DW02 started with worker id=1, pid=30, OS id=2544
         to execute - SYS.KUPW$WORKER.MAIN('FGR$MT$5', 'SYS');
...
 
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>> Output 2.4: Contents of DataPump Export Log after creation of
>>>             this tablespace version (in Windows NT environment)
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Starting "SYS"."SYS_EXPORT_TRANSPORTABLE_02":  
Processing object type TRANSPORTABLE_EXPORT/PLUGTS_BLK
Processing object type TRANSPORTABLE_EXPORT/TABLE
Processing object type TRANSPORTABLE_EXPORT/INDEX
Processing object type TRANSPORTABLE_EXPORT/CONSTRAINT/CONSTRAINT
Processing object type TRANSPORTABLE_EXPORT/INDEX_STATISTICS
Processing object type TRANSPORTABLE_EXPORT/CONSTRAINT/REF_CONSTRAINT
Processing object type TRANSPORTABLE_EXPORT/TABLE_STATISTICS
Processing object type TRANSPORTABLE_EXPORT/POST_INSTANCE/PLUGTS_BLK
Master table "SYS"."SYS_EXPORT_TRANSPORTABLE_02" successfully loaded/unloaded
******************************************************************************
Dump file set for SYS.SYS_EXPORT_TRANSPORTABLE_02 is:
  C:\_DBA\RPTREPOSTSV\V1\EXPDAT18.DMP
Job "SYS"."SYS_EXPORT_TRANSPORTABLE_02" successfully completed at 14:03:23

 
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>> Output 2.5: Results of querying contents of Tablespaces Version 1
>>             after a successful transport operation
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

COUNT(UNITS) SUM(UNITS) SUM(REVENUE)
------------ ---------- ------------
          75    8984488  97280442.27

GEO_AREA SALES_PERSON
-------- ----------------------------------------
CMPY     Zinger, Edward
EAST     Campana, Felicia
WEST     Mahoney, Peter
EA00     Page, Geraldine
SE00     Hummus, Giorgio
MW00     Capricola, Luigi
WE00     Whitehall, Lobelia
EA10     Oddbody, Clarence
EA20     Goldfinger, Auric
SE10     Germaine, Johnson
SE20     Paisan, Humberto
MW10     Austin, Stephanie
MW20     Gardenia, Vincenzo
WE10     Cruz, Euphegenia
WE20     Anthemum, Christopher

15 rows selected
 
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>> Output 2.6: Results of querying contents of Tablespaces Version 2
>>             after a successful transport operation
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

COUNT(UNITS) SUM(UNITS) SUM(REVENUE)
------------ ---------- ------------
          75    9539652    103291536


GEO_AREA SALES_PERSON
-------  ----------------------------------------
CMPY     Goldfinger, Auric
EAST     Campana, Felicia
WEST     Whitehall, Lobelia
EA00     Page, Geraldine
SE00     Paisan, Humberto
MW00     Gardenia, Vincenzo
WE00     Umberlie, Latricia
EA10     Oddbody, Clarence
EA20     DeSalvo, June
SE10     Germaine, Johnson
SE20     Menendez, Juan
MW10     Austin, Stephanie
MW20     DiGiovanni, Anthony
WE10     Cruz, Euphegenia
WE20     Anthemum, Christopher 

15 rows selected.
 
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>> Output 2.7: Tablespace Versioning query results
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Wed May 17                                                                                           page    1
                                            Tablespace File Groups

File
Group                     Keep    Min          Max         Days Default
Owner    File Group Name  File   Vsns         Vsns         Rtnd Directory        Comments
-------- ---------------- ---- ------ ------------ ------------ ---------------- ------------------------
SH       GRP_RPTREPOS     Y         3   4294967295   4294967295 RPTREPOS_TSV_DIR
Reporting Repostor
y Tablespace Versions



Wed May 17                                                                                           page    1
                                      Tablespace Versions In File Groups

File
Group                                              Default
Owner    File Group Name   Vrsn # Version Name     Directory        Comments
-------- ---------------- ------- ---------------- ---------------- ------------------------
SH       GRP_RPTREPOS           5 SALESFORCE_V1
SH       GRP_RPTREPOS           6 SALESFORCE_V2

Wed May 17                                                                                           page    1
                                    Tablespace Versions Export Information

File
Group                                              Exp        Platform                    Export
Owner    File Group Name   Vrsn # Version Name     Vsn#       Name                          SCN#
-------- ---------------- ------- ---------------- ---------- ------------------------ ---------
Source Global Name
------------------------------------------------
SH       GRP_RPTREPOS           5 SALESFORCE_V1    10.2.0.1.0 Microsoft Windows IA (32
                                                              -bit)
ORCL102.REGRESS.RDBMS.DEV.US.ORACLE.COM

SH       GRP_RPTREPOS           6 SALESFORCE_V2    10.2.0.1.0 Microsoft Windows IA (32
                                                              -bit)
ORCL102.REGRESS.RDBMS.DEV.US.ORACLE.COM


Wed May 17                                                                                           page    1
                                      File Sets In Versioned File Groups

File                                                                                                 File
Group                                              Default                  File                    Block
Owner    File Group Name   Vrsn # Version Name     Directory                Type         File Size   Size
-------- ---------------- ------- ---------------- ------------------------ ------------ --------- ------
Comments
------------------------
SH       GRP_RPTREPOS           5 SALESFORCE_V1    RPTREPOS_TSV_DIR_V1      DATAFILE      10493952      0


SH       GRP_RPTREPOS           5 SALESFORCE_V1    RPTREPOS_TSV_DIR_V1      DATAPUMPLOG        868      0


SH       GRP_RPTREPOS           5 SALESFORCE_V1    RPTREPOS_TSV_DIR_V1      DUMPSET         151552      0


SH       GRP_RPTREPOS           5 SALESFORCE_V1    RPTREPOS_TSV_DIR_V1      DATAFILE       2105344      0


SH       GRP_RPTREPOS           5 SALESFORCE_V1    RPTREPOS_TSV_DIR_V1      DATAFILE       1056768      0


SH       GRP_RPTREPOS           6 SALESFORCE_V2    RPTREPOS_TSV_DIR_V2      DATAFILE       2105344      0


SH       GRP_RPTREPOS           6 SALESFORCE_V2    RPTREPOS_TSV_DIR_V2      DATAFILE       1056768      0


SH       GRP_RPTREPOS           6 SALESFORCE_V2    RPTREPOS_TSV_DIR_V2      DATAFILE      10493952      0


SH       GRP_RPTREPOS           6 SALESFORCE_V2    RPTREPOS_TSV_DIR_V2      DATAPUMPLOG        868      0


SH       GRP_RPTREPOS           6 SALESFORCE_V2    RPTREPOS_TSV_DIR_V2      DUMPSET         151552      0



10 rows selected.


Wed May 17                                                                                           page    1
                                    Tablespaces Present In File Group Set

File
Group
Owner    File Group Name  Version Name      Vrsn # Tablespace Name
-------- ---------------- ---------------- ------- ------------------------
SH       GRP_RPTREPOS     SALESFORCE_V1          5 LMT_REF
SH       GRP_RPTREPOS     SALESFORCE_V1          5 LMT_SFH
SH       GRP_RPTREPOS     SALESFORCE_V1          5 LMT_XACT
SH       GRP_RPTREPOS     SALESFORCE_V2          6 LMT_REF
SH       GRP_RPTREPOS     SALESFORCE_V2          6 LMT_SFH
SH       GRP_RPTREPOS     SALESFORCE_V2          6 LMT_XACT

6 rows selected.


Wed May 17                                                                                           page    1
                                      Tables Contained In File Group Set

File
Group                                                           Table
Owner    File Group Name   Vrsn # Version Name     TSP Name     Owner        Table Name
-------- ---------------- ------- ---------------- ------------ ------------ ------------------------
     SCN#
---------
SH       GRP_RPTREPOS           5 SALESFORCE_V1    LMT_REF      SH           CUSTOMER_TYPES

SH       GRP_RPTREPOS           5 SALESFORCE_V1    LMT_REF      SH           SALES_AGGR_TYPES

SH       GRP_RPTREPOS           5 SALESFORCE_V1    LMT_SFH      SH           SALES_FORCE_HIERARCHY

SH       GRP_RPTREPOS           5 SALESFORCE_V1    LMT_XACT     SH           AGGR_SALES

SH       GRP_RPTREPOS           6 SALESFORCE_V2    LMT_REF      SH           CUSTOMER_TYPES

SH       GRP_RPTREPOS           6 SALESFORCE_V2    LMT_REF      SH           SALES_AGGR_TYPES

SH       GRP_RPTREPOS           6 SALESFORCE_V2    LMT_SFH      SH           SALES_FORCE_HIERARCHY

SH       GRP_RPTREPOS           6 SALESFORCE_V2    LMT_XACT     SH           AGGR_SALES

8 rows selected.