Duplicate database
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,
null
I 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
Similar Messages
-
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 -
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 -
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 -
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 -
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 -
Rman Duplicate database synchronization problem
Hi
I have the Oracle database 9.2.0.1.0 .I've created Duplicate database on another computer with the same structure and Oracle 9.2.0.1.0 too.
Now, I want to synchronize my duplicate by primary database, and I copied backup of all datafiles & archive logs & and backup that was taken by RMAN, but in the middle of processing I got this error.
printing stored script: Memory Script
set until scn 443620578;
recover
clone database
delete archivelog
executing script: Memory Script
executing command: SET until clause
Starting recover at 31-MAR-03
starting media recovery
channel ch1: starting archive log restore to default destination
channel ch1: restoring archive log
archive log thread=1 sequence=106
channel ch1: restored backup piece 1
piece handle=C:\ORACLE\ORA9I\DATABASE\23EJCO3D_1_1 tag=TAG20030331T114405 params=NULL
channel ch1: restore complete
archive log filename=C:\ORACLE\ORADATA\DELLDUP\ARCHIVE\DELLDUPT001S00106.ARC thr
ead=1 sequence=106
channel clone_default: deleting archive log(s)
archive log filename=C:\ORACLE\ORADATA\DELLDUP\ARCHIVE\DELLDUPT001S00106.ARC rec
id=1 stamp=490112362
media recovery complete
Finished recover at 31-MAR-03
printing stored script: Memory Script
shutdown clone;
startup clone nomount ;
executing script: Memory Script
RMAN-00571:===============================================
RMAN-00569: ===============ERROR MESSAGE STACK FOLLOWS
RMAN-00571:===============================================
RMAN-03002: failure of Duplicate Db command at 03/31/2003 15:20:53
RMAN-03015: error occurred in stored script Memory Script
RMAN-06136: ORACLE error from auxiliary database: ORA-01013: user requested cancel of current operation
What should I Do?
txI beleive... and correct me if I'm wrong, but the duplicate command will open the db created with RESET LOGS. Thereby meaning you can't use the archive logs.
-
Duplicate database command fails with RMAN-06023
Hello,
I am trying to test out the duplicate database command in RMAN and am running into some issues.
I did a backup of my test database, copied the backup files to a second server, and now I'm trying to run the duplicate command and I get RMAN-06023 errors for all of my datafiles.
I did crosschecks on my backupsets and they showed as available. They are in the same location on the new server, with the same permissions. There are no recent archived logs, as this is a very quiet environment.
My commands and output (edited slightly) were as follows:
RMAN> run {
2> allocate channel d1 device type disk;
3> allocate channel d2 device type disk;
4> backup database;
5> }
allocated channel: d1
channel d1: sid=32 devtype=DISK
allocated channel: d2
channel d2: sid=36 devtype=DISK
Starting backup at 03-JUL-07
channel d1: starting full datafile backupset
channel d1: specifying datafile(s) in backupset
channel d2: starting full datafile backupset
channel d2: specifying datafile(s) in backupset
input datafile fno=00012 name=/database/oradata/source/matrix_ts01.dbf
input datafile fno=00004 name=/database/oraindex/source/ind_ts01.dbf
input datafile fno=00006 name=/database/oradata/source/users_ts01.dbf
input datafile fno=00003 name=/database/oradata/source/drsys01.dbf
input datafile fno=00007 name=/database/oradata/source/ORACLEORADATATST2CWMLITE01.DBF
input datafile fno=00009 name=/database/oradata/source/ORACLEORADATATST2ODM01.DBF
input datafile fno=00005 name=/database/oradata/source/tools_ts01.dbf
channel d2: starting piece 1 at 03-JUL-07
including current SPFILE in backupset
including current controlfile in backupset
input datafile fno=00011 name=/database/oradata/source/ORACLEORADATADATA.DBF
input datafile fno=00001 name=/database/oradata/source/system_ts01.dbf
input datafile fno=00002 name=/database/oradata/source/undo_ts01.dbf
input datafile fno=00008 name=/database/oradata/source/ORACLEORADATATST2EXAMPLE01.DBF
input datafile fno=00010 name=/database/oradata/source/ORACLEORADATATST2XDB01.DBF
channel d1: starting piece 1 at 03-JUL-07
channel d2: finished piece 1 at 03-JUL-07
piece handle=/database/oracle/product/9.2.0/dbs/0ciltjgn_1_1 comment=NONE
channel d2: backup set complete, elapsed time: 00:08:17
channel d1: finished piece 1 at 03-JUL-07
piece handle=/database/oracle/product/9.2.0/dbs/0biltjgn_1_1 comment=NONE
channel d1: backup set complete, elapsed time: 00:09:22
Finished backup at 03-JUL-07
released channel: d1
released channel: d2
** at this point I copied the files listed above to same directory on destination server **
RMAN> connect auxiliary sys/[email protected]
connected to auxiliary database: destination (not mounted)
RMAN> run {
2> allocate auxiliary channel aux1 device type disk;
3> allocate auxiliary channel aux2 device type disk;
4> duplicate target database to destination nofilenamecheck;
5> }
llocated channel: aux1
channel aux1: sid=10 devtype=DISK
allocated channel: aux2
channel aux2: sid=13 devtype=DISK
Starting Duplicate Db at 03-JUL-07
printing stored script: Memory Script
set until scn 4873550;
set newname for datafile 1 to
"/database/oradata/destination/system_ts01.dbf";
set newname for datafile 2 to
"/database/oradata/destination/undo_ts01.dbf";
set newname for datafile 3 to
"/database/oradata/destination/drsys01.dbf";
set newname for datafile 4 to
"/database/oraindex/destination/ind_ts01.dbf";
set newname for datafile 5 to
"/database/oradata/destination/tools_ts01.dbf";
set newname for datafile 6 to
"/database/oradata/destination/users_ts01.dbf";
set newname for datafile 7 to
"/database/oradata/destination/ORACLEORADATATST2CWMLITE01.DBF";
set newname for datafile 8 to
"/database/oradata/destination/ORACLEORADATATST2EXAMPLE01.DBF";
set newname for datafile 9 to
"/database/oradata/destination/ORACLEORADATATST2ODM01.DBF";
set newname for datafile 10 to
"/database/oradata/destination/ORACLEORADATATST2XDB01.DBF";
set newname for datafile 11 to
"/database/oradata/destination/ORACLEORADATADATA.DBF";
set newname for datafile 12 to
"/database/oradata/destination/matrix_ts01.dbf";
restore
check readonly
clone database
executing script: Memory Script
executing command: SET until clause
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting restore at 03-JUL-07
released channel: aux1
released channel: aux2
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 07/03/2007 14:35:13
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 12 found to restore
RMAN-06023: no backup or copy of datafile 11 found to restore
RMAN-06023: no backup or copy of datafile 10 found to restore
RMAN-06023: no backup or copy of datafile 9 found to 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
Thanks for any help,Hi,
Where is you RMAN catalog? I think you forgot to connect to it.
To duplicate a database check that folowing applies:
1-the auxiliary instance is mounted
2-the listener for the auxiliary db is up
3-the backup pieces that RMAN is going to restore ARE AVAILABLE on the
secondary/auxilary server with SAME NAME the have on the primary server (you can use NFS to avoid the copy of the pieces from primary to auxuliary box)
Remember to be conected to both: target and auxiliary db.
I have extracted the folowing lines from an RMAN script I used to create an standby database with the DUPLICATE command (the RMAN catalog was in the primary db controlfile, and the command was run on the primary server:
$ rman target / nocatalog auxiliary sys/pwd@standbycard log=crCARD.log
RMAN> duplicate target database for standby nofilenamecheck dorecover;
I hope this helps
Gustavo Restuccia -
Duplicate database records.
Hi Gurus,
I am trying to insert into a db table from an internal tbl. And the result return error as shown below:
The ABAP/4 Open SQL array insert results in duplicate database records.
How do I solve this?
Thank you in advanced.Hi,
The following code can be used as a template to produce an ABAP which updates a particular database
table field.
*& Report ZUPDATE_PRPS *
*& Quick report to Update PRPS-FAKKZ database field *
Report ZUPDATE_PRPS.
tables: prps.
parameter: p_wbs like prps-pspnr,
p_value like prps-fakkz default 'X'.
data: wa_fakkz type prps-fakkz.
*START-OF_SELECTION
start-of-selection.
call function 'CONVERSION_EXIT_ABPSP_INPUT'
exporting
input = p_wbs
importing
output = p_wbs
exceptions
not_found = 1
others = 2.
select single fakkz
into wa_fakkz
from prps
where pspnr eq p_wbs.
if sy-subrc eq 0.
update prps set fakkz = p_value where PSPNR eq p_wbs.
if p_value is initial.
message i999(za) with 'Billing element field has been unchecked'.
else.
message i999(za) with 'Billing element field has been checked'.
endif.
else.
message i999(za) with 'WBS element not found'.
endif. -
Rman duplicate database from test to production different host
Dear All,
usually i do the rman duplicate (clone) database in different host using same backup location as the source database in target database.
now i am in situation to clone the database with different backup location
source database location:/u01/db/backup
target database location: /tmp_dbbkup
is it possible to create the duplicate database with the command
rman target sys@UAT1 auxiliary /
RMAN>CATALOG BACKUPPIECE '/tmp_dbbkup/UAT_2670198561_44_20110101;
RMAN>duplicate target database to DEV;
is it ok?
we dont have privilege/rights to create a folder/directory in production server.
what i have to do now?
thanks in advance.
my oracle version: 10.2.0.4.0
operating system: AIXtychos wrote:
Hi rajeysh,
what i have to do now?You could make a sym link on the dev server
So /u01/db/backup on the dev server points to /tmp_dbbkup
Regards,
Tychothank for your reply tychos,
$ ln -s /u01/db/backup/OUAT_2670198561_44_20110101 /oracle/db/backup/UAT_2670198561_44_20110101
$ ls -ltr
total 1475968
-rw-r----- 1 oracle dba 307654656 Jan 7 10:03 db_DEV_20110107_4em1gm3e_1_1_L0
-rw-r----- 1 oracle dba 448030720 Jan 7 10:03 db_DEV_20110107_4dm1gm3e_1_1_L0
lrwxrwxrwx 1 oracle dba 45 Jan 11 20:53 UAT_2670198561_44_20110101 -> /u01/db/backup/OUAT_2670198561_44_20110101
$ ln -s /u01/db/backup/AOUAT_2670198561_46_20110101 /oracle/db/backup/OUAT_2670198561_46_20110101
$ ln -s /u01/db/backup/OUAT_2670198561_47_20110101 /oracle/db/backup/OUAT_2670198561_47_20110101
$ ln -s /u01/db/backup/OUAT_2670198561_45_20110101 /oracle/db/backup/OUAT_2670198561_45_20110101
$
is it ok
will the duplicate gets the information from /oracle/db/backup
if i did anything wrong , please correct me?
Maybe you are looking for
-
Need information on transferring project from one Mac to another
I just returned from a trip, during which I started and added photos to an Aperture project on my MB Air. When I got home and started up my MacPro after the month's absence I was surprised to see the same project appear on my desktop. I thought I u
-
Question about creating a report with variable columns
Post Author: Archmage CA Forum: General Hi, Is there a way to create a Crystal report based on the following situation? Run a stored procedure with two date parameters: If you run from 9/1/07 to 9/30/07, then the data result would be as follows: (ex
-
Different languages in different styles
In the previous version of Pages, I could choose a language for my different styles. Now, it automatically chooses a language for me. I use both English and French, and I would need to be able to assign a language for every style. Help please?
-
Helllo Everyone. I am new to external tables concept and I have only used using flat files. Is there a complete reference on on external tables somewhere? Also, instead of .csv or text based datafiles, can I use XML as data source for these external
-
Why is itunes taking so long to download movies
My internet connection appears to be working great, but the movies are taking far too long....7 hrs for a 1.1GB movie