How to Restore an RMAN Backup From TAG

4
 You are here: Home RMAN How t o restore an RMAN backup f rom TAG  27 | 04 | 2015 search...  Main Menu Home Contact us Online database  Administration Backup & Recovery RMAN 11G 12C Performance Tuning Database Design Security SQL Tuning Data Guard Resources Scripts Oracle Documentation Latest Articles Which session is generating the redo ? Move datafiles onli ne Using Invoker's Rights Versus Definer's Rights (AUTHID Clause) Script to generate role DDL Script to generate user DDL Failover to physical standby database using Oracle Standard Edition Switchover from primary database to physical standby database using Oracle Standard Edition Grant a "standard" db user the possibility to kill database sessions Query Transformations : Join Eliminatio n Query Transformations : Simple Filter Pushdown Popular Articles How to restore an RMAN cold backup on a new server. ( same OS, same Oracle version ) How to restore an RMAN backup from TAG Keep RMAN backupsets Data Guard : Adjust RMAN' s archivelog deletion policy Flashback database using guaranteed restore point Manage the archivelogs using RMAN RMAN Backup scenario Archivelogs in the flash recovery area Grant with grant option as a workaround for ORA- 01720 Datapump Consistent RMAN HOW TO RESTORE AN RMAN BACKUP FROM TAG  User Rating: / 0 Poor Best Rate Details Parent Category:  Articles Created on Friday, 14 September 2012 17:19 Last Updated on Thursday, 03 October 2013 15:51

description

How to Restore an RMAN Backup From TAG

