Duplicate target database for standby from active database session

i have 1 tb db. for example i execute the duplicate command from activate standby database.after 500gb datafile copy the session terminate due to some bottle neck ( network) .is it possible to resume the job again means job again starded from the previous stage .
thanks
Edited by: 913779 on Sep 4, 2012 12:28 AM

Hello;
Changing my answer - you can use repeat DUPLICATE to do this :
http://docs.oracle.com/cd/E11882_01/backup.112/e10642/rcmdupdb.htm#BGBEFJHH
As an alternative you could move the RMAN backup and then roll it forward :
http://www.visi.com/~mseberg/duprman2.html
and then :
http://www.oracle-ckpt.com/?s=incremental&op.x=0&op.y=0
Best Regards
mseberg
Edited by: mseberg on Sep 4, 2012 4:45 AM

Similar Messages

  • RMAN 11gR2 DUPLICATE TARGET FOR STANDBY FROM ACTIVE DATABASE - Issue -HELP

    First question.
    Can primary and standby database have the same SID name?
    As I recall it is yes.
    I believe they must have different GLOBAL or DB_UNIQUE_NAME?
    Anyway, RMAN I believe is telling me it is having problems copying control file on first and dies.
    Permissions Issue on STANDBY machine?
    RMAN> connect target backup_admin/backup_admin
    connected to target database: LABDG (DBID=1973403623)
    RMAN> connect auxiliary sys/oracle@STANDBY;
    connected to auxiliary database: LABDG (not mounted)
    RMAN> DUPLICATE TARGET DATABASE FOR STANDBY FROM ACTIVE DATABASE;
    Starting Duplicate Db at 18-JUL-11
    using target database control file instead of recovery catalog
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: SID=10 device type=DISK
    contents of Memory Script:
    backup as copy reuse
    targetfile '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/orapwLABDG' auxiliar
    '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/orapwLABDG' ;
    executing Memory Script
    Starting backup at 18-JUL-11
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=151 device type=DISK
    Finished backup at 18-JUL-11
    contents of Memory Script:
    backup as copy current controlfile for standby auxiliary format '/u01/oradat
    restore clone controlfile to '/u01/app/oracle/flash_recovery_area/LABDG/cont
    '/u01/oradata/LABDG/control01.ctl';
    executing Memory Script
    Starting backup at 18-JUL-11
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting datafile copy
    copying standby control file
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 07/18/2011 11:20:54
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-03009: failure of backup command on ORA_DISK_1 channel at 07/18/2011 11:20:
    ORA-17628: Oracle error 19505 returned by remote Oracle server

    Hi,
    Permissions Issue on STANDBY machine?First problem I see is the sysdba password must be the same on both sides (target and auxiliary dbs).
    From the documentation.
    The source database and auxiliary instances must use the same SYSDBA password, which means that both instances must have password files. You can
    create the password file with a single password so you can start the auxiliary instance and enable the source database to connect to it.Check all prereqs for the standby db duplicate here.
    http://download.oracle.com/docs/cd/E11882_01/backup.112/e10643/rcmsynta020.htm#i81724
    Rgds,
    Tycho

  • RMAN duplicate target database for standby from active fails to create newname for system tablespace/datafile

    When executing 'duplicate target database for standby from active'  the system tablespace/datafile (datafile 1)  is not cloned.  All other datafiles clone successfully.  The RMAN process aborts with the following errors while attempting to clone the system tablespace/datafile.
    ORA-19558: error de-allocating device
    ORA-19557: device error, device type: DISK, device name:
    ORA-17627: ORA-01041: internal error. hostdef extension doesn't exist
    ORA-17627: ORA-01041: internal error. hostdef extension doesn't exist
    ORA-03135: connection lost contact
    Here are the details:
    Primary is 11.2.0.2 RAC database  on an Exadata platform
    Standby is 11.2.0.2 Single Instance database (same patch level as primary) on a Red Hat Linux box
    This is an ASM to ASM duplication.
    This is not unique to this database.  We tried another database and go the same behavior - all datafiles clone successfully with the exception of the system tablespace/datafile.
    We have traced the RMAN execution and it seems to fail when it is trying to assign a NEWNAME to the system tablespace/datafile.
    We even issued an explicit SET NEWNAME command but RMAN ignored it.
    We also shutdown the primary and started is up in mount mode thinking that something had ahold of the System Tablespace/datafile.
    We also opened up the network firewall to allow permit any,any traffic.
    We increased the max_server_processes
    and added TCP.NODELAY=yes to the sqlnet.ora file.
    There seems to be some artifact present in our Primary System tablespace/data file that is preventing it form being cloned.
    checked all alert files grid, asm,  and dbhome - no abnormal messages.
    We are in the process of restoring the database from a backup but we would prefer to get this working using the 'Active Database' methodology

    I successfully created the standby database using RMAN backup and recovery.
    I started the managed recovery.  Archive logs are being sent from the primary to the standby ( I can see them in ASM), but the standby is not applying them.
    I get the following messages in the standby alert log...
    Fetching gap sequence in thread 2, gap sequence 154158-154257
    Tue Nov 26 16:19:58 2013
    Using STANDBY_ARCHIVE_DEST parameter default value as USE_DB_RECOVERY_FILE_DEST
    Using STANDBY_ARCHIVE_DEST parameter default value as USE_DB_RECOVERY_FILE_DEST
    Tue Nov 26 16:20:01 2013
    Fetching gap sequence in thread 2, gap sequence 154158-154257
    Tue Nov 26 16:20:11 2013
    Fetching gap sequence in thread 2, gap sequence 154158-154257
    Tue Nov 26 16:20:22 2013
    Fetching gap sequence in thread 2, gap sequence 154158-154257
    Tue Nov 26 16:20:32 2013
    Fetching gap sequence in thread 2, gap sequence 154158-154257
    I don't see any MRP processes:
    select process,
    status,
        thread#,
        sequence#,
       block#,
      blocks
      7     from v$managed_standby;
    PROCESS   STATUS          THREAD#  SEQUENCE#     BLOCK#     BLOCKS
    ARCH      CLOSING               2     154363          1        132
    ARCH      CONNECTED             0          0          0          0
    ARCH      CONNECTED             0          0          0          0
    ARCH      CONNECTED             0          0          0          0
    ARCH      CONNECTED             0          0          0          0
    ARCH      CONNECTED             0          0          0          0
    ARCH      CONNECTED             0          0          0          0
    ARCH      CONNECTED             0          0          0          0
    RFS       IDLE                  0          0          0          0
    RFS       IDLE                  1     145418        121          1
    RFS       IDLE                  0          0          0          0
    PROCESS   STATUS          THREAD#  SEQUENCE#     BLOCK#     BLOCKS
    RFS       IDLE                  0          0          0          0
    12 rows selected.
    SQL>  SELECT THREAD#, SEQUENCE#, APPLIED FROM V$ARCHIVED_LOG;
       THREAD#  SEQUENCE# APPLIED
             2     154356 NO
             2     154357 NO
             1     145411 NO
             2     154358 NO
             2     154360 NO
             2     154361 NO
             1     145414 NO
             1     145415 NO
             2     154362 NO
             2     154363 NO
             1     145416 NO
    11 rows selected.
    I do have the archive logs that cover sequences 154158-154257
    Crosschecked 38 objects
    Crosschecked 62 objects
    Finished implicit crosscheck backup at 26-NOV-13
    Starting implicit crosscheck copy at 26-NOV-13
    using channel ORA_DISK_1
    using channel ORA_DISK_2
    Crosschecked 2 objects
    archived log file name=+RECO_XORA/nmuasb00/archivelog/2013_11_26/thread_2_seq_154377.344.832521989 RECID=29 STAMP=832521990
    validation succeeded for archived log
    archived log file name=+RECO_XORA/nmuasb00/archivelog/2013_11_26/thread_2_seq_154378.346.832521991 RECID=31 STAMP=832521993
    Crosschecked 31 objects

  • RMAN DUPLICATE FOR STANDBY FROM ACTIVE DATABASE fails

    Hello
    I'm trying to use RMAN DUPLICATE to create a standby database using Oracle 11.2.0.3 with PSU 6 on HP-UX.
    Primary is 2 node RAC. Standby is also 2 node RAC.
    Standby database instance is started in nomount mode.
    I use:
    duplicate target database for standby from active database
      spfile
      <some spfile parameters>
    with PFILE I get:
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 10/01/2013 12:41:13
    RMAN-05501: aborting duplication of target database
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-03009: failure of sql command on clone_default channel at 10/01/2013 12:41:13
    RMAN-11003: failure during parse/execution of SQL statement: alter system set spfile= '/opt/oracle/db11203/dbs/spfileCU1.ora'
    ORA-02097: parameter cannot be modified because specified value is invalid
    ORA-01565: error in identifying file '/opt/oracle/db11203/dbs/spfileCU1.ora'
    ORA-27037: unable to obtain file status
    HPUX-ia64 Error: 2: No such file or directory
    With SPFILE I get;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 10/01/2013 13:06:34
    RMAN-05501: aborting duplication of target database
    RMAN-05537: DUPLICATE without TARGET connection when auxiliary instance is started with spfile cannot use SPFILE clause
    But I do have RMAN connexion to target database.
    Thanks for your help.

    Here is the output beginning of the script which clearly shows that I'm always connected to target database:
    Recovery Manager: Release 11.2.0.3.0 - Production on Tue Oct 1 13:05:47 2013
    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
    connected to target database: CU (DBID=1143962925)
    connected to auxiliary database: CU (not mounted)
    RMAN> set echo on
    2> run
    3> {
    4>  configure device type disk parallelism 10;
    5>   allocate channel pr1 type disk;
    6>   allocate channel pr2 type disk;
    7>   allocate channel pr3 type disk;
    8>   allocate channel pr4 type disk;
    9>   allocate channel pr5 type disk;
    10>   allocate channel pr6 type disk;
    11>   allocate channel pr7 type disk;
    12>   allocate channel pr8 type disk;
    13>   allocate channel pr9 type disk;
    14>   allocate channel pr10 type disk;
    15>   allocate auxiliary channel st1 type disk;
    16>   allocate auxiliary channel st2 type disk;
    17>   allocate auxiliary channel st3 type disk;
    18>   allocate auxiliary channel st4 type disk;
    19>   allocate auxiliary channel st5 type disk;
    20>   allocate auxiliary channel st6 type disk;
    21>   allocate auxiliary channel st7 type disk;
    22>   allocate auxiliary channel st8 type disk;
    23>   allocate auxiliary channel st9 type disk;
    24>   allocate auxiliary channel st10 type disk;
    25>   duplicate target database for standby from active database
    26>   spfile

  • Duplicate database for standby from active database

    I'm running 11.1.0.7. Has anybody ever duplicated a standby database from active database and the active database being a physical standby open for read only with active dataguard instead of a primary dataguard database?
    The key here is location. The primary is located at a remote site where network bandwidth is inadequate for fast copy of database. The active standby database is at same site where I would like to build the new physical standby.

    I don't think you can, because "You cannot CONNECT RMAN to the standby database and then use DUPLICATE ... FOR STANDBY to create an additional standby database " and you can't fake it out by getting a controlfile from the primary because the controlfile has to match up with the backup and can't be a standby.
    But I'm wondering if you could failover to the standby, duplicate, fail back, then... oh well, that will never work either, incarnation problem.
    Snapshot standby? Could one back it up, then flashback restored new standby, change dbid? I would guess there would be an SCN problem, but don't know enough about it.

  • Duplicate target database for standby failing with below error

    Hello All, Need your assistance
    We are creating a physical standby database (standalone) from 2 node RAC database, OS =RHEL5 and DB =11gR2
    What we did: We took RMAN backup of primary DB along with archives and copied to standby server in same location. We have modified necessory prameters on primary as well as standby too.
    The command we used :
    RMAN>connect target sys/pwd@primary auxiliary sys/pwd@stdby
    RMAN> run {
    allocate auxiliary channel ch1 type disk;
    duplicate target database for standby dorecover nofilenamecheck;
    release channel ch1;
    Note we tried : duplicate target database for standby as well as duplicate target database for standby nofilenamecheck methods too....But no luck..we are getting following error.
    channel ch1: reading from backup piece /u01/BDB/BWFCCPRD_5fmpdvce_1_1
    channel ch1: ORA-19870: error while restoring backup piece /u01/BDB/BWFCCPRD_5fmpdvce_1_1
    ORA-19501: read error on file "/u01/BDB/BWFCCPRD_5fmpdvce_1_1", block number 121856 (block size=8192)
    ORA-27072: File I/O error
    Additional information: 4
    Additional information: 121856
    Additional information: 1036288
    failover to previous backup
    released channel: ch1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 10/20/2011 09:16:11
    RMAN-05501: aborting duplication of target database
    RMAN-05556: not all datafiles have backups that can be recovered to SCN 41855007833
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06026: some targets not found - aborting restore
    RMAN-06023: no backup or copy of datafile 4 found to restore
    RMAN-06023: no backup or copy of datafile 2 found to restore
    RMAN-06023: no backup or copy of datafile 1 found to restore
    could you pease help to resolve this ....?
    Note : Creating standby using RMAN 11g new feature : duplicate target database for standby from active database is not possible in our environment since the network bandwith is tooooo low, We have tried and not able to succeed because of n/w issue, So we are doing this alternate method...!!!
    Looking for your valuable advises...
    Thanks in Advance....

    Take the fresh backup and also check the space crunch. The below clink may help you
    ORA-27072: File I/O error Additional information: 2
    --neeraj
    Edited by: Vishen on Oct 20, 2011 2:14 PM

  • ORA-00119,ORA-00132 during duplicate target database for standby in 11gR2

    I am running
    duplicate target database for standby from active database
    command from RMAN.
    I went thru step-by-step on how to create a standby database from the textbook i got from my Oracle Univ. 11g Data Guard course. I set up all the listener.ora and tnsnames.ora files using netmgr, but I'm getting local_listener error.
    Here's what I am running in rman:
    run {
    allocate channel prmy1 type disk;
    allocate channel prmy2 type disk;
    allocate channel prmy3 type disk;
    allocate channel prmy4 type disk;
    allocate auxiliary channel stby type disk;
    duplicate target database for standby from active database
    spfile
    parameter_value_convert 'kyledb','kylerep'
    set db_unique_name='kylerep'
    set db_file_name_convert='/kyledb/','/kylerep/'
    set log_file_name_convert='/kyledb/','/kylerep/'
    set control_files='/oradata/kylerep/control01.ctl'
    set log_archive_max_processes='4'
    set fal_client='kylerep'
    set fal_server='kyledb'
    set standby_file_management='AUTO'
    set log_archive_config='dg_config=(kyledb,kylerep)'
    set log_archive_dest_1='service=kyledb ASYNC valid_for=(ONLINE_LOGFILE,PRIMARY_ROLE) db_unique_name=kyledb'
    And here's the error i get:
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 07/12/2010 17:33:28
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-04014: startup failed: ORA-00119: invalid specification for system parameter LOCAL_LISTENER
    ORA-00132: syntax error or unresolved network name 'LISTENER_KYLEDB'
    result of
    SQL>show parameter local_listener;
    is
    NAME TYPE VALUE
    local_listener string LISTENER_KYLEDB
    entry in my listener.ora is
    SID_LIST_KYLEDB_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = kyledb.kyledev.usms.doj.gov)
    (ORACLE_HOME = /app/oracle/product/11.2.0/dbhome_1)
    (SID_NAME = kyledb)
    ADR_BASE_KYLEDB_LISTENER = /app/oracle
    KYLEDB_LISTENER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = kyledev.usms.doj.gov)(PORT = 7898))
    and entry in tnsnames.ora file is
    KYLEREP =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = kyledbdev.usms.doj.gov)(PORT = 7898))
    (CONNECT_DATA =
    (SERVICE_NAME = kylerep.kyledbdev.usms.doj.gov)
    KYLEDB =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = kyledev.usms.doj.gov)(PORT = 7898))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = kyledb.kyledev.usms.doj.gov)
    LISTENER_KYLEDB =
    (ADDRESS = (PROTOCOL = TCP)(HOST = kyledev.usms.doj.gov)(PORT = 7898))
    Can anyone help me figure out what went wrong?
    Thanks in advance....

    I had the same problem,
    I Define TNS_ADMIN environment on script an resolve my problem.
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of startup command at 10/08/2010 17:21:15
    RMAN-04014: startup failed: ORA-00119: invalid specification for system parameter LOCAL_LISTENER
    ORA-00132: syntax error or unresolved network name 'LISTENER_DESENV2'
    In my shell increase the Environment:
    ## VARIAVEIS
    export NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1
    export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db1
    export PATH=$ORACLE_HOME/bin:$PATH
    export TNS_ADMIN=/u01/app/oracle/product/10.2.0/asm1/network/admin
    export ORACLE_SID=$1
    ## CHAMADA RMAN
    rman target / log=/u02/backup/db$1/bkp_cold-$1.log cmdfile=/home/oracle/script/rman/cold_backup/cold_backup.rcv
    After this:
    RMAN> run{
    2> shutdown immediate;
    3> startup force mount;
    4> backup database include current controlfile tag 'BKP_COLD_FULL';
    5> alter database open;
    6> delete obsolete;
    7> }
    8>
    9>
    using target database control file instead of recovery catalog
    database closed
    database dismounted
    Oracle instance shut down
    Oracle instance started
    database mounted
    Total System Global Area 1073741824 bytes
    Fixed Size 2089400 bytes
    Variable Size 264244808 bytes
    Database Buffers 801112064 bytes
    Redo Buffers 6295552 bytes
    Hope this helps and sorry for my terrible English! =)

  • Standby from active database

    Hello,
    I am attempting to create a physical standby database, following this guide:
    http://www.oracle.com/global/uk/education/downloads/uwe_data_guard.pdf
    as well as the oracle documentation on Data Guard. Using Oracle 11gR2 patched at #7 running on Windows Server 2008.
    I've set all the parameters, created password files and checked connectivity. Hopefully correctly. I will post pfile exports at the end.
    Here is where I hit a dead end.
    RMAN> connect target system/password@HPROD89
    connected to target database : HPROD89 (DBID)
    RMAN> connect auxiliary sys/password@HPROD89STND
    connected to auxiliary database: HPROD89STND (not mounted)
    RMAN> duplicate target database for standby from active database;Error from spool. I need to spool the file to get the error code, otherwise the only thing rman provides is a "error message stack follows" message with nothing after that.
    RMAN-03002: failure of Duplicate Db command at 11/19/2010 21:24:04
    RMAN-06136: ORACLE error from auxiliary database: ORA-03114: not connected to ORACLEI'm running rman on the standby server with the database in NOMOUNT as the guide linked above suggests. This raises a simple question to start with: what server do I run rman on? The one with the primary database, or on the standby?
    I hope it's just because it's getting late, but this issue has me confused .. rman clearly connects the auxiliary, but when trying to perform the actual duplication, it's not connected.
    Thanks for input.
    Regards.

    primary parameters:
    hprod89.__db_cache_size=3825205248
    hprod89.__java_pool_size=33554432
    hprod89.__large_pool_size=33554432
    hprod89.__oracle_base='C:\app\oracle'#ORACLE_BASE set from environment
    hprod89.__pga_aggregate_target=4127195136
    hprod89.__sga_target=6375342080
    hprod89.__shared_io_pool_size=0
    hprod89.__shared_pool_size=2415919104
    hprod89.__streams_pool_size=0
    *._gby_hash_aggregation_enabled=FALSE
    *._unnest_subquery=FALSE
    *.audit_file_dest='C:\app\oracle\admin\HPROD89\adump'
    *.audit_trail='db'
    *.compatible='11.2.0.0.0'
    *.control_files='E:\oracle\oradata\HPROD89\controlfiles\control01.ctl','E:\oracle\oraflash\HPROD89\controlfiles\control02.ctl'
    *.db_block_size=8192
    *.db_domain='ad.rferl.org'
    *.db_file_name_convert='E:\oracle\oradata\HPROD89STND\datafiles\','E:\oracle\oradata\HPROD89\datafiles\'
    *.db_files=1021
    *.db_name='HPROD89'
    *.db_recovery_file_dest='E:\oracle\oraflash'
    *.db_recovery_file_dest_size=104857600000
    *.diagnostic_dest='C:\app\oracle'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=HPROD89XDB)'
    *.fal_server='HPROD89STND'
    *.log_archive_config='dg_config=(HPROD89, HPROD89STND)'
    *.log_checkpoint_interval=0
    *.log_checkpoint_timeout=0
    *.log_file_name_convert='E:\oracle\oradata\HPROD89STND\redologs\','E:\oracle\oradata\HPROD89\redologs\'
    *.memory_target=10485760000
    *.nls_language='ENGLISH'
    *.nls_length_semantics='CHAR'
    *.nls_territory='CZECH REPUBLIC'
    *.open_cursors=300
    *.processes=150
    *.remote_login_passwordfile='EXCLUSIVE'
    *.standby_file_management='AUTO'
    *.undo_tablespace='UNDOTBS1'
    standby:
    hprod89stnd.__db_cache_size=5100273664
    hprod89stnd.__java_pool_size=33554432
    hprod89stnd.__large_pool_size=33554432
    hprod89stnd.__oracle_base='C:\app\oracle'#ORACLE_BASE set from environment
    hprod89stnd.__pga_aggregate_target=4227858432
    hprod89stnd.__sga_target=6274678784
    hprod89stnd.__shared_io_pool_size=0
    hprod89stnd.__shared_pool_size=1040187392
    hprod89stnd.__streams_pool_size=0
    *._gby_hash_aggregation_enabled=FALSE
    *._unnest_subquery=FALSE
    *.audit_file_dest='C:\app\oracle\admin\HPROD89STND\adump'
    *.audit_trail='db'
    *.compatible='11.2.0.0.0'
    *.control_files='E:\oracle\oradata\HPROD89STND\controlfiles\control01.ctl','E:\oracle\oraflash\HPROD89STND\controlfiles\control02.ctl'
    *.db_block_size=8192
    *.db_domain=''
    *.db_file_name_convert='E:\oracle\oradata\HPROD89\datafiles\','E:\oracle\oradata\HPROD89STND\datafiles\'
    *.db_files=1021
    *.db_name='HPROD89S'
    *.db_recovery_file_dest='E:\oracle\oraflash'
    *.db_recovery_file_dest_size=104857600000
    *.db_unique_name='HPROD89STND'
    *.diagnostic_dest='C:\app\oracle'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=HPROD89STNDXDB)'
    *.log_checkpoint_interval=0
    *.log_checkpoint_timeout=0
    *.log_file_name_convert='E:\oracle\oradata\HPROD89\redologs\','E:\oracle\oradata\HPROD89STND\redologs\'
    *.memory_target=10485760000
    *.nls_language='ENGLISH'
    *.nls_length_semantics='CHAR'
    *.nls_territory='CZECH REPUBLIC'
    *.open_cursors=300
    *.processes=150
    *.remote_login_passwordfile='EXCLUSIVE'
    *.undo_tablespace='UNDOTBS1'

  • Duplicate target database for standby failed

    Hi,
    Im trying to uplicate target database for standby and get error message bellow :
    RMAN> DUPLICATE TARGET DATABASE
    2>   FOR STANDBY
    3>   FROM ACTIVE DATABASE
    4>   DORECOVER
    5>   SPFILE
    6>     SET db_unique_name='dgtst' COMMENT 'Is standby'
    7>     SET LOG_ARCHIVE_DEST_2='SERVICE=dgtst ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=dgtst'
    8>     SET FAL_SERVER='dgtst' COMMENT 'Is primary'
    9>   NOFILENAMECHECK;
    Starting Duplicate Db at 24-FEB-12
    using target database control file instead of recovery catalog
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 02/24/2012 22:51:21
    RMAN-05501: aborting duplication of target database
    RMAN-03009: failure of allocate command on ORA_AUX_SBT_TAPE_1 channel at 02/24/2012 22:51:21
    ORA-19554: error allocating device, device type: SBT_TAPE, device name:
    ORA-27211: Failed to load Media Management Library
    Additional information: 2Please advice
    Thanks

    Hello mseberg,
    Actually you find the problem .....
    Adding the following softlink helped :
    ln -s /opt/omni/lib/libob2oracle8_64bit.so /u01/app/oracle/product/11.2.0/DG11gR2TST/lib/libobk.so
    I run the duplicate command and its look much better:
    $ rman TARGET sys/mysyspass@dgtst AUXILIARY sys/mysyspass@drtst
    Recovery Manager: Release 11.2.0.2.0 - Production on Sat Feb 25 07:43:15 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    connected to target database: DGTST (DBID=244743902)    <<<=== connected
    connected to auxiliary database: DGTST (not mounted)    <<<=== connected
    RMAN> DUPLICATE TARGET DATABASE
    2> FOR STANDBY
    3> FROM ACTIVE DATABASE
    4> DORECOVER
    5> SPFILE
    6> SET db_unique_name='dgtst' COMMENT 'Is standby'
    SET LOG_ARCHIVE_DEST_2='SERVICE=dgtst ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=dgtst'
    7> 8> SET FAL_SERVER='dgtst' COMMENT 'Is primary'
    9> NOFILENAMECHECK;
    Starting Duplicate Db at 25-FEB-12
    using target database control file instead of recovery catalog
    allocated channel: ORA_AUX_SBT_TAPE_1
    channel ORA_AUX_SBT_TAPE_1: SID=156 device type=SBT_TAPE
    channel ORA_AUX_SBT_TAPE_1: Data Protector A.06.11/PHSS_40470/PHSS_40471/DPSOL_00391/DPLNX_
    allocated channel: ORA_AUX_SBT_TAPE_2
    channel ORA_AUX_SBT_TAPE_2: SID=189 device type=SBT_TAPE
    channel ORA_AUX_SBT_TAPE_2: Data Protector A.06.11/PHSS_40470/PHSS_40471/DPSOL_00391/DPLNX_
    allocated channel: ORA_AUX_SBT_TAPE_16
    channel ORA_AUX_SBT_TAPE_16: SID=129 device type=SBT_TAPE
    channel ORA_AUX_SBT_TAPE_16: Data Protector A.06.11/PHSS_40470/PHSS_40471/DPSOL_00391/DPLNX_
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: SID=160 device type=DISK
    contents of Memory Script:
       backup as copy reuse
       targetfile  '/u01/app/oracle/product/11.2.0/DG11gR2TST/dbs/orapwdgtst' auxiliary format
    '/u01/app/oracle/product/11.2.0/DG11gR2TST/dbs/orapwdgtst'   targetfile
    '/u01/app/oracle/product/11.2.0/DG11gR2TST/dbs/spfiledgtst.ora' auxiliary format
    '/u01/app/oracle/product/11.2.0/DG11gR2TST/dbs/spfiledgtst.ora'   ;
       sql clone "alter system set spfile= ''/u01/app/oracle/product/11.2.0/DG11gR2TST/dbs/spfiledgtst.ora''";
    executing Memory Script
    Starting backup at 25-FEB-12
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=21 device type=DISK
    RMAN-03009: failure of backup command on ORA_DISK_1 channel at 02/25/2012 07:44:02
    ORA-17629: Cannot connect to the remote database server  <<<<<<====
    ORA-17627: ORA-12541: TNS:no listener                    <<<<<<====
    ORA-17629: Cannot connect to the remote database server
    continuing other job steps, job failed will not be re-run
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 02/25/2012 07:44:03
    RMAN-05501: aborting duplication of target database
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-03009: failure of backup command on ORA_DISK_1 channel at 02/25/2012 07:44:03
    ORA-17629: Cannot connect to the remote database server
    ORA-17627: ORA-12541: TNS:no listener
    ORA-17629: Cannot connect to the remote database serverAs you can see above rman successfully connected to the local and remote database.
    It also successfully allocated the DISK channel , but than it failed on :
    ORA-17627: ORA-12541: TNS:no listenerI cant understand why it happen:
    $ tnsping dgtst
    TNS Ping Utility for HPUX: Version 11.2.0.2.0 - Production on 25-FEB-2012 08:54:48
    Copyright (c) 1997, 2010, Oracle.  All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = hercules)(PORT = 1528))) (CONNECT_DATA = (SERVICE_NAME = dgtst)))
    OK (0 msec)
    $ tnsping drtst
    TNS Ping Utility for HPUX: Version 11.2.0.2.0 - Production on 25-FEB-2012 08:54:54
    Copyright (c) 1997, 2010, Oracle.  All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = pulse)(PORT = 1528))) (CONNECT_DATA = (SERVICE_NAME = dgtst)))
    OK (10 msec)And as you i show the rman successfully connect to both rempte and local as SYS user.

  • DUPLICATE TARGET DATABASE FOR STANDBY NOFILENAMECHECK DORECOVER;

    Hi
    Im a setting up one node physiscal standby for 2node 11.2 rac primary, what does DUPLICATE TARGET DATABASE FOR STANDBY NOFILENAMECHECK DORECOVER; do exactly?
    does it do restore controlfile for standby , restore database; recover database?
    I executed the command at about 2pm and the backup of primary was taken 1pm ( primary is on asm, i used this backup device type disk format '/u02/%U' database plus archivelog;
    backup device type disk format '/u02/%U' current controlfile for standby; )
    does this mean I will have to to restore any archivelogs that are generated after 1pm and manually copy them to standby ? or that data guard is smart enough to go and find them ?

    Hi,
    the command will duplicate the target database and create a standby database (including standby controlfile) from the backup you have taken.
    Then it will do the recovery with all archivelogs the standby system has access to.
    When you setup data guard in the next step, it will detect which archivelogs are missing and the "GAP" resolution will kick in, transferring all archivelogs missing to bring the
    standby database to the same timestamp.
    With 11.2 I would recommend to specify "from active database" additionally, since this will not restore from backup, but restore from the primary database directly via. network.
    This does not only save space, but will also recover to a more actual point (hence requiring less "GAP" resolution when you setup dataguard later).
    Regards
    Sebastian

  • 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 Regards

    Don'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 target database for standby backup location.... errors out

    Hi ,
    i am getting below error while executing
    RMAN> duplicate target database for standby backup location '/rman1/perf/brmbkpdg' nofilenamecheck dorecover ;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01009: syntax error: found "backup": expecting one of: "dorecover, db_file_name_convert, from, nofilenamecheck, ;, spfile"
    RMAN-01007: at line 1 column 39 file: standard input
    Can you please suggest a fix or what should be the syntax
    Thanks
    Naveen

    If it helps here are my tested commands: (Oracle 11)
    PRIMARY
    RMAN RUN {
    allocate channel d1 type disk;
    backup format '/u01/backups/PRIMARY/df_t%t_s%s_p%p' database;
    sql 'alter system archive log current';
    backup format '/u01/backups/PRIMARY/al_t%t_s%s_p%p' archivelog all;
    backup current controlfile for standby format '/u01/backups/PRIMARY/sb_t%t_s%s_p%p';
    release channel d1;
    STANDBY
    RMAN> run {
    allocate channel C1 device type disk;
    allocate auxiliary channel C2 device type disk;
    duplicate target database for standby nofilenamecheck;
    My how to notes are here :
    http://www.visi.com/~mseberg/duprman.html
    Please note these were written not to create but to recover a standby, you still have to set up forced logging and the net80 in advance.
    Best Regards
    mseberg

  • Duplicate target database for standby failing ...

    hi,
    below is the message reported at the end of rman session log:
    channel ORA_AUX_DISK_1: restore complete, elapsed time: 01:09:50
    failover to previous backup
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 07/10/2011 21:01:34
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06026: some targets not found - aborting restore
    RMAN-06023: no backup or copy of datafile 3 found to restore
    RMAN-06023: no backup or copy of datafile 1 found to restore
    RMAN>
    10.2.0.5/HPUX 11.31.
    running "duplicate target database for standby" ...
    pl. help to understand and troubleshoot..
    regards,
    X

    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06026: some targets not found - aborting restore
    RMAN-06023: no backup or copy of datafile 3 found to restore
    RMAN-06023: no backup or copy of datafile 1 found to restore
    running "duplicate target database for standby" ...
    pl. help to understand and troubleshoot..refet this metalink note
    *Rman Restore Fails With 'RMAN-06023: no backup ...of datafile .. to restore' Although Backup is Available [ID 793401.1]*

  • Duplicate target database from tag

    Hi guys,
    Wonder if someone has tried something like 'DUPLICATE TARGET DATABASE TO ... FROM TAG ...'?
    10.2.0.4 database, in today's duplication RMAN tried to find monthly cold backup instead of hotbackup that it usually takes. Monthly cold backup was taken after the hotbackup, and duplication starts some time after that. I know, controllfile tried to find the last backup, but after failing to find it (it is unaccessible from the host that performs duplication) it did not try to find the hotbackup (which is accessible by the new host), instead it was searching for previous monthly cold backups. This seems TAG related (these 2 backups have different tags) and I just wonder if I could explicitly set tag from which I could perform duplication, so I can avoid this happening again?
    Thanks

    user2552261 wrote:
    Hi guys,
    Wonder if someone has tried something like 'DUPLICATE TARGET DATABASE TO ... FROM TAG ...'?
    10.2.0.4 database, in today's duplication RMAN tried to find monthly cold backup instead of hotbackup that it usually takes. Monthly cold backup was taken after the hotbackup, and duplication starts some time after that. I know, controllfile tried to find the last backup, but after failing to find it (it is unaccessible from the host that performs duplication) it did not try to find the hotbackup (which is accessible by the new host), instead it was searching for previous monthly cold backups. This seems TAG related (these 2 backups have different tags) and I just wonder if I could explicitly set tag from which I could perform duplication, so I can avoid this happening again?
    ThanksYes, there's no such syntax, but in RMAN Recipes books, there's a way of how to do it
    Check this link: http://tinyurl.com/yax7k4m

  • Duplicate Target database for  RAC

    Oracle Database 11g Enterprise Edition
    Red Hat Linux
    Hi
    I am cloning a RAC database using Duplicate Target Database command. First we need to create one Auxiliary Instance using the init file of RAC source database.
    I see the following in the init file,
    MDB1.undo_tablespace='UNDOTBS1'
    MDB2.undo_tablespace='UNDOTBS2'
    What should I specify in the init file of Auxiliary instance for these Undo tablespaces ? I am setting CLUSTER_DATABASE to FALSE since the Duplicate database is a single instance one. Only the Source database is RAC.
    I am cloning only SYSTEM, SYSAUX, One User tablespace and the Two Undo tablespaces for a point in time 14 days back. I am skipping all other tablespaces.

    Hi Morgan,
    Is this correct to specify in the Init file ?
    *.undo_tablespace='UNDOTBS1'
    here UNDOTBS1 is already UNDO tablespace of one instance as I already mentioned.

Maybe you are looking for

  • How can I see the old backups of my previous Macbook done by Time machine in a Time capsule with my new iMac?

    How can I see the old backups of my previous Macbook done by Time machine in a Time capsule with my new iMac? I've changed from a Macbook to a iMac because that one stopped working and I cannot use it anymore. I've been able to import all the data of

  • Process-controlled workflow hang due to dump

    Hi all, due to a temporary dump in an SRM 7 system, some document-related workflows are stucked... in other terms, these workflow processes have been started, the the dump occoured and by now, they seems to be stucked in "in process" state. Tecnicall

  • Windows 7 Installation Problem on T61

    Hello everyone! Yesterday, I tried to install Windows 7 Beta (x86) on my T61 as dual-booting with Windows Vista Business (x86) OEM with SP1, but when the installation stage complete and my computer was restarted automatically, I got the message "Wind

  • Setting attributes question

    Hi, I am trying to set attributes of a object in a for loop so that it sets the attribute as many time as there are elements in the for loop and then add the object to an array list and then after exiting the array list set the same attribute to some

  • User profile service office 365 and infopath

    I'm having a very strange issue with the user profile service and InfoPath 2013 web form.  I am using Office 365.  I created a data connection to pre-populate user information using the _vti_bin/UserProfileService.asmx url. I can get everything to wo