RMAN duplicate a 10g database
I need to update or copy the data from prod database of production to database development. It must be a process automated to run each week. The size of the prod database that you want to copy is 110 GB. RMAN will resume work for it rather than the export/transom for refresh data with data from prod dev.Please notify.
Yes, rman is the best way to do replication or cloning. by process of data duplicated
Tags: Database
Similar Questions
-
RMAN duplicate for standby database failed
Hello
I have try several times and for one reason, the auxialiary database finished just as it goes up the auxiliary instance.
Target database in double check to stanby with the following error. Primary and auxiliary bodies
Run 11.2.0.2 and are on the same platform of Solaris/patches. Everyone ran in that issue and solve it?
RMAN target / catalog user@catalog
startup nomount
Run {}
allocate auxiliary channel tp1 type sbt_tape;
allocate auxiliary channel tp2 type sbt_tape;
target database double standby nofilenamecheck;
}
:
:
:
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-00601: fatal error in the Recovery Manager
RMAN-03004: fatal error when executing command
RMAN-04006: auxiliary database error: ORA-01092: ORACLE terminated instance. Disconnection forced
RMAN-03002: failure of the command duplicate Db at the 15:28:52 01/02/2012
RMAN-05501: abandonment of duplicate target database
RMAN-03015: an error has occurred in the script stored memory Script
RMAN-03009: failure of switch control on channel clone_default at the 15:28:52 01/02/2012
ORA-03113: end of file on communication channelYou have error ORA-7445. I would ask allows you to check the MOS document that said Mseberg.
Also, do not have the DATA01 on the standby database if your wait is a database not ASM. But you must give the path in the db_file_name_convert and log_file_name_convert on the eve pfile/spfile database
1 question: is your watch set up database to be on ASM or not?
See document MOS * no not guide to create physical standby on Normal file system for ASM primary with RMAN [838828.1 ID] * If your principal is on ASM and intelligence on the file system
See document MOS * Step By Step Guide on creating physical standby with RMAN duplicate in ASM Filesystem for primary ASM [837102.1 ID] * If your primary and the day before are on ASM
Published by: srp on February 3, 2012 03:49
-
Create database pending active using the RMAN Duplicate command
Hello guys,.
I created the database before using the RMAN Duplicate command, but here I am stuck.
Please help me to overcome this >
RMAN > run {}
2 > allocate channel prmy1 type disk;
3 > allocate channel prmy2 type disk;
4 > allocate channel prmy3 type disk;
5 > allocate channel prmy4 type disk;
6 > allocate auxiliary channel stby type disk;
7 > duplicate target database for the eve of the active database
8 > spfile
9 > parameter_value_convert "orcl", "orclstd".
10 > set db_unique_name = "orclstd".
11 > set db_file_name_convert = "/ orcl / ', ' / orclstd / '.
12 > set log_file_name_convert = "/ orcl / ', ' / orclstd / '.
"13 > set control_files="D:\app\employee3\oradata\ORCLSTD\control01.ctl ', 'D:\app\employee3\flash_recovery_area\ORCLSTD\control02.ctl '.
14 > set log_archive_max_processes = '5'
15 > set fal_client = "orclstd."
16 > set fal_server = "orcl".
17 > set diagnostic_dest =: \app\employee3'
18 > set db_recovery_file_dest = a: \app\employee3\flash_recovery_area'
19 > set standby_file_management = 'AUTO '.
"20 > set log_archive_config ='dg_config = (orcl, orclstd)"
21 > set log_archive_dest_2 = 'service = orcl ASYNC valid_for = (ONLINE_LOGFILE, PRIMARY_ROLE) db_unique_name = orclstd';
{22 >}
allocated channel: prmy1
channel prmy1: SID = 70 type device = DISK
allocated channel: prmy2
channel prmy2: SID = 135 type device = DISK
allocated channel: prmy3
channel prmy3: SID = 191 type device = DISK
allocated channel: prmy4
channel prmy4: SID = 7 type of device = DISK
allocated canal: stby
channel stby: SID = 129 type device = DISK
From 7 November 12 Db double
content of Script memory:
{
backup that copy reuse
TargetFile "E:\app\RAJKUMAR\product\11.2.0\dbhome_1\DATABASE\PWDorcl.ORA" auxiliary format
"D:\app\employee3\product\11gr2\DATABASE\PWDorclstd.ORA" targetfile
' E:\APP\RAJKUMAR\PRODUCT\11.2.0\DBHOME_1\DATABASE\SPFILEORCL. ORA' auxiliary format
' D:\APP\EMPLOYEE3\PRODUCT\11GR2\DATABASE\SPFILEORCLSTD. ORA';
clone of SQL ' alter system set spfile = "D:\APP\EMPLOYEE3\PRODUCT\11GR2\DATABASE\SPFILEORCLSTD." ORA "«;»
}
execution of Script memory
From backup 7 November 12
Backup finished in 7 November 12
SQL statement: alter system set spfile = "D:\APP\EMPLOYEE3\PRODUCT\11GR2\DATABASE\SPFILEORCLSTD. ORA "
content of Script memory:
{
clone of SQL 'alter system set audit_file_dest =
"E:\app\RAJKUMAR\admin\orclstd\adump" comment =
' ' scope = spfile;
clone of SQL 'alter system set dispatchers =
''(Protocol=TCP) (SERVICE = orclstdXDB) "comment =
' ' scope = spfile;
clone of SQL 'alter system set db_unique_name =
"Orclstd" comment =
' ' scope = spfile;
clone of SQL 'alter system set db_file_name_convert =
"/orcl/", "/orclstd/" comment is
' ' scope = spfile;
clone of SQL 'alter system set log_file_name_convert =
"/orcl/", "/orclstd/" comment is
' ' scope = spfile;
clone of SQL 'alter system set control_files =
"D:\app\employee3\oradata\ORCLSTD\control01.ctl", "D:\app\employee3\flash_recovery_area\ORCLSTD\control02.ctl" comment =
' ' scope = spfile;
clone of SQL 'alter system set log_archive_max_processes =
5 comment =
' ' scope = spfile;
clone of SQL 'alter system set fal_client =
"Orclstd" comment =
' ' scope = spfile;
clone of SQL 'alter system set fal_server =
"Orcl" comment =
' ' scope = spfile;
clone of SQL 'alter system set diagnostic_dest =
"D:\app\employee3" comment =
' ' scope = spfile;
clone of SQL 'alter system set db_recovery_file_dest =
"D:\app\employee3\flash_recovery_area" comment =
' ' scope = spfile;
clone of SQL 'alter system set standby_file_management =
Comment by "AUTO" =
' ' scope = spfile;
clone of SQL 'alter system set log_archive_config =
Comment by "dg_config" (orcl, orclstd) =. =
' ' scope = spfile;
clone of SQL 'alter system set log_archive_dest_2 =
"service = orcl ASYNC = (ONLINE_LOGFILE, PRIMARY_ROLE) db_unique_name = orclstd valid_for" comment =
' ' scope = spfile;
clone to stop immediately;
startup nomount clone;
}
execution of Script memory
SQL statement: alter system set audit_file_dest = comment "E:\app\RAJKUMAR\admin\orclstd\adump" = "' scope = spfile
SQL statement: alter system set dispatchers = ''(PROTOCOL=TCP) (SERVICE = orclstdXDB) "comment ="' scope = spfile
SQL statement: alter system set db_unique_name = comment "orclstd" = "' scope = spfile
SQL statement: alter system set db_file_name_convert = "/orcl/", "/orclstd/" comment = "' scope = spfile
SQL statement: alter system set log_file_name_convert = "/orcl/", "/orclstd/" comment = "' scope = spfile
SQL statement: alter system set control_files = "D:\app\employee3\oradata\ORCLSTD\control01.ctl", "D:\app\employee3\flash_recovery_area\ORCLSTD\control
02.CTL "comment ="' scope = spfile
SQL statement: alter system set log_archive_max_processes = 5 = comment "' scope = spfile
SQL statement: alter system set fal_client = comment "orclstd" = "' scope = spfile
SQL statement: alter system set fal_server = comment "orcl" = "' scope = spfile
SQL statement: alter system set diagnostic_dest = comment "D:\app\employee3" = "' scope = spfile
SQL statement: alter system set db_recovery_file_dest = comment "D:\app\employee3\flash_recovery_area" = "' scope = spfile
SQL statement: alter system set standby_file_management = comment "AUTO" = "' scope = spfile
SQL statement: alter system set log_archive_config = "dg_config = (orcl, orclstd)" comment = "' scope = spfile
SQL statement: alter system set log_archive_dest_2 = "service = orcl ASYNC = (ONLINE_LOGFILE, PRIMARY_ROLE) db_unique_name = orclstd valid_for" comment = "'s
face = spfile
Instance Oracle to close
connected to the auxiliary database (not started)
Oracle instance started
Total System Global Area 1071333376 bytes
Bytes of size 1375792 fixed
528482768 variable size bytes
Buffers data 536870912 bytes
Redo buffers 4603904 bytes
allocated canal: stby
channel stby: SID = 63 type device = DISK
content of Script memory:
{
backup current controlfile to standby auxiliary copy format ' D:\APP\EMPLOYEE3\ORADATA\ORCLSTD\CONTROL01. CTL';
Restore clone controlfile to ' D:\APP\EMPLOYEE3\FLASH_RECOVERY_AREA\ORCLSTD\CONTROL02. CTL' of
' D:\APP\EMPLOYEE3\ORADATA\ORCLSTD\CONTROL01. CTL';
}
execution of Script memory
From backup 7 November 12
channel prmy1: from data file copy
copy of the control file ensures
name=E:\APP\RAJKUMAR\PRODUCT\11.2.0\DBHOME_1\DATABASE\SNCFORCL output file. ORA tag = RECID = 1 STAMP = 798743550 TAG20121107T171229
channel prmy1: datafile copy complete, duration: 00:00:03
Backup finished in 7 November 12
From restoration to November 7, 12
channel stby: copy of copy of control files
Restoration finished November 7, 12
content of Script memory:
{
SQL clone 'alter database sleep mounting database';
}
execution of Script memory
SQL statement: alter database mount rescue
output channel: prmy1
output channel: prmy2
output channel: prmy3
output channel: prmy4
exit canal: stby
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of the command duplicate Db at 07/11/2012 17:12:40
RMAN-05501: abandonment of duplicate target database
RMAN-05001: E:\APP\RAJKUMAR\ORADATA\ORCL\MIGRATION_DATA01 auxiliary file name. DBF conflict with a file used by the target database
RMAN-05001: E:\APP\RAJKUMAR\ORADATA\ORCL\DEMO_INDX01 auxiliary file name. DBF conflict with a file used by the target database
RMAN-05001: E:\APP\RAJKUMAR\ORADATA\ORCL\DEMO_DATA01 auxiliary file name. DBF conflict with a file used by the target database
RMAN-05001: E:\APP\RAJKUMAR\ORADATA\ORCL\USERS01 auxiliary file name. DBF conflict with a file used by the target database
RMAN-05001: E:\APP\RAJKUMAR\ORADATA\ORCL\UNDOTBS01 auxiliary file name. DBF conflict with a file used by the target database
RMAN-05001: E:\APP\RAJKUMAR\ORADATA\ORCL\SYSAUX01 auxiliary file name. DBF conflict with a file used by the target database
RMAN-05001: E:\APP\RAJKUMAR\ORADATA\ORCL\SYSTEM01 auxiliary file name. DBF conflict with a file used by the target database
RMAN >
Thank you
Reverchonuser9192565 wrote:
11> set db_file_name_convert='/orcl/','/orclstd/' 12> set log_file_name_convert='/orcl/','/orclstd/'
RMAN-05001: auxiliary file name E:\APP\RAJKUMAR\ORADATA\ORCL\MIGRATION_DATA01.DBF conflicts with a file used by the target database RMAN-05001: auxiliary file name E:\APP\RAJKUMAR\ORADATA\ORCL\DEMO_INDX01.DBF conflicts with a file used by the target database RMAN-05001: auxiliary file name E:\APP\RAJKUMAR\ORADATA\ORCL\DEMO_DATA01.DBF conflicts with a file used by the target database RMAN-05001: auxiliary file name E:\APP\RAJKUMAR\ORADATA\ORCL\USERS01.DBF conflicts with a file used by the target database RMAN-05001: auxiliary file name E:\APP\RAJKUMAR\ORADATA\ORCL\UNDOTBS01.DBF conflicts with a file used by the target database RMAN-05001: auxiliary file name E:\APP\RAJKUMAR\ORADATA\ORCL\SYSAUX01.DBF conflicts with a file used by the target database RMAN-05001: auxiliary file name E:\APP\RAJKUMAR\ORADATA\ORCL\SYSTEM01.DBF conflicts with a file used by the target database
The strings that you entered in your file name conversion settings does not match where actually your data files. If the string does not match the names of files, there is no names of files to convert. Because you're on windows, how about something like this?
set db_file_name_convert='\ORCL\','\ORCLSTD\' set log_file_name_convert='\ORCL\','\ORCLSTD\'
Hope that helps...
Patrik
-
RMAN duplicate database RAC w/ASM to stand alone without ASM fails
Trying to duplicate database in order to upgrade to 11.2 and migrate from Windows to Solaris with minimal downtime, using GoldenGate. The source database is 11.1.0.7 on Windows 2003 x 64 a 2 RAC node. The auxiliary database is 11.1.0.7 on a single Windows 2003 x 64 server. The steps to reach where the error has occurred are:
1 created auxiliary instance on remote node. creating oradim and the listener.
2 copied password for the remote node target file and put it in the directory %ORACLE_HOME%\database and % ORACLE_HOME%\dbs.
3 created PFILE in %ORACLE_HOME%\database and copied to %ORACLE_HOME%\dbs just in case.
db_name = "UTILAX".
instance_name = UTILAX
diagnostic_dest = a: \oracle\admin\utilax'
db_file_name_convert =('+Data/util','D:\oracle\oradata\utilax')
log_file_name_convert =('+Data/util','D:\oracle\log\utilax')
SGA_TARGET = 5g
control_files=D:\oracle\oradata\utilax\control01.dbf
compatible = '11.1.0'
4 Startup nomount performed.
5. backup Ran full on the head node to the D drive and outside the DSO.
rman target % = / catalog=rman/password@RMAN
RMAN > run {}
allocate channel d1 type disk;
database backup in format "D:\backups\df_t%t_s%s_p%p".
SQL 'alter system archive log current';
backup format 'D:\backups\al_t%t_s%s_p%p' archivelog all;
output channel d1;
}
6 copied only the manual backup (22 GB) to the remote host files in the same directory on the D drive. D:\backups same folder on both servers.
7. connected with rman, target, catalog and auxiliary databases. A run the rman command to duplicate the database on the target instance.
DUPLICATE THE TARGET DATABASE TO 'UTILAX' IN THE CURRENT DATABASE.
Errors received
RMAN-03009: failure of the backup on the channel ORA_DISK_1 command
ORA-17628: error Oracle 19505 returned by remote Oracle Server
8. looked in the auxiliary database alerts log. Errors found:
ORA-19505: impossible to identify the file 'D:\ORACLE\ORADATA\UTILAX\DATAFILE\SYSTEM.327.716381457 '.
ORA-27040: create file error, cannot create the file
04002 - OSD: could not open the file
S/O-error: (OS 3) the system cannot find the path specified
9 creates all directories to the path and try again. Same mistakes.
Must miss one or two steps but document metalink 382269.1 followed as closely as possible. Sorry for the lack of screenshots but databases are private networks. Someone who did that regularly offer any help?
Thank youSince you have already made the backup and copied to the auxiliary server, why use again 'data base active'
DUPLICATE THE TARGET DATABASE TO 'UTILAX' IN THE CURRENT DATABASE.
Just try to DUPLICATE the DATABASE to 'UTILAX' TARGET nofilenamecheck;
This would work out.
or if you want to continue to make use of the active database functionality, then
DUPLICATE TARGETS DATABASE to the 'UTILAX' of the active database nofilenamecheck.
Published by: srp on December 28, 2011 12:24 AM
-
RMAN DUPLICATE DATABASE RESULT IN A RE - ORG
Database Version 10.2.0.4
When I perform a duplicate database RMAN is the new database completely reorganized? The new database can be any fragmentation or water marks high if the source database has done?
Thank youThe answer to your question is no duplicate RMAN does not cause a re - org, RMAN is a block of files of database level backup, RMAN duplicate is a double level of a data block. Therefore, duplicate RMAN is fundamentally a restoration of the source database, because it is in another location and an instance of the database and the database name change.
-
RMAN Duplicate + incremental backups + upgrade to 12 c
Hello
IM thinking the best way migrationg and upgrading database 11.2.0.4 to 12 c with reasonable downtime.
reasonable downtime: 30 Minutes
Source: Solaris (Intel)
11.2.0.4
DB Dimensions: 800G
Target: Linux
12 c
new name of the comic.
IM thinking to use RMAN Duplicate with option NoOpen(1) (RMAN catalog is in use). Double will be for sure several of 30 minutes then think if I can combine two copies for the recovery of the archivelogs generated during replication to minimize downtime. But is it possible when I change DB_NAME?
Thank you.
Hello
I guess, you may need to check once this document. 412484.1
I'm really not sure about your source and target system
If your source is the 'Platform_id' 20, you can enjoy all your needs in 30 minutes or less. If this isn't the case, it is difficult.
If your platform_id is 20, you can then create physical standby for your 11.2.0.4 and get the same thing, once the database is recovered, you can convert this logic of sleep (note: your database must be validated for the logical expectation), if you convert your logical database in standby mode, then you can change the name of your database to the new name also you can upgarde to 12 c.
After upgrade, you can still recover all changes to your primary. Once the logic ensures sync with primary then you can pass.
If your platform_id not 20, then
You can opt for Golden Gate...
Thank you
-
Hello
I get error rman-05520 while trying to replicate the database by using the active database method. You want to clone the dev to sandbox without catalog database using the current database. Target and auxiliary databases are connected, kept auxiliary in nomount pfile, then use command below, but get error below. Can anyone help on this.
Thank you
RMAN > current database of target for sandbox database duplicate nofilenamecheck.
From 30 November 15 Db double
using the control file of the target instead of recovery catalog database
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID = device type 1510 = DISK
allocated channel: ORA_AUX_DISK_2
channel ORA_AUX_DISK_2: SID = device type 1887 = DISK
allocated channel: ORA_AUX_DISK_3
channel ORA_AUX_DISK_3: SID = device type 2264 = DISK
allocated channel: ORA_AUX_DISK_4
channel ORA_AUX_DISK_4: SID = 2641 type device = DISK
allocated channel: ORA_AUX_DISK_5
channel ORA_AUX_DISK_5: SID = 3018 type device = DISK
allocated channel: ORA_AUX_DISK_6
channel ORA_AUX_DISK_6: SID = device type 3395 = DISK
allocated channel: ORA_AUX_DISK_7
channel ORA_AUX_DISK_7: SID = device type 3772 = DISK
allocated channel: ORA_AUX_DISK_8
channel ORA_AUX_DISK_8: SID = device type 4149 = DISK
allocated channel: ORA_AUX_DISK_9
channel ORA_AUX_DISK_9: SID = device type 4526 = DISK
allocated channel: ORA_AUX_DISK_10
channel ORA_AUX_DISK_10: SID = device type 4903 = DISK
allocated channel: ORA_AUX_DISK_11
channel ORA_AUX_DISK_11: SID = 5280 type device = DISK
allocated channel: ORA_AUX_DISK_12
channel ORA_AUX_DISK_12: SID = device type 5656 = DISK
allocated channel: ORA_AUX_DISK_13
channel ORA_AUX_DISK_13: SID = 3 type of device = DISK
allocated channel: ORA_AUX_DISK_14
channel ORA_AUX_DISK_14: SID = 379 type device = DISK
allocated channel: ORA_AUX_DISK_15
channel ORA_AUX_DISK_15: SID = 757 type device = DISK
allocated channel: ORA_AUX_DISK_16
channel ORA_AUX_DISK_16: SID = 1134 type device = DISK
content of Script memory:
{
clone of SQL "create spfile from memory";
}
execution of Script memory
SQL statement: create spfile memory
content of Script memory:
{
clone to stop immediately;
startup nomount clone;
}
execution of Script memory
Instance Oracle to close
connected to the auxiliary database (not started)
Oracle instance started
Total System Global Area 36344233984 bytes
Bytes of size 2227112 fixed
16911434840 variable size bytes
19327352832 of database buffers bytes
Redo buffers 103219200 bytes
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of the command duplicate Db at 30/11/2015-14:57:21
RMAN-05501: abandonment of duplicate target database
RMAN-05520: name of database incompatibilities, auxiliary instance a SANDBOX, command specified SANDBOX
Make sure remote_login_passwordfile = 'EXCLUSIVE '.
and pfile orapwd is sycn with primary
-
Hello
I'm in 11 GR 2 Enterprise edition (solaris 10), I would overlap with my current database (big) to a remote host. I start the process at 08:00. Need me perhaps several hours because the network, so when the end process, to 21:00, my new database will be consistent information from 08:00 to home base.
1-if this true?
2 be rollforward secondary database at 21:00 copy and apply the archived primary redo logs file? If Yes, at what time?
3 - If the primary database changes after 08:00, the changes are rejected at 21:00 in the secondary database?
I hope that I have explained clearly my doubts.
Thank you and best regards.
Francesco
The duplicate database is a copy of the target with a new DBID database. Therefore, when the double process has completed, you can not use the original database archivelogs to roll forward the database duplicate.
Double assets will use the target directly rather than depend on RMAN backup and restore database. In all cases, the duplicate database will open with resetlogs. The farthest that RMAN can go in the recovery of the duplicate database is the most recent log of redo archived from the source database.
http://docs.Oracle.com/CD/B28359_01/backup.111/b28270/rcmdupdb.htm
Perhaps to create a database of sleep rather than a duplicate database would be the best option in your scenario.
-
Duplicates in a database to host a host b/c
Hello
I need to move a single instance of database 11.2.0.4 (no ASM) on host A to RAC 11.2.0.4 (ASM) to host b and c.
I would use the active database copy, it is the right method?
My steps are:
- create spfile on host b
- Add the instance to the listener on host b
- use rman duplicate form database (the sid must be the same)
- convert to rac with dbca
These steps are correct?
I have some doubt in duplicate of active database using the same instance and the name of db.
Then this cause problems?
Thank you
It should work
-
RMAN duplicate - instance parameters
Hi all.
I want to update the test with the new backup of production environment in the oracle 10g database.
We have configured standby and its synchronization with prod. So we took the last backup of database backup and will use to update the test environment.
Prod is a 2 node rac and test is also a two node rac.
prod of different use asm disk group and asm disk group test different uses.
so moved after backup, backups to the test environment.
A backup of spfile test.
stop the test of two rac nodes after you change the setting "cluster_database = false" spfile parameter.
I am little confused on settings to remove and not be removed in pfile to start the auxiliary instance.
We can delete the settings associated with these parameters and rac also
cluster_database_instances = 2
* .cluster_database = TRUE
kindly let me know
What value can I give for the parameters from the location is different in the prod to test and how to order duplicate manage these setting to duplicate the database
control_files
db_create_file_dest =
db_create_online_log_dest_1
db_create_online_log_dest_2
and I'll use the database of target in doubles at < aux_db_name >
Concerning
Hello
I received responses from this link
Duplicating a database: Advanced Topics
Oracle offers link, to use 'db_create_file_dest' and 'db_create_online_log_dest_n' when duplicating a database that uses the OMF and not to use the following settings above
control_files, "DB_FILE_NAME_CONVERT and LOG_FILE_NAME_CONVERT"...
Thanks a ton :-)
Kind regards
Pradeep
-
DUPLICATE TAPE BACKUP DATABASE
HelloI wonder if someone can help me. My environment is Linux, and the Oracle version is 11.2.0.3.0. I'm trying to clone a database from one server to another by using a tape backup (no database). I implemented the appropriate TNS entries, so that the two systems can communicate. I created a password file and a PFILE in the destination server, and I started upward (NOMOUNT) of the instance.
Initially, I tried the operation from the destination server; I received the error message such as: RMAN-06100: no channel to restore a backup or a copy of the data file 11
Suspecting that the destination server have not may not be the level of appropriate access to the MLL, I tried the operation from the source server.
But I am getting: RMAN-06101: no channel to restore a backup or a copy of the control file
Source database: MM1
(Cloned) database of destination: MBA
RMAN script
------------------
target connection.
connection Assistant sys/***@MBARun {}
allocate channel 'dev_01' type 'sbt_tape '.
parms ' ENV = (OB2BARTYPE = SAP, MM1, OB2BARLIST = WYC_CENTRICA_wycvlsapx115_SAP_MM1_ON_Weekly = OB2APPNAME), SBT_LIBRARY = / opt/omni/lib/libob2oracle8_64bit.so ';
allocate channel 'dev_02' type 'sbt_tape '.
parms ' ENV = (OB2BARTYPE = SAP, MM1, OB2BARLIST = WYC_CENTRICA_wycvlsapx115_SAP_MM1_ON_Weekly = OB2APPNAME), SBT_LIBRARY = / opt/omni/lib/libob2oracle8_64bit.so ';
allocate channel 'dev_03' type 'sbt_tape '.
parms ' ENV = (OB2BARTYPE = SAP, MM1, OB2BARLIST = WYC_CENTRICA_wycvlsapx115_SAP_MM1_ON_Weekly = OB2APPNAME), SBT_LIBRARY = / opt/omni/lib/libob2oracle8_64bit.so ';
allocate channel 'dev_04' type 'sbt_tape '.
parms ' ENV = (OB2BARTYPE = SAP, MM1, OB2BARLIST = WYC_CENTRICA_wycvlsapx115_SAP_MM1_ON_Weekly = OB2APPNAME), SBT_LIBRARY = / opt/omni/lib/libob2oracle8_64bit.so ';
Disc CHANNEL AUXILIARY ALLOCATE c1 TYPE of AIRCRAFT;
up to the time "to_date('14-aug-2013:16:20','dd-mon-YYYY:hh24:mi')";
DUPLICATE THE MBA NOFILENAMECHECK TARGET DATABASE;
output channel c1;
release the string "dev_01";
release the string "dev_02";
release the string "dev_03";
release the string "dev_04";
}Journal:
------
Recovery Manager: release 11.2.0.3.0 - Production Fri Aug 15 11:27:24 2013
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
RMAN >
RMAN >
connected to target database: MM1 (DBID = 1713891644)RMAN >
connected to the auxiliary database: MBA (unassembled)RMAN >
RMAN > 2 > 3 > 4 > 5 > 6 > 7 > 8 > 9 > 10 > 11 > 12 > > > > > > 18 17 16 15 14 13 >
using the control file of the target instead of recovery catalog database
allocated channel: dev_01
channel dev_01: SID = 188 device type = SBT_TAPE
channel dev_01: A.06.20/PHSS_42081/PHSS_42082/DPSOL_00448/DPLNX_ Data Protectorallocated channel: dev_02
channel dev_02: SID = 17 device type = SBT_TAPE
channel dev_02: A.06.20/PHSS_42081/PHSS_42082/DPSOL_00448/DPLNX_ Data Protectorallocated channel: dev_03
channel dev_03: SID = 191 device type = SBT_TAPE
channel dev_03: A.06.20/PHSS_42081/PHSS_42082/DPSOL_00448/DPLNX_ Data Protectorallocated channel: dev_04
channel dev_04: SID = 31 device type = SBT_TAPE
channel dev_04: A.06.20/PHSS_42081/PHSS_42082/DPSOL_00448/DPLNX_ Data Protectorallocated channel: c1
channel c1: SID = 161 type device = DISKexecuting command: SET until clause
From duplicate Db 15 August 13
content of Script memory:
{
clone of SQL "create spfile from memory";
}
execution of Script memorySQL statement: create spfile memory
content of Script memory:
{
clone to stop immediately;
startup nomount clone;
}
execution of Script memoryInstance Oracle to close
connected to the auxiliary database (not started)
Oracle instance startedTotal System Global Area 6631034880 bytes
Bytes of size 2240744 fixed
2315259672 variable size bytes
Buffers data 4294967296 bytes
Redo buffers 18567168 bytes
allocated channel: c1
channel c1: SID = 11 type of device = DISKcontent of Script memory:
{
until the SNA 208772810.
clone of SQL 'alter system set = db_name
"MM1" comment =
' Modified by RMAN duplicate "scope = spfile;
clone of SQL 'alter system set db_unique_name =
"MBA" comment =
' Modified by RMAN duplicate "scope = spfile;
clone to stop immediately;
Start clone force nomount
Restore controlfile primary clone;
change the clone database mount;
}
execution of Script memoryexecuting command: SET until clause
SQL statement: change the system db_name set = comment "MM1" = "modified by RMAN duplicate" scope = spfile
SQL statement: alter system set db_unique_name = comment "MBA" = "modified by RMAN duplicate" scope = spfile
Instance Oracle to close
Oracle instance started
Total System Global Area 6631034880 bytes
Bytes of size 2240744 fixed
2315259672 variable size bytes
Buffers data 4294967296 bytes
Redo buffers 18567168 bytes
allocated channel: c1
channel c1: SID = 160 type device = DISKFrom restoration to August 15, 13
output channel: dev_01
output channel: dev_02
output channel: dev_03
output channel: dev_04
output channel: c1
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of Db in dual at 15/08/2013 11:28:44
RMAN-05501: abandonment of duplicate target database
RMAN-03015: an error has occurred in the script stored memory Script
RMAN-06026: some targets not found - abandonment of restoration
RMAN-06101: no channel to restore a backup or a copy of the control fileRMAN >
RMAN >Complete recovery manager.
I finally understood what was wrong with my approach. I had missed a bit in the literature: the definition of AUXILIARY channel should be the same as that used for the backup. Of course, RMAN normally does you not clear in its mystical error messages.
In addition, according to the document, it's a good idea to create a SPFILE in the auxiliary instance. I did it.
Therefore, in my case, the same channels as those used for backups on tape. So is the syntax I used successfully:
target connection.
connection Assistant sys/***@MBARun {}
allocate channel 'dev_01' type 'sbt_tape '.
parms ' ENV = (OB2BARTYPE = SAP, MM1, OB2BARLIST = WYC_CENTRICA_wycvlsapx115_SAP_MM1_ON_Weekly = OB2APPNAME), SBT_LIBRARY = / opt/omni/lib/libob2oracle8_64bit.so ';
allocate channel 'dev_02' type 'sbt_tape '.
parms ' ENV = (OB2BARTYPE = SAP, MM1, OB2BARLIST = WYC_CENTRICA_wycvlsapx115_SAP_MM1_ON_Weekly = OB2APPNAME), SBT_LIBRARY = / opt/omni/lib/libob2oracle8_64bit.so ';
allocate channel 'dev_03' type 'sbt_tape '.
parms ' ENV = (OB2BARTYPE = SAP, MM1, OB2BARLIST = WYC_CENTRICA_wycvlsapx115_SAP_MM1_ON_Weekly = OB2APPNAME), SBT_LIBRARY = / opt/omni/lib/libob2oracle8_64bit.so ';
allocate channel 'dev_04' type 'sbt_tape '.
parms ' ENV = (OB2BARTYPE = SAP, MM1, OB2BARLIST = WYC_CENTRICA_wycvlsapx115_SAP_MM1_ON_Weekly = OB2APPNAME), SBT_LIBRARY = / opt/omni/lib/libob2oracle8_64bit.so ';
ALLOCATE AUXILIARY CHANNEL aux1 DEVICE TYPE 'sbt_tape '.
parms ' ENV = (OB2BARTYPE = SAP, MM1, OB2BARLIST = WYC_CENTRICA_wycvlsapx115_SAP_MM1_ON_Weekly = OB2APPNAME), SBT_LIBRARY = / opt/omni/lib/libob2oracle8_64bit.so ';
up to the time "to_date('15-aug-2013:12:30:46','dd-mon-YYYY:hh24:mi:ss')";
DUPLICATE THE MBA NOFILENAMECHECK TARGET DATABASE;
output aux1 channel;
release the string "dev_01";
release the string "dev_02";
release the string "dev_03";
release the string "dev_04";
}To improve the programming of schedules, the next time I can increase the number of auxiliary channels. I need to know how many tape drives, I have at my disposal.
-
Hi all
I'm trying to clone the database with rman with on the same server with version 11 GR 2.
I use no catalog mode.
source instance 400 MB and large_pool_size haing is the target of 100 MB is also same.
but it is housed at the execution of scripts from memory only. don't move.
[oracle@localhost ~] $ rman auxiliary.
Recovery Manager: release 11.2.0.1.0 - Production on Fri Feb 22 17:59:52 2013
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to the auxiliary database: ORCL (unassembled)
RMAN > Connect target sys/oracle@orcl
connected to target database: ORCL (DBID = 1314445644)
RMAN > duplicate target database to "prod" nofilenamecheck.
From February 22, 13 Db double
using the control file of the target instead of recovery catalog database
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID = 10 type of device = DISK
content of Script memory:
{
clone of SQL "create spfile from memory";
}
execution of Script memory
SQL statement: create spfile memory
content of Script memory:
{
clone to stop immediately;
startup nomount clone;
}
execution of Script memory
Please suggest to solve this problem.
Thank youThis forum is the Oracle Forms Development Forum, please ask your question in the General database discussion forum.
Bravo!
Published by: Tony Garabedian on February 22, 2013 15:35
-
Let the RMAN to know the location of the backup during RMAN DUPLICATE item
RDBMS Version: 11.2.0.3
Platform: AIX 6.1
I spent a few discussions lately about the creation of standby DB by using the RMAN DUPLICATE method.
Taking an example from a thread by steve74 yesterday.
The commands below are executed after copying the elements of hot backup of the primary DB Backup on the standby server.
The auxiliary instance is just in NOMOUNT. Lets say I copied the primary DB Backup items to the--- Will be running the following DUPLICATE command from standby server export ORACLE_SID=orcldg SQL> startup nomount pfile='/u01/app/oracle/11.2/db_home1/dbs/initorcldg.ora' rman target sys/mypass@PRIMARY_TNS auxiliary / run { allocate channel C1 device type disk; allocate auxiliary channel C2 device type disk; duplicate target database for standby nofilenamecheck; }
following in the standby server location
I don't see all the above commands which allows to RMAN knows about this place where are stored the backup pieces. For regular DB cloning, we are cataloging of backup items using the CATALOG command. But, you need a control file to do cataloging. The auxiliary instance does still not have control file. So, how this work?/u04/backup/RMAN
Hello
simple. duplicate is a faster and simpler, method because you issue a command.
After configuration, you issue a command, and if the pfile/spfile is properly configured, RMAN takes care of ALL the necessary measures, even for ASM (assuming the switch of data file also). It restores the CF, he set up the db, it restores, it retrieves, it updates the CF with the correct names, it converts file names if necessary, open the DB ETC.
And, since only a single command is used, it is less prone to errors.
And allows you to save a lot of trouble.
Quite simply, you have a few details such as the location of the backuppieces.It works very well also for DEV env refreshes (with a few modifications on the pfile/spfile file).
BR,
jpinela.Published by: Pinela December 21, 2012 16:02
-
Configuring the listener pending side before running the RMAN DUPLICATE
Version: 11.2.0.3
Platfomrm: Solaris 10
We will create a DB physical standby for our primary database using RMAN Duplicate.
Our primary DB details
Names for standbyDB_NAME = ADPTGMS DB_UNIQUE_NAME = ADPTGMS
Question1.DB_NAME = ADPTGMS DB_UNIQUE_NAME = ADPTGMSDG
Next to the day before, before I run the duplicate RMAN, I need so that it starts the empty instance in NOMOUNT State. Right? Can I configure export ORACLE_SID DB_NAME or DB_UNIQUE_NAME?
Question2.
I understand that it is a precondition not to have the listener towards the top pending side make the RMAN Duplicate (otherwise how RMAN will connect to the dummy instance in the side standy)
Next to Eve, there is no DB turns again. But for the RMAN to connect to the Instance of a model, I configured and started a listener as shown below. Is this really?
$ cat listener.ora # listener.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora # Generated by Oracle configuration tools. LISTENER_DG = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.80.16.179)(PORT = 1524 )) (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2012)) ) ) $ $ $ $ lsnrctl start LISTENER_DG LSNRCTL for Solaris: Version 11.2.0.3.0 - Production on 20-DEC-2012 00:14:19 Copyright (c) 1991, 2011, Oracle. All rights reserved. Starting /u01/app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr: please wait... TNSLSNR for Solaris: Version 11.2.0.3.0 - Production System parameter file is /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora Log messages written to /u01/app/oracle/diag/tnslsnr/tigris179/listener_dg/alert/log.xml Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.80.16.179)(PORT=1524))) Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC2012))) Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=10.80.16.179)(PORT=1524))) STATUS of the LISTENER ------------------------ Alias LISTENER_DG Version TNSLSNR for Solaris: Version 11.2.0.3.0 - Production Start Date 20-DEC-2012 00:14:24 Uptime 0 days 0 hr. 0 min. 3 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora Listener Log File /u01/app/oracle/diag/tnslsnr/tigris179/listener_dg/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.80.16.179)(PORT=1524))) (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC2012))) The listener supports no services The command completed successfully
Hello
The link I gave in my previous post features a display of very good example:
Primary:
Pfile/Spfile name: initprim.ora/spfileprim.ora db_name=prim db_unique_name=prim
Standby time:
Pfile/Spfile name: initstnd.ora/spfilestnd.ora db_name=prim db_unique_name=stnd
In your case:
While adding a static entry to the listener of the day before, SID_NAME should be the DB_UNIQUE_NAME of the database pending. Also the pfile/spfile Eve must be associated with the DB_UNIQUE_NAME of the previous day.
The pending database ORACLE_SID would be the DB_UNIQUE_NAME of the database pending. Hope that's clear!
Kind regards
Shivananda -
RMAN duplicate failed with the error of file block change track: ORA-19755
I met following error when duplicate a source to target both 11 GR 2 on linux:
RMAN-03015: an error has occurred in the script stored memory Script
RMAN-06136: the auxiliary database ORACLE error: ORA-01507: database not mounted
ORA-06512: at "SYS." "X$ DBMS_RCVMAN ', line 13466
ORA-06512: at line 1
RMAN-03015: an error has occurred in the script stored memory Script
RMAN-10032: unhandled exception when executing job step 4:
ORA-00283: cool cancelled due to errors
RMAN-11003: failure in parsing / execution of the SQL statement: alter database recover logfile '+ HR_FRA/HRtst/archivelog/2012_11_27/thread_1_seq_5824.2541.800419437 '.
RMAN-11001: Oracle error:
ORA-00283: cool cancelled due to errors
ORA-19755: could not open file change tracking
ORA-19750: change the trace file: "+ HR_DAT/HRprds/changetracking/ctf.906.799250971".
ORA-17503: ksfdopn:2 could not open the file +HR_DAT/HRprds/changetracking/ctf.906.799250971
ORA-15012: ASM '+ HR_DAT/HRprds/changetracking/ctf.906.799250971' file does not exist
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of Db in dual at 11/27/2012 02:48:10
RMAN-05501: abandonment of duplicate target database
RMAN >
Complete recovery manager.
I created a file in the dummy directory of track changes but the name is different since it is OMF on target, still does not work.
Please help here. Thank you.Hello;
Expected error.
Try:
alter database open resetlogs;
You probably have a good copy and RMAN might want a newspaper that does not exist.
Check here as in step 8, I get the same thing:
http://www.Visi.com/~mseberg/RMAN/restore_database_without_catalog.html
Best regards
mseberg
Maybe you are looking for
-
I lost control of my Home Page (s)
Greetings team Firefox,. I just upgraded to Firefox 12.0, and I have a problem I could use help with. I can't change my home page (s). For some reason, Firefox insists on the use of my current home pages, which are being 6 different web pages. Firefo
-
I would like to integrate the F65 debayer sdk in my software, how can I register for the SDK? Thank you JCF
-
I think that my printer is confused. I can print to the printer itself, IE the settings page. I can print Web form, IE Manual HP and some documents from the IRS. I cannont do is print my documents folder. I can't print an adobe or Microsoft docum
-
Compatible Linux RHEL (Linux Red Hat Enterprise Server 6.7) for oracle database 11.2.0.4 with grid Infrastructure.Hi allWe plan to patch Linux Redhat Enterprise Server (6.4 and 6.5) to 6.7.I tried Searchin' on support of oracle for the compatibility
-
Photoshop Preferences slider will not change
Hey everybody.I'm completely puzzled and appreciate any guidance you might be able to offer. I use Photoshop CS6 on my mac with OS 10.9.5. Recently, my cursor brush settings was given randomly, which is annoying, but I can usually change their retu