Transcript of How to Restore an RMAN Backup From TAG

  • 5/11/2015 HowtorestoreanRMANbackupfromTAG

    http://www.onlinedatabase.eu/index.php/recoverymanagerrman/215howtorestoreanrmanbackupfromtag 1/4

    Youarehere:Home RMAN HowtorestoreanRMANbackupfromTAG 27|04|2015

    search...

    MainMenu

    HomeContactus

    Onlinedatabase

    AdministrationBackup&RecoveryRMAN11G12CPerformanceTuningDatabaseDesignSecuritySQLTuningDataGuard

    Resources

    ScriptsOracleDocumentation

    LatestArticles

    Whichsessionisgeneratingtheredo?

    Movedatafilesonline

    UsingInvoker'sRightsVersusDefiner'sRights(AUTHIDClause)

    ScripttogenerateroleDDL

    ScripttogenerateuserDDL

    FailovertophysicalstandbydatabaseusingOracleStandardEdition

    SwitchoverfromprimarydatabasetophysicalstandbydatabaseusingOracleStandardEdition

    Granta"standard"dbuserthepossibilitytokilldatabasesessions

    QueryTransformations:JoinElimination

    QueryTransformations:SimpleFilterPushdown

    PopularArticles

    HowtorestoreanRMANcoldbackuponanewserver.(sameOS,sameOracleversion)

    HowtorestoreanRMANbackupfromTAG

    KeepRMANbackupsets

    DataGuard:AdjustRMAN'sarchivelogdeletionpolicy

    Flashbackdatabaseusingguaranteedrestorepoint

    ManagethearchivelogsusingRMAN

    RMANBackupscenario

    Archivelogsintheflashrecoveryarea

    GrantwithgrantoptionasaworkaroundforORA01720

    DatapumpConsistent

    RMANHOWTORESTOREANRMANBACKUPFROMTAG

    UserRating: /0Poor Best Rate

    DetailsParentCategory:ArticlesCreatedonFriday,14September201217:19LastUpdatedonThursday,03October201315:51

  • 5/11/2015 HowtorestoreanRMANbackupfromTAG

    http://www.onlinedatabase.eu/index.php/recoverymanagerrman/215howtorestoreanrmanbackupfromtag 2/4

    PublishedonFriday,14September201217:19Hits:10356

    HowtorestoreanRMANbackupfromTAG

    SeealsoHowtorestoreanSPFILEandRMANcoldbackuponanewserver.(sameOS,sameOracleversion)

    SeealsoHowtorestoreanRMANcoldbackuponanewserver.(sameOS,sameOracleversion)

    1.YoutookafewdaysagoacoldRMANbackupangavethisbackupadedicatedTAGreference,tobeusedasaneasytorestorebackup.

    2.YoutookthiscoldRMANbackupfromadevelopmentdatabase,yourdeveloppersaredoingsometests,theycommunicatedtoyouthelikelyhoodtheyaskyoutoresetthedatabase

    3.Afewdayslateryouneedtorestorethatbackup

    InthebelowexampleweassumetheTAGreferenceisDBDEV_002013869_12092012

    SQL>shutdownimmediate;Databaseclosed.Databasedismounted.ORACLEinstanceshutdown.SQL>startupmount;ORACLEinstancestarted.TotalSystemGlobalArea608174080bytesFixedSize2085840bytesVariableSize381684784bytesDatabaseBuffers218103808bytesRedoBuffers6299648bytesDatabasemounted.SQL>exitDisconnectedfromOracleDatabase10gEnterpriseEditionRelease10.2.0.4.064bitProductionWiththePartitioning,OLAP,DataMiningandRealApplicationTestingoptions[oracle@dbhostoracle]$rmantarget/

    RecoveryManager:Release10.2.0.4.0ProductiononFriSep1416:34:162012

    Copyright(c)1982,2007,Oracle.Allrightsreserved.

    connectedtotargetdatabase:DBDEV(DBID=2704902266,notopen)

    RMAN>run{

  • 5/11/2015 HowtorestoreanRMANbackupfromTAG

    http://www.onlinedatabase.eu/index.php/recoverymanagerrman/215howtorestoreanrmanbackupfromtag 3/4

    2>allocatechannelch1devicetypeDISK;3>allocatechannelch2devicetypeDISK;4>restoredatabasefromTAG='DBDEV_002013869_12092012';5>}

    usingtargetdatabasecontrolfileinsteadofrecoverycatalogallocatedchannel:ch1channelch1:sid=156devtype=DISKallocatedchannel:ch2channelch2:sid=155devtype=DISKStartingrestoreat14SEP12channelch2:startingdatafilebackupsetrestorechannelch2:specifyingdatafile(s)torestorefrombackupsetrestoringdatafile00010to/u01/oradata/DBDEV/abc_lref_d01.dbfrestoringdatafile00016to/u01/oradata/DBDEV/irt_ltrn_d01.dbfrestoringdatafile00017to/u01/oradata/DBDEV/irt_ltrn_i01.dbfrestoringdatafile00019to/u01/oradata/DBDEV/api_stage_i01.dbfrestoringdatafile00021to/u01/oradata/DBDEV/DBpoefi01.dbfchannelch2:readingfrombackuppiece/u01/rman/DBDEV/DB_DBDEV_jpnl1bg4_1_1channelch1:startingdatafilebackupsetrestorechannelch1:specifyingdatafile(s)torestorefrombackupsetrestoringdatafile00005to/u01/oradata/DBDEV/audit_data01.dbfrestoringdatafile00008to/u01/oradata/DBDEV/abc_long_d01.dbfrestoringdatafile00009to/u01/oradata/DBDEV/abc_long_i01.dbfrestoringdatafile00011to/u01/oradata/DBDEV/abc_lref_i01.dbfrestoringdatafile00012to/u01/oradata/DBDEV/abc_ltrn_d01.dbfrestoringdatafile00013to/u01/oradata/DBDEV/abc_ltrn_i01.dbfchannelch1:readingfrombackuppiece/u01/rman/DBDEV/DB_DBDEV_jqnl1bg4_1_1channelch1:restoredbackuppiece1piecehandle=/u01/rman/DBDEV/DB_DBDEV_jqnl1bg4_1_1tag=DBDEV_002013869_12092012channelch1:restorecomplete,elapsedtime:00:01:45channelch1:startingdatafilebackupsetrestorechannelch1:specifyingdatafile(s)torestorefrombackupsetrestoringdatafile00002to/u01/oradata/DBDEV/undotbs01.dbfrestoringdatafile00006to/u01/oradata/DBDEV/abc_htrn_d01.dbfrestoringdatafile00014to/u01/oradata/DBDEV/irt_htrn_d01.dbfrestoringdatafile00015to/u01/oradata/DBDEV/irt_htrn_i01.dbfrestoringdatafile00020to/u01/oradata/DBDEV/DBpoefd01.dbfrestoringdatafile00023to/u01/oradata/DBDEV/isite_i01.dbfchannelch1:readingfrombackuppiece/u01/rman/DBDEV/DB_DBDEV_jrnl1bg4_1_1channelch2:restoredbackuppiece1piecehandle=/u01/rman/DBDEV/DB_DBDEV_jpnl1bg4_1_1tag=DBDEV_002013869_12092012channelch2:restorecomplete,elapsedtime:00:02:41channelch2:startingdatafilebackupsetrestorechannelch2:specifyingdatafile(s)torestorefrombackupsetrestoringdatafile00001to/u01/oradata/DBDEV/system01.dbfrestoringdatafile00003to/u01/oradata/DBDEV/sysaux01.dbfrestoringdatafile00004to/u01/oradata/DBDEV/users01.dbfrestoringdatafile00007to/u01/oradata/DBDEV/abc_htrn_i01.dbfrestoringdatafile00018to/u01/oradata/DBDEV/api_stage_d01.dbfrestoringdatafile00022to/u01/oradata/DBDEV/isite_d01.dbf

  • 5/11/2015 HowtorestoreanRMANbackupfromTAG

    http://www.onlinedatabase.eu/index.php/recoverymanagerrman/215howtorestoreanrmanbackupfromtag 4/4

    Tweet 0 2 Share

    channelch2:readingfrombackuppiece/u01/rman/DBDEV/DB_DBDEV_jsnl1bg4_1_1channelch1:restoredbackuppiece1piecehandle=/u01/rman/DBDEV/DB_DBDEV_jrnl1bg4_1_1tag=DBDEV_002013869_12092012channelch1:restorecomplete,elapsedtime:00:02:22channelch2:restoredbackuppiece1piecehandle=/u01/rman/DBDEV/DB_DBDEV_jsnl1bg4_1_1tag=DBDEV_002013869_12092012channelch2:restorecomplete,elapsedtime:00:02:20Finishedrestoreat14SEP12releasedchannel:ch1releasedchannel:ch2

    RMAN>exitRecoveryManagercomplete.[oracle@dbhostoracle]$sqlplus/assysdba

    SQL*Plus:Release10.2.0.4.0ProductiononFriSep1416:40:582012

    Copyright(c)1982,2007,Oracle.AllRightsReserved.Connectedto:OracleDatabase10gEnterpriseEditionRelease10.2.0.4.064bitProductionWiththePartitioning,OLAP,DataMiningandRealApplicationTestingoptions

    SQL>recoverdatabaseuntilcancel;ORA00279:change8871877088827generatedat09/12/201216:36:02neededforthread1ORA00289:suggestion:/u01/app/oracle/product/10.2.0/db_1/dbs/arch1_3023_768401970.dbfORA00280:change8871877088827forthread1isinsequence#3023Specifylog:{=suggested|filename|AUTO|CANCEL}CANCELMediarecoverycancelled.SQL>alterdatabaseopenresetlogs;

    Databasealtered.

    AllRightsReserved2015

    0Like Share