Duplicate database from prod environment to test environment.
hi,
Am trying to Duplicate the database from Production RAC Envrionment to Test RAC Environment.
Am following the metakink Document: How To Restore Rman Backups On A Different Node When The Directory Structures Are Different [ID 419137.1]
When am restoring the backup from prod in Test environment am getting the following error.
ORA-19870: error reading backup piece /rman2/stage/backup_of_PROD_21047_07_04_2011_1
ORA-19504: failed to create file "+DG1"
ORA-17502: ksfdcre:4 Failed to create file +DG1
ORA-15055: unable to connect to ASM instance
ORA-00020: maximum number of processes () exceeded
ORA-15055: unable to connect to ASM instance
ORA-00020: maximum number of processes () exceeded
Please help me out in this.
with regards
A.Aravind
Pl post details of OS and database versions on the source and target.
RMAN Duplicate Failing With ORA-19870 ORA-19504 ORA-15012 ORA-17502 ORA-15080 (Doc ID 417074.1)
Srini
Similar Messages
-
Error while duplicate database from one server to another server
Hi there,
I am practicing duplicate database from one single database server to another server. Hardware and driver path on 2 machines is the same. Here are my steps:
--------------------- Clone site:
1. modify listener.ora with content:
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
ADR_BASE_LISTENER = /u01/app/oracle
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1)
(SID_NAME= orcl)
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER = ON
2. stop and start listener again, message show like :
Service “orcl” has 1 instance(s).
Instance “orcl”, status UNKNOWN, has 1 handler(s) for this service…
The command completed successfully
3. create pfile from spfile.
4. shutdown and startup nomount with pfile is new pfile create from step 3.
--------------------------------------- Source site
1. modify tnsnames.ora with content like:
VVCOREDB =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = vvcoredb)
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = 10.254.1.235) (PORT=1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
2. run command from rman like these:
rman> connect target sys@vvcoredb
rman> target database Password:
rman> connect auxiliary sys@orcl
rman> auxiliary database Password:
rman> DUPLICATE TARGET DATABASE to orcl from active database spfile nofilenamecheck;
Then the result show below:
Starting Duplicate Db at 24-SEP-12
using target database control file instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=63 device type=DISK
contents of Memory Script:
backup as copy reuse
targetfile '/u01/app/oracle/product/11.2.0/db_1/dbs/spfilevvcoredb.ora' auxiliary format
'/u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora' ;
sql clone "alter system set spfile= ''/u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora''";
executing Memory Script
Starting backup at 24-SEP-12
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=74 device type=DISK
Finished backup at 24-SEP-12
sql statement: alter system set spfile= ''/u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora''
contents of Memory Script:
sql clone "alter system set db_name =
''ORCL'' comment=
''duplicate'' scope=spfile";
shutdown clone immediate;
startup clone nomount;
executing Memory Script
sql statement: alter system set db_name = ''ORCL'' comment= ''duplicate'' scope=spfile
Oracle instance shut down
connected to auxiliary database (not started)
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 09/24/2012 17:44:12
RMAN-03015: error occurred in stored script Memory Script
RMAN-04014: startup failed: ORA-01261: Parameter db_recovery_file_dest destination string cannot be translated
ORA-01262: Stat failed on a file destination directory
Linux-x86_64 Error: 2: No such file or directory
I don't know what wrong with my pfile? I specify correct my pfile on clone site like this:
orcl.__db_cache_size=1476395008
orcl.__java_pool_size=16777216
orcl.__large_pool_size=16777216
orcl.__oracle_base='/u01/app/oracle'#ORACLE_BASE set from environment
orcl.__pga_aggregate_target=1342177280
orcl.__sga_target=1979711488
orcl.__shared_io_pool_size=0
orcl.__shared_pool_size=436207616
orcl.__streams_pool_size=0
*.audit_file_dest='/u01/app/oracle/admin/orcl/adump'
*.audit_trail='db'
*.compatible='11.2.0.0.0'
*.control_files='/u01/app/oracle/oradata/orcl/control01.ctl','/u01/app/oracle/flash_recovery_area/orcl/control02.ctl'
*.db_block_size=8192
*.db_domain=''
*.db_name='orcl'
*.db_recovery_file_dest='/u01/app/oracle/flash_recovery_area/vvcoredb'
*.db_recovery_file_dest_size=4070572032
*.diagnostic_dest='/u01/app/oracle'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'
*.memory_target=3313500160
*.open_cursors=300
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.undo_tablespace='UNDOTBS1'
Please suggest me do i miss some steps when try to duplicate database?
Any suggestions are welcome.
Thanks in advance!
P/s: Sorry for my bad English.Oh god, it worked. Thank you. But i got another problem like this:
duplicate target database to orcl from active database spfile set "db_recovery_file_dest" = "/u01/app/oracle/flash_recovery_area/vvcoredb" nofilenamecheck;
Starting Duplicate Db at 24-SEP-12
using target database control file instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=63 device type=DISK
contents of Memory Script:
backup as copy reuse
targetfile '/u01/app/oracle/product/11.2.0/db_1/dbs/spfilevvcoredb.ora' auxiliary format
'/u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora' ;
sql clone "alter system set spfile= ''/u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora''";
executing Memory Script
Starting backup at 24-SEP-12
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=74 device type=DISK
Finished backup at 24-SEP-12
sql statement: alter system set spfile= ''/u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora''
contents of Memory Script:
sql clone "alter system set db_name =
''ORCL'' comment=
''duplicate'' scope=spfile";
sql clone "alter system set db_recovery_file_dest =
''/u01/app/oracle/flash_recovery_area/vvcoredb'' comment=
'''' scope=spfile";
shutdown clone immediate;
startup clone nomount;
executing Memory Script
sql statement: alter system set db_name = ''ORCL'' comment= ''duplicate'' scope=spfile
sql statement: alter system set db_recovery_file_dest = ''/u01/app/oracle/flash_recovery_area/vvcoredb'' comment= '''' scope=spfile
Oracle instance shut down
connected to auxiliary database (not started)
Oracle instance started
Total System Global Area 3307048960 bytes
Fixed Size 2217872 bytes
Variable Size 1811941488 bytes
Database Buffers 1476395008 bytes
Redo Buffers 16494592 bytes
contents of Memory Script:
sql clone "alter system set db_name =
''VVCOREDB'' comment=
''Modified by RMAN duplicate'' scope=spfile";
sql clone "alter system set db_unique_name =
''ORCL'' comment=
''Modified by RMAN duplicate'' scope=spfile";
shutdown clone immediate;
startup clone force nomount
backup as copy current controlfile auxiliary format '/u01/app/oracle/oradata/vvcoredb/control01.ctl';
restore clone controlfile to '/u01/app/oracle/recovery_area/vvcoredb/control02.ctl' from
'/u01/app/oracle/oradata/vvcoredb/control01.ctl';
alter clone database mount;
executing Memory Script
sql statement: alter system set db_name = ''VVCOREDB'' comment= ''Modified by RMAN duplicate'' scope=spfile
sql statement: alter system set db_unique_name = ''ORCL'' comment= ''Modified by RMAN duplicate'' scope=spfile
Oracle instance shut down
Oracle instance started
Total System Global Area 3307048960 bytes
Fixed Size 2217872 bytes
Variable Size 1811941488 bytes
Database Buffers 1476395008 bytes
Redo Buffers 16494592 bytes
Starting backup at 24-SEP-12
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile copy
copying current control file
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 09/24/2012 18:42:09
RMAN-03015: error occurred in stored script Memory Script
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 09/24/2012 18:42:09
ORA-17628: Oracle error 19505 returned by remote Oracle server
I have a comment that source site doesn't have flash_recovery_area, instead it's name is recovery_area, is it problem?
Edited by: 788420 on Sep 24, 2012 4:44 AM -
Rman clone duplicate database from active database
Hi All,
I read document saying that rman can duplicate database from active database (prod) to a remote server, so long as you configure listener and tnsname.
I am working toward it.
I met a problem, which is when i bring up auxiliary database in nomount mode, the listener service of that auxiliary database is in BLOCKED status, and throw out ora-12528 error when I rman auxiliary sys/pass@clonedb. Isn't nomount mode the mode which auxiliary db is supposed to be in?
(ora-12528: TNS:listener: all appropriate instances are blocking new connections)
Thanks,
milicYou may have run into the same problem like I did recently:
The (UR=A) clause in tnsnames.ora is intended to work with a dynamically registered handler so the use of SERVICE_NAME versus SID is preferred.
ORA-12528: TNS listener BLOCKED - trying to duplicate database
Also for further problems:
RMAN 11gR2 duplicate database ORA-17627 ORA-01017 RMAN-03009 ORA-17628 -
Duplicate database from active database in 11g?
Does anyone know if it's possible to clone a database from stby by issuing RMAN duplicate database FROM ACTIVE DATABASE command in 11g?
I know it's possible from primary to create stby.
Thanks in advanceYou may have run into the same problem like I did recently:
The (UR=A) clause in tnsnames.ora is intended to work with a dynamically registered handler so the use of SERVICE_NAME versus SID is preferred.
ORA-12528: TNS listener BLOCKED - trying to duplicate database
Also for further problems:
RMAN 11gR2 duplicate database ORA-17627 ORA-01017 RMAN-03009 ORA-17628 -
Best way to update DR database from PROD server automatic ?
Hello Gurus,
I want to decide best solution.
Goal: Best way to update DR Database from PROD Server Database automatic.
System: 32 bit Linux system with Oracle Database 10g Release 10.2.0.4.0 - Production (database version) Oracle version is standard.
Please let me know how i can update my DR server with PROD data and this task should be automatic.
Please ask me more information if required to solve this issue.
Thanks- Priyank
Edited by: Oracle DBA P on Nov 19, 2010 3:06 AMyou mean to say data guard needs to implement ? i think that's one option but what you said is different ?
tell me procedure how i can implement your idea ? steps i have to perform.
Thanks
Edited by: Oracle DBA P on Nov 19, 2010 3:38 AM -
Duplicate database from Linux to sun
Hi All,
RMAN duplicate database from Linux 5.2 (Tikanga) to sun 5.9 is possible, please share link or doc.Thanks for reply.
But confused to Capture ENDIAN_FORMAT
1-
uname -a gives below SUN OS detail,
SunOS 5.9 Generic_122300-51 sun4u sparc SUNW,Sun-Fire-V490
and in oracle i am getting below 4 records,so please help me which would be my SUN flavour from below list.
PLATFORM_NAME ENDIAN_FORMAT
Solaris[tm] OE (32-bit) Big
Solaris[tm] OE (64-bit) Big
Solaris Operating System (x86) Little
Solaris Operating System (x86-64) Little
2-
uname -a
Linux *** 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:15 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
SQL> select platform_name, endian_format from V$TRANSPORTABLE_PLATFORM where platform_name like '%Linux%';
PLATFORM_NAME ENDIAN_FORMAT
Linux IA (32-bit) Little
Linux IA (64-bit) Little
Linux x86 64-bit Little
please help me which would be my Linux flavour from above list. -
Rman duplicate database from test to production different host
Dear All,
usually i do the rman duplicate (clone) database in different host using same backup location as the source database in target database.
now i am in situation to clone the database with different backup location
source database location:/u01/db/backup
target database location: /tmp_dbbkup
is it possible to create the duplicate database with the command
rman target sys@UAT1 auxiliary /
RMAN>CATALOG BACKUPPIECE '/tmp_dbbkup/UAT_2670198561_44_20110101;
RMAN>duplicate target database to DEV;
is it ok?
we dont have privilege/rights to create a folder/directory in production server.
what i have to do now?
thanks in advance.
my oracle version: 10.2.0.4.0
operating system: AIXtychos wrote:
Hi rajeysh,
what i have to do now?You could make a sym link on the dev server
So /u01/db/backup on the dev server points to /tmp_dbbkup
Regards,
Tychothank for your reply tychos,
$ ln -s /u01/db/backup/OUAT_2670198561_44_20110101 /oracle/db/backup/UAT_2670198561_44_20110101
$ ls -ltr
total 1475968
-rw-r----- 1 oracle dba 307654656 Jan 7 10:03 db_DEV_20110107_4em1gm3e_1_1_L0
-rw-r----- 1 oracle dba 448030720 Jan 7 10:03 db_DEV_20110107_4dm1gm3e_1_1_L0
lrwxrwxrwx 1 oracle dba 45 Jan 11 20:53 UAT_2670198561_44_20110101 -> /u01/db/backup/OUAT_2670198561_44_20110101
$ ln -s /u01/db/backup/AOUAT_2670198561_46_20110101 /oracle/db/backup/OUAT_2670198561_46_20110101
$ ln -s /u01/db/backup/OUAT_2670198561_47_20110101 /oracle/db/backup/OUAT_2670198561_47_20110101
$ ln -s /u01/db/backup/OUAT_2670198561_45_20110101 /oracle/db/backup/OUAT_2670198561_45_20110101
$
is it ok
will the duplicate gets the information from /oracle/db/backup
if i did anything wrong , please correct me? -
Duplicate Database From ASM to ASM
Hi Guys
I am running Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 with RAC on HP-UX using ASM. I have two nodes on cluster now I have a new cluster environment with three nodes using ASM as well.
I want to duplicate my databases from two nodes to three nodes using my backups. I am using rman backups.
How do I begin to do that?
Please help !!!!!!!!!!!!!!
ThanksWhich, as far as I recall, wouldn't make any difference.
Your 'target' is the auxiliary database, which is pointed to by a tns service name.
Provided the backup is accessible on both servers (maybe by using NFS), duplicate database should like a charm.
But then I am already abstracting docs, which is evidently exactly what you want.
Sybrand Bakker
Senior Oracle DBA -
Duplicate database from ASM to Non-ASM problem
Friends,
I am unable to duplicate the database from ASM TO Non-ASM,
OS: Linux AS4
Oracle version: 10.2.0.1
initAUXDB.ora parameters:
background_dump_dest=/u01/oracle/product/10.2.0/admin/auxdb/adump
core_dump_dest=/u01/oracle/product/10.2.0/admin/auxdb/cdump
background_dump_dest=/u01/oracle/product/10.2.0/admin/auxdb/bdump
user_dump_dest=/u01/oracle/product/10.2.0/admin/auxdb/udump
db_name=auxdb
undo_tablespace=undotbs1
undo_management=auto
undo_retention=900
db_block_size=8192
compatible=10.2.0.1
control_files='/u01/oracle/product/10.2.0/oradata/auxdb/control01.ctl'
db_file_name_convert=('+DATA','/u01/oracle/product/10.2.0/oradata/auxdb')
log_file_name_convert=('+DATA','/u01/oracle/product/10.2.0/oradata/auxdb')
db_create_file_dest='/u01/oracle/product/10.2.0/oradata/auxdb'
db_create_online_log_dest_1='/u01/oracle/product/10.2.0/oradata/auxdb'
My target database diskgroup info:
GROUP_NUMBER NAME SECTOR_SIZE BLOCK_SIZE STATE
1 DATA 512 4096 MOUNTED N
2 FLASH 512 4096 MOUNTED E
Please could you have look the following error:
type1:
Note: when I configure The log_file_name_convert=('+DATA') in initAUXDB.ora parameter file, the following error are occurring:
RMAN> run {
2> allocate auxiliary channel C1 device type disk;
3> duplicate target database to auxdb;
4> }
Starting Duplicate Db at 03-MAR-13
released channel: C1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 03/03/2013 14:43:05
RMAN-05501: aborting duplication of target database
RMAN-05001: auxiliary filename +FLASH/prod/onlinelog/group_3.259.809008171 conflicts with a file used by the target database
RMAN-05001: auxiliary filename +FLASH/prod/onlinelog/group_2.258.809008167 conflicts with a file used by the target database
RMAN-05001: auxiliary filename +FLASH/prod/onlinelog/group_1.257.809008165 conflicts with a file used by the target database
type2:
when I configure The log_file_name_convert=('+FLASH') in initAUXDB.ora, again I am getting the following error:
RMAN> run {
2> allocate auxiliary channel C1 device type disk;
3> duplicate target database to auxdb;
4> }
allocated channel: C1
channel C1: sid=36 devtype=DISK
Starting Duplicate Db at 04-MAR-13
released channel: C1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 03/04/2013 08:37:10
RMAN-05501: aborting duplication of target database
RMAN-05001: auxiliary filename +DATA/prod/onlinelog/group_3.263.809008169 conflicts with a file used by the target database
RMAN-05001: auxiliary filename +DATA/prod/onlinelog/group_2.262.809008165 conflicts with a file used by the target database
RMAN-05001: auxiliary filename +DATA/prod/onlinelog/group_1.261.809008163 conflicts with a file used by the target database
Please suggest me to overcome the above errors.Hi Mr.Rao,
Thank you for your reply..
I follwed as per as your query, but I am getting different error:
channel C1: starting datafile backupset restore
channel C1: specifying datafile(s) to restore from backup set
restoring datafile 00001 to /u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/system.256.809008077 <---------here the directory structure is "/u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/" but I mention in initauxdb.ora parameter only "/u01/oracle/product/10.2.0/odata/auxdb/".
restoring datafile 00002 to /u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/undotbs1.258.809008077
restoring datafile 00003 to /u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/sysaux.257.809008077
restoring datafile 00004 to /u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/users.259.809008077
channel C1: reading from backup piece +FLASH/prod/backupset/2013_03_04/nnndf0_tag20130304t072249_0.265.809162569
ORA-19870: error reading backup piece +FLASH/prod/backupset/2013_03_04/nnndf0_tag20130304t072249_0.265.809162569
ORA-19505: failed to identify file "+FLASH/prod/backupset/2013_03_04/nnndf0_tag20130304t072249_0.265.809162569"
ORA-17503: ksfdopn:2 Failed to open file +FLASH/prod/backupset/2013_03_04/nnndf0_tag20130304t072249_0.265.809162569
ORA-15001: diskgroup "FLASH" does not exist or is not mounte
failover to previous backup
channel C1: starting datafile backupset restore
channel C1: specifying datafile(s) to restore from backup set
restoring datafile 00001 to /u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/system.256.809008077
restoring datafile 00002 to /u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/undotbs1.258.809008077
restoring datafile 00003 to /u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/sysaux.257.809008077
restoring datafile 00004 to /u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/users.259.809008077
channel C1: reading from backup piece /u01/backup/prod/df_t809162421_s24_p1
channel C1: restored backup piece 1
piece handle=/u01/backup/prod/df_t809162421_s24_p1 tag=TAG20130304T072021
channel C1: restore complete, elapsed time: 00:01:17
Finished restore at 04-MAR-13
sql statement: CREATE CONTROLFILE REUSE SET DATABASE "AUXDB" RESETLOGS ARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 100
MAXINSTANCES 8
MAXLOGHISTORY 292
LOGFILE
GROUP 1 ( '/u01/oracle/product/10.2.0/oradata/auxdb/prod/onlinelog/group_1.261.809008163',
'/u01/oracle/product/10.2.0/oradata/auxdb/prod/onlinelog/group_1.257.809008165' ) SIZE 50 M REUSE,
GROUP 2 ( '/u01/oracle/product/10.2.0/oradata/auxdb/prod/onlinelog/group_2.262.809008165',
'/u01/oracle/product/10.2.0/oradata/auxdb/prod/onlinelog/group_2.258.809008167' ) SIZE 50 M REUSE,
GROUP 3 ( '/u01/oracle/product/10.2.0/oradata/auxdb/prod/onlinelog/group_3.263.809008169',
'/u01/oracle/product/10.2.0/oradata/auxdb/prod/onlinelog/group_3.259.809008171' ) SIZE 50 M REUSE
DATAFILE
'/u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/system.256.809008077'
CHARACTER SET WE8ISO8859P1
contents of Memory Script:
switch clone datafile all;
executing Memory Script
datafile 2 switched to datafile copy
input datafile copy recid=1 stamp=809171578 filename=/u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/undotbs1.258.809008077
datafile 3 switched to datafile copy
input datafile copy recid=2 stamp=809171578 filename=/u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/sysaux.257.809008077
datafile 4 switched to datafile copy
input datafile copy recid=3 stamp=809171578 filename=/u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/users.259.809008077
channel C1: starting archive log restore to default destination
channel C1: restoring archive log
archive log thread=1 sequence=12
channel C1: restoring archive log
archive log thread=1 sequence=13
channel C1: reading from backup piece /u01/backup/prod/al_t809162496_s26_p1
channel C1: restored backup piece 1
piece handle=/u01/backup/prod/al_t809162496_s26_p1 tag=TAG20130304T072136
channel C1: restore complete, elapsed time: 00:00:04
archive log filename=/u01/oracle/product/10.2.0/db_1/dbs/arch1_12_809008161.dbf thread=1 sequence=12
channel clone_default: deleting archive log(s)
archive log filename=/u01/oracle/product/10.2.0/db_1/dbs/arch1_12_809008161.dbf recid=2 stamp=809171585
archive log filename=/u01/oracle/product/10.2.0/db_1/dbs/arch1_13_809008161.dbf thread=1 sequence=13
channel clone_default: deleting archive log(s)
archive log filename=/u01/oracle/product/10.2.0/db_1/dbs/arch1_13_809008161.dbf recid=1 stamp=809171583
channel C1: starting archive log restore to default destination
channel C1: restoring archive log
archive log thread=1 sequence=14
channel C1: reading from backup piece +FLASH/prod/backupset/2013_03_04/annnf0_tag20130304t072246_0.264.809162567
ORA-19870: error reading backup piece +FLASH/prod/backupset/2013_03_04/annnf0_tag20130304t072246_0.264.809162567
ORA-19505: failed to identify file "+FLASH/prod/backupset/2013_03_04/annnf0_tag20130304t072246_0.264.809162567"
ORA-17503: ksfdopn:2 Failed to open file +FLASH/prod/backupset/2013_03_04/annnf0_tag20130304t072246_0.264.809162567
ORA-15001: diskgroup "FLASH" does not exist or is not mounte
released channel: C1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 03/04/2013 09:53:11
RMAN-03015: error occurred in stored script Memory Script
RMAN-20506: no backup of archivelog found
RMAN-06053: unable to perform media recovery because of missing log
RMAN-06025: no backup of log thread 1 seq 14 lowscn 542329 found to restore -
Issues with clone of database from PROD to non-prod
Hi All,
I am trying to clone the production database to a non-prod database.This used to work fine with out any issues before.Only change made on the backup side is we change the compress option to nocompress.Below are the steps followed for the clone process.
Create a new init parameter file.
Started the database in nomoutn state
Connected to prod database through rman
connected to auxiliary database(non-prod)
connected to catalog
Set the new file destinations in ASM for the non-prod database.
Set the recovery time until the last SCN on the full backup.
Here is the error encountered during the process of restore.
ORA-19870: error reading backup piece /exp/prod_backup/emrepdb_0_PROD_20101114_ublt0vq6_1_1
ORA-19502: write error on file "+STG_DATA/stage/datafile/undotbs3.dbf", blockno 2641537 (blocksize=8192)
ORA-27061: waiting for async I/Os failed
Outer dbms_backup_restore.restoreCancel() failed
ORA-19870: error reading backup piece /exp/prod_backup/emrepdb_0_PROD_20101114_ualt0vq5_1_1
ORA-19502: write error on file "+STG_DATA/stage/datafile/undotbs4.dbf", blockno 1044817 (blocksize=8192)
ORA-27061: waiting for async I/Os failed
Outer dbms_backup_restore.restoreCancel() failed
Any one faced the same kind of issues before?Hi,
ORA-19870: error reading backup piece /exp/prod_backup/emrepdb_0_PROD_20101114_ublt0vq6_1_1here is problem with execute permissions on the backup location, give full permission to open those backup sets and read...
post
ls -ltr /exp/prod_backup/emrepdb_0_PROD_20101114_ublt0vq6_1_1give full permissions like *777*
#chmod 777 -R /exp/prod_backup/*
Thanks -
Updating TEST / REPORTING Databases from PROD
Hello,
We have a PROD db that's running 11.2.0.2 on AIX 7.1. We need to update two other instances (REPORTING and TEST) with fresh data... We want REPORTING to update nightly and TEST can update monthly, or less frequent.
I've looked into cloning or using imp/exp for the data schema, or possible RMAN DUPLICATE
Can anyone shed any light on what they use to update their non-production instances?
ThanksWe used to copy cold backup files to test every night for a Db larger than yours to run 2600 automated JUnit tests for a large financial client and never had any problem.
It was all automated using shell scripts to create new nightly folders, copy the files, checkout all DB and Java code from source control, do a complete Java build, run the automated tests and email the results to developers for them to review first thing in the morning.
For reporting using RMAN. The once a month copy a cold backup of reporting to TEST. Sure RMAN can do the TESt one too but I like to make sure my DBAs actually remember HOW to do a cold backup. Tends to make them remember how handy a text version of the control file and init file can be. New DBAs in particular get a pained expression on their face when they realize they can't use the control files they just copied because the folder structure is different and they don't have a text version.
Doing that monthly cold backup restore is a great training exercise that can be done with little risk. -
Duplicate database from RMAN. Physical Dataguard. Error
Hi All,
it is really frustrating. I have used the same script and it worked. versions are same 11.2.0.3.2 on both AIX 5.3 servers. tns entries are correct . listener entries correct.
Here is script and errors
set -x
export NLS_DATE_FORMAT='mm/dd/yyyy hh24:mi:ss'
export ORACLE_BASE=/a0277/oracle
export ORACLE_HOME=/a0277/oracle/app/oracle/product/11203/db_1
export LIBPATH=$ORACLE_HOME/lib:$ORACLE_HOME/lib32
export LD_LIBRARY_PATH=$LIBPATH
export CLASSPATH=$ORACLE_HOME/jlib
export PATH=/a0277/oracle/app/oracle/product/11203/db_1/bin:/usr/ccs/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/local/bin
export ORACLE_SID=ufms777
rman <<EOF
connect auxiliary sys/sys_143_npr#555@ufms777
connect target sys/sys_143_npr#555@ufms555
run
allocate channel d01 type disk;
allocate channel d02 type disk;
allocate channel d03 type disk;
allocate channel d04 type disk;
allocate channel d05 type disk;
allocate auxiliary channel stby01 type disk;
allocate auxiliary channel stby02 type disk;
duplicate target database for standby from active database
spfile
parameter_value_convert '+DATA/ufms555/','+DATA/','ufms555','ufms777' set db_create_file_dest='+DATA'
set db_unique_name='ufms777'
set control_files='+DATA'
set audit_file_dest='/a0277/oracle/admin/ufms777/adump'
set diagnostic_dest='/a0277/oracle';
release channel d01;
release channel d02;
release channel d03;
release channel d04;
release channel d05;
release channel stby01 ;
release channel stby02 ;
quit;
EOF
ERROR.
+ export NLS_DATE_FORMAT=mm/dd/yyyy hh24:mi:ss
+ export ORACLE_BASE=/a0277/oracle
+ export ORACLE_HOME=/a0277/oracle/app/oracle/product/11203/db_1
+ export LIBPATH=/a0277/oracle/app/oracle/product/11203/db_1/lib:/a0277/oracle/app/oracle/product/11203/db_1/lib32
+ export LD_LIBRARY_PATH=/a0277/oracle/app/oracle/product/11203/db_1/lib:/a0277/oracle/app/oracle/product/11203/db_1/lib32
+ export CLASSPATH=/a0277/oracle/app/oracle/product/11203/db_1/jlib
+ export PATH=/a0277/oracle/app/oracle/product/11203/db_1/bin:/usr/ccs/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/local/bin
+ export ORACLE_SID=ufms777
+ rman
+ 0< /tmp/sh4391202.2
Recovery Manager: Release 11.2.0.3.0 - Production on Mon Oct 15 10:47:25 2012
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
RMAN>
connected to auxiliary database: UFMS555 (not mounted)
RMAN>
connected to target database: UFMS555 (DBID=1402717741)
RMAN> 2> 3> 4> 5> 6> 7> 8> 9> 10> 11> 12> 13> 14> 15> 16> 17> 18> 19> 20> 21> 22> 23> 24>
using target database control file instead of recovery catalog
allocated channel: d01
channel d01: SID=629 device type=DISK
allocated channel: d02
channel d02: SID=681 device type=DISK
allocated channel: d03
channel d03: SID=733 device type=DISK
allocated channel: d04
channel d04: SID=785 device type=DISK
allocated channel: d05
channel d05: SID=837 device type=DISK
allocated channel: stby01
channel stby01: SID=583 device type=DISK
allocated channel: stby02
channel stby02: SID=699 device type=DISK
Starting Duplicate Db at 10/15/2012 10:47:35
contents of Memory Script:
backup as copy reuse
targetfile '/a0143/oracle/product/11203/db_1/dbs/orapwufms555' auxiliary format
'/a0277/oracle/app/oracle/product/11203/db_1/dbs/orapwufms777' targetfile
'/a0143/oracle/product/11203/db_1/dbs/spfileufms555.ora' auxiliary format
'/a0277/oracle/app/oracle/product/11203/db_1/dbs/spfileufms777.ora' ;
sql clone "alter system set spfile= ''/a0277/oracle/app/oracle/product/11203/db_1/dbs/spfileufms777.ora''";
executing Memory Script
Starting backup at 10/15/2012 10:47:35
Finished backup at 10/15/2012 10:47:36
sql statement: alter system set spfile= ''/a0277/oracle/app/oracle/product/11203/db_1/dbs/spfileufms777.ora''
contents of Memory Script:
sql clone "alter system set dispatchers =
''(PROTOCOL=TCP) (SERVICE=ufms777XDB)'' comment=
'''' scope=spfile";
sql clone "alter system set log_archive_dest_1 =
''LOCATION=USE_DB_RECOVERY_FILE_DEST DB_UNIQUE_NAME=ufms777'' comment=
'''' scope=spfile";
sql clone "alter system set db_create_file_dest =
''+DATA'' comment=
'''' scope=spfile";
sql clone "alter system set db_unique_name =
''ufms777'' comment=
'''' scope=spfile";
sql clone "alter system set control_files =
''+DATA'' comment=
'''' scope=spfile";
sql clone "alter system set audit_file_dest =
''/a0277/oracle/admin/ufms777/adump'' comment=
'''' scope=spfile";
sql clone "alter system set diagnostic_dest =
''/a0277/oracle'' comment=
'''' scope=spfile";
shutdown clone immediate;
startup clone nomount;
executing Memory Script
sql statement: alter system set dispatchers = ''(PROTOCOL=TCP) (SERVICE=ufms777XDB)'' comment= '''' scope=spfile
sql statement: alter system set log_archive_dest_1 = ''LOCATION=USE_DB_RECOVERY_FILE_DEST DB_UNIQUE_NAME=ufms777'' comment= '''' scope=spfile
sql statement: alter system set db_create_file_dest = ''+DATA'' comment= '''' scope=spfile
sql statement: alter system set db_unique_name = ''ufms777'' comment= '''' scope=spfile
sql statement: alter system set control_files = ''+DATA'' comment= '''' scope=spfile
sql statement: alter system set audit_file_dest = ''/a0277/oracle/admin/ufms777/adump'' comment= '''' scope=spfile
sql statement: alter system set diagnostic_dest = ''/a0277/oracle'' comment= '''' scope=spfile
Oracle instance shut down
released channel: d01
released channel: d02
released channel: d03
released channel: d04
released channel: d05
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 10/15/2012 10:47:44
RMAN-05501: aborting duplication of target database
RMAN-03015: error occurred in stored script Memory Script
RMAN-04006: error from auxiliary database: ORA-01017: invalid username/password; logon denied
RMAN>
Recovery Manager complete.Thanks Osama for quick response.
Here is output
(NP) SYS@ufms777 AS SYSDBA> startup nomount pfile=$ORACLE_HOME/dbs/initufms777.oraORACLE instance started.
Total System Global Area 1770434560 bytes
Fixed Size 2222320 bytes
Variable Size 1056966416 bytes
Database Buffers 704643072 bytes
Redo Buffers 6602752 bytes
(NP) SYS@ufms777 AS SYSDBA> eit
SP2-0042: unknown command "eit" - rest of line ignored.
(NP) SYS@ufms777 AS SYSDBA> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
k801ora@jd1su277 in /exports/scripts : sqlplus sys/sys_143_npr#555@ufms777 as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Mon Oct 15 11:08:04 2012
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
(NP) SYS@ufms777 AS SYSDBA> -
Failing by duplicate database from active database
Hallo,
i'm working with 11g on one server and want to duplicate a database in active mode.
what i do:
i create a new password-file using orapwd - orapwNEW
i create a new entry for ORANEW in tnsnames.ora and listener.ora
then i execute rman TARGET sys/xxx@old AUXILIARY sys/xxx@NEW
then rman> DUPLICATE TARGET DATABASE TO NEW FROM ACTIVE DATABASE SPFILE NOFILENAMECHECK;
then i've got the failure RMAN-06403, RMAN-04006, ORA-01034
whats the problem?
thanks in advance.i think it is the problem that rman can't connect to the auxiliary db.
but what i must do?
in the documentation i found that:
The PASSWORD FILE option specifies that RMAN should copy the password file to the destination host. RMAN automatically copies the server parameter file to the destination host, starts the auxiliary instance with the server parameter file, copies all necessary database files and archived redo logs over the network to the destination host, and recovers the database. Finally, RMAN opens the database with the RESETLOGS option to create the online redo log. -
Problem with duplicate target database from active database
Hi all,
i try duplicate database from active database
- I have von target and auxiliary the same SYS Password
- tnsping wogks in both directions fine
- sqlplus to target and auxilairy works from both server
- Metalink Solution 1056174.1 not help
but in the Rman log become this error:
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at
RMAN-05501: aborting duplication of target database
RMAN-03015: error occurred in stored script Memory Script
RMAN-03009: failure of backup command on a1 channel at
ORA-17629: Cannot connect to the remote database server
ORA-17629: Cannot connect to the remote database server
i do do :
rman target sys/PASSWD@TARGET auxiliary sys/PASSWD
run
ALLOCATE CHANNEL a1 DEVICE TYPE DISK;
ALLOCATE AUXILIARY CHANNEL d1 DEVICE TYPE DISK;
duplicate target database to XXXXX
from active database
DB_FILE_NAME_CONVERT ('/XXXX/XXXX/XXXXXX','/XXXXX/XXXXXX/XXXXX/')
spfile
parameter_value_convert '/XXXX/','/XXXXX/'
set log_file_name_convert '/XXXXX/','/XXXXX/'
any Idea ?
Best RegardsDon't know if this will help, but I use the connect string below to connect, then run the command below. This is, of course, after the rman backup from the prod system has been copied to the flash_recovery_area of the aux database. All file paths are the same between the two systems. Works like a charm most nights. The local tnsnames file on the rman catalog server has working entries for @SDPROD, @rman and @SDSTB.
[Connect String]
rman TARGET SYS/xxxxx@SDPROD CATALOG rman/xxxxx@rman AUXILIARY SYS/xxxxx@SDSTB cmdfile D:\cladmin\Scripts\DuplicateSD.rcv LOG=D:\cladmin\Logs\DuplicateSD.f
[Command file block]
RUN{
ALLOCATE AUXILIARY CHANNEL aux1 DEVICE TYPE DISK;
DUPLICATE TARGET DATABASE TO DATABASENAME
NOFILENAMECHECK;
Edited by: user522620 on Jun 27, 2011 6:36 PM -
Duplicate database synchronize
I have duplicated the database “prod” to “dup”.
$rman target sys/oracle@ORIGDB auxiliary /
RMAN> duplicate target database to DUP nofilenamecheck;
My question is in order to synchronize the duplicate database from time to time, do I need to drop the duplicate database first and then re-run the “RMAN> duplicate target database to DUP;” command?You don't have to drop the database first.
Shutdown and then start in nomount before you run the duplicate command.
Maybe you are looking for
-
My applications always quit...iChat only works for 4 minutes at a time HELP
ok so i bought leopard today i installed it but i skipped that step when leopard checks the volume of your comp or whateever (not sure if that will affect what im about to say) now i have leopard...i love it but my applications just KEEP quitting out
-
Trigger and rollback on oracle 9i
hi, i work on oracle 9i. in my database i import csv file in en temporary table and make a trigger to update 2 table after insert. i want to make a csv file wich contain each not good row. i search a way to cancel the first update if the second updat
-
Bought used ipo touch 5th gen but can't get it to work with my library
hi bought used 5th gen ipod touch on ebay but it doesn't show in my library when i connect it all i get on the ipod is a message saying do you trust this computer when i prees yes nothing happens.
-
Selection screen fields in SAP Query
HI friends, I have to make the seletion screen field as mandatory in SAP-Query. Please let me know the procedure to make field as mandatory or Let me know how to validate the selection-screen field in Query. Thanks in Advance, Ravi
-
Hi, does anybody have experience with XI and RFID? Regards, Udo