Cloning using rman
Hi,
AIX 5.3
DB 10.2.0.2
The database is on mount it is showing on rman prompt but when i try it using sqlplus it says "Connected to an idle instance" whereas the database is on mount status.The same envrironment file is using on both of the prompt,
Thanks
Hi,
Find below as required by you.
$ ps -aef|grep -i pmon
oracle 569348 1 0 12:11:42 - 0:00 ora_pmon_emgr
oracle 692276 512216 0 17:07:31 pts/2 0:00 grep -i pmon
$ echo $ORACLE_SID
EMGR
$ env |grep -i oracle_home
ORACLE_HOME=/vol02/oraclestandby/10.2.0
$ sqlplus "/ as sysdba"
SQL*Plus: Release 10.2.0.2.0 - Production on Sun Mar 28 17:08:27 2010
Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
Connected to an idle instance.
SQL>
$ ls -ltr $ORACLE_HOME/dbs/orapwd$ORACLE_SID
ls: 0653-341 The file /vol02/oraclestandby/10.2.0/dbs/orapwdEMGR does not exist.
----I did not create password file yet.
Many Thanks
Similar Messages
-
Hi,
I am doing Apps 11i cloning with rapidclone.
I have cloned the database using RMAN.
As per the metalink note 230672.1 I have to run following script on DB node.
perl adcfgclone.pl dbconfig <target context file>
However I dont have the context file for the new instance.
Should I copy the context file (for DB) from source instance , rename it and use it?
If I run the adcfgclone.pl using the source instance context file (present in the target db node), it throws
error for database connection.
Platform - Oracle Ebusiness Suite 11.5.10 on Oracle enterprise Linux 4 and Oracle 9i database.
Pls advice.
Thanks,
raneHowever I dont have the context file for the new instance.Did you run "perl adcfgclone.pl dbTechStack" before issuing "perl adcfgclone.pl dbconfig <target context file>"? This should create the context file for you.
Should I copy the context file (for DB) from source instance , rename it and use it?No.
If I run the adcfgclone.pl using the source instance context file (present in the target db node), it throws
error for database connection.This is an expected behavior since the context file of the source node cannot be used on the target node. -
Ebs r12 cloning using rman online backup
dear all,
how are you guys? i have ebs r12 on multi node and i want to clone db tier and apps tier using rman online backup,can anybody provide me the detail steps of cloning ebs(db tier and appstier ) using rman online backup and directory structure on source and target database is also different.your help highly appreciated thanks in advance.
regards.Hi,
You cannot use RMAN to clone the Apps tier of the EBS and you may use RMAN only on the DB tier. For a complete backup, as mentioned by Hemant K Chitale, you will have to use the rapid clone utility.
To perform a rapid clone using RMAN there are plenty of step by step instructions in google which may guide in addition to support.oracle.com, Let me google that for you
Thanks &
Best Regards, -
Cloning using RMAN on two different OS
DB version:10gR2
Can i clone DB running on AIX 5.3 using RMAN and recreate it in a Solaris (5.9) machine?I hope it is possible using transportable database concept for cross platfomr migrations.
It is simple and fastest procedure.
http://www.oracle.com/technology/deploy/availability/pdf/MAA_WP_10gR2_PlatformMigrationTDB.pdf
Anil Malkai -
Cloning using rman backups?
Is it possible to clone using RMAN backups?
How do we do it . Please tell me the steps of configuring.Hi,
Let's take the example to create the auxiliary (clone) database using the rman backup in same server.
1)Building the auxiliary database directory structure
a) datafile, control file, redo file location
b) pfile,bdump,cdump,udump
2) Create the pfile from spfile (if required) and use it for auxiliary database with appropriate modification
3) Make all the necessary changes to your aux1 init.ora file
control_files=….
background_dump_dest=….
user_dump_dest=…
log_archive_dest_1=….
db_name=‘aux1’
instance_name=‘aux1’
remote_login_passwordfile=exclusive
4) Start aux1 instance in nomount mode
ORACLE_SID=aux1
export ORACLE_SID=aux1
sqlplus /nolog
sql>connect / as sysdba
sql> startup nomount pfile=/test/initaux1.ora
5)Configure the listener and tnsname.ora file for auxiliary database. Restart the listener.
lsnrctl>stop
lsnrctl>start
listener.ora entry
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = AUX1)
(ORACLE_HOME=/ORAHOME1/)
(SID_NAME = AUX1)
TNSNAMES.ORA ENTRY
AUX1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = xxx) (PORT = 1521)
(CONNECT_DATA =
(SID = AUX1)
(SERVER = DEDICATED)
6) Connect to the target and auxiliary instance and run the duplicate command
Rman>connect target /
Rman>connect auxilary sys/password@aux1
RMAN> connect target sys@prod
target database Password:
connected to target database: aaaa (DBID=4199802962)
RMAN> connect auxiliary sys@aux1
auxiliary database Password:
connected to auxiliary database: aux1 (not mounted)
RMAN> run
2> {
3> set newname for datafile 1 to 'C:\AUX1\SYSTEM01.DBF';
4> set newname for datafile 2 to 'C:\AUX1\UNDOTBS01.DBF';
5> set newname for datafile 3 to 'C:\AUX1\CWMLITE01.DBF';
6> set newname for datafile 4 to 'C:\AUX1\DRSYS01.DBF';
7> set newname for datafile 5 to 'C:\AUX1\EXAMPLE01.DBF';
8> set newname for datafile 6 to 'C:\AUX1\INDX01.DBF';
9> set newname for datafile 7 to 'C:\AUX1\TOOLS01.DBF';
10> set newname for datafile 8 to 'C:\AUX1\USERS01.DBF';
11> DUPLICATE TARGET DATABASE TO aux1
12> LOGFILE
13> GROUP 1 ('C:\aux1\redo01.log') size 100m reuse,
14> GROUP 2 ('C:\aux1\redo02.log') size 100m reuse;
15> } -
Database cloning using RMAN using Oracle 11i
Hi all,
I am getting error while connecting to clone database after making necessary changes in initDUP.ora file. Any buddy help me out to resolve this problem. I am doing clonning first time.
C:\Documents and Settings\sanjeevk>tnsping dup
TNS Ping Utility for 32-bit Windows: Version 11.1.0.6.0 - Production on 25-JUN-2010 11:57:40
Copyright (c) 1997, 2007, Oracle. All rights reserved.
Used parameter files:
C:\oracle\product\11.1.0\db_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = abc-117.abc
.com)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = dup)))
OK (50 msec)
C:\Documents and Settings\sanjeevk>set ORACLE_SID=dup
C:\Documents and Settings\sanjeevk>sqlplus "sys/****** as sysdba"
SQL*Plus: Release 11.1.0.6.0 - Production on Fri Jun 25 11:59:55 2010
Copyright (c) 1982, 2007, Oracle. All rights reserved.
ERROR:
ORA-12560: TNS:protocol adapter error
Enter user-name: / as sysdba
ERROR:
ORA-12560: TNS:protocol adapter error
Edited by: user13174327 on Jun 25, 2010 12:16 AMtry to conenct to clone database from target database as sys by sqlplus 'sys/sys@CLONE as sysdba'
make sure u have remote_login_password_file=exclusive in clone database pfile,,,,
reload the listener,,, with replacing hostname with the ip address of the machine.....
also take care of global_db_name ..
i will post a sample of listener file it may work 4 u..
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /oracle/orasoft/10.2.0.4)
(PROGRAM = extproc)
(SID_DESC =
(GLOBAL_DBNAME = rman_cat)
(ORACLE_HOME = /oracle/orasoft/10.2.0.4)
(SID_NAME = rman_cat)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = xxx.$$$.###.***)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
if u want proper SOP for duplicating database through RMAN .. post me ur mail id.I did that at last two days back.....
Regards,
Sisya.... -
Error while cloning database using RMAN
hi there,
Here is our setup:
OS: Solaris 5.9
Database:9.2.0.3
While cloning test database from our production database using RMAN, we happen to get the following error..
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 12/11/2007 15:28:59
RMAN-03015: error occurred in stored script Memory Script
RMAN-06026: some targets not found - aborting restore
RMAN-06100: no channel to restore a backup or copy of datafile 450
RMAN-06100: no channel to restore a backup or copy of datafile 449
give us a solution to rectify this problem.
Thanks,
Balu.Can you please post the RMAN restore script ?
where are the backups located -
Cloning a database using rman where source's dbid changed..
Any idea on how to .. cloning a database using rman where source's dbid changed..
if you need to change dbid of target then use DUPLICATE command, see the below links.
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmdupdb.htm#i1008888
http://www.oracle-base.com/articles/9i/DuplicateDatabaseUsingRMAN9i.php -
Cloning DB using RMAN Backup in a single system
Hi,
I want to clone my database using RMAN backup in the same system only. Please let me know the suitable document for that in both windows and linux.
Thanks in advance
Mahihi
find for both platforms linux and windows
http://www.dizwell.com/prod/node/9
http://www.pgts.com.au/pgtsj/pgtsj0211b.html
Regards
Vignesh Bala
Message was edited by:
Vignesh Bala -
Cold backup downtime using RMAN
Over the weekend I performed a cold RMAN backup on a 3.6 TB
database. Because a lot of the database was backed up with
transportable tablespaces, the net amount being backed up was
approximately 365 Gb. I took down the database at 11:00 and the
script finished at 4am, but in reviewing the logs, the database
actually appears to have been opened at 2am.
I assumed that the database would be down the entirety of the
backup. Can anyone help me understand why the database was
opened so long before the RMAN command completed? Was the
backup adversely affected in any way by a user obtaining access
prior to the RMAN process completing.
Any information greatly appreciated.unfortunately i think you misunderstood the original question. i took the database down to do the cold backup. in order to use rman, you have to startup nomount the instance.
the script run was:
#!/usr/bin/ksh
rman msglog '/data2/oracle2/local/log/rman_lvl0.log' <<EOF
@connect.rman
run {
backup incremental level 0 tag full_bkup0 database diskratio=0;
alter database open;
exit;
EOF
exit
the "alter database open" tells RMAN to open the database once the backup is completed. i had a process running that checked each 10 seconds to see if the PID for the RMAN process was still running. The process itself appears to have run for an additional 2 hours after the database was opened.
there is nothing on the system to suggest that the database was opened by anything other than RMAN. was the database opened prematurely? was the additional time spent in the RMAN script doing the sync in the database? did the usage by the user prior to RMAN completing invalidate the backup? (so far the cloning is still running without error). -
Database refresh without using RMAN duplicate
Hi All,
I am planning to refresh my test instance to a PIT using RMAN backups from PROD. I would like to know the process without connecting to PROD database and without using RMAN duplicate command.
Thanks.imran khan wrote:
Can you please show the demo first then we will discuss on it more.. what if the folk wants to refresh it ten times then we have to change the database name ten times using NID?
>Can you please show the demo first then we will discuss on it more.. what if the folk wants to refresh it ten times then we have to change the database name ten times using NID?
1) You use nid only to change the dbid.
2) I have done this type of cloning much more than 50 times.
3) As Iordan Iotzov pointed out, in 11gR2 you can run DUPLICATE database without being connected to the PROD
Here is a sample code of how to do it assuming both file system are the same:
# -- RMAN Restore to another server
rman <<EOF2
CONNECT TARGET /;
STARTUP NOMOUNT
SET DBID 987654321;
CONNECT CATALOG rman/rman@rcvcat
RUN {
SET UNTIL SEQUENCE=5678 THREAD=1;
ALLOCATE CHANNEL ch0 DEVICE TYPE DISK;
RESTORE CONTROLFILE;
ALTER DATABASE MOUNT;
RUN
SET UNTIL SEQUENCE=5678 THREAD=1;
ALLOCATE CHANNEL ch0 DEVICE TYPE DISK;
ALLOCATE CHANNEL ch1 DEVICE TYPE DISK;
ALLOCATE CHANNEL ch2 DEVICE TYPE DISK;
ALLOCATE CHANNEL ch3 DEVICE TYPE DISK;
RESTORE DATABASE;
RECOVER DATABASE;
EXIT;
EOF2:p -
Hi all,
cloning the database using rman.
i configure everything and finally executed
RMAN> duplicate target database to 'clone';
It have executed. but because of some problem with naming convention of directories it is cancelled.
I resoleved that and connected to target database
RMAN>connect target sys/oracle@sales;
and connected to auxiliary
RMAN> connect target sys/oracle@clone;
but it is connecting to sales instance only.
so when i executed
RMAN>duplicate target database to 'clone'
it is saying database name mismathes, auxiliary instance has sales, command specifies clone.
How can i resolve it. thank you!RMAN> connect target sys/oracle@clone;the clone tns service is for auxiliary, then why you mentioned target again?
It should as below
rman target sys/oracle@sales auxiliary sys/oracle@clone;(or)
from auxiliary server
$ rman target sys/oracle@sales auxiliary /
RMAN> duplicate target database to 'clone';Always run duplicate from auxiliary/clone server, to avoid much pressure on target/primary.
Edited by: CKPT on Dec 12, 2011 1:51 PM -
Backup procedure using RMAN for 11i Instance
Hi,
we have 11.5.10.2 instance
Node 1 = Application Tier ( 11.5.10.2)
Node 2 = DB Tier ( 9.2.0.7)
as of now, we are taking daily cold backup of both instances.
we want to implement RMAN online backup for DB and take cold backup every week end only.
so, what are the best procedures for implementing RMAN for 11i Database.
Please share your experience, if you have anybody implemented?
which one you prefer in RMAN backup ( backupsets or copy option or backupsets with compressed option) interms of performance.. our db size is 60 GB only.
we apply apps tier patches very rarely . so we want to take RMAN online backup for DB daily and take cold backup for entire apps and db in the week ends.Hi,
This time, i am going to implement for Oracle 11i Database. thats why, i need you guys advice regarding 11i Database.Well, the same is applicable to 11i/R12 databases. You just need to configure RMAN the same way you configure it on any standalone database.
If you have implemented any where RMAN, can you share, how you are taking RMAN backup? I can share the scripts we use for backup using RMAN. If you are interested, let me know and I shall send it by email.
if we want to clone, are you cloning the TEST instance with RMAN backup or using cold backup.We use both, depends on the time frame of the cloning task and whether it is possible to use cold backup for cloning or not.
Please have a look at the following notes, it should be helpful.
Note: 230672.1 - Cloning Oracle Applications Release 11i with Rapid Clone
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=230672.1
Note: 760772.1 - Cloning Oracle Application 11i /R12 with Rapid Clone - Database (9i/10g/11g) Using Hot Backup on Open Database
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=760772.1
Note: 362473.1 - Cloning E-Business Suite Using Hot Backup for Minimal Downtime of Source Environment
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=362473.1
Regards,
Hussein -
Using RMAN for creating a Dataguard Standby db.
Hello,
I have two 11.2.0.1.0 oracle instances running on two cloned Red Hat Enterprise Linux (rhel98 and rhel99). Linux version:
Linux rhel99 2.6.32-100.34.1.el6uek.x86_64 #1 SMP Wed May 25 17:46:45 EDT 2011 x86_64 x86_64 x86_64 GNU/LinuxI am trying to perform a "duplicate target database for standby" as part of the list of steps to get a Physical Standby located at the rhel99 server with DB_UNIQUE_NAME ORCL99. But I am missing something because it keeps failing with this error:
RMAN-05556: not all datafiles have backups that can be recovered to SCN 2818790
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 5 found to restore
RMAN-06023: no backup or copy of datafile 1 found to restoreI double checked the directory structure on primary (rhel98) and standby (rhel99), and it's the same. As control file is restored during the duplicate process I cannot perform the catalog start with, so the backups were placed on the same locations at rhel98 and 99.
According to that error message it is not finding any of the datafile backups.
[oracle@rhel98 ~]$ rman target /
Recovery Manager: Release 11.2.0.1.0 - Production on Wed May 29 01:36:06 2013
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to target database: ORCL98 (DBID=2386038834)
RMAN> connect auxiliary sys/*****@ORCL99
connected to auxiliary database: ORCL98 (not mounted)
RMAN> run
2> {
3> set until sequence=6 thread=1;
4> duplicate target database for standby
5> dorecover;
6> }
executing command: SET until clause
Starting Duplicate Db at 29-MAY-13
using target database control file instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=20 device type=DISK
contents of Memory Script:
set until scn 2818790;
restore clone standby controlfile;
executing Memory Script
executing command: SET until clause
Starting restore at 29-MAY-13
using channel ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: restoring control file
channel ORA_AUX_DISK_1: reading from backup piece /oracle/app/oracle/rman_bkp/orcl/0aoa2pd2_1_1
channel ORA_AUX_DISK_1: piece handle=/oracle/app/oracle/rman_bkp/orcl/0aoa2pd2_1_1 tag=TAG20130520T022122
channel ORA_AUX_DISK_1: restored backup piece 1
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:03
output file name=/oracle/app/oracle/oradata/standby/control01.ctl
Finished restore at 29-MAY-13
contents of Memory Script:
sql clone 'alter database mount standby database';
executing Memory Script
sql statement: alter database mount standby database
contents of Memory Script:
set until scn 2818790;
set newname for tempfile 1 to
"/oracle/app/oracle/oradata/standby/temp01.dbf";
switch clone tempfile all;
set newname for datafile 1 to
"/oracle/app/oracle/oradata/standby/system01.dbf";
set newname for datafile 2 to
"/oracle/app/oracle/oradata/standby/sysaux01.dbf";
set newname for datafile 3 to
"/oracle/app/oracle/oradata/standby/undotbs01.dbf";
set newname for datafile 4 to
"/oracle/app/oracle/oradata/standby/users01.dbf";
set newname for datafile 5 to
"/oracle/app/oracle/oradata/standby/example01.dbf";
set newname for datafile 6 to
"/oracle/app/oracle/oradata/standby/ws_app_data01.dbf";
set newname for datafile 7 to
"/oracle/app/oracle/oradata/standby/ws_app_idx01.dbf";
restore
clone database
executing Memory Script
executing command: SET until clause
executing command: SET NEWNAME
renamed tempfile 1 to /oracle/app/oracle/oradata/standby/temp01.dbf in control file
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting restore at 29-MAY-13
using channel ORA_AUX_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 05/29/2013 01:40:33
RMAN-05556: not all datafiles have backups that can be recovered to SCN 2818790
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 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>And the backup pieces are located at (where oracle has rw privs and also owns the dirs):
[oracle@rhel98 orcl]$ ls -ldhtr /oracle/app/oracle/rman_bkp/orcl/
drwxr-xr-x. 2 oracle oinstall 4.0K May 29 01:16 /oracle/app/oracle/rman_bkp/orcl/
[oracle@rhel99 orcl]$ ls -ldhtr /oracle/app/oracle/rman_bkp/orcl/
drwxr-xr-x. 2 oracle oinstall 4.0K May 29 01:57 /oracle/app/oracle/rman_bkp/orcl/Backup was taken using RMAN, by executing a "backup database plus archivelogs" and it was completed with no errors. As you can see backup were taken yesterday and are available.
[oracle@rhel98 ~]$ rman target /
Recovery Manager: Release 11.2.0.1.0 - Production on Wed May 29 03:20:54 2013
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to target database: ORCL98 (DBID=2386038834)
RMAN> list backup summary;
using target database control file instead of recovery catalog
List of Backups
===============
Key TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
2 B F A DISK 20-MAY-13 1 1 NO TAG20130520T022122
3 B F A DISK 21-MAY-13 1 1 NO TAG20130521T025112
4 B A A DISK 29-MAY-13 1 1 NO TAG20130529T010612
5 B F A DISK 29-MAY-13 1 1 NO TAG20130529T010902
6 B F A DISK 29-MAY-13 1 1 NO TAG20130529T010902
7 B A A DISK 29-MAY-13 1 1 NO TAG20130529T011634
RMAN> list backup completed after '29-MAY-13';
List of Backup Sets
===================
BS Key Size Device Type Elapsed Time Completion Time
4 669.15M DISK 00:02:37 29-MAY-13
BP Key: 4 Status: AVAILABLE Compressed: NO Tag: TAG20130529T010612
Piece Name: /oracle/app/oracle/rman_bkp/orcl/ORCL98_DB_0coaqcc4_12_1
List of Archived Logs in backup set 4
Thrd Seq Low SCN Low Time Next SCN Next Time
1 1 2785395 19-MAY-13 2800632 19-MAY-13
1 2 2800632 19-MAY-13 2814507 20-MAY-13
1 3 2814507 20-MAY-13 2817219 20-MAY-13
1 4 2817219 20-MAY-13 2817222 20-MAY-13
1 5 2817222 20-MAY-13 2818790 20-MAY-13
1 6 2818790 20-MAY-13 2818794 20-MAY-13
1 7 2818794 20-MAY-13 2853065 20-MAY-13
1 8 2853065 20-MAY-13 2885773 25-MAY-13
1 9 2885773 25-MAY-13 2903820 25-MAY-13
1 10 2903820 25-MAY-13 2925244 25-MAY-13
1 11 2925244 25-MAY-13 2934284 25-MAY-13
1 12 2934284 25-MAY-13 2935793 25-MAY-13
1 13 2935793 25-MAY-13 2937653 25-MAY-13
1 14 2937653 25-MAY-13 2939617 25-MAY-13
1 15 2939617 25-MAY-13 2960715 25-MAY-13
1 16 2960715 25-MAY-13 2975590 26-MAY-13
1 17 2975590 26-MAY-13 3013551 27-MAY-13
1 18 3013551 27-MAY-13 3029786 28-MAY-13
1 19 3029786 28-MAY-13 3050776 28-MAY-13
1 20 3050776 28-MAY-13 3088118 28-MAY-13
1 21 3088118 28-MAY-13 3099950 29-MAY-13
BS Key Type LV Size Device Type Elapsed Time Completion Time
5 Full 1.09G DISK 00:06:53 29-MAY-13
BP Key: 5 Status: AVAILABLE Compressed: NO Tag: TAG20130529T010902
Piece Name: /oracle/app/oracle/rman_bkp/orcl/ORCL98_DB_0doaqche_13_1
List of Datafiles in backup set 5
File LV Type Ckp SCN Ckp Time Name
1 Full 3100062 29-MAY-13 /oracle/app/oracle/oradata/orcl/system01.dbf
2 Full 3100062 29-MAY-13 /oracle/app/oracle/oradata/orcl/sysaux01.dbf
3 Full 3100062 29-MAY-13 /oracle/app/oracle/oradata/orcl/undotbs01.dbf
4 Full 3100062 29-MAY-13 /oracle/app/oracle/oradata/orcl/users01.dbf
5 Full 3100062 29-MAY-13 /oracle/app/oracle/oradata/orcl/example01.dbf
6 Full 3100062 29-MAY-13 /oracle/app/oracle/oradata/orcl/ws_app_data01.dbf
7 Full 3100062 29-MAY-13 /oracle/app/oracle/oradata/orcl/ws_app_idx01.dbf
BS Key Type LV Size Device Type Elapsed Time Completion Time
6 Full 9.36M DISK 00:00:09 29-MAY-13
BP Key: 6 Status: AVAILABLE Compressed: NO Tag: TAG20130529T010902
Piece Name: /oracle/app/oracle/rman_bkp/orcl/ORCL98_DB_0eoaqcue_14_1
SPFILE Included: Modification time: 29-MAY-13
SPFILE db_unique_name: ORCL98
Control File Included: Ckp SCN: 3101140 Ckp time: 29-MAY-13
BS Key Size Device Type Elapsed Time Completion Time
7 23.06M DISK 00:00:11 29-MAY-13
BP Key: 7 Status: AVAILABLE Compressed: NO Tag: TAG20130529T011634
Piece Name: /oracle/app/oracle/rman_bkp/orcl/ORCL98_DB_0foaqcvi_15_1
List of Archived Logs in backup set 7
Thrd Seq Low SCN Low Time Next SCN Next Time
1 22 3099950 29-MAY-13 3101157 29-MAY-13
RMAN>db_recovery_file_dest is the same for both ORCL98 and ORCL99:
*.db_recovery_file_dest='/oracle/app/oracle/flash_recovery_area'
*.db_recovery_file_dest_size=4070572032If needed I can upload the complete initORCL98.ora and initORCL99.ora files.
Any suggestion/comments?
Thanks in advance.
Edited by: martin.morono on May 29, 2013 8:56 PMThanks Hemant but the issue is the same with sequence 6 or 22. I posted the RMAN log from an old duplicate I ran yesterday using sequence 6, but as you can see below the error is not changing with setting "until sequence 22"
Hemant K Chitale wrote:
Your database datafile backups are as of Checkpoint SCN 3100062 which is higher than the archivelogs (and certainly higher than SEQ#6).
Possibly SEQUENCE#22 will cover the database checkpoint SCN. Therefore, the minimum UNTIL SEQUENCE would be 23 or higher.
Hemant K Chitale
[oracle@rhel98 ~]$ rman target /
Recovery Manager: Release 11.2.0.1.0 - Production on Wed May 29 02:37:51 2013
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to target database: ORCL98 (DBID=2386038834)
RMAN> connect auxiliary sys/manager@ORCL99
connected to auxiliary database: ORCL98 (not mounted)
RMAN> run
2> {
3> set until sequence=22 thread=1;
4> duplicate target database for standby
5> backup location '/oracle/app/oracle/rman_bkp/orcl/'
6> dorecover;
7> }
executing command: SET until clause
Starting Duplicate Db at 29-MAY-13
using target database control file instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=20 device type=DISK
contents of Memory Script:
set until scn 3099950;
restore clone standby controlfile;
executing Memory Script
executing command: SET until clause
Starting restore at 29-MAY-13
using channel ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: restoring control file
channel ORA_AUX_DISK_1: copied control file copy
input file name=/oracle/app/oracle/oradata/orcl/control_standby01.ctl
output file name=/oracle/app/oracle/oradata/standby/control01.ctl
Finished restore at 29-MAY-13
contents of Memory Script:
sql clone 'alter database mount standby database';
executing Memory Script
sql statement: alter database mount standby database
contents of Memory Script:
set until scn 3099950;
set newname for tempfile 1 to
"/oracle/app/oracle/oradata/standby/temp01.dbf";
switch clone tempfile all;
set newname for datafile 1 to
"/oracle/app/oracle/oradata/standby/system01.dbf";
set newname for datafile 2 to
"/oracle/app/oracle/oradata/standby/sysaux01.dbf";
set newname for datafile 3 to
"/oracle/app/oracle/oradata/standby/undotbs01.dbf";
set newname for datafile 4 to
"/oracle/app/oracle/oradata/standby/users01.dbf";
set newname for datafile 5 to
"/oracle/app/oracle/oradata/standby/example01.dbf";
set newname for datafile 6 to
"/oracle/app/oracle/oradata/standby/ws_app_data01.dbf";
set newname for datafile 7 to
"/oracle/app/oracle/oradata/standby/ws_app_idx01.dbf";
restore
clone database
executing Memory Script
executing command: SET until clause
executing command: SET NEWNAME
renamed tempfile 1 to /oracle/app/oracle/oradata/standby/temp01.dbf in control file
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting restore at 29-MAY-13
using channel ORA_AUX_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 05/29/2013 02:40:00
RMAN-05556: not all datafiles have backups that can be recovered to SCN 3099950
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 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 just in case, the initORCL.ora files:
initORCL98.ora
orcl.__db_cache_size=150994944
ORCL98.__db_cache_size=209715200
orcl.__java_pool_size=4194304
ORCL98.__java_pool_size=4194304
orcl.__large_pool_size=4194304
ORCL98.__large_pool_size=4194304
orcl.__oracle_base='/oracle/app/oracle'#ORACLE_BASE set from environment
ORCL98.__oracle_base='/oracle/app/oracle','/oracle/app/oracle'#ORACLE_BASE set from environment
orcl.__pga_aggregate_target=226492416
ORCL98.__pga_aggregate_target=226492416
orcl.__sga_target=402653184
ORCL98.__sga_target=402653184
orcl.__shared_io_pool_size=0
ORCL98.__shared_io_pool_size=0
orcl.__shared_pool_size=234881024
ORCL98.__shared_pool_size=176160768
orcl.__streams_pool_size=0
ORCL98.__streams_pool_size=0
*.audit_file_dest='/oracle/app/oracle/admin/orcl/adump'
*.audit_trail='DB'
*.compatible='11.2.0.0.0'
*.control_files='/oracle/app/oracle/oradata/orcl/control01.ctl','/oracle/app/oracle/flash_recovery_area/orcl/control02.ctl'
*.db_block_size=8192
*.db_domain=''
*.db_name='ORCL98'
*.db_recovery_file_dest='/oracle/app/oracle/flash_recovery_area'
*.db_recovery_file_dest_size=4070572032
*.diagnostic_dest='/oracle/app/oracle'
*.dispatchers='(protocol=TCP)'
*.fal_client='ORCL98'
*.fal_server='ORCL99'
*.job_queue_processes=1000
*.log_archive_config='DG_CONFIG=(ORCL98,ORCL99)'
*.log_archive_dest_1='location=/oracle/app/oracle/archivelog/orcl/ valid_for=(all_logfiles,all_roles) db_unique_name=ORCL98'
*.log_archive_dest_2='SERVICE=ORCL99 valid_for=(online_logfiles,primary_role) db_unique_name=ORCL99'
*.log_archive_dest_state_1='ENABLE'
*.log_archive_dest_state_2='DEFER'
*.log_archive_format='orcl_%R_%T_%S_%d.arc'
*.memory_target=629145600
*.open_cursors=300
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.sga_max_size=402653184
*.shared_servers=1
*.standby_file_management='AUTO'
*.undo_tablespace='UNDOTBS1'initORCL99.ora
orcl.__db_cache_size=150994944
orcl98.__db_cache_size=163577856
orcl99.__db_cache_size=243269632
ORCL99.__db_cache_size=218103808
orcl.__java_pool_size=4194304
orcl98.__java_pool_size=4194304
orcl99.__java_pool_size=4194304
ORCL99.__java_pool_size=4194304
orcl.__large_pool_size=4194304
orcl98.__large_pool_size=4194304
orcl99.__large_pool_size=4194304
ORCL99.__large_pool_size=4194304
orcl.__oracle_base='/oracle/app/oracle'#ORACLE_BASE set from environment
orcl98.__oracle_base='/oracle/app/oracle'#ORACLE_BASE set from environment
orcl99.__oracle_base='/oracle/app/oracle'#ORACLE_BASE set from environment
ORCL99.__oracle_base='/oracle/app/oracle'#ORACLE_BASE set from environment
orcl.__pga_aggregate_target=226492416
orcl98.__pga_aggregate_target=226492416
orcl99.__pga_aggregate_target=251658240
ORCL99.__pga_aggregate_target=251658240
orcl.__sga_target=402653184
orcl98.__sga_target=402653184
orcl99.__sga_target=377487360
ORCL99.__sga_target=377487360
orcl.__shared_io_pool_size=0
orcl98.__shared_io_pool_size=0
orcl99.__shared_io_pool_size=0
ORCL99.__shared_io_pool_size=0
orcl.__shared_pool_size=234881024
orcl98.__shared_pool_size=222298112
orcl99.__shared_pool_size=117440512
ORCL99.__shared_pool_size=142606336
orcl.__streams_pool_size=0a
orcl98.__streams_pool_size=0
orcl99.__streams_pool_size=0
ORCL99.__streams_pool_size=0
*.audit_file_dest='/oracle/app/oracle/admin/orcl/adump'
*.audit_trail='DB'
*.compatible='11.2.0.0.0'
*.control_files='/oracle/app/oracle/oradata/standby/control01.ctl'
#*.control_files='/oracle/app/oracle/oradata/orcl/control_standby01.ctl'
*.db_block_size=8192
*.db_domain=''
*.db_name='ORCL98'
*.db_unique_name='ORCL99'
*.db_recovery_file_dest='/oracle/app/oracle/flash_recovery_area'
*.db_recovery_file_dest_size=4070572032
*.diagnostic_dest='/oracle/app/oracle'
*.dispatchers='(protocol=TCP)'
*.job_queue_processes=1000
*.log_archive_dest_1='location=/oracle/app/oracle/archivelog/orcl'
*.log_archive_format='orcl_%R_%T_%S_%d.arc'
*.memory_target=629145600
*.open_cursors=300
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.sga_max_size=402653184
*.shared_servers=1
*.undo_tablespace='UNDOTBS1'
*.db_file_name_convert=('/oracle/app/oracle/oradata/orcl/','/oracle/app/oracle/oradata/standby/')
*.log_file_name_convert=('/oracle/app/oracle/oradata/orcl/','/oracle/app/oracle/oradata/standby/')Once again, many thanks for your prompt response.
Thanks in advance.
Martin -
R12 Rapidclone when using RMAN
Per note# 406982.1, the cloning steps are:
1. On the target server: run perl adcfgclone.pl dbTechStack
2. Create the target database control files manually using RMAN
3. Start the target database in open mode
etc..
Step 1 --- is the before I refresh the database from source...?user12004510 wrote:
I am restoring and recovering the source database using RMAN from the backup files (no catalog, using backup location).
RMAN duplicate open the database.
..then what?
..run adcfgclone.pl ..
...sorry the note on Rapidclone is not clear ..It is clear :)
1) Run "perl adcfgclone.pl dbTechStack" command
2) Duplicate the database using RMAN
and continue with the remaining steps.
Thanks,
Hussein
Maybe you are looking for
-
How do I get the vibration on my phone to work again?
A couple of days ago, the vibration on my phone just stopped working. I really don't know what could have caused it. I tried turning off the vibration and then turning it back on. I've tried shutting off my phone and then turning it back on. I tried
-
How to automate the adding of page numbers to bookmark and how to export bookmarks?
I am using Acrobat 9 Pro (not aware of any miningful reason to upgrade). Also, if someone knows about a decent application that is capable of combining PDFs into a PDF file of size larger than 2GB that would be highly appreciated. Acrobat can combine
-
Blank Form Printing at the beginning of Print job
I'm using Adobe Output Designer 5.5 and have made some changes to an existing form, recompiled the form, and performed a test presentment. The problem is that I have a blank page that prints at the beginning of the print job. How can I get rid of the
-
Why folder "Date Modified" doesn't reflect files and subfolders?
Hello. I have a folder with a "Date Modified" of March 2, 2010. When I open the folder, I see subfolders and files with more recent dates (...like April 7, 2010). Isn't the folder "Date Modified" supposed to change with the changing of contents held
-
We just took over a site that has the 350 Series Ap's in place. I need to get into the AP and change the username and password... or at least set it back to default without killing the whole config.