Duplicate database in 11g
Hi all,
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 02/17/2010 09:18:42
RMAN-03015: error occurred in stored script Memory Script
RMAN-06172: no AUTOBACKUP found or specified handle is not a valid copy or piece
I have got stuck with this error, while iam trying to duplicate database using rman from active database clause, I have checked in backup location for target and the autobackups are still available.
thanks in advance.
Handle: user12984527
Status Level: Newbie
Registered: Apr 15, 2010
Total Posts: 72
Total Questions: 28 (25 unresolved)
so many questions & so few answers,
when all else fails, Read The Fine Manuals
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmbackp.htm#BRADV143
Similar Messages
-
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 -
I am going to do 11g RMAN active DUPLICATE database to another server, size > 300GB, will take hours,
Question: after its done, the DUPLICATE database is at the status of begin DUPLICATE or end of DUPLICATE?Hello,
When you finish the duplicate you can issue:
SQL> select name,open_mode from v$database;
NAME OPEN_MODE
CLONEDB READ WRITE
kind regards
Mohamed -
Failure of Duplicate Db command 11g R2
I have a RAC production(prod) database (11G R2) and created Auxiliary(cscp) database on different server and both have same Solaris 10 platforms. I cannot clone the database using “UNTIL TIME”. I do followings but get error. I would appreciate your help. I am running command from Auxiliary. Should I run RMAN from Prod server?
In Aux Server:
1- Moved password file
2- Created init.ora and has following value
DB_NAME='cscp'
3- startup nomount pfile='/apps/oracle/ora112/dbs/init.ora';
in prod Server:
1- connect target sys/pw@prod
2- connect auxiliary sys/pw@cscp;
3- connect catalog rman/pw@prod;
4- RUN {
SET NEWNAME FOR DATABASE TO "/apps/oracle/ora112/oradata/%U";
DUPLICATE TARGET DATABASE TO CSCP pfile=/apps/oracle/ora112/dbs/init.ora
SPFILE
NOFILENAMECHECK
UNTIL TIME "to_date('08-09-2010 13:03:14','dd-mm-yyyy hh24:mi:ss')"
LOGFILE
GROUP 1 ('/apps/oracle/ora112/redo01a.log') SIZE 50M REUSE,
GROUP 2 ('/apps/oracle/ora112/redo02a.log') SIZE 50M REUSE;
Here is the output:
executing command: SET NEWNAME
Starting Duplicate Db at 30-SEP-10
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=5 device type=DISK
contents of Memory Script:
set until scn 3958980184;
restore clone spfile to '/apps/oracle/ora112/dbs/spfilecscp.ora';
sql clone "alter system set spfile= ''/apps/oracle/ora112/dbs/spfilecscp.ora''";
executing Memory Script
executing command: SET until clause
Starting restore at 30-SEP-10
using channel ORA_AUX_DISK_1
WARNING: A restore time was estimated based on the supplied UNTIL SCN
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: restoring SPFILE
output file name=/apps/oracle/ora112/dbs/spfilecscp.ora
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 09/30/2010 09:16:24
RMAN-03015: error occurred in stored script Memory Script
ORA-03113: end-of-file on communication channelHi Maxym,
I used following command and to verify backup files then copy them to other server. I get error. Do you have any suggestions what I get Controllfile is not found?
RMAN> restore database preview until time "to_date('01-10-2010 22:26:30','dd-mm-yyyy hh24:mi:ss')";
When I run Duplicate database command, there was following error generated by the RMAN:
executing command: SET NEWNAME
Starting Duplicate Db at 04-OCT-10
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 10/04/2010 13:54:55
RMAN-05575: CONTROLFILE backup created before to_date('01-10-2010 22:26:30','dd-mm-yyyy hh24:mi:ss') not found in /mnt
After that, I run following command and copied the control file to other server and run duplicate command but still I get same error from rman.
RMAN> restore controlfile preview until time "to_date('01-10-2010 22:26:30','dd-mm-yyyy hh24:mi:ss')";
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
7350 Full 18.92M DISK 00:00:03 01-OCT-10
BP Key: 7360 Status: AVAILABLE Compressed: NO Tag: TAG20101001T011209
Piece Name: +DATA/cs01/autobackup/2010_10_01/s_731207529.613.731207531
Control File Included: Ckp SCN: 3981788360 Ckp time: 01-OCT-10 -
Error while duplicate database for standby
Hello Guys,
Both of my database are 10gR2 and Linux is the operating system.
I am trying to create a standby database for my production database.
I have matched the directory structure of primary and standby database and there is no conflict. Directory permissions are also set.
After taking the rman backup from production database when i connect auxiliary database from production. I run this command to duplicate database and create standby database.
rman
set until sequence XXXX;
duplicate target database for standby dorecover nofilenamecheck;
I get this error:
executing Memory Script
executing command: SET until clause
Starting restore at 04-JUN-11
using channel ORA_AUX_DISK_1
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 /tmp/backup_files/standby_control_1jme2far_1_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 06/04/2011 21:00:37
RMAN-03015: error occurred in stored script Memory Script
ORA-19870: error reading backup piece /tmp/backup_files/standby_control_1jme2far_1_1
ORA-01565: error in identifying file '/u01/app/oracle/product/10.2.0/db_1/dbs/spfileORCL.ora'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
*/tmp/backup_files/standby_control_1jme2far_1_1 file exists*
* spfileORCL.ora* exists on both servers in same directory and same path.
Can you please suggest where is the problem?
Thank you so much.
ImranORA-19870: error reading backup piece /tmp/backup_files/standby_control_1jme2far_1_1
ORA-01565: error in identifying file '/u01/app/oracle/product/10.2.0/db_1/dbs/spfileORCL.ora'
ORA-27037: unable to obtain file statusLinux-x86_64 Error: 2: No such file or directory
Might the backup piece not exist or file is unae to read at this time. Can you check is this physically exist Or not?
And preferred to take new fresh backup and perform duplicate -
Error in creating Duplicate Database in same server..
Hi,
I am getting following error when creating duplicate database
DB Version=10.2.0.4
$ rman target sys/sys@test nocatalog auxiliary /
Recovery Manager: Release 10.2.0.4.0 - Production on Mon Sep 28 15:13:32 2009
Copyright (c) 1982, 2007, Oracle. All rights reserved.
connected to target database: TEST (DBID=1702666620, not open)
using target database control file instead of recovery catalog
connected to auxiliary database: CLNTEST (not mounted)
RMAN> DUPLICATE TARGET DATABASE TO "CLNTEST";
Starting Duplicate Db at 28-SEP-09
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: sid=156 devtype=DISK
contents of Memory Script:
set until scn 597629461;
set newname for datafile 1 to
"/u01/data_new/clonetest/system01.dbf";
set newname for datafile 2 to
"/u01/data_new/clonetest/undotbs01.dbf";
set newname for datafile 3 to
"/u01/data_new/clonetest/sysaux01.dbf";
set newname for datafile 4 to
"/u01/data_new/clonetest/users01.dbf";
set newname for datafile 5 to
"/u01/data_new/clonetest/example01.dbf";
set newname for datafile 6 to
"/u01/data_new/clonetest/undotbs02.dbf";
set newname for datafile 7 to
"/u01/data_new/clonetest/alweb1.dbf";
set newname for datafile 8 to
"/u01/data_new/clonetest/indx1.dbf";
restore
check readonly
clone database
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
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting restore at 28-SEP-09
using channel ORA_AUX_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 09/28/2009 15:13:40
RMAN-03015: error occurred in stored script Memory Script
RMAN-06026: some targets not found - aborting restore
RMAN-06023: no backup or copy of datafile 8 found to restore
RMAN-06023: no backup or copy of datafile 7 found to restore
RMAN-06023: no backup or copy of datafile 6 found to restore
RMAN-06023: no backup or copy of datafile 5 found to restore
RMAN-06023: no backup or copy of datafile 4 found to restore
RMAN-06023: no backup or copy of datafile 3 found to restore
RMAN-06023: no backup or copy of datafile 2 found to restore
RMAN-06023: no backup or copy of datafile 1 found to restore
RMAN> crosscheck backupset of datafile 1;
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=154 devtype=DISK
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=/u01/rmanbkp/db_prd0akqcnoh_1_1 recid=10 stamp=698769169
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=/u02/data/flash_recovery_area/BINGO/backupset/2009_09_28/o1_mf_nnndf_TAG20090928T151044_5d114x0h_.bkp recid=17 stamp=698771444
Crosschecked 2 objects
RMAN> crosscheck backupset of datafile 2;
using channel ORA_DISK_1
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=/u01/rmanbkp/db_prd0akqcnoh_1_1 recid=10 stamp=698769169
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=/u02/data/flash_recovery_area/BINGO/backupset/2009_09_28/o1_mf_nnndf_TAG20090928T151044_5d114x0h_.bkp recid=17 stamp=698771444
Crosschecked 2 objects
RMAN> crosscheck backupset of datafile 3;
using channel ORA_DISK_1
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=/u01/rmanbkp/db_prd0akqcnoh_1_1 recid=10 stamp=698769169
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=/u02/data/flash_recovery_area/BINGO/backupset/2009_09_28/o1_mf_nnndf_TAG20090928T151044_5d114x0h_.bkp recid=17 stamp=698771444
Crosschecked 2 objects
RMAN> crosscheck backupset of datafile 4;
using channel ORA_DISK_1
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=/u01/rmanbkp/db_prd0akqcnoh_1_1 recid=10 stamp=698769169
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=/u02/data/flash_recovery_area/BINGO/backupset/2009_09_28/o1_mf_nnndf_TAG20090928T151044_5d114x0h_.bkp recid=17 stamp=698771444
Crosschecked 2 objects
RMAN> crosscheck backupset of datafile 5;
using channel ORA_DISK_1
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=/u01/rmanbkp/db_prd0akqcnoh_1_1 recid=10 stamp=698769169
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=/u02/data/flash_recovery_area/BINGO/backupset/2009_09_28/o1_mf_nnndf_TAG20090928T151044_5d114x0h_.bkp recid=17 stamp=698771444
Crosschecked 2 objects
RMAN> crosscheck backupset of datafile 6;
using channel ORA_DISK_1
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=/u01/rmanbkp/db_prd0akqcnoh_1_1 recid=10 stamp=698769169
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=/u02/data/flash_recovery_area/BINGO/backupset/2009_09_28/o1_mf_nnndf_TAG20090928T151044_5d114x0h_.bkp recid=17 stamp=698771444
Crosschecked 2 objects
RMAN> crosscheck backupset of datafile 7;
using channel ORA_DISK_1
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=/u01/rmanbkp/db_prd0akqcnoh_1_1 recid=10 stamp=698769169
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=/u02/data/flash_recovery_area/BINGO/backupset/2009_09_28/o1_mf_nnndf_TAG20090928T151044_5d114x0h_.bkp recid=17 stamp=698771444
Crosschecked 2 objects
Thanks,Hi,
RMAN> show all;
using target database control file instead of recovery catalog
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/oracle/ora10g/product/10.2.0/db_1/dbs/snapcf_TEST.f'; # default
Thanks, -
Error while duplicate database from one server to another server
Hi there,
I am practicing duplicate database from one single database server to another server. Hardware and driver path on 2 machines is the same. Here are my steps:
--------------------- Clone site:
1. modify listener.ora with content:
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
ADR_BASE_LISTENER = /u01/app/oracle
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1)
(SID_NAME= orcl)
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER = ON
2. stop and start listener again, message show like :
Service “orcl” has 1 instance(s).
Instance “orcl”, status UNKNOWN, has 1 handler(s) for this service…
The command completed successfully
3. create pfile from spfile.
4. shutdown and startup nomount with pfile is new pfile create from step 3.
--------------------------------------- Source site
1. modify tnsnames.ora with content like:
VVCOREDB =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = vvcoredb)
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = 10.254.1.235) (PORT=1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
2. run command from rman like these:
rman> connect target sys@vvcoredb
rman> target database Password:
rman> connect auxiliary sys@orcl
rman> auxiliary database Password:
rman> DUPLICATE TARGET DATABASE to orcl from active database spfile nofilenamecheck;
Then the result show below:
Starting Duplicate Db at 24-SEP-12
using target database control file instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=63 device type=DISK
contents of Memory Script:
backup as copy reuse
targetfile '/u01/app/oracle/product/11.2.0/db_1/dbs/spfilevvcoredb.ora' auxiliary format
'/u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora' ;
sql clone "alter system set spfile= ''/u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora''";
executing Memory Script
Starting backup at 24-SEP-12
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=74 device type=DISK
Finished backup at 24-SEP-12
sql statement: alter system set spfile= ''/u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora''
contents of Memory Script:
sql clone "alter system set db_name =
''ORCL'' comment=
''duplicate'' scope=spfile";
shutdown clone immediate;
startup clone nomount;
executing Memory Script
sql statement: alter system set db_name = ''ORCL'' comment= ''duplicate'' scope=spfile
Oracle instance shut down
connected to auxiliary database (not started)
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 09/24/2012 17:44:12
RMAN-03015: error occurred in stored script Memory Script
RMAN-04014: startup failed: ORA-01261: Parameter db_recovery_file_dest destination string cannot be translated
ORA-01262: Stat failed on a file destination directory
Linux-x86_64 Error: 2: No such file or directory
I don't know what wrong with my pfile? I specify correct my pfile on clone site like this:
orcl.__db_cache_size=1476395008
orcl.__java_pool_size=16777216
orcl.__large_pool_size=16777216
orcl.__oracle_base='/u01/app/oracle'#ORACLE_BASE set from environment
orcl.__pga_aggregate_target=1342177280
orcl.__sga_target=1979711488
orcl.__shared_io_pool_size=0
orcl.__shared_pool_size=436207616
orcl.__streams_pool_size=0
*.audit_file_dest='/u01/app/oracle/admin/orcl/adump'
*.audit_trail='db'
*.compatible='11.2.0.0.0'
*.control_files='/u01/app/oracle/oradata/orcl/control01.ctl','/u01/app/oracle/flash_recovery_area/orcl/control02.ctl'
*.db_block_size=8192
*.db_domain=''
*.db_name='orcl'
*.db_recovery_file_dest='/u01/app/oracle/flash_recovery_area/vvcoredb'
*.db_recovery_file_dest_size=4070572032
*.diagnostic_dest='/u01/app/oracle'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'
*.memory_target=3313500160
*.open_cursors=300
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.undo_tablespace='UNDOTBS1'
Please suggest me do i miss some steps when try to duplicate database?
Any suggestions are welcome.
Thanks in advance!
P/s: Sorry for my bad English.Oh god, it worked. Thank you. But i got another problem like this:
duplicate target database to orcl from active database spfile set "db_recovery_file_dest" = "/u01/app/oracle/flash_recovery_area/vvcoredb" nofilenamecheck;
Starting Duplicate Db at 24-SEP-12
using target database control file instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=63 device type=DISK
contents of Memory Script:
backup as copy reuse
targetfile '/u01/app/oracle/product/11.2.0/db_1/dbs/spfilevvcoredb.ora' auxiliary format
'/u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora' ;
sql clone "alter system set spfile= ''/u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora''";
executing Memory Script
Starting backup at 24-SEP-12
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=74 device type=DISK
Finished backup at 24-SEP-12
sql statement: alter system set spfile= ''/u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora''
contents of Memory Script:
sql clone "alter system set db_name =
''ORCL'' comment=
''duplicate'' scope=spfile";
sql clone "alter system set db_recovery_file_dest =
''/u01/app/oracle/flash_recovery_area/vvcoredb'' comment=
'''' scope=spfile";
shutdown clone immediate;
startup clone nomount;
executing Memory Script
sql statement: alter system set db_name = ''ORCL'' comment= ''duplicate'' scope=spfile
sql statement: alter system set db_recovery_file_dest = ''/u01/app/oracle/flash_recovery_area/vvcoredb'' comment= '''' scope=spfile
Oracle instance shut down
connected to auxiliary database (not started)
Oracle instance started
Total System Global Area 3307048960 bytes
Fixed Size 2217872 bytes
Variable Size 1811941488 bytes
Database Buffers 1476395008 bytes
Redo Buffers 16494592 bytes
contents of Memory Script:
sql clone "alter system set db_name =
''VVCOREDB'' comment=
''Modified by RMAN duplicate'' scope=spfile";
sql clone "alter system set db_unique_name =
''ORCL'' comment=
''Modified by RMAN duplicate'' scope=spfile";
shutdown clone immediate;
startup clone force nomount
backup as copy current controlfile auxiliary format '/u01/app/oracle/oradata/vvcoredb/control01.ctl';
restore clone controlfile to '/u01/app/oracle/recovery_area/vvcoredb/control02.ctl' from
'/u01/app/oracle/oradata/vvcoredb/control01.ctl';
alter clone database mount;
executing Memory Script
sql statement: alter system set db_name = ''VVCOREDB'' comment= ''Modified by RMAN duplicate'' scope=spfile
sql statement: alter system set db_unique_name = ''ORCL'' comment= ''Modified by RMAN duplicate'' scope=spfile
Oracle instance shut down
Oracle instance started
Total System Global Area 3307048960 bytes
Fixed Size 2217872 bytes
Variable Size 1811941488 bytes
Database Buffers 1476395008 bytes
Redo Buffers 16494592 bytes
Starting backup at 24-SEP-12
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile copy
copying current control file
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 09/24/2012 18:42:09
RMAN-03015: error occurred in stored script Memory Script
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 09/24/2012 18:42:09
ORA-17628: Oracle error 19505 returned by remote Oracle server
I have a comment that source site doesn't have flash_recovery_area, instead it's name is recovery_area, is it problem?
Edited by: 788420 on Sep 24, 2012 4:44 AM -
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 -
The ABAP/4 Open SQL array insert results in duplicate database records
Hi,
Iam getting following error :
The ABAP/4 Open SQL array insert results in duplicate database records.
Error in ABAP application program.
The current ABAP program "SAPLV60U" had to be terminated because one of the
statements could not be executed.
This is probably due to an error in the ABAP program.
" Information on where terminated
The termination occurred in the ABAP program "SAPLV60U" in "VBUK_BEARBEITEN".
The main program was "SAPMSSY4 ".
The termination occurred in line 503 of the source code of the (Include)
program "LV60UF0V"
of the source code of program "LV60UF0V" (when calling the editor 5030).
Processing was terminated because the exception "CX_SY_OPEN_SQL_DB" occurred in
the
procedure "VBUK_BEARBEITEN" "(FORM)" but was not handled locally, not declared
in the
RAISING clause of the procedure.
The procedure is in the program "SAPLV60U ". Its source code starts in line 469
of the (Include) program "LV60UF0V "."
Please assist how to proceed further ..
Many thanks
Mujeeb.Sorry, THe correct note is 402221.
Description from the note
<< Please do not post SAP notes - they are copyrighed material >>
Edited by: Rob Burbank on Feb 22, 2009 3:46 PM -
Hi ALL,
While doing duplicate database using RMAN i m getting following error.
released channel: d1
RMAN-00571: =================================
RMAN-00569: === ERROR MESSAGE STACK FOLLOWS ======
RMAN-00571: =======================================
RMAN-03002: failure of Duplicate Db command at 05/14/2008 08:08:23
RMAN-03015: error occurred in stored script Memory Script
ORA-06550: line 1, column 1730:
PLS-00302: component 'LOGTERMINAL_OBJ' must be declared
ORA-06550: line 1, column 1716:
PL/SQL: Statement ignored
Recovery Manager complete.
Please Help
Regards
Mitalthanks Werner for reply ,
the above problem is solved, the proble was that you have said. the problem was realted to version . the target db was of 10.2.0.3 and the rman aux db is at 10.2.0.4
i have changed auxiliary db to 10.2.0.3 and the problem is resolved.
but now i am facing some diff. error.
setup:
backup server :\\bkpsvr\backup$\
backup location : \\bkpsvr\backup$\
target server \\tgt_svr
auxiliary server :\\aux_svr\ :
restore location : G:\ORACLE\ORADATA\ERPBI2DV\
during duplicate db commad while reading from backup piece it is givnig following error.
ORA-19870: error reading backup piece \\BRNORA10\BACKUP$\BI2\DF_ERPBI2_654625830_4599_1
ORA-19504: failed to create file "G:\ORACLE\ORADATA\ERPBI2DV\OWB_ERPBI2DV_01"
ORA-27040: file create error, unable to create file
OSD-04002: unable to open file
O/S-Error: (OS 3) The system cannot find the path specified.
released channel: d1
RMAN-00571: ==============================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ======================================
RMAN-03002: failure of Duplicate Db command at 05/14/2008 12:39:14
RMAN-03015: error occurred in stored script Memory Script
RMAN-06026: some targets not found - aborting restore
RMAN-06023: no backup or copy of datafile 100 found to restore
RMAN-06023: no backup or copy of datafile 99 found to restore
please help.
Message was edited by:
mits -
Difference btween oracle 10G database & oracle 11G database
Hi
i have a web application have 10G database engine, now i will upload it on a host server witch supports oracle 11G database.
can i export Dump file from my Oracle10g database and import it into oracle 11G database successful.
what can i do?
please suggest me
thank youHi,
Difference btween oracle 10G database & oracle 11G database Here is a complete list:
http://www.dba-oracle.com/oracle11g/oracle_11g_new_features.htm
can i export Dump file from my Oracle10g database and import it into oracle 11G database successful.Yes. Oracle supports backward compatibility . . .
You mght not, however do it the other way . . .
Hope this helps . . .
Donald K. Burleson
Oracle Press author
Author of "Oracle Tuning: The Definitive Reference"
http://www.rampant-books.com/t_oracle_tuning_book.htm
"Time flies like an arrow; Fruit flies like a banana". -
hello friends,
my requirement is that, i am running some
sites with oracle database. but , at same time i want to configure a mirror database on
different host. suppose in case primary
database fails then we can up the mirrored database. my objective is site should not go
to downtime even for a single second. and
when primary database will be up then whatever transaction was made to mirror database that should be transfered to primary
server.
so, in my problem , till what extent this
duplicate database of recovery manager will
be helpful to me. if any other third party
software is available for my requirement
then please let me know.
thanx,
nullI don't think it is possible.
If you need this level of availability,
look at something different from Oracle,
for example, Tandem systems (from Compaq)
and their nonStop SQL database. However, a Tandem system costs roughly 10 times more
than a similar Oracle system.
If you need to use Oracle, look at hardware-level solution rather tan software-level solution. For example, EMC has SRDF technology - hardware-level mirroring
of your hard disk. Software-level solution
for high availability include Parallel server
(requires clustering software and external disk array) and standby database.
In my experience, achieving high availability is a matter of having enough finds for the project - you need a second
(third, fourth) system for development/testing/UAT, mirror all disks, etc.
RMAN has nothing to do with high availability -
it is just a tool for backing up databases.
Regards,
Sev
[email protected]
null -
Error while fetching variable value from sqlserver database in 11g
Hi
We created a dynamic variable to fetch data from sqlserver database in 11g.But when we test it, it is erroring out as follows: "nqserror: 27024 the execute physical statement must specify a physical sql statement to execute".
Please help to overcome this issue.
Thanks.Hello,
First make sure that you're able to retreive data from the repository (right click on a table and view data?)
To create a session variable follow these steps:
From the Administration Tool menu bar, choose Manage > Variables.
In the Variable Manager dialog box, from the menu bar, choose Action > New > Session > Variable.
In the Session Variable dialog box, type a variable name.
Names for all variables should be unique. The names of system session variables are reserved and cannot be used for other types of variables.
For session variables, you can select the following check boxes:
Enable any user to set the value
Check box that allows you to set the session variables after the initialization block has populated the value (at user login) by calling the ODBC store procedure NQSSetSessionValue(). For example, this allows non-Oracle BI Administrators to set this variable for sampling.
Use the Initialization Block drop-down list to select an initialization block that will be used to refresh the value on a continuing basis.
To add a Default initializer value, perform one of the following steps:
To use the Expression Builder, click the ellipsis button to the right of the Default initializer work space.
Type the value into the Default initializer text box.
Click OK.
you can do the same for a repository variable except that you will have to specif a refresh interval.
Make sure the sql your are issuing is correct by running it first using a client.
Regards
PS: Please don't forget to close the thread and assign points when your question is answered -
Dear Experts
Pls give me solution for my problem..
I am working on Oracle 10.2 running on rhel 4.I am trying to create duplicate database on the same host as on target.My target database is in archive log mode. When i am trying to fire the above command I get following error. Here are the steps..
[oracle@infotech ~]$ rman target / auxiliary sys/admin@dupli
Recovery Manager: Release 10.2.0.1.0 - Production on Thu Jan 27 12:50:25 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: SQLSTAR (DBID=1533334878, not open)
connected to auxiliary database: DUPLI (not mounted)
RMAN> duplicate target database to dupli
2> logfile
3> '/database/dupli/log/redo01.log' size 10m,
4> '/database/dupli/log1/redo02.log' size 10m;
Starting Duplicate Db at 27-JAN-11
using target database control file instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: sid=153 devtype=DISK
allocated channel: ORA_AUX_DISK_2
channel ORA_AUX_DISK_2: sid=154 devtype=DISK
allocated channel: ORA_AUX_DISK_3
channel ORA_AUX_DISK_3: sid=156 devtype=DISK
allocated channel: ORA_AUX_DISK_4
channel ORA_AUX_DISK_4: sid=157 devtype=DISK
datafile 5 not processed because file is offline
datafile 6 not processed because file is offline
contents of Memory Script:
set until scn 2404769;
set newname for datafile 1 to
"/database/dupli/data/system01.dbf";
set newname for datafile 2 to
"/database/dupli/data/undotbs01.dbf";
set newname for datafile 3 to
"/database/dupli/data/sysaux01.dbf";
set newname for datafile 4 to
"/database/dupli/data/users01.dbf";
restore
check readonly
clone database
skip tablespace TRY,
PROD ;
executing Memory Script
executing command: SET until clause
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting restore at 27-JAN-11
using channel ORA_AUX_DISK_1
using channel ORA_AUX_DISK_2
using channel ORA_AUX_DISK_3
using channel ORA_AUX_DISK_4
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 01/27/2011 12:55:35
RMAN-03015: error occurred in stored script Memory Script
RMAN-06026: some targets not found - aborting restore
RMAN-06023: no backup or copy of datafile 4 found to restore
RMAN-06023: no backup or copy of datafile 3 found to restore
RMAN-06023: no backup or copy of datafile 2 found to restore
RMAN-06023: no backup or copy of datafile 1 found to restore
Although I am having the backups
RMAN> list backup;
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
58 Full 6.86M DISK 00:00:01 27-JAN-11
BP Key: 57 Status: AVAILABLE Compressed: NO Tag: TAG20110127T105501
Piece Name: /database/sqlstar/flash/SQLSTAR/backupset/2011_01_27/o1_mf_ncnnf_TAG20110127T105501_6n20fh2b_.bkp
Control File Included: Ckp SCN: 2428375 Ckp time: 27-JAN-11
BS Key Type LV Size Device Type Elapsed Time Completion Time
59 Full 80.00K DISK 00:00:04 27-JAN-11
BP Key: 58 Status: AVAILABLE Compressed: NO Tag: TAG20110127T105501
Piece Name: /database/sqlstar/flash/SQLSTAR/backupset/2011_01_27/o1_mf_nnsnf_TAG20110127T105501_6n20fmbz_.bkp
SPFILE Included: Modification time: 27-JAN-11
BS Key Type LV Size Device Type Elapsed Time Completion Time
60 Full 370.27M DISK 00:01:41 27-JAN-11
BP Key: 59 Status: AVAILABLE Compressed: NO Tag: TAG20110127T105501
Piece Name: /database/sqlstar/flash/SQLSTAR/backupset/2011_01_27/o1_mf_nnndf_TAG20110127T105501_6n20fh6k_.bkp
List of Datafiles in backup set 60
File LV Type Ckp SCN Ckp Time Name
2 Full 2428375 27-JAN-11 /database/sqlstar/data/sqlstar/undotbs01.dbf
3 Full 2428375 27-JAN-11 /database/sqlstar/data/sqlstar/sysaux01.dbf
BS Key Type LV Size Device Type Elapsed Time Completion Time
61 Full 339.97M DISK 00:01:57 27-JAN-11
BP Key: 60 Status: AVAILABLE Compressed: NO Tag: TAG20110127T105501
Piece Name: /database/sqlstar/flash/SQLSTAR/backupset/2011_01_27/o1_mf_nnndf_TAG20110127T105501_6n20fkq2_.bkp
List of Datafiles in backup set 61
File LV Type Ckp SCN Ckp Time Name
1 Full 2428375 27-JAN-11 /database/sqlstar/data/sqlstar/system01.dbf
6 Full 2428375 27-JAN-11 /database/sqlstar/data/sqlstar/try01.dbf
BS Key Type LV Size Device Type Elapsed Time Completion Time
62 Full 652.93M DISK 00:02:15 27-JAN-11
BP Key: 61 Status: AVAILABLE Compressed: NO Tag: TAG20110127T105501
Piece Name: /database/sqlstar/flash/SQLSTAR/backupset/2011_01_27/o1_mf_nnndf_TAG20110127T105501_6n20fjkw_.bkp
List of Datafiles in backup set 62
File LV Type Ckp SCN Ckp Time Name
4 Full 2428375 27-JAN-11 /database/sqlstar/data/sqlstar/users01.dbf
5 Full 2428375 27-JAN-11 /database/sqlstar/data/sqlstar/prod01.db
Regards
AsifDear Experts
As per your suggestion I havle allocated multiple channels including the auxliary channel..*It has executed to a lot of extent but it has hung at last*.I am posting the commands and steps..
[oracle@infotech ~]$ rman target / auxiliary sys/admin@dupli
Recovery Manager: Release 10.2.0.1.0 - Production on Fri Jan 28 11:46:07 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: SQLSTAR (DBID=1533334878)
connected to auxiliary database: DUPLI (not mounted)
RMAN> run{
2> allocate channel c1 type disk;
3> allocate channel c2 type disk;
4> ALLOCATE AUXILIARY CHANNEL aux1 DEVICE TYPE DISK;
5> ALLOCATE AUXILIARY CHANNEL aux2 DEVICE TYPE DISK;
6> duplicate target database to dupli;
7> }
using target database control file instead of recovery catalog
allocated channel: c1
channel c1: sid=140 devtype=DISK
allocated channel: c2
channel c2: sid=139 devtype=DISK
allocated channel: aux1
channel aux1: sid=155 devtype=DISK
allocated channel: aux2
channel aux2: sid=154 devtype=DISK
Starting Duplicate Db at 28-JAN-11
contents of Memory Script:
set until scn 2487653;
set newname for datafile 1 to
"/u01/dupli/data/system01.dbf";
set newname for datafile 2 to
"/u01/dupli/data/undotbs01.dbf";
set newname for datafile 3 to
"/u01/dupli/data/sysaux01.dbf";
set newname for datafile 4 to
"/u01/dupli/data/users01.dbf";
set newname for datafile 5 to
"/u01/dupli/data/prod01.dbf";
set newname for datafile 6 to
"/u01/dupli/data/try01.dbf";
restore
check readonly
clone database
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
executing command: SET NEWNAME
Starting restore at 28-JAN-11
channel aux1: starting datafile backupset restore
channel aux1: specifying datafile(s) to restore from backup set
restoring datafile 00002 to /u01/dupli/data/undotbs01.dbf
restoring datafile 00003 to /u01/dupli/data/sysaux01.dbf
channel aux1: reading from backup piece /u01/flash/SQLSTAR/backupset/2011_01_28/o1_mf_nnndf_TAG20110128T114150_6n4qkhf6_.bkp
channel aux2: starting datafile backupset restore
channel aux2: specifying datafile(s) to restore from backup set
restoring datafile 00001 to /u01/dupli/data/system01.dbf
restoring datafile 00006 to /u01/dupli/data/try01.dbf
channel aux2: reading from backup piece /u01/flash/SQLSTAR/backupset/2011_01_28/o1_mf_nnndf_TAG20110128T114150_6n4qkb92_.bkp
channel aux1: restored backup piece 1
piece handle=/u01/flash/SQLSTAR/backupset/2011_01_28/o1_mf_nnndf_TAG20110128T114150_6n4qkhf6_.bkp tag=TAG20110128T114150
channel aux1: restore complete, elapsed time: 00:01:16
channel aux2: restored backup piece 1
piece handle=/u01/flash/SQLSTAR/backupset/2011_01_28/o1_mf_nnndf_TAG20110128T114150_6n4qkb92_.bkp tag=TAG20110128T114150
channel aux2: restore complete, elapsed time: 00:01:17
channel aux1: starting datafile backupset restore
channel aux1: specifying datafile(s) to restore from backup set
restoring datafile 00004 to /u01/dupli/data/users01.dbf
restoring datafile 00005 to /u01/dupli/data/prod01.dbf
channel aux1: reading from backup piece /u01/flash/SQLSTAR/backupset/2011_01_28/o1_mf_nnndf_TAG20110128T114150_6n4qk8lg_.bkp
channel aux1: restored backup piece 1
piece handle=/u01/flash/SQLSTAR/backupset/2011_01_28/o1_mf_nnndf_TAG20110128T114150_6n4qk8lg_.bkp tag=TAG20110128T114150
channel aux1: restore complete, elapsed time: 00:01:15
Finished restore at 28-JAN-11
sql statement: CREATE CONTROLFILE REUSE SET DATABASE "DUPLI" RESETLOGS ARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 100
MAXINSTANCES 8
MAXLOGHISTORY 292
LOGFILE
GROUP 2 ( '/u01/dupli/log/redo02.log' ) SIZE 50 M REUSE,
GROUP 3 ( '/u01/dupli/log/redo03.log' ) SIZE 50 M REUSE,
GROUP 4 ( '/u01/dupli/log/redo05.log' ) SIZE 100 M REUSE
DATAFILE
'/u01/dupli/data/system01.dbf'
CHARACTER SET WE8ISO8859P1
contents of Memory Script:
switch clone datafile all;
executing Memory Script
datafile 2 switched to datafile copy
input datafile copy recid=1 stamp=741613900 filename=/u01/dupli/data/undotbs01.dbf
datafile 3 switched to datafile copy
input datafile copy recid=2 stamp=741613900 filename=/u01/dupli/data/sysaux01.dbf
datafile 4 switched to datafile copy
input datafile copy recid=3 stamp=741613900 filename=/u01/dupli/data/users01.dbf
datafile 5 switched to datafile copy
input datafile copy recid=4 stamp=741613900 filename=/u01/dupli/data/prod01.dbf
datafile 6 switched to datafile copy
input datafile copy recid=5 stamp=741613900 filename=/u01/dupli/data/try01.dbf
contents of Memory Script:
set until scn 2487653;
recover
clone database
delete archivelog
executing Memory Script
executing command: SET until clause
Starting recover at 28-JAN-11
starting media recovery
archive log thread 1 sequence 142 is already on disk as file /u01/flash/SQLSTAR/archivelog/2011_01_28/o1_mf_1_142_6n4qqom4_.arc
archive log filename=/u01/flash/SQLSTAR/archivelog/2011_01_28/o1_mf_1_142_6n4qqom4_.arc thread=1 sequence=142
media recovery complete, elapsed time: 00:00:04
Finished recover at 28-JAN-11
contents of Memory Script:
shutdown clone;
startup clone nomount ;
executing Memory Script -
RMAN duplicate database suddenly slow
Hi Everyone,
I posted at wrong forum last time, sorry about that.
I used RMAN to duplicate database to different box in the same local network area. Here are the scenario:
boxA: target database (PROD) -- 250G
database:Oracle 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
OS:Windows Server 2003 Enterprise x64 Edition
boxB: cloned database
database:Oracle 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
OS:Windows Server 2003 Enterprise x64 Edition
After prepared necessary steps,listener and tnsnames,etc, I run the following scripts:
C:\>rman target sys/[email protected] auxiliary sys/[email protected] catalog rman/rman
RMAN>RUN
SET NEWNAME FOR DATAFILE 1 TO 'D:\oracle\undb\system01.dbf';
.... (some set newname omitted here)
SET NEWNAME FOR DATAFILE 15 TO 'D:\oracle\undb\RMAN01.ORA';
SET NEWNAME FOR TEMPFILE 1 TO 'D:\oracle\undb\TEMP01.ORA';
# to manually allocate three auxiliary channels for disk issue
ALLOCATE AUXILIARY CHANNEL aux1 DEVICE TYPE DISK;
ALLOCATE AUXILIARY CHANNEL aux2 DEVICE TYPE DISK;
ALLOCATE AUXILIARY CHANNEL aux3 DEVICE TYPE DISK;
DUPLICATE TARGET DATABASE TO undb
LOGFILE
GROUP 1 ('D:\oracle\undb\redo01.log') SIZE 100M REUSE,
GROUP 2 ('D:\oracle\undb\redo02.log') SIZE 100M REUSE,
GROUP 3 ('D:\oracle\undb\redo03.log') SIZE 100M REUSE;
database duplicated successfully last week.
Monday, I created another database in boxA (testdb) and used the similiar scripts (just made necessary changed, database name,file names,etc), and the duplication also successful.
Yesterday, I tried to duplicate PROD, did the exactly same thing as Monday,
everything was very slow,
RMAN>report schema; took over 30 minutes,
RMAN>list backup;took another 30 minutes,
then I delete testdb in boxA, nothing better.
I have tried from boxA, also tried from boxB, things were similiar.
(when test from boxB, I input: rman target sys/[email protected] auxiliary sys/[email protected] catalog rman/[email protected] )
when I input:
RMAN> report schema;
and checked from Enterprise Manager,
SELECT RECID , STAMP , THREAD# , SEQUENCE# , FIRST_CHANGE# LOW_SCN , FIRST_TIME LOW_TIME , NEXT_CHANGE# NEXT_SCN ,
RESETLOGS_CHANGE# , RESETLOGS_TIME FROM V$LOG_HISTORY WHERE RECID BETWEEN :1 AND :1 AND RESETLOGS_TIME IS NOT NULL
AND STAMP >= :1 ORDER BY RECID
the query is running for a long time, my V$LOG_HISTORY has 18688 rows, select count(*) from V$LOG_HISTORY took less than 1 second.
I am wondering what is the reason?
Can anybody give me a clue?
Thank you very much.Thanks Alan,
Hardware spec:
duplicate database server CPU: 2x1995 Mhz ,RAM:4G, hard disk 500G
production server CPU: 2x2993 Mhz ,RAM:5G,hard disk 900G
the production server is better than the duplicate server. the production only run Oracle 10g server, the duplicate server is brand new and nothing is runing except Windows and Oracle software only.
I noticed that when in peek hour, RMAN is really slow, no matter which box I run the RMAN, when in non peek hour, it's reasonable.
Is there anything I can do on the RMAN side?
Thanks again
Maybe you are looking for
-
Creating a New Task in SOLMAN Change request Management
Dear all, We are using SOLMAN 4.0 and scm functionality.In the change request screen we have a create follow up task(+ icon on top left).What is the use of this task,can we asign a task to some particular person?for example can i assign task to teste
-
Gmail IMAP account stopped working with Apple Mail
I have Leopard with 10.5.5, just updated it a few days ago. I have used my gmail account for a few years with Apple mail with no real problems, but now today, I got errors about an invalid certificate, and a little exclimation point by my gmail inbox
-
Windows 8.1 Questions? HP Win8.1 Expert Day – December 5, 2013
Thank you for coming to Expert Day – the event has now concluded. **To find out about future HP Expert Day events, check out this page** On behalf of the Experts, I would like to thank you for coming to the Forum to connect with us. We hope you will
-
Won't boot from DVD no matter how I try
After verifying my HD with Disk Utility, I had a message claiming the volume is corrupted. I tried to boot from Install DVD, but it won't : either pressing "C" or Option, or selecting DVD in Pref > Start-Up. It freezes on the Apple logo after chiming
-
Transfering videos from Iphone 4 to laptop, the video is rotateed 90 degrees
After transferring videos from Iphone to laptop, Why would the video be rotated 90 degrees?