RMAN DUPLICATE DATABASE RESULT IN A RE - ORG
Database Version 10.2.0.4When 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 you
The 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.
Tags: Database
Similar Questions
-
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 from backups without a target without a catalog.
I apologize if this has been posted before, although I couldn't find in the forums.
We are currently on 11 GR 1 matter of database and currently implementing RMAN backup and restore.
We have databases of test periodically refresh us sources of production for our clients on a regular basis (exp / imp currently). As with general practice, these test reside on a different server.
I have been through a lot of documentation on RMAN and I have several questions regarding the creation of a database of duplicate backup copies (backup of level 0 currently) without a target database and catalogue (No. Duplication Active)
We have Oralce files managed, implemented.
(1) RMAN requires a database for replication?
The reason I ask this question, it is only
http://download.Oracle.com/docs/CD/B28359_01/backup.111/b28270.PDF Chapter 23, 23-13/23-14. Alll indicate that need a target.
(2) if there is No target, then setting SPFILE used the backup SpFILE?
(3) what are recommended approaches.
(4) what is the command for the simple reproduction of backup without purpose and without catalog
Thank you'Target-free' RMAN duplication is a feature of 11 GR 2:
http://download.Oracle.com/docs/CD/E11882_01/server.112/e17128/Chapter1.htm#FEATURENO06994
-
Hi experts. I duplicate my database to another server. My question is what should I copy file full backup on my server to another or not?
Hello
Follow the same pattern
http://docs.Oracle.com/CD/B19306_01/server.102/b14237/initparams112.htm#REFRN10098
LOG_FILE_NAME_CONVERT = '
string1
' , '
string2
' , '
string3
' , '
string4
' , ...
Where:
string1
is the model of the primary database file namestring2
is the model of the database backup file namestring3
is the model of the primary database file namestring4
is the model of the database backup file name
-Thank you
Pavan Kumar N
-
RMAN Duplicate Database Error error ORA-00201
Hello
I tried to create the restore scenario backup in vmware. I have 2 similar server in Oracle Linux 6.2 (64-bit) where 11.2.0.4 has been installed. In my source server I orcl database and in the destination, there is no database. I took RMAN backup of database in the Source. Then I tried to Clone of Destination on Backup-based database without connection to the target and the catalog. Backup Destination and issued the command as follows:
1 has created a pfile.ora with db_name = "orcl" only
2. in the sqlplus command line: Startup nomount pfile = 'pfile.ora'
Then
started with RMAN, auxiliary
Auxiliary RMAN.
RMAN > duplicated to the backup location "orcl" database "/ home/Oracle/tmp";
After some progress appears error ORA-00201 control file not compatible with 11.2.0.0.0 . Attempted to solve all day but failed. In trying so I even uninstalled and reinstalled several times oracle.
Help, please
Hasan Al Mamun
Hello
The problem is resolved. I added a line in the pfile.ora, i.e. * full = '11.2.0.4.0' then it's OK, Clone of database was complete.
-
RMAN Duplicate Database of ASM to the no ASM files to the remote computer system
Hello
I have 11.2.0.3.0 of oracle in Windows 2008 server R2 64 bit version. I installed the ASMDB with ASM database... Now, I have another a machine, I want to clone my
database in this machine with no ASM filesystem ... Can someone tell me step by step document to do?
Can I keep the name of the database as ASMDB in another Machine?
Thank you and best regards,
Vikash ChauradiaWhat about password file? also, should I create in the auxiliary database?
Yes
and also a doubt when you create pfile should I mention the location of the control file in that?
Yes
-
Application of an rman duplicate database archiving log
I have databtase orcl2, which I've restored to orcl1 since the last incremental backup of nights. I need to roll up before orcl2 max log archive I have on orcl1 for today. What are the steps to do this, or if you could point me to the documentation it would be also useful.
Thanks in advanceWhen restore operations are completed successfully, you have a database that is separate and independent. You cannot apply any archivelogs of orcl1, even when orcl2 was built from orcl1 backups. If you want to have 2 databases that are synchronized with each other, you need a solution of dataguard (primary and physical relief databases).
Refer to the documentation of dataguard corresponding to your version of unknown data.Werner
-
RMAN-04014: failed to start: ORA-00600 during the duplicate database
Hello
Oracle version: 11.2.0.2
OS: linux rhel 5
I do duplicate database of active database
Please can someone offerrman target sys/*******@pindb AUXILIARY sys/*****@test Recovery Manager: Release 11.2.0.2.0 - Production on Mon Nov 26 19:56:41 2012 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. connected to target database: pindb (DBID=4116200880) connected to auxiliary database: TEST (not mounted) RMAN> run { allocate channel C1 type disk; allocate auxiliary channel DUP type disk; DUPLICATE TARGET DATABASE TO 'TEST' FROM ACTIVE DATABASE DB_FILE_NAME_CONVERT '/oradata/pindb','/oradata/test'; }2> 3> 4> 5> using target database control file instead of recovery catalog allocated channel: C1 channel C1: SID=699 device type=DISK allocated channel: DUP channel DUP: SID=5 device type=DISK Starting Duplicate Db at 26-NOV-12 contents of Memory Script: { sql clone "create spfile from memory"; } executing Memory Script sql statement: create spfile from memory contents of Memory Script: { shutdown clone immediate; startup clone nomount; } executing Memory Script Oracle instance shut down connected to auxiliary database (not started) released channel: C1 RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of Duplicate Db command at 11/26/2012 19:57:07 RMAN-06403: could not obtain a fully authorized session RMAN-04006: error from auxiliary database: ORA-01034: ORACLE not available ORA-27101: shared memory realm does not exist Linux-x86_64 Error: 2: No such file or directory RMAN-03015: error occurred in stored script Memory Script RMAN-04014: startup failed: ORA-00600: internal error code, arguments: [kck_rls_check must use (11,0,0,0,0) or lower], [kdt.c], [9576], [11.2.0.2.0], [], [], [], [], [], [], [], [] RMAN-04017: startup error description: ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance
Thank youHello;
In my view, that it is a bug that has to do with the compatibility of the compression.
I think that work around is:
alter system set "_compression_compatibility"="11.2.0";
Let me confirm with a document number of MOS
Subsequently Cannot find the doc of MOS - this has some details:
http://www.acehints.com/2011/11/fix-RMAN-duplicate-database-failed-ora.html
http://bryangrenn.blogspot.com/2011/12/ora-600-kckrlscheck-must-use-110000-or.html
Best regards
mseberg
Published by: mseberg on November 26, 2012 16:07
-
This is related to this thread:
I supported the newspaper of archive and continues:
RMAN > overview of the database to recover
2 >.
To go back to November 16, 12
using channel ORA_DISK_1
using channel ORA_DISK_1
Archive logs generated after that YVERT 0 not found in the repository
Start of recovery Media SNA is 0
Recovery must be beyond SNA 91215577536 to clear the hazy data file
Finished recover at 16 November 12
RMAN > run {}
2 > set up what SNA 91215577536.
3 > restore database;
4 > sql ' alter database open resetlogs;
{5 >};
executing command: SET until clause
To go back to November 16, 12
using channel ORA_DISK_1
starting media recovery
media recovery failed
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of the command recover at 11/16/2012 19:45:40
ORA-00283: cool cancelled due to errors
RMAN-11003: failure in parsing / execution of the SQL statement: alter database reco worm if necessary
forward this 91215577536 change using backup controlfile
ORA-00283: cool cancelled due to errors
[ORA-00600: internal error code, arguments: [kcvhvdf_1], [], [], [], [], [], [], [], [], [], []]
In the alerts log, the ora-00600 even raised.
How to get around this problem?
Thank youHello;
I agree with you. And while I have nothing to correct your error, this document is worth seeing:
http://gavinsoorma.com/2012/04/RMAN-duplicate-database-RAC-to-RAC/
If nothing else its useful to add to any collection of notes, you can have.
Best regards
mseberg
-
Why do we use RMAN DUPLICATE to cloning DB on a different server?
DB version: 11.2.0.2, 10.2.0.5
I want to create a clone of my Production DB in a test server. In the past, I have taken the backup hot of this DB production and restored and retrieved it in another server using simple RMAN commands.
After restoring the control file, editing of the DB and catalogue items from backup on the test server, I run
In OTN, I ran into long discussions such as runningrun { restore database ; recover database until time <time> ; alter database open resetlogs ; }
RMAN duplicate database
where they are trying to restore and recover using DOUBLE command, as shown below.
They can't just use plain RMAN restore and retrieve orders I've done? What advantage have RMAN DUPLICATE on orders of Plains?run { duplicate target database to RBS nofilenamecheck pfile=/tmp/aux.ora; }
RMAN DUPLICATE is designed to give the database clone a new name of the database and the new database identifier:
>
If you copy a database with the operating system instead of the command utilities DUPLICATE, then the DBID of the database copied remains identical to the original database. To register for the database of the copy in the same catalog of recovery with the original, you must change the DBID with utility DBNEWID (see the Oracle database utilities). On the other hand, the command DUPLICATE assigns the duplicate DBID different database so that it can be saved in the same catalog of recovery than the source database. -
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 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
-
Duplicate database RMAN 11 GR 2 ORA-17627 ORA-01017 RMAN-03009 ORA-17628
Hello
I'm getting ORA-17627: ORA-01017: name of user and password invalid. connection refused when using the RMAN duplicate on the same host using the account Oracle DBA. The system is Linux Oracle and Oracle 11.2.0.1 5.5
I tested the connectivity and passwords and everything works fine. What could be the reason of this problem please?
Details below:
Thank you.
H3. Summary of the solution:
A big thank you to all who responded! The problem is solved finally :-)
The ORA-17627: ORA-01017 has been corrected using the connection string to connect to the target database, instead of target rman / in the command prompt
However, there was still another question:$ rman RMAN> connect target sys/password@orcl RMAN> connect auxiliary sys/password@clonedb RMAN> duplicate target database to clonedb from active database;
The alert.log to the auxiliary database (clonedb) shows:channel ORA_DISK_1: starting datafile copy input datafile file number=00001 name=+DATA/orcl/datafile/system.256.737564331 RMAN-03009: failure of backup command on ORA_DISK_1 channel at 12/29/2010 14:40:21 ORA-17628: Oracle error 19505 returned by remote Oracle server continuing other job steps, job failed will not be re-run
Errors in the /u01/app/oracle/diag/rdbms/clonedb/clonedb/trace/clonedb_ora_6129.trc file:
ORA-19505: impossible to identify the file ' / scratch/oradata/clonedb/datafile/orcl/datafile/system.256.737564331 '.
ORA-27040: create file error, cannot create the file
Linux-x86_64 error: 2: no such file or directory
I fixed the problem by changing the following text in the settings of the clonedb instance file:
* .db_file_name_convert =('+Data/ORCL/','/Scratch/oradata/clonedb/')
* .log_file_name_convert =('+Data/ORCL/onlinelog/','/Scratch/oradata/clonedb/logfile/')
Thank you!
H3. Problem:
H3. Configuration[orcl@ol55]$ rman target / Recovery Manager: Release 11.2.0.1.0 - Production on Tue Dec 28 21:40:25 2010 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. connected to target database: ORCL (DBID=1265345286) RMAN> connect auxiliary sys/test@clonedb connected to auxiliary database: CLONEDB (not mounted) RMAN> duplicate target database to clonedb from active database; Starting Duplicate Db at 28-DEC-10 using target database control file instead of recovery catalog allocated channel: ORA_AUX_DISK_1 channel ORA_AUX_DISK_1: SID=19 device type=DISK contents of Memory Script: { sql clone "create spfile from memory"; } executing Memory Script sql statement: create spfile from memory contents of Memory Script: { shutdown clone immediate; startup clone nomount; } executing Memory Script Oracle instance shut down connected to auxiliary database (not started) Oracle instance started Total System Global Area 839282688 bytes Fixed Size 2217992 bytes Variable Size 645924856 bytes Database Buffers 188743680 bytes Redo Buffers 2396160 bytes contents of Memory Script: { sql clone "alter system set db_name = ''ORCL'' comment= ''Modified by RMAN duplicate'' scope=spfile"; sql clone "alter system set db_unique_name = ''CLONEDB'' comment= ''Modified by RMAN duplicate'' scope=spfile"; shutdown clone immediate; startup clone force nomount backup as copy current controlfile auxiliary format '/scratch/oradata/clonedb/controlfile/control01.ctl'; restore clone controlfile to '/scratch/oradata/clonedb/controlfile/control02.ctl' from '/scratch/oradata/clonedb/controlfile/control01.ctl'; alter clone database mount; } executing Memory Script sql statement: alter system set db_name = ''ORCL'' comment= ''Modified by RMAN duplicate'' scope=spfile sql statement: alter system set db_unique_name = ''CLONEDB'' comment= ''Modified by RMAN duplicate'' scope=spfile Oracle instance shut down Oracle instance started Total System Global Area 839282688 bytes Fixed Size 2217992 bytes Variable Size 645924856 bytes Database Buffers 188743680 bytes Redo Buffers 2396160 bytes Starting backup at 28-DEC-10 allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=35 device type=DISK 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 12/28/2010 21:42:08 RMAN-03015: error occurred in stored script Memory Script RMAN-03009: failure of backup command on ORA_DISK_1 channel at 12/28/2010 21:42:08 ORA-17629: Cannot connect to the remote database server ORA-17627: ORA-01017: invalid username/password; logon denied ORA-17629: Cannot connect to the remote database server
H4. Listener and Tnsnames
H3. Note: (UR = A) clause in tnsnames.ora is intended to operate with a dynamically
Manager recorded for the SERVICE_NAME against SID is preferable. (ID 362656.1)
H4. pFile and spfile$ cat /u01/app/oracle/product/11.2.0/grid/network/admin/listener.ora LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = ol55.example.com)(PORT = 1521)) ) ) SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (ORACLE_HOME= /u01/app/oracle/product/11.2.0/db) (SID_NAME = clonedb) (GLOBAL_DBNAME= clonedb.example.com) ) ) ADR_BASE_LISTENER = /u01/app/oracle ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER = ON $ cat tnsnames.ora # tnsnames.ora Network Configuration File: /u01/app/oracle/product/11.2.0/db/network/admin/tnsnames.ora # Generated by Oracle configuration tools. CLONEDB = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = ol55.example.com)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = clonedb.example.com) (UR = A) ) ) $ lsnrctl status LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 28-DEC-2010 21:35:54 Copyright (c) 1991, 2009, Oracle. All rights reserved. Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521)) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production Start Date 26-DEC-2010 02:59:35 Uptime 2 days 18 hr. 36 min. 18 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /u01/app/oracle/product/11.2.0/grid/network/admin/listener.ora Listener Log File /u01/app/oracle/diag/tnslsnr/ol55/listener/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ol55.example.com)(PORT=1521))) Services Summary... Service "+ASM" has 1 instance(s). Instance "+ASM", status READY, has 1 handler(s) for this service... Service "clonedb.example.com" has 2 instance(s). Instance "clonedb", status UNKNOWN, has 1 handler(s) for this service... Instance "clonedb", status BLOCKED, has 1 handler(s) for this service... Service "orcl.example.com" has 1 instance(s). Instance "orcl", status READY, has 1 handler(s) for this service... Service "orclXDB.example.com" has 1 instance(s). Instance "orcl", status READY, has 1 handler(s) for this service... Service "test.example.com" has 1 instance(s). Instance "test", status READY, has 1 handler(s) for this service... Service "testXDB.example.com" has 1 instance(s). Instance "test", status READY, has 1 handler(s) for this service... The command completed successfully
H4. Password file and the connection test$ cat initclonedb.ora clonedb.__db_cache_size=192937984 clonedb.__java_pool_size=4194304 clonedb.__large_pool_size=4194304 clonedb.__oracle_base='/u01/app/oracle' clonedb.__pga_aggregate_target=339738624 clonedb.__sga_target=503316480 clonedb.__shared_io_pool_size=0 clonedb.__shared_pool_size=293601280 clonedb.__streams_pool_size=0 *.audit_file_dest='/u01/app/oracle/admin/clonedb/adump' *.audit_trail='db' *.backup_tape_io_slaves=TRUE *.compatible='11.2.0.0.0' *.control_files='/scratch/oradata/clonedb/controlfile/control01.ctl','/scratch/oradata/clonedb/controlfile/control02.ctl' *.db_block_checking='full' *.db_block_checksum='full' *.db_block_size=8192 *.db_create_file_dest='/scratch/oradata/clonedb' *.db_domain='example.com' *.db_name='clonedb' *.db_recovery_file_dest='+FRA' *.db_recovery_file_dest_size=12884901888 *.log_archive_dest='/scratch/oradata/clonedb/archivelog' *.diagnostic_dest='/u01/app/oracle' *.dispatchers='(PROTOCOL=TCP) (SERVICE=clonedbXDB)' *.memory_target=843055104 *.open_cursors=300 *.processes=150 *.remote_login_passwordfile='EXCLUSIVE' *.undo_tablespace='UNDOTBS1' *.db_file_name_convert=('+DATA','/scratch/oradata/clonedb/datafile') *.log_file_name_convert=('+DATA','/scratch/oradata/clonedb/logifle') $ sqlplus / as sysdba SQL*Plus: Release 11.2.0.1.0 Production on Tue Dec 28 21:26:41 2010 Copyright (c) 1982, 2009, Oracle. All rights reserved. Connected to an idle instance. SQL> startup nomount pfile='$ORACLE_HOME/dbs/initclonedb.ora' ORACLE instance started. Total System Global Area 839282688 bytes Fixed Size 2217992 bytes Variable Size 641730552 bytes Database Buffers 192937984 bytes Redo Buffers 2396160 bytes SQL>
Published by: Dude on December 29, 2010 06:37$ orapwd file=$ORACLE_HOME/dbs/orapwclonedb password='test' $ sqlplus 'sys/test@clonedb as sysdba' SQL*Plus: Release 11.2.0.1.0 Production on Tue Dec 28 19:58:14 2010 Copyright (c) 1982, 2009, Oracle. All rights reserved. Connected to an idle instance.
Hi guy,
Please configure the tnsnames and auditor of the target and auxiliary.
That set the script to use OIC to connect in both instances like this:connect target sys/test@orcl
connect auxiliary sys/test@clonedbPlease after the release.
Kind regards
Tycho -
Another issue duplicate RMAN - RAC database to single instance
Hello
I have a problem with RMAN duplicate procedure and hoped that someone can help you.
I would like to create a duplicate of our data base RAC production on a separate and autonomous, database on another site server. This duplicate will be used to execute queries to another business unit that I don't want to have access to our database of intensive production.
My procedure goes like this:
1. create a (not ASM) disk based backup data files and recovery logs archived:
'run {} '.
allocate channel d1 type disk;
backup format ' / u02/stage/df_t%t_s%s_p%p' database more entered archivelog delete;
output channel d1;
}"
2 tar and scp those files to the same location on the standalone database server.
3. in the meantime, work that's happened on the basis of data production and other archived redo logs have been generated. I don't really care about these papers for the purposes of the duplicate however, I just want to replicate to the point of the last backup. I have to do this, run the following SQL to determine the sequence number should I be duplicating up to:
"Select max(sequence#) thread # v $ archived_log, whereas the deleted = 'YES' group by thread #;"
4 duplicate the production to the stand-alone database database (SQL Net work orders).
'run {} '.
until the sequence (the value returned by the SQL statement above);
duplicate target database xxx;
}"
However, my problem because I don't know how to handle the fact that he has two sons. I understand that each thread relates to one of the CARS, I don't know which one to specify the copy. We have a service of data that the client application connects through, and that the service runs on any of the bodies. I should just care about newspapers in the instance where the service is running?
AM I even approach that this is the right way?
I look forward to any help that people may be able to offer.
Kind regards
Phil1 9746 569095777 28 OCTOBER 09 569150229 28 OCTOBER 09
1 9747 569150229 28 OCTOBER 09 569187892 28 OCTOBER 09
1 9748 569187892 28 OCTOBER 09 569231956 28 OCTOBER 09
1 9749 569231956 28 OCTOBER 09 569259816 28 OCTOBER 09
2 7931 569095774 28 OCTOBER 09 569187902 28 OCTOBER 09
2 7932 569187902 28 OCTOBER 09 569259814 28 OCTOBER 09You must use the VALUE until and specify the sequence with the next lowest change, or RMAN will search for the next log in this thread.
for example, if you specify until the thread in the sequence 9750 1; RMAN will search journal 7933 on thread2 to catch the 1 wire SNA 569259816.
Specify the set as a thread in 7933 2 sequence; and two copies must go ok!Published by: MrShh on October 29, 2009 14:35
-
Database with RMAN duplicate; Please help me
Hi all
My Production database named PROD_1 of Oracle Database 10 g Enterprise Edition Release 10.2.0.1.0 on Linux server.
I want to duplicate my database of production to a production base of second one PROD_2 with the same database
and same version of system OS and two DB servers have the identifical directory structure.
I'm with RMAN to duplicate the database:
So I'm on PROD_2 Server I have:
-Shutdown my PROD_2 database
-J' I start with my PROD_2 database NOMOUNT
Then I connect to PROD_2 with the user sys:
+ [oracle@PROD_2 oradata] $ $ORACLE_HOME/bin/rman target sys +.
Recovery Manager: Release 10.2.0.1.0 - Production on Fri Aug 29 14:04:53 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
target password database:
connected to target database: PROD_2 (unassembled)
RMAN > ALTER DATABASE MOUNT;
using the control file of the target instead of recovery catalog database
mounted database
RMAN > CONNECT SYS/joker@PROD_1.ww.egwn.lan AUXILIARY
connected to the auxiliary database: PROD_1 (DBID = 1431425681)
RMAN > RUN
+ 2 > {+
+ 3 > PROD_1 duplicate TARGET DATABASE; +
{+ 4 >} +.
From Db in double to 29 August 08+.
allocated channel: ORA_AUX_DISK_1+.
channel ORA_AUX_DISK_1: sid = 139 devtype = DISK+.
RMAN-00571: ===========================================================+
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =+.
RMAN-00571: ===========================================================+
RMAN-03002: failure of the command duplicate Db at 2008-08-29 14:06:07+.
RMAN and 05500: the auxiliary database must be mounted not on the issue of a duplicate order+.
RMAN >
then, when PROD_1 is not mounted, I can't connect to PROD_1 of PROD_2 server, beacause the database is not open!
Could you help me please, I simply try to replicate my database PROD_1.
Thank you very much
Published by: OracleJavaLinux on August 29, 2008 14:23Hey,.
you simply set ORACLE_SID on you prod_2 (not 1). Otherwise, you're good.
Connect to prod_1 with rman target / catalog rman@prod_1.
HTH.
Maybe you are looking for
-
A small window opens saying trash does not empty because a certain file still works
-
How can I activate Javascript in Firefox 24.0? It became suddenly disabled.
Suddenly, I was unable to access Hotmail or another e-mail that uses Outlook account. The message I got was: ' JavaScript must to connect. " This web browser does not support JavaScript, or scripts are blocked. » 1. why spontaneously happen? 2. How s
-
I don't want to use my iPhone for e-mail
I am fairly new to any smartphone. I don't want to receive emails, or notifications by e-mail on my iPhone. I want to manage all email on my laptop, in the same way as before, I bought my iPhone. So I want to do two things: Delete everything related
-
While solving a problem of the State space, I used the MathScript node to enter a code. Next, I added some inputs and one output for the node. but I'm not able to change the type of the output 'Model SS'. His does not work. (I'm not able to select th
-
The DVI and VGA outputs are contradictory
Output: VGA for monitor DVI to TV Monitor works fine until the DVI cable is connected, then you lose image on the screen and it goes to peak w/out office icons. That's what I call starnge!