RMAN duplicate grave crashes when I'm trying to change the paths of the destination

Hello community,

I am trying to duplicate a database of PROD for a test environment using the basic backup technique. I test the script in double and everything works fine when the paths of the database "auxiliary" (the database that I am creating) have the same paths as the basis of the 'target' (the database of production). If I change the paths, the double has failed because it does not find a backup of controlfile:

channel ch1: from the restore backup set data file

channel ch1: restore the control file

channel ch1: reading of the backup piece PROD_cf_c-2175092736-20151204-0 c

channel ch1: ORA-19870: error when restoring backup piece PROD_cf_c-2175092736-20151204-0 c

«"ORA-19507: failed to retrieve the sequential file, handle ="PROD_cf_c-2175092736-20151204-0 c", parms ="»

ORA-27029: skgfrtrv: sbtrestore returned error

ORA-19511: error received from layer media manager, error text:

< PROD_cf_c-2175092736-20151204-0 c > backup file not found in the NetBackup catalog

This is the script that works, but if I have the same structure of directories in PROD and TEST (but this isn't a real scenario):

run

{

allocate auxiliary channel ch1 device type sbt;

Send "NB_ORA_CLIENT = xxx NB_ORA_POLICY = xxx, NB_ORA_SCHED = Full_Diario';"

duplicate database for TEST PROD

until 'sysdate-2/24.

NOFILENAMECHECK;

output channel ch1.

}


And this is the script that it does not work because I have the PROD and TEST different directory structure

run

{

allocate auxiliary channel ch1 device type sbt;

Send "NB_ORA_CLIENT = xxx NB_ORA_POLICY = xxx, NB_ORA_SCHED = Full_Diario';"

duplicate database for TEST PROD

until 'sysdate-2/24.

SPFile

control_files value ' / TEST/orabd1/ctl/control_PROD_01.ctl','/TEST/oralog1/ctl/control_PROD_02.ctl','/TEST/oralog2/ctl/control_PROD_03.ctl '

db_file_name_convert value "/ PROD /", "/ TEST / '.

the value log_file_name_convert "/ PROD /", "/ TEST / '.

core_dump_dest value "/ TEST/oralog1/cdump".

the value 'TEST' db_name

Set diagnostic_dest ' /TEST/oralog2'

instance_name must bring 'TEST'.

all local_listener 'LISTENER_TEST '.

Set log_archive_dest_1 ' LOCATION = / TEST/arch.

the value of log_archive_dest_2 'LOCATION = NULL'

;

output channel ch1.

}

I tried to restore a Netbackup file and it works. I try to duplicate a database when the structures of directories are identical and it works. Why it's a failure when I change the destination paths?

Thank you!

Marina.

Hello

We had a similar problem in our shop. In our case, that we never knew if she was related to Oracle or NetBackup, but we found a Bug of Oracle, so we think it was a problem with the Oracle.

Bug 11783792  RMAN SEND command does not hold the value of the variable

DOC - ID 11783792.8


Rather than send 'NB_ORA_CLIENT = DCLI, NB_ORA_POLICY is BD_DC_2, NB_ORA_SCHED = Full_Diario';.

try something like this:

Run {}

allocate channels ch01 type 'sbt_tape' PARMS 'ENV =(NB_ORA_CLIENT=DCLI) ";

Send "NB_ORA_SERV =';"

Restore settings

output channel ch01.

}

Let me know if it helps.

Kind regards

Ferran

Tags: Database

Similar Questions

Maybe you are looking for

  • Equium P300-P6T - where to get a Toshiba Recovery disk?

    Crash fatal hard drive in the RECOVERY PARTITION! Bought antiques and did not have the recovery disks. Can someone point me in the right direction for discs to buy/acquire/download recovery Equium P300-P6T?

  • 4 the urge win 8.1 video playback issues

    Since update 8.1 win problems with video playback and the sound. VLC and other players like Flash (youtube) saw the shift with the sound and lose frames. I have the latest drivers and updates. The offset is not Visual, you can recognize especially in

  • Need help to install on win xp SP2, hp 8300 elite raid drivers?

    I spent to win 7 on HP elite 8300 for win xp sp2. I did this because I had to install a specific software that only works on Windows xp sp2. And now I have the problem with the raid drivers. I need help how to install them, and I don't know if I down

  • How to extract a zip file in the specific directory?

    I would like to schedule for download and extract the following files zipped directory specifice. Anyone have any suggestions on any approach to do this? Thanks in advance for your suggestions http://www.tradingblox.com/data/DataOnly.zip

  • I got a phone call offering to clear my computer of malicious files

    Original title: telephone contact - maintenance I got a phone call offering to clear my malicious files - remote computer or showing them myself first. I share the concerns that I had never heard of the vocations of the front window, and she says it'