Unregistering of a database from RMAN Catalog

Hello,
We had set up RMAN backup though RMAN Catalog for one of our database.
We later decided not to take the backups of this particular database. One of the DBA did something but what we can see now is that -
1. Target database is not registered in the catalog so no information can be gathered rman prompt after connecting to catalog through target database
2. But the recovery catalog "rc_backup_datafile" is showing as if it has old backups
We know that the tapes don't have the backup of this database.
Question - How to remove information from recovery catalog for a database in such a situation where although the database is not registered in the catalog but somehow the information related to old backups still persists in the catalog tables.
Thanks!

Thanks Tycho, for my purpose DBMS_RCVCAT.UNREGISTERDATABASE worked fine.
I have another question though -
We have compressed backup for one of the database/
If I look at backupset by executing "list backupset xxxxxxx;" command it shows the correct compressed value (in GB) of the backup set.
BUT when I look at the rc_backup_datafile table of the rman catalog for the size of of the backupset, it shows the uncompresses size of the backupset. I am using following query -
select BS_KEY,SUM(blocks*block_size)/1024/1024/1024 GB from rc_backup_datafile where DB_NAME='CCSTG04' and BS_KEY=1 group by BS_KEY;
Question - How to check the compressed size of the backupset from the Catalog tables/views?
Thanks for your help on this!
Thanks!
,

