配置oracle 9i physical standby database時,duplicate命令的執行記錄
RMAN> connect auxiliary sys/aaaaaa@STANDBY
connected to auxiliary database: orac (not mounted)
RMAN> duplicate target database for standby nofilenamecheck;
Starting Duplicate Db at 12-JUL-11
using target database controlfile instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: sid=12 devtype=DISK
printing stored script: Memory Script
{
restore clone standby controlfile to clone_cf;
replicate clone controlfile from clone_cf;
sql clone 'alter database mount standby database';
}
executing script: Memory Script
Starting restore at 12-JUL-11
using channel ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: starting datafile backupset restore
channel ORA_AUX_DISK_1: restoring controlfile
output filename=/u01/app/oradata/orac/control01.ctl
channel ORA_AUX_DISK_1: restored backup piece 1
piece handle=/home/oracle/backup/0fmh8h60_1_1 tag=TAG20110712T121040 params=NULL
channel ORA_AUX_DISK_1: restore complete
Finished restore at 12-JUL-11
replicating controlfile
input filename=/u01/app/oradata/orac/control01.ctl
output filename=/u01/app/oradata/orac/control02.ctl
output filename=/u01/app/oradata/orac/control03.ctl
sql statement: alter database mount standby database
printing stored script: Memory Script
{
set until scn 500503;
set newname for datafile 1 to
"/u01/app/oradata/orac/system01.dbf";
set newname for datafile 2 to
"/u01/app/oradata/orac/undotbs01.dbf";
set newname for datafile 3 to
"/u01/app/oradata/orac/drsys01.dbf";
set newname for datafile 4 to
"/u01/app/oradata/orac/example01.dbf";
set newname for datafile 5 to
"/u01/app/oradata/orac/indx01.dbf";
set newname for datafile 6 to
"/u01/app/oradata/orac/odm01.dbf";
set newname for datafile 7 to
"/u01/app/oradata/orac/tools01.dbf";
set newname for datafile 8 to
"/u01/app/oradata/orac/users01.dbf";
set newname for datafile 9 to
"/u01/app/oradata/orac/xdb01.dbf";
restore
check readonly
clone database
;
}
executing script: 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
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting restore at 12-JUL-11
using channel ORA_AUX_DISK_1
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 /u01/app/oradata/orac/system01.dbf
restoring datafile 00002 to /u01/app/oradata/orac/undotbs01.dbf
restoring datafile 00003 to /u01/app/oradata/orac/drsys01.dbf
restoring datafile 00004 to /u01/app/oradata/orac/example01.dbf
restoring datafile 00005 to /u01/app/oradata/orac/indx01.dbf
restoring datafile 00006 to /u01/app/oradata/orac/odm01.dbf
restoring datafile 00007 to /u01/app/oradata/orac/tools01.dbf
restoring datafile 00008 to /u01/app/oradata/orac/users01.dbf
restoring datafile 00009 to /u01/app/oradata/orac/xdb01.dbf
channel ORA_AUX_DISK_1: restored backup piece 1
piece handle=/home/oracle/backup/0fmh8h60_1_1 tag=TAG20110712T121040 params=NULL
channel ORA_AUX_DISK_1: restore complete
Finished restore at 12-JUL-11
printing stored script: Memory Script
{
switch clone datafile all;
}
executing script: Memory Script
datafile 2 switched to datafile copy
input datafilecopy recid=10 stamp=756308592 filename=/u01/app/oradata/orac/undotbs01.dbf
datafile 3 switched to datafile copy
input datafilecopy recid=11 stamp=756308592 filename=/u01/app/oradata/orac/drsys01.dbf
datafile 4 switched to datafile copy
input datafilecopy recid=12 stamp=756308593 filename=/u01/app/oradata/orac/example01.dbf
datafile 5 switched to datafile copy
input datafilecopy recid=13 stamp=756308593 filename=/u01/app/oradata/orac/indx01.dbf
datafile 6 switched to datafile copy
input datafilecopy recid=14 stamp=756308593 filename=/u01/app/oradata/orac/odm01.dbf
datafile 7 switched to datafile copy
input datafilecopy recid=15 stamp=756308593 filename=/u01/app/oradata/orac/tools01.dbf
datafile 8 switched to datafile copy
input datafilecopy recid=16 stamp=756308593 filename=/u01/app/oradata/orac/users01.dbf
datafile 9 switched to datafile copy
input datafilecopy recid=17 stamp=756308593 filename=/u01/app/oradata/orac/xdb01.dbf
Finished Duplicate Db at 12-JUL-11
RMAN> exit
[@more@]
connected to auxiliary database: orac (not mounted)
RMAN> duplicate target database for standby nofilenamecheck;
Starting Duplicate Db at 12-JUL-11
using target database controlfile instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: sid=12 devtype=DISK
printing stored script: Memory Script
{
restore clone standby controlfile to clone_cf;
replicate clone controlfile from clone_cf;
sql clone 'alter database mount standby database';
}
executing script: Memory Script
Starting restore at 12-JUL-11
using channel ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: starting datafile backupset restore
channel ORA_AUX_DISK_1: restoring controlfile
output filename=/u01/app/oradata/orac/control01.ctl
channel ORA_AUX_DISK_1: restored backup piece 1
piece handle=/home/oracle/backup/0fmh8h60_1_1 tag=TAG20110712T121040 params=NULL
channel ORA_AUX_DISK_1: restore complete
Finished restore at 12-JUL-11
replicating controlfile
input filename=/u01/app/oradata/orac/control01.ctl
output filename=/u01/app/oradata/orac/control02.ctl
output filename=/u01/app/oradata/orac/control03.ctl
sql statement: alter database mount standby database
printing stored script: Memory Script
{
set until scn 500503;
set newname for datafile 1 to
"/u01/app/oradata/orac/system01.dbf";
set newname for datafile 2 to
"/u01/app/oradata/orac/undotbs01.dbf";
set newname for datafile 3 to
"/u01/app/oradata/orac/drsys01.dbf";
set newname for datafile 4 to
"/u01/app/oradata/orac/example01.dbf";
set newname for datafile 5 to
"/u01/app/oradata/orac/indx01.dbf";
set newname for datafile 6 to
"/u01/app/oradata/orac/odm01.dbf";
set newname for datafile 7 to
"/u01/app/oradata/orac/tools01.dbf";
set newname for datafile 8 to
"/u01/app/oradata/orac/users01.dbf";
set newname for datafile 9 to
"/u01/app/oradata/orac/xdb01.dbf";
restore
check readonly
clone database
;
}
executing script: 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
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting restore at 12-JUL-11
using channel ORA_AUX_DISK_1
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 /u01/app/oradata/orac/system01.dbf
restoring datafile 00002 to /u01/app/oradata/orac/undotbs01.dbf
restoring datafile 00003 to /u01/app/oradata/orac/drsys01.dbf
restoring datafile 00004 to /u01/app/oradata/orac/example01.dbf
restoring datafile 00005 to /u01/app/oradata/orac/indx01.dbf
restoring datafile 00006 to /u01/app/oradata/orac/odm01.dbf
restoring datafile 00007 to /u01/app/oradata/orac/tools01.dbf
restoring datafile 00008 to /u01/app/oradata/orac/users01.dbf
restoring datafile 00009 to /u01/app/oradata/orac/xdb01.dbf
channel ORA_AUX_DISK_1: restored backup piece 1
piece handle=/home/oracle/backup/0fmh8h60_1_1 tag=TAG20110712T121040 params=NULL
channel ORA_AUX_DISK_1: restore complete
Finished restore at 12-JUL-11
printing stored script: Memory Script
{
switch clone datafile all;
}
executing script: Memory Script
datafile 2 switched to datafile copy
input datafilecopy recid=10 stamp=756308592 filename=/u01/app/oradata/orac/undotbs01.dbf
datafile 3 switched to datafile copy
input datafilecopy recid=11 stamp=756308592 filename=/u01/app/oradata/orac/drsys01.dbf
datafile 4 switched to datafile copy
input datafilecopy recid=12 stamp=756308593 filename=/u01/app/oradata/orac/example01.dbf
datafile 5 switched to datafile copy
input datafilecopy recid=13 stamp=756308593 filename=/u01/app/oradata/orac/indx01.dbf
datafile 6 switched to datafile copy
input datafilecopy recid=14 stamp=756308593 filename=/u01/app/oradata/orac/odm01.dbf
datafile 7 switched to datafile copy
input datafilecopy recid=15 stamp=756308593 filename=/u01/app/oradata/orac/tools01.dbf
datafile 8 switched to datafile copy
input datafilecopy recid=16 stamp=756308593 filename=/u01/app/oradata/orac/users01.dbf
datafile 9 switched to datafile copy
input datafilecopy recid=17 stamp=756308593 filename=/u01/app/oradata/orac/xdb01.dbf
Finished Duplicate Db at 12-JUL-11
RMAN> exit
[@more@]
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/161195/viewspace-1052472/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle DG建立Physical Standby DatabaseOracleDatabase
- Convert a Physical Standby Database into a Snapshot Standby DatabaseDatabase
- Performing a Failover to a Physical Standby DatabaseORMAIDatabase
- Oracle Physical Database LimitsOracleDatabaseMIT
- Oracle DG Standby Database型別OracleDatabase型別
- Oracle DG建立Logical Standby DatabaseOracleDatabase
- Oracle 12.2 physical standby備庫收集AWR報告Oracle
- Oracle 12.2 使用Database Link優化Standby Database WorkloadOracleDatabase優化
- 搭建windows到linux的oracle 12c physical standby備庫WindowsLinuxOracle
- 【DG】Data Guard搭建(physical standby)
- [20210618]記錄bash shell執行的命令.txt
- 在Oracle DG Standby庫上啟用flashback database功能OracleDatabase
- rman duplicate建立異地auxiliary Database oracle_11g oracle_sid不同UXDatabaseOracle
- rman duplicate建立異地auxiliary Database oracle_11g oracle_sid相同UXDatabaseOracle
- 隨記(九):記錄Fastjson遠端命令執行流程ASTJSON
- oracle12.2 adg ORA-46952: standby database format mismatch for password fileOracleDatabaseORM
- Linux記錄命令執行的使用者IP地址和時間等資訊Linux
- 建立 SAP Fiori Catalog 時遇到的 duplicate 記錄的問題分析
- Setup Standby Database on One PC(轉)Database
- 記錄一下簡單的執行 Laravel Mix 命令Laravel
- Oracle的快照standbyOracle
- Oracle檢視執行計劃的命令Oracle
- oracle中執行os命令(轉)Oracle
- Physical Standby Switchover_status Showing Not Allowed. (Doc ID 1392763.1)
- Oracle 19c透過recover standby database from service修復GAP案例OracleDatabase
- Oracle 12c DG備庫啟動報錯standby database requires recoveryOracleDatabaseUI
- Abp框架之執行Update-Database 命令系列錯誤框架Database
- oracle ocp 19c考題8,科目082考試題-logical and physical database structuresOracleDatabaseStruct
- fabric執行記錄
- Lumen 實時記錄 SQL 執行解決方案SQL
- [20230110]sql profile run standby database.txtSQLDatabase
- Oracle 9i變數窺視引起執行計劃異常故障報告Oracle變數
- 配置MapReduce時遇到的問題記錄
- oracle 9i臨時表產生過多redoOracle
- oracle查詢sql執行耗時、執行時間、sql_idOracleSQL
- gitLab進行CI配置記錄Gitlab
- CMD執行命令列時卡住的問題命令列
- Jar 包執行時修改配置JAR
- 執行緒池小記錄執行緒