Error during "duplicate target ... from active database"
hi:
RMAN duplicate failure after the auxiliary instance mounted,we want to create a physical standby database .
Platform: solaris10 spark 64bit
Version: 11.2.0.1.5 (both primary and standby)
thank you..
RMAN log:
rman target sys/password@his_primary auxiliary sys/password@his_standby_tt
Recovery Manager: Release 11.2.0.1.0 - Production on Thu Aug 30 15:40:06 2012
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to target database: HIS (DBID=3271178181)
connected to auxiliary database: HIS (not mounted)
RMAN> duplicate target database for standby from active database;
Starting Duplicate Db at 30-AUG-12
using target database control file instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=2833 device type=DISK
allocated channel: ORA_AUX_DISK_2
channel ORA_AUX_DISK_2: SID=3399 device type=DISK
allocated channel: ORA_AUX_DISK_3
channel ORA_AUX_DISK_3: SID=3966 device type=DISK
allocated channel: ORA_AUX_DISK_4
channel ORA_AUX_DISK_4: SID=3 device type=DISK
contents of Memory Script:
backup as copy reuse
targetfile '/u01/oracle/product/11.2.0/db_1/dbs/orapwhis' auxiliary format
'/u01/app/oracle/product/11.2.0/db_1/dbs/orapwhis' ;
executing Memory Script
Starting backup at 30-AUG-12
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=1570 device type=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: SID=1708 device type=DISK
allocated channel: ORA_DISK_3
channel ORA_DISK_3: SID=1851 device type=DISK
allocated channel: ORA_DISK_4
channel ORA_DISK_4: SID=1995 device type=DISK
Finished backup at 30-AUG-12
contents of Memory Script:
backup as copy current controlfile for standby auxiliary format '/u01/app/oradata/his/control01.ctl';
restore clone controlfile to '/u01/app/oradata/his/control02.ctl' from
'/u01/app/oradata/his/control01.ctl';
restore clone controlfile to '/u01/app/oradata/his/control03.ctl' from
'/u01/app/oradata/his/control01.ctl';
executing Memory Script
Starting backup at 30-AUG-12
using channel ORA_DISK_1
using channel ORA_DISK_2
using channel ORA_DISK_3
using channel ORA_DISK_4
channel ORA_DISK_1: starting datafile copy
copying standby control file
output file name=/export/home/oracle/snap.f tag=TAG20120830T154059 RECID=9 STAMP=792690060
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:03
Finished backup at 30-AUG-12
Starting restore at 30-AUG-12
using channel ORA_AUX_DISK_1
using channel ORA_AUX_DISK_2
using channel ORA_AUX_DISK_3
using channel ORA_AUX_DISK_4
channel ORA_AUX_DISK_2: skipped, AUTOBACKUP already found
channel ORA_AUX_DISK_3: skipped, AUTOBACKUP already found
channel ORA_AUX_DISK_4: skipped, AUTOBACKUP already found
channel ORA_AUX_DISK_1: copied control file copy
Finished restore at 30-AUG-12
Starting restore at 30-AUG-12
using channel ORA_AUX_DISK_1
using channel ORA_AUX_DISK_2
using channel ORA_AUX_DISK_3
using channel ORA_AUX_DISK_4
channel ORA_AUX_DISK_2: skipped, AUTOBACKUP already found
channel ORA_AUX_DISK_3: skipped, AUTOBACKUP already found
channel ORA_AUX_DISK_4: skipped, AUTOBACKUP already found
channel ORA_AUX_DISK_1: copied control file copy
Finished restore at 30-AUG-12
contents of Memory Script:
sql clone 'alter database mount standby database';
executing Memory Script
sql statement: alter database mount standby database
contents of Memory Script:
set newname for tempfile 1 to
"/u01/app/oradata/his/temp.266.750421813";
set newname for tempfile 2 to
"/u01/app/oradata/his/ts_temp_patrol.298.750425277";
set newname for tempfile 3 to
"/u01/app/oradata/his/ts_his_temp.296.750427905";
set newname for tempfile 4 to
"/u01/app/oradata/his/ts_tjjk_temp.282.750427917";
set newname for tempfile 5 to
"/u01/app/oradata/his/ts_temp_shuhao.595.782919539";
switch clone tempfile all;
set newname for datafile 1 to
"/u01/app/oradata/his/system.256.750421615";
set newname for datafile 2 to
"/u01/app/oradata/his/sysaux.257.750421615";
set newname for datafile 3 to
"/u01/app/oradata/his/undotbs1.258.750421615";
set newname for datafile 4 to
"/u01/app/oradata/his/users.259.750421615";
set newname for datafile 5 to
"/u01/app/oradata/his/ts_his.280.750425023";
set newname for datafile 6 to
"/u01/app/oradata/his/ts_his_index.281.750425025";
set newname for datafile 7 to
"/u01/app/oradata/his/system.569.754307341";
set newname for datafile 8 to
"/u01/app/oradata/his/ts_bj.283.750425027";
set newname for datafile 9 to
"/u01/app/oradata/his/ts_gt.284.750425027";
set newname for datafile 10 to
"/u01/app/oradata/his/ts_fx.285.750425027";
set newname for datafile 11 to
"/u01/app/oradata/his/ts_uap.286.750425029";
set newname for datafile 12 to
"/u01/app/oradata/his/ts_gkxj.287.750425029";
set newname for datafile 13 to
"/u01/app/oradata/his/ts_xejj.288.750425031";
set newname for datafile 14 to
"/u01/app/oradata/his/ts_zdzyrz.289.750425031";
set newname for datafile 15 to
"/u01/app/oradata/his/ts_zj.290.750425033";
set newname for datafile 16 to
"/u01/app/oradata/his/ts_jgcp.291.750425033";
set newname for datafile 17 to
"/u01/app/oradata/his/ts_gtbj.292.750425033";
set newname for datafile 18 to
"/u01/app/oradata/his/ts_base.293.750425035";
set newname for datafile 19 to
"/u01/app/oradata/his/ts_exdata.294.750425035";
set newname for datafile 20 to
"/u01/app/oradata/his/ts_tjjk.295.750425037";
set newname for datafile 21 to
"/u01/app/oradata/his/ts_shuhao.594.782919537";
set newname for datafile 22 to
"/u01/app/oradata/his/ts_patrol.297.750425037";
backup as copy reuse
datafile 1 auxiliary format
"/u01/app/oradata/his/system.256.750421615" datafile
2 auxiliary format
"/u01/app/oradata/his/sysaux.257.750421615" datafile
3 auxiliary format
"/u01/app/oradata/his/undotbs1.258.750421615" datafile
4 auxiliary format
"/u01/app/oradata/his/users.259.750421615" datafile
5 auxiliary format
"/u01/app/oradata/his/ts_his.280.750425023" datafile
6 auxiliary format
"/u01/app/oradata/his/ts_his_index.281.750425025" datafile
7 auxiliary format
"/u01/app/oradata/his/system.569.754307341" datafile
8 auxiliary format
"/u01/app/oradata/his/ts_bj.283.750425027" datafile
9 auxiliary format
"/u01/app/oradata/his/ts_gt.284.750425027" datafile
10 auxiliary format
"/u01/app/oradata/his/ts_fx.285.750425027" datafile
11 auxiliary format
"/u01/app/oradata/his/ts_uap.286.750425029" datafile
12 auxiliary format
"/u01/app/oradata/his/ts_gkxj.287.750425029" datafile
13 auxiliary format
"/u01/app/oradata/his/ts_xejj.288.750425031" datafile
14 auxiliary format
"/u01/app/oradata/his/ts_zdzyrz.289.750425031" datafile
15 auxiliary format
"/u01/app/oradata/his/ts_zj.290.750425033" datafile
16 auxiliary format
"/u01/app/oradata/his/ts_jgcp.291.750425033" datafile
17 auxiliary format
"/u01/app/oradata/his/ts_gtbj.292.750425033" datafile
18 auxiliary format
"/u01/app/oradata/his/ts_base.293.750425035" datafile
19 auxiliary format
"/u01/app/oradata/his/ts_exdata.294.750425035" datafile
20 auxiliary format
"/u01/app/oradata/his/ts_tjjk.295.750425037" datafile
21 auxiliary format
"/u01/app/oradata/his/ts_shuhao.594.782919537" datafile
22 auxiliary format
"/u01/app/oradata/his/ts_patrol.297.750425037" ;
sql 'alter system archive log current';
executing Memory Script
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
renamed tempfile 1 to /u01/app/oradata/his/temp.266.750421813 in control file
renamed tempfile 2 to /u01/app/oradata/his/ts_temp_patrol.298.750425277 in control file
renamed tempfile 3 to /u01/app/oradata/his/ts_his_temp.296.750427905 in control file
renamed tempfile 4 to /u01/app/oradata/his/ts_tjjk_temp.282.750427917 in control file
renamed tempfile 5 to /u01/app/oradata/his/ts_temp_shuhao.595.782919539 in control file
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
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
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting backup at 30-AUG-12
using channel ORA_DISK_1
using channel ORA_DISK_2
using channel ORA_DISK_3
using channel ORA_DISK_4
channel ORA_DISK_1: starting datafile copy
input datafile file number=00008 name=+DATA/his/datafile/ts_bj.283.750425027
channel ORA_DISK_2: starting datafile copy
input datafile file number=00009 name=+DATA/his/datafile/ts_gt.284.750425027
channel ORA_DISK_3: starting datafile copy
input datafile file number=00005 name=+DATA/his/datafile/ts_his.280.750425023
channel ORA_DISK_4: starting datafile copy
input datafile file number=00015 name=+DATA/his/datafile/ts_zj.290.750425033
RMAN-03009: failure of backup command on ORA_DISK_3 channel at 08/30/2012 16:10:23
ORA-19558: error de-allocating device
ORA-19557: device error, device type: DISK, device name:
ORA-17627: ORA-01041: internal error. hostdef extension doesn't exist
ORA-17627: ORA-01041: internal error. hostdef extension doesn't exist
ORA-03135: connection lost contact
channel ORA_DISK_3 disabled, job failed on it will be run on another channel
RMAN-03009: failure of backup command on ORA_DISK_4 channel at 08/30/2012 16:42:19
ORA-19558: error de-allocating device
ORA-19557: device error, device type: DISK, device name:
ORA-17627: ORA-01041: internal error. hostdef extension doesn't exist
ORA-17627: ORA-01041: internal error. hostdef extension doesn't exist
ORA-03135: connection lost contact
channel ORA_DISK_4 disabled, job failed on it will be run on another channel
RMAN-03009: failure of backup command on ORA_DISK_2 channel at 08/30/2012 16:51:58
ORA-19558: error de-allocating device
ORA-19557: device error, device type: DISK, device name:
ORA-17627: ORA-01041: internal error. hostdef extension doesn't exist
ORA-17627: ORA-01041: internal error. hostdef extension doesn't exist
ORA-03135: connection lost contact
channel ORA_DISK_2 disabled, job failed on it will be run on another channel
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 08/30/2012 17:49:09
ORA-19558: error de-allocating device
ORA-19557: device error, device type: DISK, device name:
ORA-17627: ORA-01041: internal error. hostdef extension doesn't exist
ORA-17627: ORA-01041: internal error. hostdef extension doesn't exist
ORA-03135: connection lost contact
channel ORA_DISK_1 disabled, job failed on it will be run on another channel
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 08/30/2012 17:49:09
RMAN-03015: error occurred in stored script Memory Script
RMAN-03009: failure of backup command on ORA_DISK_4 channel at 08/30/2012 16:42:19
ORA-19558: error de-allocating device
ORA-19557: device error, device type: DISK, device name:
ORA-17627: ORA-01041: internal error. hostdef extension doesn't exist
ORA-17627: ORA-01041: internal error. hostdef extension doesn't exist
ORA-03135: connection lost contact
RMAN-03009: failure of backup command on ORA_DISK_2 channel at 08/30/2012 16:51:58
ORA-19558: error de-allocating device
ORA-19557: device error, device type: DISK, device name:
ORA-17627: ORA-01041: internal error. hostdef extension doesn't exist
ORA-17627: ORA-01041: internal error. hostdef extension doesn't exist
ORA-03135: connection lost contact
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 08/30/2012 17:49:09
ORA-19558: error de-allocating device
ORA-19557: device error, device type: DISK, device name:
ORA-17627: ORA-01041: internal error. hostdef extension doesn't exist
ORA-17627: ORA-01041: internal error. hostdef extension doesn't exist
ORA-03135: connection lost contact
RMAN-03009: failure of backup command on ORA_DISK_3 channel at 08/30/2012 16:10:23
ORA-19558: error de-allocating device
ORA-19557: device error, device type: DISK, device name:
ORA-17627: ORA-01041: internal error. hostdef extension doesn't exist
ORA-17627: ORA-01041: internal error. hostdef extension doesn't exist
ORA-03135: connection lost contact
RMAN>
Primary database alert log:
Thu Aug 30 15:41:00 2012
Clearing standby activation ID 3277937203 (0xc3615a33)
The primary database controlfile was created using the
'MAXLOGFILES 16' clause.
There is space for up to 11 standby redo logfiles
Use the following SQL commands on the standby database to create
standby redo logfiles that match the primary database:
ALTER DATABASE ADD STANDBY LOGFILE 'srl1.f' SIZE 536870912;
ALTER DATABASE ADD STANDBY LOGFILE 'srl2.f' SIZE 536870912;
ALTER DATABASE ADD STANDBY LOGFILE 'srl3.f' SIZE 536870912;
ALTER DATABASE ADD STANDBY LOGFILE 'srl4.f' SIZE 536870912;
ALTER DATABASE ADD STANDBY LOGFILE 'srl5.f' SIZE 536870912;
ALTER DATABASE ADD STANDBY LOGFILE 'srl6.f' SIZE 536870912;
WARNING: OMF is enabled on this database. Creating a physical
standby controlfile, when OMF is enabled on the primary
database, requires manual RMAN intervention to resolve OMF
datafile pathnames.
NOTE: Please refer to the RMAN documentation for procedures
describing how to manually resolve OMF datafile pathnames.
Thu Aug 30 16:10:13 2012
Errors in file /u01/oracle/diag/rdbms/his_primary/his/trace/his_ora_25860.trc (incident=72361):
ORA-00600: internal error code, arguments: [1868], [0xFFFFFFFF7BBD4988], [], [], [], [], [], [], [], [], [], []
Incident details in: /u01/oracle/diag/rdbms/his_primary/his/incident/incdir_72361/his_ora_25860_i72361.trc
Thu Aug 30 16:10:20 2012
Trace dumping is performing id=[cdmp_20120830161020]
Thu Aug 30 16:10:22 2012
Sweep [inc][72361]: completed
Sweep [inc2][72361]: completed
Thu Aug 30 16:40:32 2012
Thread 1 cannot allocate new log, sequence 3031
Private strand flush not complete
Current log# 4 seq# 3030 mem# 0: +DATA/his_primary/onlinelog/group_4.579.759345057
Current log# 4 seq# 3030 mem# 1: /backup/odsdb/HIS_PRIMARY/onlinelog/o1_mf_4_74nf15rq_.log
Thread 1 advanced to log sequence 3031 (LGWR switch)
Current log# 5 seq# 3031 mem# 0: +DATA/his_primary/onlinelog/group_5.261.759345075
Current log# 5 seq# 3031 mem# 1: /backup/odsdb/HIS_PRIMARY/onlinelog/o1_mf_5_74nf1q2g_.log
Thu Aug 30 16:40:37 2012
LNS: Standby redo logfile selected for thread 1 sequence 3031 for destination LOG_ARCHIVE_DEST_2
Thu Aug 30 16:40:39 2012
Archived Log entry 5829 added for thread 1 sequence 3030 ID 0xffffffffc3615a33 dest 1:
Thu Aug 30 16:42:15 2012
Errors in file /u01/oracle/diag/rdbms/his_primary/his/trace/his_ora_25862.trc (incident=72369):
ORA-00600: internal error code, arguments: [1868], [0xFFFFFFFF7BBD4988], [], [], [], [], [], [], [], [], [], []
Incident details in: /u01/oracle/diag/rdbms/his_primary/his/incident/incdir_72369/his_ora_25862_i72369.trc
Thu Aug 30 16:42:17 2012
Trace dumping is performing id=[cdmp_20120830164217]
Thu Aug 30 16:42:17 2012
Sweep [inc][72369]: completed
Sweep [inc2][72369]: completed
Thu Aug 30 16:51:53 2012
Errors in file /u01/oracle/diag/rdbms/his_primary/his/trace/his_ora_25858.trc (incident=72353):
ORA-00600: internal error code, arguments: [1868], [0xFFFFFFFF7BBD4988], [], [], [], [], [], [], [], [], [], []
Incident details in: /u01/oracle/diag/rdbms/his_primary/his/incident/incdir_72353/his_ora_25858_i72353.trc
Thu Aug 30 16:51:55 2012
Sweep [inc][72353]: completed
Sweep [inc2][72353]: completed
Thu Aug 30 16:51:55 2012
Trace dumping is performing id=[cdmp_20120830165155]
Edited by: 960892 on 2012-9-24 上午2:22
hi:
this is the initialization parameter file for auxiliary instance:
*.audit_file_dest='/u01/oracle/admin/his/adump'
*.audit_trail='db'
*.compatible='11.2.0.0.0'
*.control_files='/u01/app/oradata/his/control01.ctl','/u01/app/oradata/his/control02.ctl','/u01/app/oradata/his/control03.ctl'
*.db_block_size=8192
*.db_domain='abc.com.cn'
*.db_file_name_convert='+DATA/his/datafile/','/u01/app/oradata/his/','+DATA/his/tempfile/','/u01/app/oradata/his/','+DATA/his_primary/datafile/','/u01/app/oradata/his/','+DATA/his_primary/tempfile/','/u01/app/oradata/his/'
*.db_files=1000
*.db_name='his'
*.db_recovery_file_dest='/backup/oracle'
*.db_recovery_file_dest_size=1073741824000
*.db_unique_name='his_standby_tt'
*.diagnostic_dest='/u01/oracle'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=hisXDB)'
*.fal_client='his_standby_tt'
*.fal_server='his_primary'
*.log_archive_config='DG_CONFIG=(his_primary,his_standby_tt)'
*.log_archive_dest_1='LOCATION=/backup/oracle/HIS_STANDBY_TT/archivelog VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=his_standby_tt'
*.log_archive_dest_2='SERVICE=his_primary LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=his_primary'
*.log_archive_dest_state_1='enable'
*.log_archive_dest_state_2='enable'
*.log_file_name_convert='+DATA/his_primary/onlinelog/','/u01/app/oradata/his/','/backup/odsdb/HIS_PRIMARY/onlinelog/','/u01/app/oradata/his/'
*.memory_target=2181038080
*.nls_language='SIMPLIFIED CHINESE'
*.nls_territory='CHINA'
*.open_cursors=300
*.processes=3000
*.remote_login_passwordfile='EXCLUSIVE'
*.service_names='his.abc.com.cn,his_standby_tt.abc.com.cn'
*.sessions=3305
*.standby_file_management='AUTO'
*.undo_tablespace='UNDOTBS1'
*.event='10298 trace name context forever, level 32'
Similar Messages
-
Duplicate target from active database session terminate after 500gb data cp
i have 1 tb db. for example i execute the duplicate command from activate standby database.after 500gb datafile copy the session terminate due to some bottle neck ( network) .is it possible to resume the job again means job again starded from the previous stage .
thanks913779 wrote:
i have 1 tb db. for example i execute the duplicate command from activate standby database.after 500gb datafile copy the session terminate due to some bottle neck ( network) .is it possible to resume the job again means job again starded from the previous stage .
thanksCheck the documentation
http://docs.oracle.com/cd/E11882_01/backup.112/e10642/rcmdupdb.htm#BGBEFJHH -
RMAN 11gR2 DUPLICATE TARGET FOR STANDBY FROM ACTIVE DATABASE - Issue -HELP
First question.
Can primary and standby database have the same SID name?
As I recall it is yes.
I believe they must have different GLOBAL or DB_UNIQUE_NAME?
Anyway, RMAN I believe is telling me it is having problems copying control file on first and dies.
Permissions Issue on STANDBY machine?
RMAN> connect target backup_admin/backup_admin
connected to target database: LABDG (DBID=1973403623)
RMAN> connect auxiliary sys/oracle@STANDBY;
connected to auxiliary database: LABDG (not mounted)
RMAN> DUPLICATE TARGET DATABASE FOR STANDBY FROM ACTIVE DATABASE;
Starting Duplicate Db at 18-JUL-11
using target database control file instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=10 device type=DISK
contents of Memory Script:
backup as copy reuse
targetfile '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/orapwLABDG' auxiliar
'/u01/app/oracle/product/11.2.0/dbhome_1/dbs/orapwLABDG' ;
executing Memory Script
Starting backup at 18-JUL-11
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=151 device type=DISK
Finished backup at 18-JUL-11
contents of Memory Script:
backup as copy current controlfile for standby auxiliary format '/u01/oradat
restore clone controlfile to '/u01/app/oracle/flash_recovery_area/LABDG/cont
'/u01/oradata/LABDG/control01.ctl';
executing Memory Script
Starting backup at 18-JUL-11
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile copy
copying standby control file
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 07/18/2011 11:20:54
RMAN-03015: error occurred in stored script Memory Script
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 07/18/2011 11:20:
ORA-17628: Oracle error 19505 returned by remote Oracle serverHi,
Permissions Issue on STANDBY machine?First problem I see is the sysdba password must be the same on both sides (target and auxiliary dbs).
From the documentation.
The source database and auxiliary instances must use the same SYSDBA password, which means that both instances must have password files. You can
create the password file with a single password so you can start the auxiliary instance and enable the source database to connect to it.Check all prereqs for the standby db duplicate here.
http://download.oracle.com/docs/cd/E11882_01/backup.112/e10643/rcmsynta020.htm#i81724
Rgds,
Tycho -
Problem with duplicate target database from active database
Hi all,
i try duplicate database from active database
- I have von target and auxiliary the same SYS Password
- tnsping wogks in both directions fine
- sqlplus to target and auxilairy works from both server
- Metalink Solution 1056174.1 not help
but in the Rman log become this error:
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at
RMAN-05501: aborting duplication of target database
RMAN-03015: error occurred in stored script Memory Script
RMAN-03009: failure of backup command on a1 channel at
ORA-17629: Cannot connect to the remote database server
ORA-17629: Cannot connect to the remote database server
i do do :
rman target sys/PASSWD@TARGET auxiliary sys/PASSWD
run
ALLOCATE CHANNEL a1 DEVICE TYPE DISK;
ALLOCATE AUXILIARY CHANNEL d1 DEVICE TYPE DISK;
duplicate target database to XXXXX
from active database
DB_FILE_NAME_CONVERT ('/XXXX/XXXX/XXXXXX','/XXXXX/XXXXXX/XXXXX/')
spfile
parameter_value_convert '/XXXX/','/XXXXX/'
set log_file_name_convert '/XXXXX/','/XXXXX/'
any Idea ?
Best RegardsDon't know if this will help, but I use the connect string below to connect, then run the command below. This is, of course, after the rman backup from the prod system has been copied to the flash_recovery_area of the aux database. All file paths are the same between the two systems. Works like a charm most nights. The local tnsnames file on the rman catalog server has working entries for @SDPROD, @rman and @SDSTB.
[Connect String]
rman TARGET SYS/xxxxx@SDPROD CATALOG rman/xxxxx@rman AUXILIARY SYS/xxxxx@SDSTB cmdfile D:\cladmin\Scripts\DuplicateSD.rcv LOG=D:\cladmin\Logs\DuplicateSD.f
[Command file block]
RUN{
ALLOCATE AUXILIARY CHANNEL aux1 DEVICE TYPE DISK;
DUPLICATE TARGET DATABASE TO DATABASENAME
NOFILENAMECHECK;
Edited by: user522620 on Jun 27, 2011 6:36 PM -
RMAN DUPLICATE FOR STANDBY FROM ACTIVE DATABASE fails
Hello
I'm trying to use RMAN DUPLICATE to create a standby database using Oracle 11.2.0.3 with PSU 6 on HP-UX.
Primary is 2 node RAC. Standby is also 2 node RAC.
Standby database instance is started in nomount mode.
I use:
duplicate target database for standby from active database
spfile
<some spfile parameters>
with PFILE I get:
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 10/01/2013 12:41:13
RMAN-05501: aborting duplication of target database
RMAN-03015: error occurred in stored script Memory Script
RMAN-03009: failure of sql command on clone_default channel at 10/01/2013 12:41:13
RMAN-11003: failure during parse/execution of SQL statement: alter system set spfile= '/opt/oracle/db11203/dbs/spfileCU1.ora'
ORA-02097: parameter cannot be modified because specified value is invalid
ORA-01565: error in identifying file '/opt/oracle/db11203/dbs/spfileCU1.ora'
ORA-27037: unable to obtain file status
HPUX-ia64 Error: 2: No such file or directory
With SPFILE I get;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 10/01/2013 13:06:34
RMAN-05501: aborting duplication of target database
RMAN-05537: DUPLICATE without TARGET connection when auxiliary instance is started with spfile cannot use SPFILE clause
But I do have RMAN connexion to target database.
Thanks for your help.Here is the output beginning of the script which clearly shows that I'm always connected to target database:
Recovery Manager: Release 11.2.0.3.0 - Production on Tue Oct 1 13:05:47 2013
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to target database: CU (DBID=1143962925)
connected to auxiliary database: CU (not mounted)
RMAN> set echo on
2> run
3> {
4> configure device type disk parallelism 10;
5> allocate channel pr1 type disk;
6> allocate channel pr2 type disk;
7> allocate channel pr3 type disk;
8> allocate channel pr4 type disk;
9> allocate channel pr5 type disk;
10> allocate channel pr6 type disk;
11> allocate channel pr7 type disk;
12> allocate channel pr8 type disk;
13> allocate channel pr9 type disk;
14> allocate channel pr10 type disk;
15> allocate auxiliary channel st1 type disk;
16> allocate auxiliary channel st2 type disk;
17> allocate auxiliary channel st3 type disk;
18> allocate auxiliary channel st4 type disk;
19> allocate auxiliary channel st5 type disk;
20> allocate auxiliary channel st6 type disk;
21> allocate auxiliary channel st7 type disk;
22> allocate auxiliary channel st8 type disk;
23> allocate auxiliary channel st9 type disk;
24> allocate auxiliary channel st10 type disk;
25> duplicate target database for standby from active database
26> spfile -
Issue with RMAN DUPLICATE FROM ACTIVE DATABASE....
Hi All,
Not sure if I should continue from a closed thread, so apologies, opening a new one..
I ran the following command:
DUPLICATE TARGET DATABASE TO ' AUX1"
from ACTIVE DATABASE
NOFILENAMECHECK:
So the copy went in fine...so I am confiused now....why when doing a recover, i get the below errors from output:
archived log for thread 1 with sequence 68346 is already on disk as file H:\ORAC
LE_ARCHIVE_LOGS\RBS1\ARCHIVELOG\2013_12_08\O1_MF_1_68346_ARCH_D-RBS_ID-295728924
5_S-68346_T-1_A-780292253_C1OQVOSU_.ARC
archived log for thread 1 with sequence 68347 is already on disk as file H:\ORAC
LE_ARCHIVE_LOGS\RBS1\ARCHIVELOG\2013_12_08\O1_MF_1_68347_ARCH_D-RBS_ID-295728924
5_S-68347_T-1_A-780292253_C3OQVOU1_.ARC
archived log for thread 1 with sequence 68348 is already on disk as file H:\ORAC
LE_ARCHIVE_LOGS\RBS1\ARCHIVELOG\2013_12_08\O1_MF_1_68348_ARCH_D-RBS_ID-295728924
5_S-68348_T-1_A-780292253_C4OQVOU6_.ARC
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 12/08/2013 07:36:04
RMAN-03015: error occurred in stored script Memory Script
RMAN-06053: unable to perform media recovery because of missing log
RMAN-06025: no backup of archived log for thread 1 with sequence 64713 and start
ing SCN of 12728145997 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 64712 and start
ing SCN of 12728133322 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 64711 and start
ing SCN of 12728121403 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 64709 and start
ing SCN of 12727730726 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 64708 and start
ing SCN of 12727717143 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 64707 and start
ing SCN of 12727701799 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 64704 and start
ing SCN of 12726617917 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 64703 and start
ing SCN of 12726605080 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 64702 and start
No archivelogs were purged or backed up and the current logs were retained....so im somewhat confused....i am not restoring from backup but running active duplicate...
should I re-run the command with:
SET UNTIL SEQUENCE 64713 THREAD 1This fails saying that "ORA-12528: TNS:listener: all appropriate instances are blocking new connections" which is quite normal given that the listener is havig a handle in BLOCKED state for this AUXDB as it is in NOMOUNT state.
Could you please help me on how to proceed?
One option can be to create the controlfile manually and mount the instance before doing the duplicate. I hope Rman can continue from there.
Another option is to go for backup based duplicate.
Is there any other way to go?
Provide static registration on AUXILIARY side for your auxiliary instance and try again.For example change listener.ora file as
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = AUXDB)
(ORACLE_HOME = <your oracle home>)
(SID_NAME = AUXDB)
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = <auxiliary host/ip>)(PORT = 1521))
)And restart listener on auxiliary host then try again -
ORA-00119,ORA-00132 during duplicate target database for standby in 11gR2
I am running
duplicate target database for standby from active database
command from RMAN.
I went thru step-by-step on how to create a standby database from the textbook i got from my Oracle Univ. 11g Data Guard course. I set up all the listener.ora and tnsnames.ora files using netmgr, but I'm getting local_listener error.
Here's what I am running in rman:
run {
allocate channel prmy1 type disk;
allocate channel prmy2 type disk;
allocate channel prmy3 type disk;
allocate channel prmy4 type disk;
allocate auxiliary channel stby type disk;
duplicate target database for standby from active database
spfile
parameter_value_convert 'kyledb','kylerep'
set db_unique_name='kylerep'
set db_file_name_convert='/kyledb/','/kylerep/'
set log_file_name_convert='/kyledb/','/kylerep/'
set control_files='/oradata/kylerep/control01.ctl'
set log_archive_max_processes='4'
set fal_client='kylerep'
set fal_server='kyledb'
set standby_file_management='AUTO'
set log_archive_config='dg_config=(kyledb,kylerep)'
set log_archive_dest_1='service=kyledb ASYNC valid_for=(ONLINE_LOGFILE,PRIMARY_ROLE) db_unique_name=kyledb'
And here's the error i get:
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 07/12/2010 17:33:28
RMAN-03015: error occurred in stored script Memory Script
RMAN-04014: startup failed: ORA-00119: invalid specification for system parameter LOCAL_LISTENER
ORA-00132: syntax error or unresolved network name 'LISTENER_KYLEDB'
result of
SQL>show parameter local_listener;
is
NAME TYPE VALUE
local_listener string LISTENER_KYLEDB
entry in my listener.ora is
SID_LIST_KYLEDB_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = kyledb.kyledev.usms.doj.gov)
(ORACLE_HOME = /app/oracle/product/11.2.0/dbhome_1)
(SID_NAME = kyledb)
ADR_BASE_KYLEDB_LISTENER = /app/oracle
KYLEDB_LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = kyledev.usms.doj.gov)(PORT = 7898))
and entry in tnsnames.ora file is
KYLEREP =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = kyledbdev.usms.doj.gov)(PORT = 7898))
(CONNECT_DATA =
(SERVICE_NAME = kylerep.kyledbdev.usms.doj.gov)
KYLEDB =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = kyledev.usms.doj.gov)(PORT = 7898))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = kyledb.kyledev.usms.doj.gov)
LISTENER_KYLEDB =
(ADDRESS = (PROTOCOL = TCP)(HOST = kyledev.usms.doj.gov)(PORT = 7898))
Can anyone help me figure out what went wrong?
Thanks in advance....I had the same problem,
I Define TNS_ADMIN environment on script an resolve my problem.
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of startup command at 10/08/2010 17:21:15
RMAN-04014: startup failed: ORA-00119: invalid specification for system parameter LOCAL_LISTENER
ORA-00132: syntax error or unresolved network name 'LISTENER_DESENV2'
In my shell increase the Environment:
## VARIAVEIS
export NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1
export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db1
export PATH=$ORACLE_HOME/bin:$PATH
export TNS_ADMIN=/u01/app/oracle/product/10.2.0/asm1/network/admin
export ORACLE_SID=$1
## CHAMADA RMAN
rman target / log=/u02/backup/db$1/bkp_cold-$1.log cmdfile=/home/oracle/script/rman/cold_backup/cold_backup.rcv
After this:
RMAN> run{
2> shutdown immediate;
3> startup force mount;
4> backup database include current controlfile tag 'BKP_COLD_FULL';
5> alter database open;
6> delete obsolete;
7> }
8>
9>
using target database control file instead of recovery catalog
database closed
database dismounted
Oracle instance shut down
Oracle instance started
database mounted
Total System Global Area 1073741824 bytes
Fixed Size 2089400 bytes
Variable Size 264244808 bytes
Database Buffers 801112064 bytes
Redo Buffers 6295552 bytes
Hope this helps and sorry for my terrible English! =) -
Is duplicate from active database supported in Standard Edition?
Hi,
I'm trying to clone a database whithout a staging area.
After having the clone instance and the sql*net configuration set up, I'm running this
command in the rman-commandline:
Recovery Manager: Release 11.1.0.7.0 - Production on Tue Nov 2 15:52:31 201
Copyright (c) 1982, 2007, Oracle. All rights reserved.
connected to target database: LOCALDB (DBID=370732657)
connected to auxiliary database: LOCALFB (not mounted)
RMAN> run {
duplicate target database to localfb from active database
pfile=C:\Oracle\admin\ProdFB\pfile\init.ora
db_file_name_convert=('PROD', 'ProdFB')
logfile group 1 ('C:\OraData\ProdFB\Redo/log01A.dbf','C:\OraData\ProdFB\log01B.dbf') size 100m,
group 2 ('C:\OraData\ProdFB\Redo/log02A.dbf','C:\OraData\ProdFB/log02B.dbf') size 100m,
group 3 ('C:\OraData\ProdFB\Redo/log03A.dbf','C:\OraData\ProdFB/log03B.dbf') size 100m;
Starting Duplicate Db at 02.11.10
using target database control file instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=594 device type=DISK
contents of Memory Script:
set newname for datafile 1 to
"C:\ORADATA\PRODFB\TS\SYSTEM01.DBF";
set newname for datafile 2 to
"C:\ORADATA\PRODFB\TS\SYSAUX01.DBF";
set newname for datafile 3 to
"C:\ORADATA\PRODFB\TS\UNDO01.DBF";
set newname for datafile 4 to
"C:\ORADATA\PRODFB\TS\PRODFB01.DBF";
set newname for datafile 5 to
"C:\ORADATA\PRODFB\TS\PIMAINT01.DBF";
set newname for datafile 6 to
"C:\ORADATA\PRODFB\TS\INDX01.DBF";
backup as copy reuse
datafile 1 auxiliary format
"C:\ORADATA\PRODFB\TS\SYSTEM01.DBF" datafile
2 auxiliary format
"C:\ORADATA\PRODFB\TS\SYSAUX01.DBF" datafile
3 auxiliary format
"C:\ORADATA\PRODFB\TS\UNDO01.DBF" datafile
4 auxiliary format
"C:\ORADATA\PRODFB\TS\PRODFB01.DBF" datafile
5 auxiliary format
"C:\ORADATA\PRODFB\TS\PIMAINT01.DBF" datafile
6 auxiliary format
"C:\ORADATA\PRODFB\TS\INDX01.DBF" ;
sql 'alter system archive log current';
executing Memory Script
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 backup at 02.11.10
released channel: ORA_AUX_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 11/02/2010 15:52:46
RMAN-03015: error occurred in stored script Memory Script
RMAN-06181: multiple channels require Enterprise Edition
RMAN>
As you can see, I get the error RMAN-06181.
So my question is: is duplication from active database supported in the standard edition?
If it is, then what do I need th do to make this work?
Thanks for your help.Yes, this is it.
I tested only three cases before:
- not allocating any channel
- allocating local channel only
- allocating auxiliary channel only
I need to allocate both channels in the run block, then it works.
Thanks a lot for your help.
run {
allocate channel c1 device type disk;
allocate auxiliary channel c2 device type disk;
duplicate target database to localfb from active database
pfile=C:\Oracle\admin\ProdFB\pfile\init.ora
db_file_name_convert=('PROD', 'ProdFB')
logfile group 1 ('C:\OraData\ProdFB\Redo/log01A.dbf','C:\OraData\ProdFB\Redo/log01B.dbf') size 100m,
group 2 ('C:\OraData\ProdFB\Redo/log02A.dbf','C:\OraData\ProdFB\Redo/log02B.dbf') size 100m,
group 3 ('C:\OraData\ProdFB\Redo/log03A.dbf','C:\OraData\ProdFB\Redo/log03B.dbf') size 100m;
using target database control file instead of recovery catalog
allocated channel: c1
channel c1: SID=580 device type=DISK
RMAN-06908: WARNING: operation will not run in parallel on the allocated channels
RMAN-06909: WARNING: parallelism require Enterprise Edition
allocated channel: c2
channel c2: SID=591 device type=DISK
Starting Duplicate Db at 04.11.10
: -
ORA-01017 when RMAN duplicate from active database
Hello, ORACLE guru's!
I've got some trouble trying to duplicate DB via RMAN duplicate from active database.
The script is simple:
run
allocate channel ch1 device type disk;
allocate auxiliary channel aux1 device type disk;
duplicate target database to mydb from active database;
The problem is in this statement:
Starting backup at 15-JAN-14
channel ch1: starting datafile copy
copying current control file
Oracle instance started
Total System Global Area 10689474560 bytes
Fixed Size 2237776 bytes
Variable Size 4227861168 bytes
Database Buffers 6442450944 bytes
Redo Buffers 16924672 bytes
contents of Memory Script:
sql clone "alter system set db_name =
''mydb'' comment=
''Reset to original value by RMAN'' scope=spfile";
sql clone "alter system reset db_unique_name scope=spfile";
shutdown clone immediate;
executing Memory Script
sql statement: alter system set db_name = ''mydb'' comment= ''Reset to original value by RMAN'' scope=spfile
sql statement: alter system reset db_unique_name scope=spfile
Oracle instance shut down
released channel: ch1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 01/15/2014 12:16:07
RMAN-05501: aborting duplication of target database
RMAN-03015: error occurred in stored script Memory Script
RMAN-03009: failure of backup command on ch1 channel at 01/15/2014 12:15:57
ORA-17629: Cannot connect to the remote database server
ORA-17627: ORA-01017: invalid username/password; logon denied
ORA-17629: Cannot connect to the remote database server
RMAN>
RMAN>change:
export ORACLE_SID="mydb"
export ORACLE_HOME="/u/app/oracle/product/11.2/db_1"
FILE1 = "/u/app/oracle/product/11.2/db_1/bin/"
cat > $FILE1/sqlplus sys/karen as sysdba << EOF
startup nomount;
exit;
EOF
cat > $FILE1/rman target sys/karen@mytargetdb auxiliary sys/karen@mydb << EOF
run
allocate channel ch1 device type disk;
allocate auxiliary channel aux1 device type disk;
duplicate target database to mydb from active database;
EOF
tell us if it works and again, from what host are you running the script? -
Duplicate from Active database
Hi,
I have RAC primary database running in 11.2.0.3 with linux 5(dc). We also have configured RAC cluster on DR site recently.Now we need to create stanby database on DR site.
For this is have following doubts
My database size is 6TB(from dba_segmnets) and total is 14TB(from dba_data_files)
1) How duplicate of active database works internally? Does it copy the exact file to standby site for example copy datafile(which is of 5GB in size) and send it over to standby over network?
2) Both primary and standby sites are in different states, so i was thinking to backup the primary database first to tapes and then courier tapes to dr site and then finally restore and recover standby.
I have doubts in above approaches which should i implement. I think active database duplication will skip a)backup time b) courier time. Is that correct?
However if my database size is 14TB and using 1st method, does it send files to dr worth of 14TB size?I am working on active database duplication and has below issue. Can any one help me on this?
RMAN> connect target sys@Pa305
connected to target database: PA305 (DBID=2787277616)
RMAN> connect auxiliary sys@Pb305
connected to auxiliary database: PB305 (not mounted)
RMAN> DUPLICATE TARGET DATABASE
TO 'PB305'
FROM ACTIVE DATABASE
2> 3> 4> ;
Starting Duplicate Db at 31-JUL-2012 17:20:07
using target database control file instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=2838 instance=PB3051 device type=DISK
contents of Memory Script:
sql clone "alter system set control_files =
''+DG_075_DATA01/PB305/controlfile/current.270.790104009'', ''+DG_075_FRA01/PB305/controlfile/current.286.790104009'' comment=
''Set by RMAN'' scope=spfile";
sql clone "alter system set db_name =
''PA305'' comment=
''Modified by RMAN duplicate'' scope=spfile";
sql clone "alter system set db_unique_name =
''PB305'' comment=
''Modified by RMAN duplicate'' scope=spfile";
shutdown clone immediate;
startup clone force nomount
backup as copy current controlfile auxiliary format '+DG_075_DATA01/PB305/controlfile/current.269.790104009';
restore clone controlfile to '+DG_075_FRA01/PB305/controlfile/current.288.790104009' from
'+DG_075_DATA01/PB305/controlfile/current.269.790104009';
sql clone "alter system set control_files =
''+DG_075_DATA01/PB305/controlfile/current.269.790104009'', ''+DG_075_FRA01/PB305/controlfile/current.288.790104009'' comment=
''Set by RMAN'' scope=spfile";
shutdown clone immediate;
startup clone nomount;
alter clone database mount;
executing Memory Script
sql statement: alter system set control_files = ''+DG_075_DATA01/PB305/controlfile/current.270.790104009'', ''+DG_075_FRA01/PB305/controlfile/current.286.790104009'' comment= ''Set by RMAN'' scope=spfile
sql statement: alter system set db_name = ''PA305'' comment= ''Modified by RMAN duplicate'' scope=spfile
sql statement: alter system set db_unique_name = ''PB305'' comment= ''Modified by RMAN duplicate'' scope=spfile
Oracle instance shut down
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 07/31/2012 17:20:18
RMAN-06174: not connected to auxiliary database
RMAN-03015: error occurred in stored script Memory Script
RMAN-04006: error from auxiliary database: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
RMAN> -
Rman clone duplicate database from active database
Hi All,
I read document saying that rman can duplicate database from active database (prod) to a remote server, so long as you configure listener and tnsname.
I am working toward it.
I met a problem, which is when i bring up auxiliary database in nomount mode, the listener service of that auxiliary database is in BLOCKED status, and throw out ora-12528 error when I rman auxiliary sys/pass@clonedb. Isn't nomount mode the mode which auxiliary db is supposed to be in?
(ora-12528: TNS:listener: all appropriate instances are blocking new connections)
Thanks,
milicYou may have run into the same problem like I did recently:
The (UR=A) clause in tnsnames.ora is intended to work with a dynamically registered handler so the use of SERVICE_NAME versus SID is preferred.
ORA-12528: TNS listener BLOCKED - trying to duplicate database
Also for further problems:
RMAN 11gR2 duplicate database ORA-17627 ORA-01017 RMAN-03009 ORA-17628 -
Failing by duplicate database from active database
Hallo,
i'm working with 11g on one server and want to duplicate a database in active mode.
what i do:
i create a new password-file using orapwd - orapwNEW
i create a new entry for ORANEW in tnsnames.ora and listener.ora
then i execute rman TARGET sys/xxx@old AUXILIARY sys/xxx@NEW
then rman> DUPLICATE TARGET DATABASE TO NEW FROM ACTIVE DATABASE SPFILE NOFILENAMECHECK;
then i've got the failure RMAN-06403, RMAN-04006, ORA-01034
whats the problem?
thanks in advance.i think it is the problem that rman can't connect to the auxiliary db.
but what i must do?
in the documentation i found that:
The PASSWORD FILE option specifies that RMAN should copy the password file to the destination host. RMAN automatically copies the server parameter file to the destination host, starts the auxiliary instance with the server parameter file, copies all necessary database files and archived redo logs over the network to the destination host, and recovers the database. Finally, RMAN opens the database with the RESETLOGS option to create the online redo log. -
Rman duplicate from active database slow
Hi,
I am doing a duplicate database from active database, it seems to either slow or hanging. Can someone suggest any tips or pointers to debug this issue?
Source: 11gR2 3-node RAC (only one instance running) on Solaris 10, about 25TB
Target: 1-node, 11gR2 on Solaris 10
Thanks!source:
SID SERIAL# CONTEXT SOFAR TOTALWORK %_complete
1555 7013 1 43730494 142245833 30.74
2332 8079 1 44307262 102713507 43.14
2235 10987 1 47052222 105912610 44.43
2622 5033 1 48406910 86329752 56.07
2040 49651 1 49519038 111411200 44.45
1846 20307 1 43488574 138674977 31.36
1459 26683 1 44936702 272716852 16.48
7 rows selected.
Target: no rows -
RMAN duplicate from ACTIVE DATABASE
Hi,
I am trying to create a new 11.2.0.1 database by duplicating an existing 11.2.0.1 database using Rman with 'from active database' option.
I have created a password file and listener is configured as well.
The aux database is started in nomount state.
rman
connect target sys/pwd123@SRCDB
connect auxiliary sys/pwd123@AUXDB
duplicate target database to AUXDB
FROM ACTIVE DATABASE;
This fails saying that "ORA-12528: TNS:listener: all appropriate instances are blocking new connections" which is quite normal given that the listener is havig a handle in BLOCKED state for this AUXDB as it is in NOMOUNT state.
Could you please help me on how to proceed?
One option can be to create the controlfile manually and mount the instance before doing the duplicate. I hope Rman can continue from there.
Another option is to go for backup based duplicate.
Is there any other way to go?
Regards,
AravindThis fails saying that "ORA-12528: TNS:listener: all appropriate instances are blocking new connections" which is quite normal given that the listener is havig a handle in BLOCKED state for this AUXDB as it is in NOMOUNT state.
Could you please help me on how to proceed?
One option can be to create the controlfile manually and mount the instance before doing the duplicate. I hope Rman can continue from there.
Another option is to go for backup based duplicate.
Is there any other way to go?
Provide static registration on AUXILIARY side for your auxiliary instance and try again.For example change listener.ora file as
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = AUXDB)
(ORACLE_HOME = <your oracle home>)
(SID_NAME = AUXDB)
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = <auxiliary host/ip>)(PORT = 1521))
)And restart listener on auxiliary host then try again -
Duplicate database from active database in 11g?
Does anyone know if it's possible to clone a database from stby by issuing RMAN duplicate database FROM ACTIVE DATABASE command in 11g?
I know it's possible from primary to create stby.
Thanks in advanceYou may have run into the same problem like I did recently:
The (UR=A) clause in tnsnames.ora is intended to work with a dynamically registered handler so the use of SERVICE_NAME versus SID is preferred.
ORA-12528: TNS listener BLOCKED - trying to duplicate database
Also for further problems:
RMAN 11gR2 duplicate database ORA-17627 ORA-01017 RMAN-03009 ORA-17628
Maybe you are looking for
-
For several months, I have been projecting successfully from my MACBook Pro to a TV, and on other occasions to an overhead projector. Suddenly, the projection is no longer working. I was projecting from the output port immediately to the left of my
-
RecordSet in JSP page with MySQL database
I want to create a recordset for my jsp page but i don't know how to do it at all. I know that I need a connection , a statement and a RecordSet. But after that I am Lost. I want "First" "Previous" "Next" "Last" to be shown as hyperlinks into my webp
-
ISE to do wireless network guest access services
Hi Forumers' I need to know how WLC can support ISE guest management in wireless mode. Tested and confirm by Cisco SE, Knowing that WLC currently does not support dynamic VLAN authorization for central web authentication. This limitation will be addr
-
Working on SAP 4.7. Trying to upload TIFF image using program RSTXLDMC. The tiff image is made using Microsoft Photo Editor 3.0.2.3 While uploading its gives Error message that Image is not Baseline 6.0 TIFF format. what could be the reason. Kindly h
-
Database large Number of archive log
Oracle 11g window server 2008 R2 My database working fine, from last week i have noticed that database generating large no of archive log. Database size is 30GB Only one table space is 16GB , other tablespaces not more 2 GB. I can not figured out why