What is Database Incarnations in rman ?

hi all
What is incarnation in rman , what is the use of it.....
tell me in simple words, i googled it i did not get exactly what it means...
Regards,
Vamsi,

'Incarnation' literally means 'became flesh'. So 'was born'. And there is nothing before birth.
You can also compare it with crossing a wooden bridge over a ravine (what you always see in cartoons like 'Speedy Gonzales'), after you have crossed, the bridge collapses, and there is no way back. That is incarnation too.
During alter database open resetlogs, the logsequence of the database is reset, this is an incarnation (act of birth) and without RMAN there is no way of going back to a previous incarnation.
You will have an incarnation when the database is created and every time you use resetlogs. RMAN allows you to reset the database to a 'previous incarnation'.
Sybrand Bakker
Senior Oracle DBA

Similar Messages

  • RMAN and database incarnations

    In experimenting with RMAN, I got our team into a situation where a test database would not restore and recover. I performed an incomplete recovery, opened resetlogs, and without performing a backup, did the same thing again.
    In any case, we started reading up on how to return to a previous database incarnation. We're not using a Recovery Catalog w RMAN, but 10g has been enhanced so that the control file now tracks db incarnations.
    We set the db incarnation back 2 previous, and then performed:
    RMAN> restore database until "to_date('9/2/04 23:59:59','mm/dd/yy hr24:mi:ss');
    RMAN> recover database until "to_date('9/2/04 23:59:59','mm/dd/yy hr24:mi:ss');
    and all seems well.
    I have 2 questions:
    1) Was the return back 2 incarnations really necessary? It seems like the database would've considered the 2 lines above an incomplete recovery and restore/recovered anyway.
    2) Do I need to manually remove the archive logs created for incarnations 3 & 4, or will RMAN know that they are not applicaable? And how does it know they're inapplicable, if so? The incarnation?
    Thanks for reading this looong question,
    Chuck

    In experimenting with RMAN, I got our team into a situation where a test database would not restore and recover. I performed an incomplete recovery, opened resetlogs, and without performing a backup, did the same thing again.
    In any case, we started reading up on how to return to a previous database incarnation. We're not using a Recovery Catalog w RMAN, but 10g has been enhanced so that the control file now tracks db incarnations.
    We set the db incarnation back 2 previous, and then performed:
    RMAN> restore database until "to_date('9/2/04 23:59:59','mm/dd/yy hr24:mi:ss');
    RMAN> recover database until "to_date('9/2/04 23:59:59','mm/dd/yy hr24:mi:ss');
    and all seems well.
    I have 2 questions:
    1) Was the return back 2 incarnations really necessary? It seems like the database would've considered the 2 lines above an incomplete recovery and restore/recovered anyway.
    2) Do I need to manually remove the archive logs created for incarnations 3 & 4, or will RMAN know that they are not applicaable? And how does it know they're inapplicable, if so? The incarnation?
    Thanks for reading this looong question,
    Chuck

  • Problem in performing multiple Point-In-Time Database Recovery using RMAN

    Hello Experts,
    I am getting an error while performing database point in time recovery multiple times using RMAN. Details are as follows :-
    Environment:
    Oracle 11g, ASM,
    Database DiskGroups : DG_DATA (Data files), DG_ARCH(Archive logs), DG_REDO(Redo logs Control file).
    Snapshot DiskGroups :
    Snapshot1 (taken at 9 am): SNAP1_DATA, SNAP1_ARCH, +SNAP1_REDO
    Snapshot2 (taken at 10 am): SNAP2_DATA, SNAP2_ARCH, +SNAP2_REDO
    Steps performed for point in time recovery:
    1. Restore control file from snapshot 2.
         RMAN> RESTORE CONTROLFILE from '+SNAP2_REDO/orcl/CONTROLFILE/Current.256.777398261';
    2. For 2nd recovery, reset incarnation of database to snapshot 2 incarnation (Say 2).
    3. Catalog data files from snapshot 1.
    4. Catalog archive logs from snapshot 2.
    5. Perform point in time recovery till given time.
         STARTUP MOUNT;
         RUN {
              SQL "ALTER SESSION SET NLS_DATE_FORMAT = ''dd-mon-yyyy hh24:mi:ss''";
              SET UNTIL TIME "06-mar-2013 09:30:00";
              RESTORE DATABASE;
              RECOVER DATABASE;
              ALTER DATABASE OPEN RESETLOGS;
    Results:
    Recovery 1: At 10.30 am, I performed first point in time recovery till 9:30 am, it was successful. Database incarnation was raised from *2* to *3*.
    Recovery 2: At 11:10 am, I performed another point in time recovery till 9:45 am, while doing it I reset the incarnation of DB to *2*, it failed with following error :-
    Starting recover at 28-FEB-13
    using channel ORA_DISK_1
    starting media recovery
    media recovery failed
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 03/06/2013 11:10:57
    ORA-00283: recovery session canceled due to errors
    RMAN-11003: failure during parse/execution of SQL statement: alter database recover if needed
    start until time 'MAR 06 2013 09:45:00'
    ORA-00283: recovery session canceled due to errors
    ORA-00313: open failed for members of log group 1 of thread 1
    ORA-00312: online log 1 thread 1: '+DG_REDO/orcl/onlinelog/group_1.257.807150859'
    ORA-17503: ksfdopn:2 Failed to open file +DG_REDO/orcl/onlinelog/group_1.257.807150859
    ORA-15012: ASM file '+DG_REDO/orcl/onlinelog/group_1.257.807150859' does not exist
    Doubts:
    1. Why did recovery failed 2nd time, but not 1st time and why is RMAN looking for online redo log group_1.257.807150859 in 2nd recovery ?
    3. I tried restoring control file from AutoBackup, in that case both 1st and 2nd recovery succeeded.
    However for this to work, I always need to keep the AutoBackup feature enabled.
    How reliable is control file AutoBackup ? Is there any alternative to using AutoBackup, can I restore control file from snapshot backup only ?
    4. If I restore control file from AutoBackup, then from what point of time/SCN does RMAN restores the control file ?
    Please help me out in this issue.
    Thanks.

    992748 wrote:
    Hello experts,
    I'm little newbie to RMAN recovery. Please help me in these doubts:
    1. If I have datafiles, archive logs & control files backup, but current online REDO logs are lost, then can I perform incomplete database recovery ?yes, if you have backups of everything else
    2. Till what maximum time/scn can incomplete database recovery be performed ??Assuming the only thing lost is the redo logs, you can recover to the last scn in the last archivelog.
    3. What is role of online REDO logs in incomplete database recovery ? They provide the final redo changes - the ones that have not been written to archivelogs
    Are they required for incomplete recovery ?It depends on how much incomplete recovery you need to do.
    Think of all of your changes as a constant stream of redo information. As a redolog fills, it is copied to archive, then (eventually) reused. over time, your redo stream is in archivelog_1, continuing into archvivelog_2, then to 3, and eventually, when you get to the last archivelog, into the online redo. A recovery will start with the oldest necessary point in the redo stream and continue forward. Whether or not you need the online redo for a PIT recovery depends on how far forward you need to recover.
    But you should take every precaution to prevent loss of online redo logs .. starting with having multiple members in each redo group ... and keeping those multiple members on physically separate disks.

  • Deleting old incarnation through RMAN

    Hi All,
    Could you please let me know how to delete old incranation and the backups related to that incarnation from RMAN for a particular database in Oracle 9i.
    Regards
    Harpreet Singh

    Hi,
    Thanks all for your help. I have achieved what I was looking for. I have deleted all the backups from the recovery catalog, according to you retention policy and also removed the unwanted incarnations from the recovery catalog. This is what I did:-
    crosscheck backup of database completed before 'sysdate - 35';
    crosscheck backup of archivelog all completed before 'sysdate -35';
    report obsolete recovery window of 35 days device type 'sbt';
    delete force noprompt obsolete recovery window of 35 days device type 'sbt';
    delete backup of database completed before 'sysdate-35';
    delete backup of archivelog all completed before 'sysdate-35';
    And then to remove the incarnations from the RMAN by logging in the RMAN database with the onwer of the recovery catalog:-
    RMAN> Delete from dbinc where dbinc_key=< dbinc_key>;
    MAY BE THIS CAN HELP SOMEONE IN THE FUTURE!!!!!!!!!!!!!!!!!!!!!!!
    Regards
    Harpreet Singh

  • Differences between using Data Pump to back up database and using RMAN ?

    what are differences between using Data Pump to back up database and using RMAN ? what is CONS and PROS ?
    Thanks

    Search for Database backup in
    http://docs.oracle.com/cd/B28359_01/server.111/b28318/backrec.htm#i1007289
    In short
    RMAN -> Physical backup.(copies of physical database files)
    Datapump -> Logical backup.(logical data such as tables,procedures)
    Docs for RMAN--
    http://docs.oracle.com/cd/B28359_01/backup.111/b28270/rcmcncpt.htm#
    Docs for Datapump
    http://docs.oracle.com/cd/B19306_01/server.102/b14215/dp_overview.htm
    Edited by: Sunny kichloo on Jul 5, 2012 6:55 AM

  • About database incarnations in catalog versus non-catalog

    Hi all
    Listing out the incarnations of my target database when not connected to the recovery catalog :
    RMAN> list incarnation of database testdb;
    using target database control file instead of recovery catalog
    List of Database Incarnations
    DB Key  Inc Key DB Name  DB ID            STATUS  Reset SCN  Reset Time
    1       1       TESTDB   2539541829       PARENT  1          11-JUL-11
    2       2       TESTDB   2539541829       PARENT  591584     12-JUL-11
    3       3       TESTDB   2539541829       PARENT  2061948    19-JUL-11
    4       4       TESTDB   2539541829       ORPHAN  1345130669 13-MAY-13
    5       5       TESTDB   2539541829       CURRENT 1345130669 15-MAY-13And listing out the incarnations when connected to the catalog:
    RMAN> list incarnation of database testdb;
    List of Database Incarnations
    DB Key  Inc Key DB Name  DB ID            STATUS  Reset SCN  Reset Time
    1178485 1178523 TESTDB   2539541829       PARENT  1          11-JUL-11
    1178485 1178524 TESTDB   2539541829       PARENT  591584     12-JUL-11
    1178485 1178525 TESTDB   2539541829       PARENT  2061948    19-JUL-11
    1178485 1178526 TESTDB   2539541829       ORPHAN  1345130669 13-MAY-13
    1178485 1178486 TESTDB   2539541829       CURRENT 1345130669 15-MAY-13Why are INC KEY numbers not matching? Is this a bug or is it expected behaviour?
    Please help me shed some light on this..
    Thanks.

    Hi,
    Manual said:
    DB Key- When combined with the Inc Key, the unique key by which RMAN identifies the database incarnation in the recovery catalog. Use this key to unregister a database from a recovery catalog, that is, delete all the rows associated with that database from the recovery catalog.
    INC Key- When combined with DB Key, the unique key by which RMAN identifies the database incarnation in the recovery catalog. Use this key in RESET DATABASE TO INCARNATION when recovering the database to a time before the most recent RESETLOGS.
    <<http://docs.oracle.com/cd/E11882_01/backup.112/e10643/rcmsynta027.htm#CHDGGAFF>>
    recovery-catalog and control file-catalog is a catalog of different, So not match.
    Regards,

  • Database Incarnation

    Hi all
    Does it matter whether after a database incarnation has been made that there are files from both incarnations around? I performed a test recovery from tape, basically all files that could be used to recover, to a test server, and performed an Oracle (full database) suggested recovery. It worked, but in the aftermath, there are archivelogs with different database incarnation number, and redo logs with differerent incarnation number. I understand that the database is essentially a 'new database' as far as creation is considered.
    Thanks, David

    Hi Nicolas
    Yes, I was actually doing a restore from one machine to another so the incarnation was different. My confusion was about whether having files with different incarnation numbers around made a difference; logically it can't - except for maybe my suspicion. The restore was an OEM rman suggested recovery; don't think it did resetlogs. It was a total (all files) recovery.
    Thanks, David

  • Relationship between current incarnation & Backups/ RMAN-20011

    Hi
    I have
    the following situation in RMAN:
    Incarnations:
    >
    RMAN> list incarnation;
    List of Database Incarnations
    DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time
    133 146 TESTDB 2528045035 PARENT 1 05-SEP-10
    133 134 TESTDB 2528045035 CURRENT 972274 02-MAR-11
    133 548 TESTDB 2528045035 ORPHAN 996374 02-MAR-11
    133 646 TESTDB 2528045035 ORPHAN 996490 04-MAR-11
    133 460 TESTDB 2528045035 ORPHAN 997986 02-MAR-11
    >
    Backups:
    >
    RMAN> list backup;
    List of Backup Sets
    ===================
    BS Key Size Device Type Elapsed Time Completion Time
    176 56.57M DISK 00:00:42 02-MAR-11
    BP Key: 177 Status: AVAILABLE Compressed: NO Tag: TAG20110302T100444
    Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/DATA/01m66vht_1_1
    List of Archived Logs in backup set 176
    Thrd Seq Low SCN Low Time Next SCN Next Time
    1 2 977121 02-MAR-11 988286 02-MAR-11
    1 3 988286 02-MAR-11 994189 02-MAR-11
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    187 Incr 0 999.72M DISK 00:15:42 02-MAR-11
    BP Key: 190 Status: AVAILABLE Compressed: NO Tag: TAG20110302T100531
    Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/DATA/02m66vjc_1_1
    List of Datafiles in backup set 187
    File LV Type Ckp SCN Ckp Time Name
    1 0 Incr 994637 02-MAR-11 /CDATA/TESTDB/system01.dbf
    2 0 Incr 994637 02-MAR-11 /CDATA/TESTDB/sysaux01.dbf
    3 0 Incr 994637 02-MAR-11 /CDATA/TESTDB/undotbs01.dbf
    4 0 Incr 994637 02-MAR-11 /CDATA/TESTDB/users01.dbf
    BS Key Size Device Type Elapsed Time Completion Time
    201 4.48M DISK 00:00:01 02-MAR-11
    BP Key: 206 Status: AVAILABLE Compressed: NO Tag: TAG20110302T102124
    Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/DATA/03m670h5_1_1
    List of Archived Logs in backup set 201
    Thrd Seq Low SCN Low Time Next SCN Next Time
    1 4 994189 02-MAR-11 996336 02-MAR-11
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    214 Full 9.36M DISK 00:00:10 02-MAR-11
    BP Key: 216 Status: AVAILABLE Compressed: NO Tag: TAG20110302T102129
    Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/CONTROLFILES/c-2528045035-20110302-00
    SPFILE Included: Modification time: 02-MAR-11
    SPFILE db_unique_name: TESTDB
    Control File Included: Ckp SCN: 996373 Ckp time: 02-MAR-11
    BS Key Size Device Type Elapsed Time Completion Time
    244 757.50K DISK 00:00:01 02-MAR-11
    BP Key: 247 Status: AVAILABLE Compressed: NO Tag: TAG20110302T103137
    Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/DATA/05m67149_1_1
    List of Archived Logs in backup set 244
    Thrd Seq Low SCN Low Time Next SCN Next Time
    1 5 996336 02-MAR-11 997210 02-MAR-11
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    261 Incr 0 1001.02M DISK 00:13:29 02-MAR-11
    BP Key: 263 Status: AVAILABLE Compressed: NO Tag: TAG20110302T103138
    Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/DATA/06m6714b_1_1
    List of Datafiles in backup set 261
    File LV Type Ckp SCN Ckp Time Name
    1 0 Incr 997238 02-MAR-11 /CDATA/TESTDB/system01.dbf
    2 0 Incr 997238 02-MAR-11 /CDATA/TESTDB/sysaux01.dbf
    3 0 Incr 997238 02-MAR-11 /CDATA/TESTDB/undotbs01.dbf
    4 0 Incr 997238 02-MAR-11 /CDATA/TESTDB/users01.dbf
    BS Key Size Device Type Elapsed Time Completion Time
    279 742.00K DISK 00:00:01 02-MAR-11
    BP Key: 284 Status: AVAILABLE Compressed: NO Tag: TAG20110302T104517
    Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/DATA/07m671tt_1_1
    List of Archived Logs in backup set 279
    Thrd Seq Low SCN Low Time Next SCN Next Time
    1 6 997210 02-MAR-11 997953 02-MAR-11
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    297 Full 9.36M DISK 00:00:10 02-MAR-11
    BP Key: 299 Status: AVAILABLE Compressed: NO Tag: TAG20110302T104519
    Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/CONTROLFILES/c-2528045035-20110302-01
    SPFILE Included: Modification time: 02-MAR-11
    SPFILE db_unique_name: TESTDB
    Control File Included: Ckp SCN: 997985 Ckp time: 02-MAR-11
    BS Key  Size       Device Type Elapsed Time Completion Time
    *342 438.00K DISK 00:00:00 02-MAR-11*
    BP Key: 345   Status: AVAILABLE  Compressed: NO  Tag: TAG20110302T104935
    Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/DATA/09m67260_1_1
    List of Archived Logs in backup set 342
    Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
    *1 7 997953 02-MAR-11 998260 02-MAR-11*
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    *364 Incr 0 1001.65M DISK 00:14:34 02-MAR-11*
    BP Key: 366   Status: AVAILABLE  Compressed: NO  Tag: TAG20110302T104937
    Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/DATA/0am67261_1_1
    List of Datafiles in backup set 364
    File LV Type Ckp SCN    Ckp Time  Name
    *1 0 Incr 998289 02-MAR-11 /CDATA/TESTDB/system01.dbf*
    *2 0 Incr 998289 02-MAR-11 /CDATA/TESTDB/sysaux01.dbf*
    *3 0 Incr 998289 02-MAR-11 /CDATA/TESTDB/undotbs01.dbf*
    *4 0 Incr 998289 02-MAR-11 /CDATA/TESTDB/users01.dbf*
    BS Key  Size       Device Type Elapsed Time Completion Time
    *387 7.58M DISK 00:00:02 02-MAR-11*
    BP Key: 392   Status: AVAILABLE  Compressed: NO  Tag: TAG20110302T110421
    Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/DATA/0bm6731m_1_1
    List of Archived Logs in backup set 387
    Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
    *1 8 998260 02-MAR-11 1000465 02-MAR-11*
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    *410 Full 9.36M DISK 00:00:10 02-MAR-11*
    BP Key: 412   Status: AVAILABLE  Compressed: NO  Tag: TAG20110302T110425
    Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/CONTROLFILES/c-2528045035-20110302-02
    SPFILE Included: Modification time: 02-MAR-11
    SPFILE db_unique_name: TESTDB
    Control File Included: Ckp SCN: 1000507      Ckp time: 02-MAR-11
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    483 Full 9.36M DISK 00:00:05 02-MAR-11
    BP Key: 484 Status: AVAILABLE Compressed: NO Tag: TAG20110302T113759
    Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/CONTROLFILES/c-2528045035-20110302-03
    SPFILE Included: Modification time: 02-MAR-11
    SPFILE db_unique_name: TESTDB
    Control File Included: Ckp SCN: 998081 Ckp time: 02-MAR-11
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    571 Full 9.36M DISK 00:00:04 02-MAR-11
    BP Key: 572 Status: AVAILABLE Compressed: NO Tag: TAG20110302T121754
    Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/CONTROLFILES/c-2528045035-20110302-04
    SPFILE Included: Modification time: 02-MAR-11
    SPFILE db_unique_name: TESTDB
    Control File Included: Ckp SCN: 996489 Ckp time: 02-MAR-11
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    667 Full 9.36M DISK 00:00:18 04-MAR-11
    BP Key: 668 Status: AVAILABLE Compressed: NO Tag: TAG20110304T132050
    Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/CONTROLFILES/c-2528045035-20110304-00
    SPFILE Included: Modification time: 04-MAR-11
    SPFILE db_unique_name: TESTDB
    Control File Included: Ckp SCN: 996596 Ckp time: 04-MAR-11
    RMAN>
    >
    I want rebuild the Database with the Backup (bold text).
    And I get the error after executed the following script:
    >
    RMAN> RUN
    2> {
    3> # STARTUP NOMOUNT;
    4> # RESTORE SPFILE TO '/u01/app/oracle/product/11.2.0.2/db_1/dbs/spfileTESTDB.ora' from TAG "TAG20110302T063849";
    5> # SHUTDOWN IMMEDIATE;
    6> STARTUP NOMOUNT;
    7> RESTORE CONTROLFILE FROM TAG "TAG20110302T110425";
    8> STARTUP MOUNT;
    9> SET UNTIL SCN 1000507;
    10> RESTORE DATABASE;
    11> RECOVER DATABASE;
    12> ALTER DATABASE OPEN RESETLOGS;
    13> }
    database is already started
    Starting restore at 04-MAR-11
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting datafile backup set restore
    channel ORA_DISK_1: restoring control file
    channel ORA_DISK_1: reading from backup piece /opt/BACKUP/11.2.0.2/RMAN/TESTDB/CONTROLFILES/c-2528045035-20110302-02
    channel ORA_DISK_1: piece handle=/opt/BACKUP/11.2.0.2/RMAN/TESTDB/CONTROLFILES/c-2528045035-20110302-02 tag=TAG20110302T110425
    channel ORA_DISK_1: restored backup piece 1
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:15
    output file name=/CDATA/TESTDB/control01.ctl
    output file name=/CFLASH/TESTDB/control02.ctl
    Finished restore at 04-MAR-11
    database is already started
    database mounted
    released channel: ORA_DISK_1
    executing command: SET until clause
    Starting restore at 04-MAR-11
    Starting implicit crosscheck backup at 04-MAR-11
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=136 device type=DISK
    Crosschecked 11 objects
    Finished implicit crosscheck backup at 04-MAR-11
    Starting implicit crosscheck copy at 04-MAR-11
    using channel ORA_DISK_1
    Finished implicit crosscheck copy at 04-MAR-11
    searching for all files in the recovery area
    cataloging files...
    cataloging done
    List of Cataloged Files
    =======================
    File Name: /CFLASH/TESTDB/archivelog/2011_03_04/o1_mf_1_1_6q1k25xs_.arc
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting datafile backup set restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    channel ORA_DISK_1: restoring datafile 00001 to /CDATA/TESTDB/system01.dbf
    channel ORA_DISK_1: restoring datafile 00002 to /CDATA/TESTDB/sysaux01.dbf
    channel ORA_DISK_1: restoring datafile 00003 to /CDATA/TESTDB/undotbs01.dbf
    channel ORA_DISK_1: restoring datafile 00004 to /CDATA/TESTDB/users01.dbf
    channel ORA_DISK_1: reading from backup piece /opt/BACKUP/11.2.0.2/RMAN/TESTDB/DATA/0am67261_1_1
    channel ORA_DISK_1: piece handle=/opt/BACKUP/11.2.0.2/RMAN/TESTDB/DATA/0am67261_1_1 tag=TAG20110302T104937
    channel ORA_DISK_1: restored backup piece 1
    channel ORA_DISK_1: restore complete, elapsed time: 00:13:45
    Finished restore at 04-MAR-11
    Starting recover at 04-MAR-11
    using channel ORA_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 03/04/2011 13:47:17
    RMAN-06004: ORACLE error from recovery catalog database: RMAN-20011: target database incarnation is not current in recovery catalog
    >
    How can I know the right incarnation to reset current?
    Please , help
    reagards
    hqr200475
    Edited by: hqt200475 on 04.03.2011 06:19

    Hi Werner,
    I tried some experiments to find out the Relationship between current incarnations & Backups !
    Here is a listing 2 hours before with the incarnation 460:
    >
    RMAN> list incarnation;
    List of Database Incarnations
    DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time
    133 146 TESTDB 2528045035 PARENT 1 05-SEP-10
    133 134 TESTDB 2528045035 PARENT 972274 02-MAR-11
    133 548 TESTDB 2528045035 ORPHAN 996374 02-MAR-11
    133 646 TESTDB 2528045035 ORPHAN 996490 04-MAR-11
    133 460 TESTDB 2528045035 CURRENT 997986 02-MAR-11
    RMAN> list backup;
    List of Backup Sets
    ===================
    BS Key Size Device Type Elapsed Time Completion Time
    176 56.57M DISK 00:00:42 02-MAR-11
    BP Key: 177 Status: AVAILABLE Compressed: NO Tag: TAG20110302T100444
    Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/DATA/01m66vht_1_1
    List of Archived Logs in backup set 176
    Thrd Seq Low SCN Low Time Next SCN Next Time
    1 2 977121 02-MAR-11 988286 02-MAR-11
    1 3 988286 02-MAR-11 994189 02-MAR-11
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    187 Incr 0 999.72M DISK 00:15:42 02-MAR-11
    BP Key: 190 Status: AVAILABLE Compressed: NO Tag: TAG20110302T100531
    Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/DATA/02m66vjc_1_1
    List of Datafiles in backup set 187
    File LV Type Ckp SCN Ckp Time Name
    1 0 Incr 994637 02-MAR-11 /CDATA/TESTDB/system01.dbf
    2 0 Incr 994637 02-MAR-11 /CDATA/TESTDB/sysaux01.dbf
    3 0 Incr 994637 02-MAR-11 /CDATA/TESTDB/undotbs01.dbf
    4 0 Incr 994637 02-MAR-11 /CDATA/TESTDB/users01.dbf
    BS Key Size Device Type Elapsed Time Completion Time
    201 4.48M DISK 00:00:01 02-MAR-11
    BP Key: 206 Status: AVAILABLE Compressed: NO Tag: TAG20110302T102124
    Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/DATA/03m670h5_1_1
    List of Archived Logs in backup set 201
    Thrd Seq Low SCN Low Time Next SCN Next Time
    1 4 994189 02-MAR-11 996336 02-MAR-11
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    214 Full 9.36M DISK 00:00:10 02-MAR-11
    BP Key: 216 Status: AVAILABLE Compressed: NO Tag: TAG20110302T102129
    Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/CONTROLFILES/c-2528045035-20110302-00
    SPFILE Included: Modification time: 02-MAR-11
    SPFILE db_unique_name: TESTDB
    Control File Included: Ckp SCN: 996373 Ckp time: 02-MAR-11
    BS Key Size Device Type Elapsed Time Completion Time
    244 757.50K DISK 00:00:01 02-MAR-11
    BP Key: 247 Status: AVAILABLE Compressed: NO Tag: TAG20110302T103137
    Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/DATA/05m67149_1_1
    List of Archived Logs in backup set 244
    Thrd Seq Low SCN Low Time Next SCN Next Time
    1 5 996336 02-MAR-11 997210 02-MAR-11
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    261 Incr 0 1001.02M DISK 00:13:29 02-MAR-11
    BP Key: 263 Status: AVAILABLE Compressed: NO Tag: TAG20110302T103138
    Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/DATA/06m6714b_1_1
    List of Datafiles in backup set 261
    File LV Type Ckp SCN Ckp Time Name
    1 0 Incr 997238 02-MAR-11 /CDATA/TESTDB/system01.dbf
    2 0 Incr 997238 02-MAR-11 /CDATA/TESTDB/sysaux01.dbf
    3 0 Incr 997238 02-MAR-11 /CDATA/TESTDB/undotbs01.dbf
    4 0 Incr 997238 02-MAR-11 /CDATA/TESTDB/users01.dbf
    BS Key Size Device Type Elapsed Time Completion Time
    279 742.00K DISK 00:00:01 02-MAR-11
    BP Key: 284 Status: AVAILABLE Compressed: NO Tag: TAG20110302T104517
    Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/DATA/07m671tt_1_1
    List of Archived Logs in backup set 279
    Thrd Seq Low SCN Low Time Next SCN Next Time
    1 6 997210 02-MAR-11 997953 02-MAR-11
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    297 Full 9.36M DISK 00:00:10 02-MAR-11
    BP Key: 299 Status: AVAILABLE Compressed: NO Tag: TAG20110302T104519
    Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/CONTROLFILES/c-2528045035-20110302-01
    SPFILE Included: Modification time: 02-MAR-11
    SPFILE db_unique_name: TESTDB
    Control File Included: Ckp SCN: 997985 Ckp time: 02-MAR-11
    BS Key Size Device Type Elapsed Time Completion Time
    342 438.00K DISK 00:00:00 02-MAR-11
    BP Key: 345 Status: AVAILABLE Compressed: NO Tag: TAG20110302T104935
    Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/DATA/09m67260_1_1
    List of Archived Logs in backup set 342
    Thrd Seq Low SCN Low Time Next SCN Next Time
    1 7 997953 02-MAR-11 998260 02-MAR-11
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    364 Incr 0 1001.65M DISK 00:14:34 02-MAR-11
    BP Key: 366 Status: AVAILABLE Compressed: NO Tag: TAG20110302T104937
    Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/DATA/0am67261_1_1
    List of Datafiles in backup set 364
    File LV Type Ckp SCN Ckp Time Name
    1 0 Incr 998289 02-MAR-11 /CDATA/TESTDB/system01.dbf
    2 0 Incr 998289 02-MAR-11 /CDATA/TESTDB/sysaux01.dbf
    3 0 Incr 998289 02-MAR-11 /CDATA/TESTDB/undotbs01.dbf
    4 0 Incr 998289 02-MAR-11 /CDATA/TESTDB/users01.dbf
    BS Key Size Device Type Elapsed Time Completion Time
    387 7.58M DISK 00:00:02 02-MAR-11
    BP Key: 392 Status: AVAILABLE Compressed: NO Tag: TAG20110302T110421
    Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/DATA/0bm6731m_1_1
    List of Archived Logs in backup set 387
    Thrd Seq Low SCN Low Time Next SCN Next Time
    1 8 998260 02-MAR-11 1000465 02-MAR-11
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    410 Full 9.36M DISK 00:00:10 02-MAR-11
    BP Key: 412 Status: AVAILABLE Compressed: NO Tag: TAG20110302T110425
    Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/CONTROLFILES/c-2528045035-20110302-02
    SPFILE Included: Modification time: 02-MAR-11
    SPFILE db_unique_name: TESTDB
    Control File Included: Ckp SCN: 1000507 Ckp time: 02-MAR-11
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    483 Full 9.36M DISK 00:00:05 02-MAR-11
    BP Key: 484 Status: AVAILABLE Compressed: NO Tag: TAG20110302T113759
    Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/CONTROLFILES/c-2528045035-20110302-03
    SPFILE Included: Modification time: 02-MAR-11
    SPFILE db_unique_name: TESTDB
    Control File Included: Ckp SCN: 998081 Ckp time: 02-MAR-11
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    571 Full 9.36M DISK 00:00:04 02-MAR-11
    BP Key: 572 Status: AVAILABLE Compressed: NO Tag: TAG20110302T121754
    Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/CONTROLFILES/c-2528045035-20110302-04
    SPFILE Included: Modification time: 02-MAR-11
    SPFILE db_unique_name: TESTDB
    Control File Included: Ckp SCN: 996489 Ckp time: 02-MAR-11
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    667 Full 9.36M DISK 00:00:18 04-MAR-11
    BP Key: 668 Status: AVAILABLE Compressed: NO Tag: TAG20110304T132050
    Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/CONTROLFILES/c-2528045035-20110304-00
    SPFILE Included: Modification time: 04-MAR-11
    SPFILE db_unique_name: TESTDB
    Control File Included: Ckp SCN: 996596 Ckp time: 04-MAR-11
    RMAN> @TESTDB_rr.rman
    RMAN> RUN
    2> {
    3> # STARTUP NOMOUNT;
    4> # RESTORE SPFILE TO '/u01/app/oracle/product/11.2.0.2/db_1/dbs/spfileTESTDB.ora' from TAG "TAG20110302T063849";
    5> # SHUTDOWN IMMEDIATE;
    6> STARTUP NOMOUNT;
    7> RESTORE CONTROLFILE FROM TAG "TAG20110302T110425";
    8> STARTUP MOUNT;
    9> SET UNTIL SCN 1000507;
    10> RESTORE DATABASE;
    11> RECOVER DATABASE;
    12> ALTER DATABASE OPEN RESETLOGS;
    13> }
    database is already started
    Starting restore at 04-MAR-11
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=12 device type=DISK
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 03/04/2011 13:29:58
    RMAN-06026: some targets not found - aborting restore
    RMAN-06024: no backup or copy of the control file found to restore
    RMAN> **end-of-file**
    RMAN> list incarnation;
    List of Database Incarnations
    DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time
    133 146 TESTDB 2528045035 PARENT 1 05-SEP-10
    133 134 TESTDB 2528045035 PARENT 972274 02-MAR-11
    133 548 TESTDB 2528045035 ORPHAN 996374 02-MAR-11
    133 646 TESTDB 2528045035 ORPHAN 996490 04-MAR-11
    133 460 TESTDB 2528045035 CURRENT 997986 02-MAR-11
    >
    regards
    hqt200475

  • RE: What's database field are used in crystal report file?

    Hi all
    Please help me a C# code that using Crystall Report API (Crystal Report XI- Develop license) to get the list of database fieldname that using in crystal Report file. (What's database field using in header section ,group section , detail section of report.....)
    We looking forward to hearing from you
    Thanks
    Son

    Hello Son,
    please use this code below to get a list of used database fields in a report :
    //File Name:          CS_Get_report_data_out_inproc.sln
    //Created:            April 11, 2008
    //Author ID:          FLI
    //Purpose:            This C# .NET sample Windows application demonstrates
    //                  how to retrieve report data and put the into a XML file
    //                  using unmanaged RAS.
    // Note this is available without a dedicated RAS with SP2 for XI R2
    using System;
    using System.IO;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Text;
    using System.Windows.Forms;
    using CrystalDecisions.CrystalReports.Engine;
    using CrystalDecisions.ReportAppServer.ClientDoc;
    using CrystalDecisions.ReportAppServer.Controllers;
    using CrystalDecisions.ReportAppServer.DataDefModel;
    namespace CS_Get_report_data_out_inproc
        public partial class Form1 : Form
            // CR Declarations
            ReportDocument boReportDocument;
            ISCDReportClientDocument boReportClientDocument;
            public Form1()
                InitializeComponent();
                //Create a new ReportDocument
                boReportDocument = new ReportDocument();
                // load the RPT file
                boReportDocument.Load("..
    ReportData.rpt");
                // show in reportviewer
                crystalReportViewer1.ReportSource = boReportDocument;
            private void button1_Click(object sender, EventArgs e)
                //Access the ReportClientDocument in the ReportDocument (EROM bridge)
                boReportClientDocument = boReportDocument.ReportClientDocument;
                // Retrieve the Rowset Controller
                RowsetController boRowsetController = boReportClientDocument.RowsetController;
                // Retrieve the metadata (column headers) - this allows you to only retrieve the data that is on the report.
                RowsetMetaData boRowsetMetaData = new RowsetMetaData();
                Fields boFields = boReportClientDocument.DataDefinition.ResultFields;
                boRowsetMetaData.DataFields = boFields;
                // Now print out the data in XML file
                //(Note: This will print out the results of formulas too)
                StreamWriter sw = new StreamWriter("C:
    ReportData.xml", false);
                sw.WriteLine("<?xml version='1.0' encoding='utf-8'?>");
                sw.WriteLine("<ReportData>");
                sw.WriteLine("<Reportheader>");
                // Print out the titles
                for (int i = 0; i < boFields.Count; i++)
                    String boFieldName = boFields<i>.Name;
                    sw.WriteLine("<ReportheaderDetail>" + boFieldName + "</ReportheaderDetail>");
                sw.WriteLine("</Reportheader>");
                //Create the cursor which lets us loop through the data
                RowsetCursor boRowsetCursor = boRowsetController.CreateCursor(null, boRowsetMetaData, 1);
                Record boRecord;
                while (boRowsetCursor.IsEOF == false)
                    sw.WriteLine("<Customer>");
                    boRecord = boRowsetCursor.CurrentRecord;
                    for (int j = 0; j < boFields.Count; j++)
                        try
                            sw.WriteLine("<Detail>" + (String)boRecord[j].ToString() + "</Detail>");
                        catch (Exception err)
                            sw.WriteLine("<Error>" + err.Message + "</Error>");
                    sw.WriteLine("</Customer>");
                    boRowsetCursor.MoveNext();
                sw.WriteLine("</ReportData>");
                // CLose the file
                sw.Close();
                MessageBox.Show("XML File 'ReportData.xml' successfully created on C:");

  • What is Database clone? what are the ways in MS SQL Server?

    No ,I am looking for Database cloning. Is there any feature in sqlserver like this.
    Bz someone ask me that What is Database cloning in Sqlserver.

    No ,I am looking for Database cloning. Is there any feature in sqlserver like this.
    Bz someone ask me that What is Database cloning in Sqlserver.
    No there is no feature exactly to clone a database.Or a command or GUI for *cloning* specifically.
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • What is "database.sqlite3"? It's keeping me from deleting my trash.

    What is "database.sqlite3"? It's keeping me from empting my trash can.

    Hello:
    I have no clue how you got that on your computer - it is not installed by OS X.
    http://www.fileinfo.com/extension/sqlite3
    In any event, try emptying the trash while holding the option key down.
    I use a little utility called "Cocktail" for really tough trash problems (be careful if you use Cocktail, it has very powerful capabilities).
    Barry

  • Create a database from 8i RMAN backup

    Hi,
    I am in need to recover some historic data from a historic database's RMAN backup.
    The situation is ... I have one old RMAN backup of a 8i database which includes datafiles, archivellog files and control files. Init.ora file is also available.
    I have installed the 8i software in a host and created the oracle service through ORADIM and pwd file through ORAPWD utility. Then copied the init.ora file under 'C:\Oracle\ADMIN\ORCL\PFILE' and the RMAN backup files under 'C:\Oracle\Ora81\DATABASE' folder.
    Now I can start the instance with the init.ora file but can not mount as control files are not there. when I try to restore the control files through RMAN as...
    RMAN> run
    2> {
    3> restore controlfile;
    4> }
    RMAN-03022: compiling command: restore
    RMAN-03022: compiling command: IRESTORE
    RMAN-03026: error recovery releasing channel resources
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure during compilation of command
    RMAN-03013: command type: restore
    RMAN-03002: failure during compilation of command
    RMAN-03013: command type: IRESTORE
    RMAN-06172: not connected to recovery catalog database
    RMAN>
    Now without the catalog database how can I restore the control files and the database from the RMAN backup?
    I think the old RMAN metadata was stored in catalog database.
    Any suggestion please?
    regards

    Sorry I wrongly said that I do not have the DBID, I have DBID but I have controlfile backup as RMAN backupset, not in Binary. So even if I set DBID, RMAN asks for the catalog database, which is not available.
    As I worked...
    C:\>rman
    Recovery Manager: Release 8.1.5.0.0 - Production
    RMAN> SET DBID=1208994555
    RMAN-03022: compiling command: CSET
    RMAN> connect target sys/*****
    RMAN-06193: connected to target database (not started)
    RMAN> startup nomount
    RMAN-06196: Oracle instance started
    Total System Global Area 552011724 bytes
    Fixed Size 65484 bytes
    Variable Size 69357568 bytes
    Database Buffers 482514944 bytes
    Redo Buffers 73728 bytes
    RMAN> run
    2> {
    3> allocate channel ch1 type disk;
    4> restore controlfile;
    5> alter database mount;
    6> }
    RMAN-03022: compiling command: allocate
    RMAN-03026: error recovery releasing channel resources
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure during compilation of command
    RMAN-03013: command type: allocate
    RMAN-06172: not connected to recovery catalog database
    RMAN> shutdown
    RMAN-06402: Oracle instance shut down
    RMAN> set dbid 1208994555
    RMAN-03022: compiling command: CSET
    RMAN> connect target sys/*** nocatalog
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01005: syntax error: found "nocatalog": expecting one of: "newline, ;"
    RMAN-01007: at line 1 column 27 file: standard input
    RMAN> connect target sys/**** nocatalog;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01005: syntax error: found "nocatalog": expecting one of: "newline, ;"
    RMAN-01007: at line 1 column 27 file: standard input
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01005: syntax error: found ";": expecting one of: "allocate, alter, beginli
    ne, catalog, change, connect, create, crosscheck, debug, delete, drop, exit, end
    inline, host, {, library, list, mount, open, print, register, release, replace,
    report, reset, resync, rman, rpctest, run, set, sql, "
    RMAN-01007: at line 1 column 36 file: standard input
    RMAN> exit
    Recovery Manager complete.
    C:\>rman target sys/**** nocatalog
    Recovery Manager: Release 8.1.5.0.0 - Production
    RMAN-06193: connected to target database (not started)
    RMAN> run{
    2> allocate channel ch1 type disk;
    3> restore controlfile;
    4> alter database mount;
    5> }
    RMAN-03022: compiling command: allocate
    RMAN-03023: executing command: allocate
    RMAN-08030: allocated channel: ch1
    RMAN-08500: channel ch1: sid=12 devtype=DISK
    RMAN-03022: compiling command: restore
    RMAN-03022: compiling command: IRESTORE
    RMAN-03026: error recovery releasing channel resources
    RMAN-08031: released channel: ch1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure during compilation of command
    RMAN-03013: command type: restore
    RMAN-03002: failure during compilation of command
    RMAN-03013: command type: IRESTORE
    RMAN-06003: ORACLE error from target database: ORA-01507: database not mounted
    ORA-06512: at "SYS.X$DBMS_RCVMAN", line 923
    ORA-06512: at line 1
    RMAN-06097: text of failing SQL statement: begin dbms_rcvman . setDatabase ( upp
    er ( :dbname:dbname_i ) , :rlscn , :rltime , :fhdbi:fhdbi_i ) ; end ;
    RMAN>

  • Physical Standby Database Creation with RMAN

    Hi,
    I'm in 10g on Linux. I want to create a standby database on another Linux server. I did not find a clear procedure to create it in Oracle® Database Backup and Recovery Advanced User's Guide 10g Release 2 (10.2) Part Number B14191-02
    and niether in Oracle® Data Guard Concepts and Administration 10g Release 2 (10.2) B14239-04
    In the last one chapter 3 sends you to F appendix and F appendix says do nothing before having than all in chapter 3 :
    In F.1.1 page F-2 it is said :
    See Chapter 3 for a complete discussion of physical standby database preparation,including initialization parameter settings. You must perform all necessary preparation tasks described in these chapters before RMAN can successfully create the standby database files and mount the standby database.
    Any way I'm looking for a procedure or clear article to create it.
    Many thanks before.

    Physical Standby Database Creation with RMAN
    Use the DUPLICATE command.
    Check out this metalink doc: Note:374069.1 and Note:118409.1
    Message was edited by:
    STW
    Message was edited by:
    STW

  • What are the steps in RMAN Backup & Recovery 10 G

    Hi All
    Please list out What are the steps in RMAN Backup & Recovery 10 G
    Regards

    Take a look at the user guide or at the getting started section, dba core tasks - backup and recovery.
    C.

  • Problems doing an active Database duplication through RMAN

    Hi,
    I'm trying to do active Database duplication through RMAN (http://docs.oracle.com/cd/B28359_01/backup.111/b28270/rcmdupdb.htm#).
    My OS is Sun Solaris 5
    Oracle version: 11gR1 Database on a 11gR2 Grid.
    I'm receiving the error
    RMAN> connect auxiliary sys/sys@rac402
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-04006: error from auxiliary database: ORA-12528: TNS:listener: all appropriate instances are blocking new connections
    I'm seeing the listeners are in blocked state as mt auxiliary Database is in nomount state.
    Service "rac40" has 1 instance(s).
    Instance "rac402", status BLOCKED, has 1 handler(s) for this service...
    Service "rac40_XPT" has 1 instance(s).
    Instance "rac402", status BLOCKED, has 1 handler(s) for this service...
    If I connect directly, I'm able to connect ("connect auxiliary / " after setting ORACLE_SID)
    But active RMAN is saying
    RMAN-03002: failure of Duplicate Db command at 06/18/2012 01:37:14
    RMAN-06217: not connected to auxiliary database with a net service name (I don't know why Oracle is so specific in connecting through net service name only!!!)
    So, how could I move forward?? any help is greatly appreciated!!!
    Thanks in advance.
    Regards,
    CSM

    Hi ,
    I have issue to active Database duplication issue and getting below error. Can someone suggest something on this error ?
    RMAN> duplicate target database to 'ub305' from active database;
    Starting Duplicate Db at 07-AUG-2012 13:33:22
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: SID=2 device type=DISK
    contents of Memory Script:
    sql clone "create spfile from memory";
    executing Memory Script
    sql statement: create spfile from memory
    contents of Memory Script:
    shutdown clone immediate;
    startup clone nomount;
    executing Memory Script
    Oracle instance shut down
    connected to auxiliary database (not started)
    Oracle instance started
    Total System Global Area 21512572928 bytes
    Fixed Size 2235984 bytes
    Variable Size 11005854128 bytes
    Database Buffers 10468982784 bytes
    Redo Buffers 35500032 bytes
    contents of Memory Script:
    sql clone "alter system set control_files =
    ''+DG_075_DATA01/ub305/controlfile/current.345.790692287'', ''+DG_075_FRA01/ub305/controlfile/current.292.790692289'' comment=
    ''Set by RMAN'' scope=spfile";
    sql clone "alter system set db_name =
    ''UA305'' comment=
    ''Modified by RMAN duplicate'' scope=spfile";
    sql clone "alter system set db_unique_name =
    ''UB305'' comment=
    ''Modified by RMAN duplicate'' scope=spfile";
    shutdown clone immediate;
    startup clone force nomount
    backup as copy current controlfile auxiliary format '+DG_075_DATA01/ub305/controlfile/current.345.790692287';
    restore clone controlfile to '+DG_075_FRA01/ub305/controlfile/current.292.790692289' from
    '+DG_075_DATA01/ub305/controlfile/current.345.790692287';
    sql clone "alter system set control_files =
    ''+DG_075_DATA01/ub305/controlfile/current.345.790692287'', ''+DG_075_FRA01/ub305/controlfile/current.292.790692289'' 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_075_DATA01/ub305/controlfile/current.345.790692287'', ''+DG_075_FRA01/ub305/controlfile/current.292.790692289'' comment= ''Set by RMAN'' scope=spfile
    sql statement: alter system set db_name = ''UA305'' comment= ''Modified by RMAN duplicate'' scope=spfile
    sql statement: alter system set db_unique_name = ''UB305'' comment= ''Modified by RMAN duplicate'' scope=spfile
    Oracle instance shut down
    Oracle instance started
    Total System Global Area 21512572928 bytes
    Fixed Size 2235984 bytes
    Variable Size 11005854128 bytes
    Database Buffers 10468982784 bytes
    Redo Buffers 35500032 bytes
    Starting backup at 07-AUG-2012 13:34:11
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=1333 instance=ua3051 device type=DISK
    channel ORA_DISK_1: starting datafile copy
    copying current control file
    output file name=/u01/app/oracle/product/11.2.0/db_1/dbs/snapcf_ua3051.f tag=TAG20120807T133412 RECID=17 STAMP=790695252
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:03
    Finished backup at 07-AUG-2012 13:34:15
    Starting restore at 07-AUG-2012 13:34:15
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: SID=2 device type=DISK
    channel ORA_AUX_DISK_1: copied control file copy
    Finished restore at 07-AUG-2012 13:34:16
    sql statement: alter system set control_files = ''+DG_075_DATA01/ub305/controlfile/current.345.790692287'', ''+DG_075_FRA01/ub305/controlfile/current.292.790692289'' comment= ''Set by RMAN'' scope=spfile
    Oracle instance shut down
    connected to auxiliary database (not started)
    Oracle instance started
    Total System Global Area 21512572928 bytes
    Fixed Size 2235984 bytes
    Variable Size 11005854128 bytes
    Database Buffers 10468982784 bytes
    Redo Buffers 35500032 bytes
    database mounted
    RMAN-05529: WARNING: DB_FILE_NAME_CONVERT resulted in invalid ASM names; names changed to disk group only.
    contents of Memory Script:
    set newname for datafile 1 to
    "+dg_075_data01";
    set newname for datafile 2 to
    "+dg_075_data01";
    set newname for datafile 3 to
    "+dg_075_data01";
    set newname for datafile 4 to
    "+dg_075_data01";
    set newname for datafile 5 to
    "+dg_075_data01";
    set newname for datafile 6 to
    "+dg_075_data01";
    set newname for datafile 7 to
    "+dg_075_data01";
    set newname for datafile 8 to
    "+DG_075_DATA01/ub305/datafile/ts001_rsa.ora";
    backup as copy reuse
    datafile 1 auxiliary format
    "+dg_075_data01" datafile
    2 auxiliary format
    "+dg_075_data01" datafile
    3 auxiliary format
    "+dg_075_data01" datafile
    4 auxiliary format
    "+dg_075_data01" datafile
    5 auxiliary format
    "+dg_075_data01" datafile
    6 auxiliary format
    "+dg_075_data01" datafile
    7 auxiliary format
    "+dg_075_data01" datafile
    8 auxiliary format
    "+DG_075_DATA01/ub305/datafile/ts001_rsa.ora" ;
    sql 'alter system archive log current';
    executing Memory Script
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    Starting backup at 07-AUG-2012 13:34:46
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting datafile copy
    input datafile file number=00008 name=+DG_305_DATA01/ua305/datafile/ts001_rsa.ora
    output file name=+DG_075_DATA01/ub305/datafile/ts001_rsa.ora tag=TAG20120807T133447
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:01:05
    channel ORA_DISK_1: starting datafile copy
    input datafile file number=00001 name=+DG_305_DATA01/ua305/datafile/system.256.788357663
    output file name=+DG_075_DATA01/ub305/datafile/system.322.790695353 tag=TAG20120807T133447
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:07
    channel ORA_DISK_1: starting datafile copy
    input datafile file number=00002 name=+DG_305_DATA01/ua305/datafile/sysaux.257.788357663
    output file name=+DG_075_DATA01/ub305/datafile/sysaux.321.790695359 tag=TAG20120807T133447
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:07
    channel ORA_DISK_1: starting datafile copy
    input datafile file number=00007 name=+DG_305_DATA01/ua305/datafile/ata_apm.271.788369355
    output file name=+DG_075_DATA01/ub305/datafile/ata_apm.320.790695367 tag=TAG20120807T133447
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:07
    channel ORA_DISK_1: starting datafile copy
    input datafile file number=00003 name=+DG_305_DATA01/ua305/datafile/undotbs1.258.788357663
    output file name=+DG_075_DATA01/ub305/datafile/undotbs1.319.790695373 tag=TAG20120807T133447
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:03
    channel ORA_DISK_1: starting datafile copy
    input datafile file number=00004 name=+DG_305_DATA01/ua305/datafile/users.259.788357663
    output file name=+DG_075_DATA01/ub305/datafile/users.316.790695377 tag=TAG20120807T133447
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:03
    channel ORA_DISK_1: starting datafile copy
    input datafile file number=00005 name=+DG_305_DATA01/ua305/datafile/undotbs2.264.788357815
    output file name=+DG_075_DATA01/ub305/datafile/undotbs2.315.790695381 tag=TAG20120807T133447
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:03
    channel ORA_DISK_1: starting datafile copy
    input datafile file number=00006 name=+DG_305_DATA01/ua305/datafile/ata_mds.270.788369353
    output file name=+DG_075_DATA01/ub305/datafile/ata_mds.314.790695383 tag=TAG20120807T133447
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:01
    Finished backup at 07-AUG-2012 13:36:24
    sql statement: alter system archive log current
    contents of Memory Script:
    backup as copy reuse
    archivelog like "+DG_305_FRA01/ua305/archivelog/2012_08_07/thread_1_seq_223.572.790694523" auxiliary format
    "+DG_075_FRA01" archivelog like
    "+DG_305_FRA01/ua305/archivelog/2012_08_07/thread_1_seq_224.573.790695385" auxiliary format
    "+DG_075_FRA01" archivelog like
    "+DG_305_FRA01/ua305/archivelog/2012_08_07/thread_2_seq_91.574.790695387" auxiliary format
    "+DG_075_FRA01" ;
    catalog clone recovery area;
    switch clone datafile all;
    executing Memory Script
    Starting backup at 07-AUG-2012 13:36:30
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting archived log copy
    input archived log thread=1 sequence=223 RECID=311 STAMP=790694522
    output file name=+DG_075_FRA01/ub305/archivelog/2012_08_07/thread_1_seq_223.299.790695391 RECID=0 STAMP=0
    channel ORA_DISK_1: archived log copy complete, elapsed time: 00:00:01
    channel ORA_DISK_1: starting archived log copy
    input archived log thread=1 sequence=224 RECID=312 STAMP=790695384
    output file name=+DG_075_FRA01/ub305/archivelog/2012_08_07/thread_1_seq_224.267.790695393 RECID=0 STAMP=0
    channel ORA_DISK_1: archived log copy complete, elapsed time: 00:00:01
    channel ORA_DISK_1: starting archived log copy
    input archived log thread=2 sequence=91 RECID=313 STAMP=790695386
    output file name=+DG_075_FRA01/ub305/archivelog/2012_08_07/thread_2_seq_91.283.790695393 RECID=0 STAMP=0
    channel ORA_DISK_1: archived log copy complete, elapsed time: 00:00:01
    Finished backup at 07-AUG-2012 13:36:34
    searching for all files in the recovery area
    List of Files Unknown to the Database
    =====================================
    File Name: +dg_075_fra01/UB305/ARCHIVELOG/2012_08_07/thread_1_seq_220.279.790692475
    File Name: +dg_075_fra01/UB305/ARCHIVELOG/2012_08_07/thread_1_seq_221.312.790692477
    File Name: +dg_075_fra01/UB305/ARCHIVELOG/2012_08_07/thread_1_seq_222.311.790692479
    File Name: +dg_075_fra01/UB305/ARCHIVELOG/2012_08_07/thread_2_seq_89.310.790692479
    File Name: +dg_075_fra01/UB305/ARCHIVELOG/2012_08_07/thread_2_seq_89.309.790694525
    File Name: +dg_075_fra01/UB305/ARCHIVELOG/2012_08_07/thread_2_seq_90.261.790694527
    File Name: +dg_075_fra01/UB305/ARCHIVELOG/2012_08_07/thread_1_seq_223.262.790694527
    File Name: +dg_075_fra01/UB305/ARCHIVELOG/2012_08_07/thread_1_seq_223.299.790695391
    File Name: +dg_075_fra01/UB305/ARCHIVELOG/2012_08_07/thread_1_seq_224.267.790695393
    File Name: +dg_075_fra01/UB305/ARCHIVELOG/2012_08_07/thread_2_seq_91.283.790695393
    File Name: +dg_075_fra01/UB305/CONTROLFILE/Current.289.790692289
    cataloging files...
    cataloging done
    List of Cataloged Files
    =======================
    File Name: +dg_075_fra01/UB305/ARCHIVELOG/2012_08_07/thread_1_seq_220.279.790692475
    File Name: +dg_075_fra01/UB305/ARCHIVELOG/2012_08_07/thread_1_seq_221.312.790692477
    File Name: +dg_075_fra01/UB305/ARCHIVELOG/2012_08_07/thread_1_seq_222.311.790692479
    File Name: +dg_075_fra01/UB305/ARCHIVELOG/2012_08_07/thread_2_seq_89.310.790692479
    File Name: +dg_075_fra01/UB305/ARCHIVELOG/2012_08_07/thread_2_seq_89.309.790694525
    File Name: +dg_075_fra01/UB305/ARCHIVELOG/2012_08_07/thread_2_seq_90.261.790694527
    File Name: +dg_075_fra01/UB305/ARCHIVELOG/2012_08_07/thread_1_seq_223.262.790694527
    File Name: +dg_075_fra01/UB305/ARCHIVELOG/2012_08_07/thread_1_seq_223.299.790695391
    File Name: +dg_075_fra01/UB305/ARCHIVELOG/2012_08_07/thread_1_seq_224.267.790695393
    File Name: +dg_075_fra01/UB305/ARCHIVELOG/2012_08_07/thread_2_seq_91.283.790695393
    List of Files Which Where Not Cataloged
    =======================================
    File Name: +dg_075_fra01/UB305/CONTROLFILE/Current.289.790692289
    RMAN-07517: Reason: The file header is corrupted
    datafile 1 switched to datafile copy
    input datafile copy RECID=17 STAMP=790695395 file name=+DG_075_DATA01/ub305/datafile/system.322.790695353
    datafile 2 switched to datafile copy
    input datafile copy RECID=18 STAMP=790695395 file name=+DG_075_DATA01/ub305/datafile/sysaux.321.790695359
    datafile 3 switched to datafile copy
    input datafile copy RECID=19 STAMP=790695395 file name=+DG_075_DATA01/ub305/datafile/undotbs1.319.790695373
    datafile 4 switched to datafile copy
    input datafile copy RECID=20 STAMP=790695395 file name=+DG_075_DATA01/ub305/datafile/users.316.790695377
    datafile 5 switched to datafile copy
    input datafile copy RECID=21 STAMP=790695395 file name=+DG_075_DATA01/ub305/datafile/undotbs2.315.790695381
    datafile 6 switched to datafile copy
    input datafile copy RECID=22 STAMP=790695395 file name=+DG_075_DATA01/ub305/datafile/ata_mds.314.790695383
    datafile 7 switched to datafile copy
    input datafile copy RECID=23 STAMP=790695395 file name=+DG_075_DATA01/ub305/datafile/ata_apm.320.790695367
    datafile 8 switched to datafile copy
    input datafile copy RECID=24 STAMP=790695395 file name=+DG_075_DATA01/ub305/datafile/ts001_rsa.ora
    contents of Memory Script:
    set until scn 8950952;
    recover
    clone database
    delete archivelog
    executing Memory Script
    executing command: SET until clause
    Starting recover at 07-AUG-2012 13:36:35
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: SID=191 device type=DISK
    starting media recovery
    archived log for thread 1 with sequence 224 is already on disk as file +DG_075_FRA01/ub305/archivelog/2012_08_07/thread_1_seq_224.267.790695393
    archived log for thread 2 with sequence 91 is already on disk as file +DG_075_FRA01/ub305/archivelog/2012_08_07/thread_2_seq_91.283.790695393
    archived log file name=+DG_075_FRA01/ub305/archivelog/2012_08_07/thread_1_seq_224.267.790695393 thread=1 sequence=224
    archived log file name=+DG_075_FRA01/ub305/archivelog/2012_08_07/thread_2_seq_91.283.790695393 thread=2 sequence=91
    media recovery complete, elapsed time: 00:00:01
    Finished recover at 07-AUG-2012 13:36:38
    Oracle instance started
    Total System Global Area 21512572928 bytes
    Fixed Size 2235984 bytes
    Variable Size 11005854128 bytes
    Database Buffers 10468982784 bytes
    Redo Buffers 35500032 bytes
    contents of Memory Script:
    sql clone "alter system set db_name =
    ''UB305'' comment=
    ''Reset to original value by RMAN'' scope=spfile";
    sql clone "alter system reset db_unique_name scope=spfile";
    shutdown clone immediate;
    startup clone nomount;
    executing Memory Script
    sql statement: alter system set db_name = ''UB305'' comment= ''Reset to original value by RMAN'' scope=spfile
    sql statement: alter system reset db_unique_name scope=spfile
    Oracle instance shut down
    connected to auxiliary database (not started)
    Oracle instance started
    Total System Global Area 21512572928 bytes
    Fixed Size 2235984 bytes
    Variable Size 11005854128 bytes
    Database Buffers 10468982784 bytes
    Redo Buffers 35500032 bytes
    sql statement: CREATE CONTROLFILE REUSE SET DATABASE "UB305" RESETLOGS ARCHIVELOG
    MAXLOGFILES 192
    MAXLOGMEMBERS 3
    MAXDATAFILES 1024
    MAXINSTANCES 32
    MAXLOGHISTORY 292
    LOGFILE
    GROUP 1 ( '+dg_075_fra01', '+dg_305_data01' ) SIZE 100 M REUSE,
    GROUP 2 ( '+dg_075_fra01', '+dg_305_data01' ) SIZE 100 M REUSE
    DATAFILE
    '+DG_075_DATA01/ub305/datafile/system.322.790695353'
    CHARACTER SET AL32UTF8
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 08/07/2012 13:37:18
    RMAN-05501: aborting duplication of target database
    RMAN-06136: ORACLE error from auxiliary database: ORA-01503: CREATE CONTROLFILE failed
    ORA-00349: failure obtaining block size for '+dg_305_data01'
    ORA-15001: diskgroup "DG_305_DATA01" does not exist or is not mounted

Maybe you are looking for

  • Swf files won't play

    Various .swf files have lost their icon & won't open – I get "windows can't open this file-. Use the web to find correct program OR select from a list of installed programs" if I select the first  get.adobe.com/flashplayer opens but even after downlo

  • Photoshop 7 color management or monitor settings?

    For financial reasons, I'm still on Photoshop 7. I'm using Windows XP Pro with all the updates. Here's my problem. When I take an outdoor picture (for example) with my nifty new digital Nikon, all the colors look normal on the camera's LCD. As you wo

  • Opening pdf file cannot complete command, not enough memory ram?

    while trying to open pdf file size of 117000 kb, photoshop CS6 cannot complete command, not enough ram memory.

  • Error message when HP Advisor opens.

    I have an HP desktop e9150t with win7 Home Premium. When I initiate HP Advisor I get an error window: !                  An Error Has Occurred Failed object initialization (ISupportInitialize.EndInit). Invalid URI: The format of the URI could not be

  • Not able to send SMS after IOS 7.1.1 update

    I updated to 7.1.1 last nite and today noticed that my SMS messages are not being received. I have tried all of the following with no success at all: Activated iMessage successfully Send as SMS activated Send & receive: only my phone number (I live i