Similar Messages

  • Unregister database from the catalog

    Is it possible to cancel the registration of a database from the catalog?

    First you should delete all backups from the catalog database for the target. This isn't required but is easier accomplished with the target still registered.
    Next, you'll need to obtain the DB_KEY and DBID from the RC_DATABASE view in the RMAN schema in the catalog database. Then you'll run the following as the RMAN user connected to the RMAN catalog database in SQL*Plus.
    execute dbms_rcvcat.unregisterdatabase(DB_KEY,DBID);

  • Unregister from rman catalog

    Dear All,
    Currently our production backup is done by rman with catalog database. But I want to decommission it. I want to use the target database controlfile only for rman backup.
    what is the right approach to configure it?

    Currently our production backup is done by rman with catalog database. But I want to decommission it. I want to use the target database controlfile only for rman backup.
    what is the right approach to configure it?No ned to confiugre, while connecting to RMAN or in backupjob scripts just do not mention catalog connectivity.
    If any old backups available then register them with controlfile..
    in case of catalog :-
    rman target sys/****@prod catalog rman/rman@catlog
    in case of no-catalog:
    rman target sys/****@prod
    to register old backups:-
    RMAN> catalog start with 'location of backups';

  • Standby database from RMAN backup

    I have been assigned to create a standby database from our RMAN backups in a different machine, as this is my first attempt at recovering, I am struggling a bit. I would appreciate if someone can throw any light on what dumb mistakeI am doing here. I ahve absolutely no control over the back up script which is done by my vendor, but can do anything in the reocvery portion. I did try going through the documentaiton and other help available for the last 2 days.
    Database : Oracle 10G R2
    OS : Windows Server 2003
    My backup script is
    configure channel device type disk format 'J:\RMAN\RMAN_df_%U' maxpiecesize 2048M;
    SQL "ALTER SYSTEM SWITCH LOGFILE";
    SQL "ALTER SYSTEM SWITCH LOGFILE";
    backup database;
    SQL "ALTER SYSTEM SWITCH LOGFILE";
    SQL "ALTER SYSTEM SWITCH LOGFILE";
    backup current controlfile for standby FORMAT='J:\RMAN\RMAN_sc_%U';
    For recovery of a standby database,
    I have copied the the back up pieces and the archive logs to the standby server where I have just created an instance with the same name as production db.
    set ORACLE_SID=NGINPROD
    set dbid 820336652
    STARTUP NOMOUNT
    RESTORE STANDBY CONTROLFILE FROM 'I:\TEMP\RMAN_Backup\RMAN\RMAN_SC_2UMIUJM1_1_1';
    CATALOG BACKUPPIECE 'I:\TEMP\RMAN_Backup\RMAN\RMAN_DF_2RMIUIE4_1_1',
    'I:\TEMP\RMAN_Backup\RMAN\RMAN_DF_2RMIUIE4_2_1',
    'I:\TEMP\RMAN_Backup\RMAN\RMAN_DF_2RMIUIE4_3_1',
    'I:\TEMP\RMAN_Backup\RMAN\RMAN_DF_2RMIUIE4_4_1',
    'I:\TEMP\RMAN_Backup\RMAN\RMAN_DF_2RMIUIE4_5_1',
    'I:\TEMP\RMAN_Backup\RMAN\RMAN_DF_2RMIUIE4_6_1',
    'I:\TEMP\RMAN_Backup\RMAN\RMAN_DF_2RMIUIE4_7_1',
    'I:\TEMP\RMAN_Backup\RMAN\RMAN_DF_2SMIUJ88_1_1',
    'I:\TEMP\RMAN_Backup\RMAN\RMAN_DF_2SMIUJ88_2_1',
    'I:\TEMP\RMAN_Backup\RMAN\RMAN_DF_2SMIUJ88_3_1',
    'I:\TEMP\RMAN_Backup\RMAN\RMAN_DF_2SMIUJ88_4_1',
    'I:\TEMP\RMAN_Backup\RMAN\RMAN_DF_2TMIUJLN_1_1',
    'I:\TEMP\RMAN_Backup\RMAN\RMAN_SC_2UMIUJM1_1_1';
    RESTORE DATABASE;
    Till this step I do not encounter any issues, but when i try to recover the database I am hit with the below error.
    RMAN> recover database;
    Starting recover at 16-AUG-11
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=156 devtype=DISK
    starting media recovery
    unable to find archive log
    archive log thread=1 sequence=253340
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 08/16/2011 09:31:57
    RMAN-06054: media recovery requesting unknown log: thread 1 seq 253340 lowscn 4696173517
    ------------------------------------------------------------------------------------------------------------------------------------------------

    Here's the standard dcoumentation on the procedure :
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/rcmbackp.htm#i636377
    Appendix "F Creating a Standby Database with Recovery Manager" of the "Oracle® Data Guard Concepts and Administration" guide.
    I don't see ArchiveLog backups being done by the vendor's script. How do you backup the ArchiveLogs ?
    In your post you state that you have copied the ArchiveLogs. Are they copied to the same log_archive_dest location ? RMAN needs to be "aware" of them. You can use the "CATALOG" command in RMAN to register them into the controlfile.
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta011.htm#sthref230
    A Standby Database uses a Standby Controlfile which is created from the Primary (with the "ALTER DATABASE CREATE STANDBY CONTROLFILE AS 'locaion';" command) and then copied over to the Standby server.
    Hemant K Chitale

  • Can't register a database in RMAN catalog (PL/SQL package not current)

    Hi RMAN experts. I'm trying to register a 10.2.0.1.0 database into a 10.2.0.5.0 RMAN catalog but I get the following error (Note: following was done on the rman server machine, ORACLE_SID=rman, target database is remote)
    $ rman catalog rman/rman target sys@MPOWER
    Recovery Manager: Release 10.2.0.5.0 - Production on Sat Apr 30 12:54:16 2011
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    PL/SQL package SYS.DBMS_BACKUP_RESTORE version 10.02.00.00 in TARGET database is not current
    PL/SQL package SYS.DBMS_RCVMAN version 10.02.00.00 in TARGET database is not current
    connected to target database: MPOWER (DBID=**********)
    connected to recovery catalog database
    RMAN> register database;
    database registered in recovery catalog
    starting full resync of recovery catalog
    RMAN-00571: ===============
    RMAN-00569: =========ERROR MESSAGE STACK FOLLOWS
    RMAN-00571: =================
    RMAN-03008: error while performing automatic resync of recovery catalog
    ORA-00904: : invalid identifier
    Basically the error says that there are two packages in the TARGET database (SYS.DBMS_BACKUP_RESTORE and SYS.DBMS_RCVMAN) which are not compatible with the RMAN catalog.
    I cannot register the target database into the RMAN catalog.
    I highly appretiate if you give me an advice on this.
    Regards

    user13064912 wrote:
    Hi RMAN experts. I'm trying to register a 10.2.0.1.0 database into a 10.2.0.5.0 RMAN catalog but I get the following error (Note: following was done on the rman server machine, ORACLE_SID=rman, target database is remote)
    $ rman catalog rman/rman target sys@MPOWER
    Recovery Manager: Release 10.2.0.5.0 - Production on Sat Apr 30 12:54:16 2011
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    PL/SQL package SYS.DBMS_BACKUP_RESTORE version 10.02.00.00 in TARGET database is not current
    PL/SQL package SYS.DBMS_RCVMAN version 10.02.00.00 in TARGET database is not current
    connected to target database: MPOWER (DBID=**********)
    connected to recovery catalog database
    RMAN> register database;
    database registered in recovery catalog
    starting full resync of recovery catalog
    RMAN-00571: ===============
    RMAN-00569: =========ERROR MESSAGE STACK FOLLOWS
    RMAN-00571: =================
    RMAN-03008: error while performing automatic resync of recovery catalog
    ORA-00904: : invalid identifier
    Basically the error says that there are two packages in the TARGET database (SYS.DBMS_BACKUP_RESTORE and SYS.DBMS_RCVMAN) which are not compatible with the RMAN catalog.
    I cannot register the target database into the RMAN catalog.
    I highly appretiate if you give me an advice on this.
    RegardsCould you try to run the rman at the target database server (MPOWER), instead of rman catalog server ant try to register your database?
    Your rman client is higher than your target server. That could be the problem.
    Best Regards,
    Gokhan
    If this question is answered, please mark appropriate posts as correct/helpful and the thread as closed. Thanks

  • Create a clone database form rman catalog !

    Dear Friend ,
    I have a rman catalog database . I am using this rman catalog for against a database name 'testdb' . Everyday I take rman full backup of the testdb using the catalog database .
    Now I create a another database which will be the clone of the testdb . I want to create it using that rman catalog database . Can I create a new database using the catalog database ?
    If yes, then plz help me to give some directions .....

    Check here:
    [http://www.shutdownabort.com/quickguides/clone_rman.php]
    [Duplicating a Database with Recovery Manager|http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96566/rcmdupdb.htm#441628]
    Oracle documentation Link added.

  • Unable to restore and recover my Database from RMAN Backup

    Dear All,
    Iam practicing RMAN in Windows environment.
    My configurations are
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
    CONFIGURE BACKUP OPTIMIZATION ON; # default
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP ON; # default
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO 'F:\Backup\%F'; # default
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO 'E:\ORACLE\DATABASE\SNCFORCL.ORA';
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT 'F:\Backup\%U.bak';
    Then i took the RMAN backup, now iam shutdown my DB and removed one logfile..
    then i tried to startup the DB but it is saying
    ORA-00313: open failed for members of log group 3 of thread 1
    ORA-00312: online log 3 thread 1: 'E:\ORADATA\ORCL\REDO03.LOG'
    So i tried to restore the Database with my rman backup
    RMAN> restore database;
    But i am unable to restore my logfile in the Datafiles location where as all other datafiles are restored but redo logfiles are not restored.
    So, i am unable to recover my DB
    Please tell me whether i am doing any mistake, what is the solution for my problem.
    Thanks in advance
    Mahi

    All you restored was your datafiles.
    Now issue recover database and that will apply the archive logs.
    This is in the oracle documentation.
    "You must restore backups of these archived logs for recovery to proceed. You can restore either to the default or nondefault location. If you do not have backups, then you must performing incomplete recovery up to an SCN before the first missing redo log and open RESETLOGS."
    http://download.oracle.com/docs/cd/B28359_01/backup.111/b28270/osrecvry.htm
    In this case after issuing restore database in RMAN, then issue this.
    "Recover database"
    It will then be an incomplete recovery. They should have been multiplexed. Did you restore your controlfile with this backup? You may have to issue an "Alter database open resetlogs;"

  • To calculate the size of backup for a particular database in RMAN catalog

    Hi ALL,
    Could you please guide me how I can calculate the size of backup data for a particular database in Recovery Catalog, if I am using Tapes as my backup media for recovery catalog.
    Regards
    Harpreet Singh

    Hi,
    I am not Up to the mark of your question ..
    If you see the V$log you can get it.. Size of the redo logs can be determined either by examining the file system size or by reading the BYTES column on the V$LOG view. Then Check the number of redo Logs avaialble checked whether they are mirrored or etc., Combining the two figures we have a total redo log data at peak in one day. This is the amount of data that any backup facility or storage of Archive Redo Logs would have to take into account. This figure should be mitigated against the fact that manual switching of redo logs means that not all archived redo logs will be the full size.
    - Pavan Kumar N

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

  • Recover Database in RMAN vs SQL*PLUS

    Hello,
    Oracle 11.2.0.1, Oracle Linux 5.5 UEK.
    I recently did a "recover database" in sql*plus, but an attempt to open the database gave ORA-01113, complaining the system tablespace requried more recovery. Then I used RMAN (nocatalog) and after the same "recover database" command I was able to open the database.
    It seems there are differences between SQL*PLUS and RMAN "recover database" command. I have not been able to locate the chapter in the Oracle documentation that explains the difference. I have some ideas, but...
    Thanks.
    h3. Solution Summary:
    The recover command in RMAN compared to SQL*Plus implements a more user friendly processing logic based on the current detected scenario. For instance, a RMAN recover database command may actually perform a "recover database using backup controlfile until cancel" and automatically apply all archived and online redo logs if available. The same can be achieved with the recover command in SQL*plus, but will have to be done manually.
    Edited by: Dude on Jan 7, 2011 12:30 PM

    Dude wrote:
    I did not remove any datafiles or redo logs. it is the same restore operation as before, and again RMAN "recovery database" succeeds, whereas SQL recover has trouble. This tells me something is different between the two methods. For one, RMAN does not requrie to specify "using backup controlfile".
    Maybe someting about "resetlogs" that that RMAN recover can handle and SQL recover not?No,problem is there.If you using rman execute RECOVER DATABASE it also will apply online logs(if available) also and as result you will get complete recovery however you must open database with resetlogs option due to you recovered database using backup controlfile.So also you can recover and open database applying this online logs.After executing RECOVER DATABASE USING BACKUP CONTROLFILE you have to pass full path of online log then press ENTER so log will apply and you can open database with RESETLOGS.See below
    C:\Documents and Settings\chinar>rman target sys/sm
    Recovery Manager: Release 10.2.0.1.0 - Production on Fri Jan 7 17:47:49 2011
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    connected to target database (not started)
    RMAN> startup nomount;
    Oracle instance started
    Total System Global Area     138412032 bytes
    Fixed Size                     1247708 bytes
    Variable Size                 71304740 bytes
    Database Buffers              58720256 bytes
    Redo Buffers                   7139328 bytes
    RMAN> restore controlfile from 'D:\oracle\product\10.2.0\flash_recovery_area\T\B
    ACKUPSET\2011_01_07\O1_MF_NCSNF_TAG20110107T171001_6LG48JR5_.BKP'
    2> ;
    Starting restore at 07-JAN-11
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=157 devtype=DISK
    channel ORA_DISK_1: restoring control file
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:03
    output filename=D:\ORACLE\PRODUCT\10.2.0\ORADATA\T\CONTROL01.CTL
    output filename=D:\ORACLE\PRODUCT\10.2.0\ORADATA\T\CONTROL02.CTL
    output filename=D:\ORACLE\PRODUCT\10.2.0\ORADATA\T\CONTROL03.CTL
    Finished restore at 07-JAN-11
    RMAN> alter database mount;
    database mounted
    released channel: ORA_DISK_1
    RMAN> restore database;
    Starting restore at 07-JAN-11
    Starting implicit crosscheck backup at 07-JAN-11
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=156 devtype=DISK
    Crosschecked 1 objects
    Finished implicit crosscheck backup at 07-JAN-11
    Starting implicit crosscheck copy at 07-JAN-11
    using channel ORA_DISK_1
    Finished implicit crosscheck copy at 07-JAN-11
    searching for all files in the recovery area
    cataloging files...
    cataloging done
    List of Cataloged Files
    =======================
    File Name: D:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\T\BACKUPSET\2011_01_07\O
    1_MF_NCSNF_TAG20110107T171001_6LG48JR5_.BKP
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting datafile backupset restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    restoring datafile 00001 to D:\ORACLE\PRODUCT\10.2.0\ORADATA\T\SYSTEM01.DBF
    restoring datafile 00002 to D:\ORACLE\PRODUCT\10.2.0\ORADATA\T\UNDOTBS01.DBF
    restoring datafile 00003 to D:\ORACLE\PRODUCT\10.2.0\ORADATA\T\SYSAUX01.DBF
    restoring datafile 00004 to D:\ORACLE\PRODUCT\10.2.0\ORADATA\T\USERS01.DBF
    channel ORA_DISK_1: reading from backup piece D:\ORACLE\PRODUCT\10.2.0\FLASH_REC
    OVERY_AREA\T\BACKUPSET\2011_01_07\O1_MF_NNNDF_TAG20110107T171001_6LG45BXS_.BKP
    channel ORA_DISK_1: restored backup piece 1
    piece handle=D:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\T\BACKUPSET\2011_01_07
    \O1_MF_NNNDF_TAG20110107T171001_6LG45BXS_.BKP tag=TAG20110107T171001
    channel ORA_DISK_1: restore complete, elapsed time: 00:01:04
    Finished restore at 07-JAN-11
    RMAN> recover database;
    Starting recover at 07-JAN-11
    using channel ORA_DISK_1
    starting media recovery
    archive log thread 1 sequence 7 is already on disk as file D:\ORACLE\PRODUCT\10.
    2.0\ORADATA\T\REDO02.LOG
    archive log filename=D:\ORACLE\PRODUCT\10.2.0\ORADATA\T\REDO02.LOG thread=1 sequ
    ence=7
    media recovery complete, elapsed time: 00:00:03
    Finished recover at 07-JAN-11
    RMAN> exit
    Recovery Manager complete.
    C:\Documents and Settings\chinar>sqlplus sys/sm as sysdba
    SQL*Plus: Release 10.2.0.1.0 - Production on Fri Jan 7 17:51:31 2011
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> alter database open;
    alter database open
    ERROR at line 1:
    ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
    SQL> alter database open resetlogs;
    Database altered.
    SQL> And above you see lines as
    archive log thread 1 sequence 7 is already on disk as file D:\ORACLE\PRODUCT\10.
    *2.0\ORADATA\T\REDO02.LOG*
    archive log filename=D:\ORACLE\PRODUCT\10.2.0\ORADATA\T\REDO02.LOG thread=1 sequ
    ence=7
    It means RMAN apply these.So you can apply these using SQLPLUS ALSO.In additionally you can see that from alert log as
    alter database recover if needed
    start until cancel using backup controlfile
    Media Recovery Start
    parallel recovery started with 2 processes
    ORA-279 signalled during: alter database recover if needed
    start until cancel using backup controlfile
    Fri Jan 07 17:50:34 2011
    alter database recover logfile 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\T\REDO02.LOG'
    Fri Jan 07 17:50:34 2011
    Media Recovery Log D:\ORACLE\PRODUCT\10.2.0\ORADATA\T\REDO02.LOG
    Fri Jan 07 17:50:34 2011
    Incomplete recovery applied all redo ever generated.
    Recovery completed through change 665263
    Completed: alter database recover logfile 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\T\REDO02.LOG'And finally you see clearly that even if you execute RECOVER DATABASE from RMAN it actually execute RECOVER DATABASE UNTIL CANCEL USING BACKUP CONTROLFILE (from alert.log start  until cancel using backup controlfile)
    And these is not any difference.
    Hope that help you and you got answer.

  • Restoring controlfile from rman

    Hi
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0
    on OEL4
    I have lost all the control files (infact deleted knowingly to simulate ). i have a full database backup in recovery catalog. I do not know the dbid of database.
    I am not able to connect to target database from rman it shows.
    RMAN> connect target sys/prod@PROD
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    ORA-12528: TNS:listener: all appropriate instances are blocking new connectionsIs there anyway i can restore controlfiles from rman ? or i need to create controlfiles manually.
    Thanks
    Edited by: user8896122 on Jan 3, 2010 6:03 AM

    You can try on the machine hosting the database:
    C:\Users\Pierre>rman target /
    Recovery Manager: Release 10.2.0.1.0 - Production on Sun Jan 3 15:29:02 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    connected to target database (not started)
    RMAN> startup nomount
    Oracle instance started
    Total System Global Area     805306368 bytes
    Fixed Size                     1289996 bytes
    Variable Size                213909748 bytes
    Database Buffers             587202560 bytes
    Redo Buffers                   2904064 bytes
    RMAN>and then you can try to connect to recovery catalog.

  • Setting up new dbname/sid while creating oracle db from rman backups in 11g

    Hi all,
    I have rman backups and need to create another database from rman backups with different name... but it is unsuccessful..
    created instance with new db...
    running create new db connecting rman auxiliary sys/password@newdb
    run {
    SET NEWNAME FOR DATAFILE 1 TO 'F:\app\HOME\oradata\clonedb1\SYSTEM01.DBF';
    SET NEWNAME FOR DATAFILE 2 TO 'F:\app\HOME\oradata\clonedb1\SYSAUX01.DBF';
    SET NEWNAME FOR DATAFILE 3 TO 'F:\app\HOME\oradata\clonedb1\UNDOTBS01.DBF';
    SET NEWNAME FOR DATAFILE 4 TO 'F:\app\HOME\oradata\clonedb1\USERS01.DBF';
    SET NEWNAME FOR DATAFILE 5 TO 'F:\app\HOME\oradata\clonedb1\EXAMPLE01.DBF';
    SET NEWNAME FOR TEMPFILE 1 TO 'F:\app\HOME\oradata\clonedb1\TEMP01.DBF';
    DUPLICATE DATABASE TO clonedb
    pfile 'D:\TESTDELETE\initclonedb1.ora'
    BACKUP LOCATION 'F:\app\HOME\flash_recovery_area\orcl\'
    LOGFILE GROUP 1 ('F:\APP\HOME\ORADATA\ORCL\REDO01.LOG') SIZE 60M REUSE,
    GROUP 2 ('F:\APP\HOME\ORADATA\ORCL\REDO02.LOG.rdo') SIZE 60M REUSE,
    GROUP 3 ('F:\APP\HOME\ORADATA\ORCL\REDO03.LOG') SIZE 60M REUSE;
    Error it shown is in rman backup creation is as follows
    <part>>
    sql statement: alter system set db_name = ''ORCL'' comment= ''Modified by RMAN
    duplicate'' scope=spfile
    Oracle instance shut down
    Oracle instance started
    Total System Global Area 640286720 bytes
    Fixed Size 1376492 bytes
    Variable Size 314576660 bytes
    Database Buffers 318767104 bytes
    Redo Buffers 5566464 bytes
    Starting restore at 20-DEC-11
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: SID=133 device type=DISK
    channel ORA_AUX_DISK_1: restoring control file
    channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:07
    output file name=F:\APP\HOME\ORADATA\CLONEDB1\CONTROL01.CTL
    output file name=F:\APP\HOME\FLASH_RECOVERY_AREA\CLONEDB1\CONTROL02.CTL
    Finished restore at 20-DEC-11
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 12/20/2011 07:07:11
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06136: ORACLE error from auxiliary database: ORA-01102: cannot mount databa
    se in EXCLUSIVE mode
    RMAN> EXIT
    how can i prevent rman setting db_name=orcl which is already exists in the db.. i need to create db from rman backups with different dbname...
    whould someone help me out, how can i create database from another database rman backups with different dbname/sid on same host..
    My pfile has new db_name , but while db creation rman setting to db_name to source dbname.. it should be new db name that i want create with new db name...
    is there any RMAN command to specify new DB name it should set while running
    sql statement: alter system set db_name = newdbname -- as part rman script execution...
    it appears to be i should not touch the soruce db.. i have access to only source db rman backups and need to create another db with different dbname/sid.. please do help...

    When you performing RMAN duplicate why you making your script so complicated?
    Your instance name and DB name can be different, But what is the contents in your pfile "D:\TESTDELETE\initclonedb1.ora" ? please do post
    Have you started any other services related to ORACLE? check in start --> run --> services.msc any other active oracles services, Make sure you have clonedb1.
    Startup in nomount
    check the connectivity to target server.
    SET NEWNAME FOR TEMPFILE 1 TO 'F:\app\HOME\oradata\clonedb1\TEMP01.DBF';Why you mentioning SET NEWNAME FOR DATAFILE ? You have option of db_file_name_convert/log_file_name_convert in case if your file system different in Target & auxiliary.
    BACKUP LOCATION 'F:\app\HOME\flash_recovery_area\orcl\'When you have backup in same location why you are mentioning this clause?
    First run duplicate from auxiliary server as
    rman target sys/*****@prod auxiliary /
    RMAN> duplicate target database to "db_name";
    Am not sure what you are trying to do. is it 11gR1 or 11gR2?
    You have option of duplicate from active database without having backup also..
    here some links please check it.
    http://docs.oracle.com/cd/E14072_01/backup.112/e10642/rcmdupdb.htm#BGBFDJHB
    RMAN 11GR2 : DUPLICATE WITHOUT CONNECTING TO TARGET DATABASE [ID 874352.1]
    knowledgespring      
         Newbie
    Handle:      knowledgespring
    Status Level:      Newbie (10)
    Registered:      Dec 26, 2007
    Total Posts:      243
    Total Questions:      77 (75 unresolved)
    So sad that forum was able to help only in two answers out of your 77 questions :(
    Edited by: CKPT on Dec 21, 2011 5:12 PM

  • How to get RMAN catalog information from Target database?

    Hi,
    How to get RMAN catalog information from Target database because i don't know about catalog database? is it possible?
    Thanks

    If you run RMAN backups of a target database using a Catalog schema in another database, the target is not aware of the catalog.
    The RMAN backup script would have the connection identifier for the Catalog.
    Hemant K Chitale

  • RMAN CATALOG에서 TARGET DB를 UNREGISTER하는 방법

    제품 : RMAN
    작성날짜 : 2001-05-28
    RMAN CATALOG에서 TARGET DB를 UNREGISTER하는 방법
    ===============================================
    1) UNREGISTER 하고자 하는 Database를 RMAN CATALOG에서 확인한다.
    SELECT * FROM RC_DATABASE;
    2) UNREGISTER하고자 하는 DATABASE에 속한 BACKUPSET들을 모두 제거한다.
    - 제거하고자 하는 BACKUPSET을 알아내는 방법
    RMAN> list backupset of database;
    - BACKUPSET을 제거하는 방법
    RMAN> allocate channel for delete type disk;
    RMAN> change backupset XXX delete;
    * 위에서는 DISK에대해 CHANNEL을 설정하였지만 TAPE에 대해 CHANNEL설정을
    하려면 아래와 같은 COMMAND를 수행한다.
    RMAN> allocate channel for delete type 'sbt_tape';
    또한 XXX는 'list backupset of database'의 결과 중에서 'LIST OF KEY'의
    값을 의미한다.
    3) 다음과 같은 PROCEDURE를 RECOVERY CATALOG에서 수행함으로써 DATABASE를 UNREGISTER한다.
    execute dbms_rcvcat.unregisterdatabase (db_key, db_id)
    * DB_KEY와 DB_ID는 다음과 같은 QUERY문에서 알아낼 수 있다.
    SVRMGR> select * from rc_database;
    EXAMPLE:
    ========
    Unregistering ORCL database:
    1) The following will list the backupset for the database that we want to
    uncatlog.
    RMAN> list backupset of database;
    RMAN-03022: compiling command: list
    RMAN-06230: List of Datafile Backups
    RMAN-06231: Key File Type LV Completion_time Ckp SCN Ckp Time
    RMAN-06232: ------- ---- ------------ -- --------------- ---------
    RMAN-06233: 858 1 Full 16-SEP-98 253487 16-SEP-98
    RMAN-06233: 858 2 Full 16-SEP-98 253487 16-SEP-98
    RMAN-06233: 858 3 Full 16-SEP-98 253487 16-SEP-98
    RMAN-06233: 858 4 Full 16-SEP-98 253487 16-SEP-98
    ==================================
    2) The following will show allocation of a delte channel, deleting the
    backupset, and running the list command to confirm that the backupsets were
    removed. The delete command will remove the backupsets from the backup location.
    RMAN> allocate channel for delete type disk;
    RMAN-03022: compiling command: allocate
    RMAN-03023: executing command: allocate
    RMAN-08030: allocated channel: delete
    RMAN-08500: channel delete: sid=10 devtype=DISK
    RMAN> change backupset 858 delete;
    RMAN-03022: compiling command: change
    RMAN-03023: executing command: change
    RMAN-08073: deleted backup piece
    RMAN-08517: backup piece handle=C:\ORANT\DATABASE\RMANORCLBACKUP\DF_344180532_30
    _1 recid=27 stamp=344180538
    RMAN-03023: executing command: partial resync
    RMAN-08003: starting partial resync of recovery catalog
    RMAN-08005: partial resync complete
    RMAN> list backupset of database;
    RMAN-03022: compiling command: list
    RMAN-06230: List of Datafile Backups
    RMAN-06231: Key File Type LV Completion_time Ckp SCN Ckp Time
    RMAN-06232: ------- ---- ------------ -- --------------- ----------
    ================================
    3) From the recovery catalog:
    SVRMGR> select * from rc_database;
    DB_KEY DBINC_KEY DBID NAMERESETLOGS_ RESETLOGS
    584 585 868345165 ORCL 192881 18-AUG-98
    1 row selected.
    SVRMGR> execute dbms_rcvcat.unregisterdatabase(584,868345165);
    Statement processed.
    SVRMGR> select * from rc_database;
    DB_KEY DBINC_KEY DBID NAME RESETLOGS_ RESETLOGS
    0 rows selected.

  • RMAN 11gr2 ORA-00308 when dulplicate database from active

    Hi,
    I'm trying to clone a production database (Oracle 11.2.0.3) from HP-UX IA64 to Solaris 10 (Sparc 64) (source on Filesystem, target on ASM)
    the previous steps was done (same oracle software installation, same patches, sqlnet comunication, etc.)
    but the RMAN fails at end of the process:
    Recovery Manager: Release 11.2.0.3.0 - Production on Wed Aug 22 09:44:34 2012
    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
    connected to target database: SIN (DBID=634625013)
    connected to recovery catalog database
    connected to auxiliary database: SIN (not mounted)
    RMAN> run
    +2> {+
    +3> allocate channel c1 type disk;+
    +4> allocate channel c2 type disk;+
    +5> allocate channel c3 type disk;+
    +6> allocate channel c4 type disk;+
    +7> allocate auxiliary channel a1 type disk;+
    +8> allocate auxiliary channel a2 type disk;+
    +9> set newname for datafile 1 to '+DG_DATA';+
    +10> set newname for datafile 2 to '+DG_DATA';+
    +11> set newname for datafile 3 to '+DG_DATA';+
    +12> set newname for datafile 4 to '+DG_DATA';+
    +13> set newname for datafile 5 to '+DG_DATA';+
    +14> set newname for datafile 6 to '+DG_DATA';+
    +15> set newname for datafile 7 to '+DG_DATA';+
    +16> set newname for datafile 8 to '+DG_DATA';+
    +17> set newname for datafile 9 to '+DG_DATA';+
    +18> set newname for datafile 10 to '+DG_DATA';+
    +... to...+
    +398> set newname for datafile 390 to '+DG_DATA';+
    +399> set newname for datafile 391 to '+DG_DATA';+
    +400> duplicate target database to "sin" from active database nofilenamecheck+
    +401> DB_FILE_NAME_CONVERT=('/u10/oradata/sin/','+DG_DATA/',+
    +402> '/u11/oradata/sin/','+DG_DATA/',+
    +403> '/u07/oradata/sin/','+DG_DATA/',+
    +404> '/u08/oradata/sin/','+DG_DATA/',+
    +405> '/u09/oradata/sin/','+DG_DATA/');+
    +406> }+
    +407>+
    starting full resync of recovery catalog
    full resync complete
    allocated channel: c1
    channel c1: SID=1787 device type=DISK
    allocated channel: c2
    channel c2: SID=2406 device type=DISK
    allocated channel: c3
    channel c3: SID=850 device type=DISK
    allocated channel: c4
    channel c4: SID=1146 device type=DISK
    allocated channel: a1
    channel a1: SID=1325 device type=DISK
    allocated channel: a2
    channel a2: SID=1514 device type=DISK
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    +...+
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    Starting Duplicate Db at 22-AUG-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)
    Oracle instance started
    Total System Global Area    7317790720 bytes
    Fixed Size                     2173456 bytes
    Variable Size               3808433648 bytes
    Database Buffers            3489660928 bytes
    Redo Buffers                  17522688 bytes
    allocated channel: a1
    channel a1: SID=1325 device type=DISK
    allocated channel: a2
    channel a2: SID=758 device type=DISK
    contents of Memory Script:
    +{+
    sql clone "alter system set  control_files =
    +''+DG_DATA/sin/controlfile/current.511.791978153'', ''+DG_DATA/sin/controlfile/current.562.791978153'' comment=+
    +''Set by RMAN'' scope=spfile";+
    +''+DG_DATA/sin/controlfile/current.511.791978153'', ''+DG_DATA/sin/controlfile/current.562.791978153'' comment=+
    +''Set by RMAN'' scope=spfile";+
    sql clone "alter system set  db_name =
    +''SIN'' comment=+
    +''Modified by RMAN duplicate'' scope=spfile";+
    +sql clone "alter system set db_unique_name =+
    +''SIN'' comment=+
    +''Modified by RMAN duplicate'' scope=spfile";+
    +shutdown clone immediate;+
    +startup clone force nomount+
    +backup as copy current controlfile auxiliary format '+DG_DATA/sin/controlfile/current.512.791978153';+
    +restore clone controlfile to '+DG_DATA/sin/controlfile/current.625.791978153' from+
    +'+DG_DATA/sin/controlfile/current.512.791978153';+
    +sql clone "alter system set control_files =+
    +''+DG_DATA/sin/controlfile/current.512.791978153'', ''+DG_DATA/sin/controlfile/current.625.791978153'' comment=+
    +''Set by RMAN'' scope=spfile";+
    +shutdown clone immediate;+
    +startup clone nomount;+
    +alter clone database mount;+
    +}+
    +executing Memory Script+
    +sql statement: alter system set control_files = ''+DG_DATA/sin/controlfile/current.511.791978153'', ''+DG_DATA/sin/controlfile/cu+
    +rrent.562.791978153'' comment= ''Set by RMAN'' scope=spfile+
    +sql statement: alter system set db_name = ''SIN'' comment= ''Modified by RMAN duplicate'' scope=spfile+
    +sql statement: alter system set db_unique_name = ''SIN'' comment= ''Modified by RMAN duplicate'' scope=spfile+
    +Oracle instance shut down+
    +Oracle instance started+
    +Total System Global Area 7317790720 bytes+
    +Fixed Size 2173456 bytes+
    +Variable Size 3808433648 bytes+
    +Database Buffers 3489660928 bytes+
    +Redo Buffers 17522688 bytes+
    +allocated channel: a1+
    +channel a1: SID=1514 device type=DISK+
    +allocated channel: a2+
    +channel a2: SID=2081 device type=DISK+
    +Starting backup at 22-AUG-12+
    +channel c1: starting datafile copy+
    +copying current control file+
    +output file name=/u06/tmpapp/rmanbkps/snapcf_sin.f tag=TAG20120822T094657 RECID=49 STAMP=791977621+
    +channel c1: datafile copy complete, elapsed time: 00:00:01+
    +Finished backup at 22-AUG-12+
    +Starting restore at 22-AUG-12+
    +channel a2: skipped, AUTOBACKUP already found+
    +channel a1: copied control file copy+
    +Finished restore at 22-AUG-12+
    +sql statement: alter system set control_files = ''+DG_DATA/sin/controlfile/current.512.791978153'', ''+DG_DATA/sin/controlfile/cu+
    +rrent.625.791978153'' comment= ''Set by RMAN'' scope=spfile+
    +Oracle instance shut down+
    +connected to auxiliary database (not started)+
    +Oracle instance started+
    +Total System Global Area 7317790720 bytes+
    +Fixed Size 2173456 bytes+
    +Variable Size 3808433648 bytes+
    +Database Buffers 3489660928 bytes+
    +Redo Buffers 17522688 bytes+
    +allocated channel: a1+
    +channel a1: SID=1514 device type=DISK+
    +allocated channel: a2+
    +channel a2: SID=2081 device type=DISK+
    +database mounted+
    +Using previous duplicated file +DG_DATA/sin/datafile/system.666.791914845 for datafile 1 with checkpoint SCN of 46164275052+
    +Using previous duplicated file +DG_DATA/sin/datafile/undotbs1.678.791913821 for datafile 2 with checkpoint SCN of 46164227408+
    +...+
    +Using previous duplicated file +DG_DATA/sin/datafile/med_dat.498.791939115 for datafile 389 with checkpoint SCN of 46165353395+
    +Using previous duplicated file +DG_DATA/sin/datafile/mytablespace.674.791914359 for datafile 390 with checkpoint SCN of 46164253329+
    +Using previous duplicated file +DG_DATA/sin/datafile/med_dat.499.791939115 for datafile 391 with checkpoint SCN of 46165353396+
    +contents of Memory Script:+
    +{+
    +sql 'alter system archive log current';+
    +}+
    +executing Memory Script+
    +sql statement: alter system archive log current+
    +contents of Memory Script:+
    +{+
    +backup as copy reuse+
    +archivelog like "/u06/app/oracle/admin/sin/arch/SIN_0544862197_0001_0000065832.ARC" auxiliary format+
    +"+DG_DATA" archivelog like+
    +"/u06/app/oracle/admin/sin/arch/SIN_0544862197_0001_0000065833.ARC" auxiliary format+
    +"+DG_DATA" archivelog like+
    +"/u06/app/oracle/admin/sin/arch/SIN_0544862197_0001_0000065834.ARC" auxiliary format+
    +"+DG_DATA" archivelog like+
    +"/u06/app/oracle/admin/sin/arch/SIN_0544862197_0001_0000065835.ARC" auxiliary format+
    +"+DG_DATA" archivelog like+
    +"/u06/app/oracle/admin/sin/arch/SIN_0544862197_0001_0000065836.ARC" auxiliary format+
    +"+DG_DATA" ;+
    +catalog clone start with "+DG_DATA";+
    +catalog clone datafilecopy "+DG_DATA/sin/datafile/system.666.791914845",+
    +"+DG_DATA/sin/datafile/undotbs1.678.791913821",+
    +"+DG_DATA/sin/datafile/undotbs1.679.791913821",+
    +"+DG_DATA/sin/datafile/undotbs1.689.791913821",+
    +"+DG_DATA/sin/datafile/undotbs1.690.791913821",+
    +"+DG_DATA/sin/datafile/undotbs1.677.791914357",+
    +"+DG_DATA/sin/datafile/drsys.621.791939555",+
    +"+DG_DATA/sin/datafile/high_idx.663.791914889",+
    +"+DG_DATA/sin/datafile/tools.507.791939555",+
    +...+
    +"+DG_DATA/sin/datafile/bkptemp.497.791939113",+
    +"+DG_DATA/sin/datafile/med_dat.498.791939115",+
    +"+DG_DATA/sin/datafile/mytablespace.674.791914359",+
    +"+DG_DATA/sin/datafile/med_dat.499.791939115";+
    +switch clone datafile 1 to datafilecopy+
    +"+DG_DATA/sin/datafile/system.666.791914845";+
    +switch clone datafile 2 to datafilecopy+
    +"+DG_DATA/sin/datafile/undotbs1.678.791913821";+
    +switch clone datafile 3 to datafilecopy+
    +...+
    +"+DG_DATA/sin/datafile/med_dat.498.791939115";+
    +switch clone datafile 390 to datafilecopy+
    +"+DG_DATA/sin/datafile/mytablespace.674.791914359";+
    +switch clone datafile 391 to datafilecopy+
    +"+DG_DATA/sin/datafile/med_dat.499.791939115";+
    +}+
    +executing Memory Script+
    +Starting backup at 22-AUG-12+
    +channel c1: starting archived log copy+
    +input archived log thread=1 sequence=65832 RECID=48339 STAMP=791913640+
    +channel c2: starting archived log copy+
    +input archived log thread=1 sequence=65833 RECID=48340 STAMP=791933223+
    +channel c3: starting archived log copy+
    +input archived log thread=1 sequence=65834 RECID=48341 STAMP=791939052+
    +channel c4: starting archived log copy+
    +input archived log thread=1 sequence=65835 RECID=48342 STAMP=791962351+
    +output file name=+DG_DATA/sin/archivelog/2012_08_22/thread_1_seq_65834.515.791978259 RECID=0 STAMP=0+
    +channel c3: archived log copy complete, elapsed time: 00:00:35+
    +channel c3: starting archived log copy+
    +input archived log thread=1 sequence=65836 RECID=48343 STAMP=791977692+
    +output file name=+DG_DATA/sin/archivelog/2012_08_22/thread_1_seq_65832.513.791978259 RECID=0 STAMP=0+
    +channel c1: archived log copy complete, elapsed time: 00:00:51+
    +output file name=+DG_DATA/sin/archivelog/2012_08_22/thread_1_seq_65833.514.791978259 RECID=0 STAMP=0+
    +channel c2: archived log copy complete, elapsed time: 00:01:41+
    +output file name=+DG_DATA/sin/archivelog/2012_08_22/thread_1_seq_65836.581.791978295 RECID=0 STAMP=0+
    +channel c3: archived log copy complete, elapsed time: 00:01:06+
    +output file name=+DG_DATA/sin/archivelog/2012_08_22/thread_1_seq_65835.516.791978259 RECID=0 STAMP=0+
    +channel c4: archived log copy complete, elapsed time: 00:01:41+
    +Finished backup at 22-AUG-12+
    +searching for all files that match the pattern +DG_DATA+
    +List of Files Unknown to the Database+
    +=====================================+
    +File Name: +dg_data/SIN/ARCHIVELOG/2012_08_22/thread_1_seq_65832.513.791978259+
    +File Name: +dg_data/SIN/ARCHIVELOG/2012_08_22/thread_1_seq_65833.514.791978259+
    +File Name: +dg_data/SIN/ARCHIVELOG/2012_08_22/thread_1_seq_65834.515.791978259+
    +...+
    +File Name: +dg_data/SIN/DATAFILE/XDB.508.791939555+
    +File Name: +dg_data/SIN/DATAFILE/DRSYS.621.791939555+
    +File Name: +dg_data/SIN/CONTROLFILE/Current.691.791913737+
    +File Name: +dg_data/SIN/CONTROLFILE/Current.692.791913737+
    +File Name: +dg_data/SIN/CONTROLFILE/Current.703.791913737+
    +File Name: +dg_data/SIN/CONTROLFILE/Current.704.791913737+
    +File Name: +dg_data/SIN/CONTROLFILE/Current.511.791978153+
    +File Name: +dg_data/SIN/CONTROLFILE/Current.562.791978153+
    +File Name: +dg_data/ASM/ASMPARAMETERFILE/REGISTRY.253.790861037+
    +cataloging files...+
    +cataloging done+
    +List of Cataloged Files+
    +=======================+
    +File Name: +dg_data/SIN/ARCHIVELOG/2012_08_22/thread_1_seq_65832.513.791978259+
    +File Name: +dg_data/SIN/ARCHIVELOG/2012_08_22/thread_1_seq_65833.514.791978259+
    +File Name: +dg_data/SIN/ARCHIVELOG/2012_08_22/thread_1_seq_65834.515.791978259+
    +File Name: +dg_data/SIN/ARCHIVELOG/2012_08_22/thread_1_seq_65835.516.791978259+
    +...+
    +File Name: +dg_data/SIN/DATAFILE/XDB.508.791939555+
    +File Name: +dg_data/SIN/DATAFILE/DRSYS.621.791939555+
    +File Name: +dg_data/SIN/CONTROLFILE/Current.703.791913737+
    +File Name: +dg_data/SIN/CONTROLFILE/Current.704.791913737+
    +List of Files Which Where Not Cataloged+
    +=======================================+
    +File Name: +dg_data/SIN/CONTROLFILE/Current.691.791913737+
    +RMAN-07517: Reason: The file header is corrupted+
    +File Name: +dg_data/SIN/CONTROLFILE/Current.692.791913737+
    +RMAN-07517: Reason: The file header is corrupted+
    +File Name: +dg_data/SIN/CONTROLFILE/Current.511.791978153+
    +RMAN-07517: Reason: The file header is corrupted+
    +File Name: +dg_data/SIN/CONTROLFILE/Current.562.791978153+
    +RMAN-07517: Reason: The file header is corrupted+
    +File Name: +dg_data/ASM/ASMPARAMETERFILE/REGISTRY.253.790861037+
    +RMAN-07518: Reason: Foreign database file DBID: 0 Database Name:+
    +cataloged datafile copy+
    +datafile copy file name=+DG_DATA/sin/datafile/system.666.791914845 RECID=442 STAMP=791978374+
    +cataloged datafile copy+
    +datafile copy file name=+DG_DATA/sin/datafile/undotbs1.678.791913821 RECID=443 STAMP=791978375+
    +cataloged datafile copy+
    +datafile copy file name=+DG_DATA/sin/datafile/undotbs1.679.791913821 RECID=444 STAMP=791978375+
    +cataloged datafile copy+
    +datafile copy file name=+DG_DATA/sin/datafile/undotbs1.689.791913821 RECID=445 STAMP=791978375+
    +cataloged datafile copy+
    +...+
    +datafile copy file name=+DG_DATA/sin/datafile/med_dat.498.791939115 RECID=830 STAMP=791978408+
    +cataloged datafile copy+
    +datafile copy file name=+DG_DATA/sin/datafile/mytablespace.674.791914359 RECID=831 STAMP=791978408+
    +cataloged datafile copy+
    +datafile copy file name=+DG_DATA/sin/datafile/med_dat.499.791939115 RECID=832 STAMP=791978408+
    +datafile 1 switched to datafile copy+
    +input datafile copy RECID=442 STAMP=791978374 file name=+DG_DATA/sin/datafile/system.666.791914845+
    +datafile 2 switched to datafile copy+
    +input datafile copy RECID=443 STAMP=791978375 file name=+DG_DATA/sin/datafile/undotbs1.678.791913821+
    +datafile 3 switched to datafile copy+
    +input datafile copy RECID=444 STAMP=791978375 file name=+DG_DATA/sin/datafile/undotbs1.679.791913821+
    +datafile 4 switched to datafile copy+
    +input datafile copy RECID=445 STAMP=791978375 file name=+DG_DATA/sin/datafile/undotbs1.689.791913821+
    +...+
    +datafile 389 switched to datafile copy+
    +input datafile copy RECID=830 STAMP=791978408 file name=+DG_DATA/sin/datafile/med_dat.498.791939115+
    +datafile 390 switched to datafile copy+
    +input datafile copy RECID=831 STAMP=791978408 file name=+DG_DATA/sin/datafile/mytablespace.674.791914359+
    +datafile 391 switched to datafile copy+
    +input datafile copy RECID=832 STAMP=791978408 file name=+DG_DATA/sin/datafile/med_dat.499.791939115+
    +contents of Memory Script:+
    +{+
    +set until scn 46167049411;+
    +recover+
    +clone database+
    +delete archivelog+
    +;+
    +}+
    +executing Memory Script+
    +executing command: SET until clause+
    +Starting recover at 22-AUG-12+
    +starting media recovery+
    +archived log for thread 1 with sequence 65832 is already on disk as file +DG_DATA/sin/archivelog/2012_08_22/thread_1_seq_65832.513.7+
    +91978259+
    +archived log for thread 1 with sequence 65833 is already on disk as file +DG_DATA/sin/archivelog/2012_08_22/thread_1_seq_65833.514.7+
    +91978259+
    +archived log for thread 1 with sequence 65834 is already on disk as file +DG_DATA/sin/archivelog/2012_08_22/thread_1_seq_65834.515.7+
    +91978259+
    +archived log for thread 1 with sequence 65835 is already on disk as file +DG_DATA/sin/archivelog/2012_08_22/thread_1_seq_65835.516.7+
    +91978259+
    +archived log for thread 1 with sequence 65836 is already on disk as file +DG_DATA/sin/archivelog/2012_08_22/thread_1_seq_65836.581.7+
    +91978295+
    +archived log file name=+DG_DATA/sin/archivelog/2012_08_22/thread_1_seq_65832.513.791978259 thread=1 sequence=65832+
    +released channel: c1+
    +released channel: c2+
    +released channel: c3+
    +released channel: c4+
    +Oracle Error:+
    +ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below+
    +ORA-01194: file 1 needs more recovery to be consistent+
    +ORA-01110: data file 1: '+DG_DATA/sin/datafile/system.666.791914845'+
    *+released channel: a1+*
    *+released channel: a2+*
    *+RMAN-00571: ===========================================================+*
    *+RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============+*
    *+RMAN-00571: ===========================================================+*
    *+RMAN-03002: failure of Duplicate Db command at 08/22/2012 09:52:27+*
    *+RMAN-05501: aborting duplication of target database+*
    *+RMAN-03015: error occurred in stored script Memory Script+*
    *+RMAN-11003: failure during parse/execution of SQL statement: alter database recover logfile '+DG_DATA/sin/archivelog/2012_08_22/thre+*
    *+ad_1_seq_65832.513.791978259'+*
    *+ORA-00308: cannot open archived log '+DG_DATA/sin/archivelog/2012_08_22/thread_1_seq_65832.513.791978259'+*
    +Recovery Manager complete.+
    the error is always the same, a previous backup with RMAN was taken on tape on the source database (production).
    Please help me to find what is wrong here!!

    Hi mseberg
    that's exactly i'm doing:
    1. Create an Oracle Password File for the Auxiliary Database
    a. done, passwd file created*
    2. Create the Directory Structure on the remote server
    a. done, all the admin structure wa created.*
    3. Oracle Net Setup ( you need an entry for the CLONE in your TNSNAMES.ORA on both servers ) ( I use SID_LIST_LISTENER entry for static )
    a. done, i have the entries working on my tnsnames.ora (source and target with static listeners)*
    4. Create an Initialization Parameter File for the Auxiliary Instance ( I use Parameters DB_FILE_NAME_CONVERT and LOG_FILE_NAME_CONVERT to change locations)
    a. done, this is my initialization file:*
    *.audit_file_dest='/u01/app/oracle/admin/sin/adump'*
    *.audit_trail='db'*
    *.compatible='11.2.0.0.0'*
    *.db_block_size=8192*
    *.db_create_file_dest='DG_DATA'+*
    *.db_domain=''*
    *.db_files=2048*
    *.db_name='sin'*
    *.db_recovery_file_dest='DG_DATA'+*
    *.db_recovery_file_dest_size=20G*
    *.diagnostic_dest='/u01/app/oracle'*
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=sinXDB)'*
    *.log_archive_format='%t_%s_%r.dbf'*
    *.memory_target=7340032000*
    *.open_cursors=300*
    *.processes=2000*
    *.remote_login_passwordfile='EXCLUSIVE'*
    *.sessions=2205*
    *.undo_tablespace='UNDOTBS1'*
    DB_FILE_NAME_CONVERT=('/u10/oradata/sin/','DG_DATA/',+*
    +'/u11/oradata/sin/','+DG_DATA/',+
    +'/u07/oradata/sin/','+DG_DATA/',+
    +'/u08/oradata/sin/','+DG_DATA/',+
    +'/u09/oradata/sin/','+DG_DATA/')+
    LOG_FILE_NAME_CONVERT=('/u04/oradata/sin/','DG_DATA/',+*
    +'/u05/oradata/sin/','+DG_DATA/',+
    +'/u03/oradata/sin/','+DG_DATA/',+
    +'/u02/oradata/sin/','+DG_DATA/')+
    and this is my command from RMAN:
    run*
    *+{+*
    allocate channel c1 type disk;*
    allocate channel c2 type disk;*
    allocate channel c3 type disk;*
    allocate channel c4 type disk;*
    allocate auxiliary channel a1 type disk;*
    allocate auxiliary channel a2 type disk;*
    set newname for datafile 1 to 'DG_DATA';+*
    set newname for datafile 2 to 'DG_DATA';+*
    set newname for datafile 3 to 'DG_DATA';+*
    set newname for datafile 4 to 'DG_DATA';+*
    set newname for datafile 5 to 'DG_DATA';+*
    set newname for datafile 6 to 'DG_DATA';+*
    set newname for datafile 7 to 'DG_DATA';+*
    set newname for datafile 8 to 'DG_DATA';+*
    set newname for datafile 9 to 'DG_DATA';+*
    set newname for datafile 10 to 'DG_DATA';+*
    +...+
    set newname for datafile 390 to 'DG_DATA';+*
    set newname for datafile 391 to 'DG_DATA';+*
    duplicate target database to "sin" from active database nofilenamecheck*
    DB_FILE_NAME_CONVERT=('/u10/oradata/sin/','DG_DATA/',+*
    +'/u11/oradata/sin/','+DG_DATA/',+
    +'/u07/oradata/sin/','+DG_DATA/',+
    +'/u08/oradata/sin/','+DG_DATA/',+
    +'/u09/oradata/sin/','+DG_DATA/');+
    +}+
    do you think the problem may be in the name of the database?, I am using the same name in the auxiliary
    and when I get the error, I have the same dbid in both databases (source and destination)
    Thanks
    MM

Maybe you are looking for