Recovery using Hot Backup

We have to create a new enviornment(pre-prod) using Hot backup (restore from tape of last week) of the current prod DB, we have installed the same version of software as in prod and prepared init file but i am not sure about how we are going to do the recovery from last week backup,it would be a incomplete recovery as they want data till last week only,to my knowledge..we will create a new control file and open the DB using resetlogs...please can somebody help/guide me more on this...please share the steps required.
Thank You

We have to create a new enviornment(pre-prod) using Hot backup (restore from tape of last week) of the current prod DB, we have installed the same version of software as in prod and prepared init file but i am not sure about how we are going to do the recovery from last week backup,it would be a incomplete recovery as they want data till last week only,to my knowledge..we will create a new control file and open the DB using resetlogs...please can somebody help/guide me more on this...please share the steps required.If you have backup of one week older, then
1)startup instance in nomount status
2) check the logfile of RMAN for controlfile backup piece
or from Production give below command and check for the backup of the last week controlfile.
RMAN> list backup of controlfile;
note the backup piece
3) again back to pre-prod
RMAN> restore controlfile from 'backup piece';
5) SQL> alter database mount;
6) RMAN> Restore database;
after restore database open database with resetlogs, If you see any inconsistency apply archives 1/2 or as needed for consistency. and open database with resetlogs.
Here duplicate from active database wont work as you want 1 week older data.

Similar Messages

  • ORA-01610: recovery using the BACKUP CONTROLFILE option must be done

    Hello All,
    I have an instance on my LAB server. To explore more avenues in cloning a DB I did the following.
    1. On my Oracle 10g Instance I fired an large query which would take atleast an hour to execute.
    2. Opened another session and executed shu ABORT to shutdown the above instance abruptly.
    3. Took backup of datafiles, archive logs and redologs [ prior to shu abort, I had issued ALTER DATABASE BACKUP CONTROLFILE TO TRACE]
    Restoration steps:
    NOMOUNT with pfile edited to hold the name of the new DB_NAME
    Create control file script edited to reflect the new paths of datafile and redologs.
    MOunted succesfully.
    ALTER DATABASE OPEN RESETLOGS;
    ERROR at line 1:
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1:
    'F:\ORACLE\COLD_BACKUP_TRIAL\SET2\DATAFILE\DUPLISYSTEM_553LC8QX_.DBF'
    SQL> recover datafile 'F:\ORACLE\COLD_BACKUP_TRIAL\SET2\DATAFILE\DUPLISYSTEM_553LC8QX_.DBF';
    ORA-00283: recovery session canceled due to errors
    ORA-01610: recovery using the BACKUP CONTROLFILE option must be done
    SQL> recover database using backup controlfile;
    ORA-00279: change 2962256 generated at 09/03/2009 12:06:49 needed for thread 1
    ORA-00289: suggestion :
    F:\ORACLE\COLD_BACKUP_TRIAL\SET2\FLASH_RECOVERY_AREA\DUPLI\ARCHIVELOG\2009_09_23
    \O1_MF_1_2_%U_.ARC
    ORA-00280: change 2962256 for thread 1 is in sequence #2
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    F:\oracle\cold_backup_trial\SET2\ONLINELOG_BK\O1_MF_3_553LGCH3_.log
    ORA-00342: archived log does not have expected resetlogs SCN 2933995
    ORA-00334: archived log:
    'F:\ORACLE\COLD_BACKUP_TRIAL\SET2\ONLINELOG_BK\O1_MF_3_553LGCH3_.LOG'
    I didn't find the file it was suggesting so I tried many combinations of providing the right recovery file name :-- All the latest Archive logs and Redologs in my backup.
    Still the recovery is not successful. Please let me know how can I recover my DATABASE.
    Many thanks in advance.
    Regards,
    Valli

    Greetings,
    If I understood, you basically have a copy of a primary database and the redo log archives of this pretty same database, you have backed up the control file of this primary database, edited it pointing all paths of your datafiles to the new location but renaming the instance name.
    I am assuming that you have edited the first line of your control file to something like "CREATE CONTROLFILE SET DATABASE "DB02" RESETLOGS ARCHIVELOG", in this case are you sure that the redolog archives have not loose the sequence? In this case it will ask more and more archives and it will never end, take a look at the date and time of the thread that your instance is asking for recovery. Is your instance a production database? If it is NOT production and you are SURE that the database is completely recovered and is asking for redolog files that does not even exist you can try to add the ALLOWRESETLOGS_CORRUPTION=TRUE to your init.ora and open the db... This solution is not recommended and you should never use it on production instances... take this hint as a LAST effort to bring your db online.
    Regards,
    Bruno Carvalho

  • RAC Cloning using hot backup

    Hi,
    can somebody help me with the steps for cloning 2 node to 2 node RAC, using hot backup.
    Thx.

    Actually, the procedure to clone a RAC database do not differ substantially from those of a single-instance database.
    You can perform your cloning as if it is a single instance database and once you have your single instance up, you just have to add another instance - and the high level steps would be:
    1) Preparing the init.ora file for the second instance.
    2) Adding the redo logs for thread 2;
    3) Updating the OCR
    HTH
    Thanks
    -Chandra Pabba

  • Dataguard setup using hot backup files

    Hello,
    I am planning to setup dataguard using Hot backup (Not RMAN) files from the primary instance. I have a few doubt as, How shall I recover the Standby database using the archive files generated while taking hot backup of primary? Shall I directly execute the "alter database recover managed standby database" command? Will this command take care of the archives generated durring hot backup also?
    Appreciate any help on the above.
    DB Version:10.2.0.4
    Regards.

    Guys by using below procedure you can rebuild your data gurad by using manual hot backup.
    1) On the primary database, defer the archival of redo data .
    ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_2=DEFER;
    2)
    put primary database in backup mode
    copy all the datafiles from primary database to Standby database (you can copy to other location in primary server and tar&zip it and send it to stand by and unzip and untar there)
    Once you copy the datafiles to another location on primary server,you can use below command for tar and zip
    go to the copied datafiles location and issue below command
    tar cvf - .|gzip -c > /dump/backup/drdb_backup.tar.gz
    put primary database in end backup.
    3) create stabdby controlfile by using below command and send it to standby server
    alter database create standby controlfile as '/dump/drbackup/2standby.ctl'
    4) copy all generated archive logs (from the time of database begin abckup) from primary database server to standby database log_archive_dest location.
    5) on standby database once we placed all datafiles and controlfiles in place use below commands
    export ORACLE_SID=standbydb
    SQL> starup nomount;
    SQL> alter database mount standby database;
    SQL> recover standby database;
    --AUTO
    SQL> alter database open read only;
    SQL> shut immediate
    SQL> startup nomount;
    SQL> alter database mount standby database;
    SQL> alter database open read only;
    SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;
    6) On the primary database, issue the following statement to reenable archiving to the physical standby database:
    SQL> ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_2=ENABLE;
    Thanks & Regards,
    Satish Kumar Sadhu.
    Edited by: Satish Kumar Sadhu on Apr 10, 2013 11:05 PM

  • Recovery from hot backup

    I have a problem with recovery hot backup from production database to test database and open it to use.
    I have 'hot backup' without temporary tablespace and roll tablespace, I cant shut down production database (24x7), please give me a regulations how to recover database from hot backup, without online redo logs, temp tablespace, roll tablespace only with archive logs, and.....after this ..rename database sid.
    Every time when I recovered database, it's still want to recover...and recover from archive logs and I cant open it, it's still inconsistent.Please send me an answer for [email protected]
    thanks!

    Hi,
    What is the OS and version of Oracle?
    Do you have all the archivelogs after the hot backup? Is the backup a valid backup? Is it a RMAN backup or normal file system backup of the datafiles?
    Regards,
    Badri.

  • Question on recovery from Hot backup

    Whenever I tried to recover from my hot backup using recover database untill cancel (or any other until option)..
    I get messages similar to the following :
    SQL> recover database using backup controlfile until cancel ;
    ORA-00279: change 212733060 generated at 11/18/2008 23:50:58 needed for thread
    1
    ORA-00289: suggestion : /d01/oradata/devl/arc/1_282_667362770.dbf
    ORA-00280: change 212733060 for thread 1 is in sequence #282
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    /d01/oradata/devl/arc/1_282_667362770.dbf
    ORA-00279: change 212733060 generated at needed for thread 2
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    /d01/oradata/devl/arc/2_257_667362770.dbf
    ORA-00279: change 212733060 generated at needed for thread 3
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    /d01/oradata/devl/arc/3_258_667362770.dbf
    ORA-00279: change 212733060 generated at needed for thread 4
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    I have all my archive files in the archive dest location.
    Is there any way to prevent this warning messages and let oracle find all the archive files?
    As you can see from the messages, Oracle is finding the correct file, then why there is an error message and why we have to provide the file names one-by one.
    Please help !!!

    Oracle will look for needed archive logfile from your log archive destination.
    If you are sure all these files are under /d01/oradata/devl/arc/, you can input AUTO, Oracle will work down the list until done.

  • How to Restore datas in Oracle 10g using hot backup?

    I did Hot backup things (On-line backup) in Oracle 10g (Windows environment)
    Now backup files are stored in physical location..
    How to restore the datas to original location..
    Can any one give the url or command for recovery in ora 10g for hot backup
    Thanks

    Please do not dump all of your work in this forum, and expect volunteers to do it for free!!!
    Dear Great Senior DBA Sybrand Bakker
    What are Oracle Discussion Forums?
    Oracle Discussion Forums is an interactive community for sharing information, questions, and comments about Oracle products and related technologies. Most forums are moderated by product managers, and all of them are frequently visited by knowledgeable users from the community
    oracle forums is not your place for showing “bossing” it is a place where junior to seniors share there knowledge and advices, it means helping and sharing….. Knowledge is for giving ….giving only it will increase… don’t discourage any one like this ……
    There are my Great Seniors (not like u) mainly respected Mr. Jonathan Lewis, Mr. Don Burleson and a lot of oracle nominated ACE members are all giving patiently replay to jr. to sr.
    Obeasley oracle doubts are mostly related to practical issue only……
    Pls try to learn the word meaning of “volunteers”

  • Complete Recovery from HOT BACKUP

    One of our server had media failuer. We are rebuilding new server and reinstalling oracle on it. I have hot backup of instance which I would like to recover.
    Can I have steps please. I will appreciate your help...!

    Hi,
    What is the OS and version of Oracle?
    Do you have all the archivelogs after the hot backup? Is the backup a valid backup? Is it a RMAN backup or normal file system backup of the datafiles?
    Regards,
    Badri.

  • EBS 11i Disaster Recovery using tape backup on alternate Unix Server.

    Hi,
    I would really appreciate if you could please share with us what is the process to recovery EBS 11i environment to an alternate DR server using the latest tape backup in case any disaster happens to the existing production server.
    I need to prepare and test disaster recovery plan document using the latest tape backups.
    We have single node EBS 11i environment with Apps and DB installed on the same AIX Unix Server.
    We also have full database RMAN backup every night.
    The new alternate DR Unix server will have different hostname and IP address.
    Thanks in advance.
    Regards.

    Please refer to the following docs.
    Business Continuity for Oracle Applications Release 11i, Database Releases 9i and 10g [ID 216212.1]
    Business Continuity for Oracle E-Business Release 11i Using Oracle 11g Physical Standby Database - Single Instance and Oracle RAC [ID 1068913.1]
    Thanks,
    Hussein

  • PL/SQL scrpt to automate DATABASE RECOVERY using logical backups com, cum, inc export

    Hellow friends,
    I am writing a script TO RECOVER MY DATABASE FROM EXPORT BACKUPS IN PL/SQL, which are stored in my folder
    F:\ORACLE\ORADATA\BACKUPS.
    There are many export backups in this folder comprising of some COMPLETE, CUMULATIVE and INCREMENTAL exports with timestamp embedded in the names.
    I want to choose from these files, which file to apply.
    can anybody tell me that is there any method available in PL/SQL to handle file.

    Refer to any pl/sql 2.3 and higher manual . There is a package called utl.file.

  • Recovery from Online backup

    Hai All,
    I regularly take hot backup via a script. In script copy all datafiles and archivelogs to the backup destination. One conrolfile is created using 'alter database backup control file to c:/backup.ctl' . Thus controlfile is also generated.
    I copy the backup files (includes datafiles and controlfiles) to a test machine . In test machine I created a database with the same name of production database. I replace the present files with the hot backup files (keep existing redo log files). When I open the database, recovery asked... I apply the backup archive log files. Even when reach the maximum archive files in my hand. recvery not stop... . This is the problem .. How It happened ? How to open the database with the backup files in my hand only.
    I copy the remaining archive log files and redo log files from production database and apply. then I open the database with resetlogs . It works fine......
    How to resolve the mentioning problem in second paragraph?
    Please help?
    Shiju

    How do you backup your database? Do you using RMAN to backup your database? or you use ALTER TABLESPACE BEGING BCKUP method to backup your database?
    Which version of Oracle are you using? Is there anything wrong configure autobackup of controlfile to avoid explicitly taking controlefile bakup?
    If you want to test your bakcup or wanted to create another copy (clone) of the database using your valid backup, why did you create the second database and did the other fuss?
    You can simply, bring up the instance, restore and recovery using your backups.
    I guess, the problem was with redo log files. You have overwritten all the datafiles, controlfile, but not redo log files, may be the redo log sequence mismatch cuased this behaviour.
    Jaffar

  • Implementing Hot Backups

    HI ,
    i am new to the idea of hot backups , so need abit of advice on how to implement them by using RMAN and User based techniques
    a little bit abt my production environment
    Oracle 9.2.0.6
    EBS 11.5.10
    OS is HP UX 11.11
    earlier i used to get downtime of 2 hrs , so iused to cold backups wid RMAN as well OS based techniques , now due to 24 hr system requiremnt
    i have to use hotbackups, DB size is 200GB, how can i use hot backups so as my system works efficiently without any extra load

    Soli wrote:
    Hi,
    Each tablespace that needs to be backed-up must be switched into backup mode before copying the files out to secondary storage.
    This can be done as shown below:
    ALTER TABLESPACE xyz BEGIN BACKUP;
    ! cp xyfFile1 /backupDir/
    ALTER TABLESPACE xyz END BACKUP;
    The above would only be for user managed backups, which the OP has no reason to be doing. We should be guiding him in how to use rman, not in how to use obsolete techniques -- <b><i><u>ESPECIALLY</u></i></b> since he is new to the whole subject of backups and would easily be confused by mixing the techniques.
    Recovery Manager command:
    run {
    allocate channel t1 type `SBT_TAPE';
    backup
    format `df_%s_%t'
    (datafile 10);
    When Recovery Manager executes the above command, it sends the Oracle backup request to the Oracle server performing the backup.
    The Oracle server process identifies the output channel as the type `SBT_TAPE', and requests the Media Management Library to load a tape and write the output specified.
    but ther you must ask sysadm which storage you use and how to backup there.
    btw.
    there is link how to setup RMAN
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/setup004.htm
    Regards,
    Tom
    http://oracledba.cz

  • Need some advice about hot backup under linux

    hi, I want some advice about db files hot backup between two machines(Named A and B).A is primary machine which will write and read database and have the lastest db file. B is backup role and no database file in it.
    Now I want hot backup A's db file to B in order to B have the lastest db file too.
    At A,my db file support transaction and environment, and I set autoremove unnecessary log files.
    The code such as follows:
    dbenv->set_flags(dbenv, DB_AUTO_COMMIT |DB_LOG_AUTOREMOVE | DB_TXN_WRITE_NOSYNC, 1);
    ret = dbenv->open(dbenv, NULL,
    DB_CREATE | DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_MPOOL | DB_INIT_TXN ,0)
    I don't want to use db_hotbackup utility. and db_hotbackup may be backup files to the same machine with different dir.
    How can I make machine A's db files backup to machine B.
    Thanks for your help.
    Best Regards
    hangsy

    Hi Hangsy
    Now I want hot backup A's db file to B in order to B
    have the lastest db file too.What do you mean? Do you want to have the latest version... from when you did the latest backup, or you want to keep it updated in the same time with the main database?
    I don't want to use db_hotbackup utility. and
    db_hotbackup may be backup files to the same machine
    with different dir.You can copy the backup anywere you want.
    If you want to run recovery on a different machine, it must be the same pointer size and endianness as the original machine.
    Database and log file archival: http://www.oracle.com/technology/documentation/berkeley-db/db/ref/transapp/archival.html
    It is usually simpler to take the hot backup on the main machine and run recovery there before copying the databases to the remote system.
    In this setup, only the databases are required on the remote system, not the log files.
    Since you are using NOSYNC, you should run a checkpoint which will ensure you that the database files are up to date.
    Please read "Recovery procedures" ( http://www.oracle.com/technology/documentation/berkeley-db/db/ref/transapp/recovery.html ) first. "you cannot perform a hot backup of databases and log files, restore the backup and then run normal recovery -- you must always run catastrophic recovery when using hot backups."
    Regards,
    Bogdan Coman

  • Unique Error while doing hot backup Cloning!

    Dear All,
    I am using EBS 11.5.10.2 with DB 9.2.0.6.
    I am doing hot backup cloning by referring *[Cloning Oracle Application 11i /R12 with Rapid Clone - Database (9i/10g/11g) Using Hot Backup on Open Database|https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=760772.1]*
    I am facing a unique issue, when I run adcfgclone.pl dbconfig <my_context_file>, application of my Production Server start misbehaving and it gives me an error:
    Node Id does not exist for the current application server id.When I check the FND_NODE table I found that there server id was empty in it.
    I have to run than run the following steps as the resolution:
    1. Shutdown all the services.
    2. EXEC FND_CONC_CLONE.SETUP_CLEAN;
    3. COMMIT;
    4. Run AutoConfig on all tiers, firstly on the DB tier and then the APPS tiers,to repopulate the required system tables.
    5.start all the services and verify the issue.
    Than application behaves normally.
    Is there any additional step to be followed while Hot Backup Cloning other than mentioned in the above mentioned ML Doc?
    Please suggest,
    Anchorage :)

    I am facing a unique issue, when I run adcfgclone.pl dbconfig <my_context_file>, application of my Production Server start misbehaving and it gives me an error:
    Node Id does not exist for the current application server id.Where did you get this error?
    This is very strange, how come this happens in Production, when you are doing cloning in TEST/DEV instance.
    Is there any additional step to be followed while Hot Backup Cloning other than mentioned in the above mentioned ML Doc?I feel there are no other additional steps, as I Recently did successfully hotbackup cloning using the same document.

  • Hot backup slow

    Hi,
    I am working in oracle8i.We are using hot backup in our database. Normally it takes 2 hrs to complete the backup process.
    but today it took 5 hrs to complete the backup process. Kindly let me know what are the possible ways to identify the solution for taking more time.
    Rgds.

    Hi,
    There could be any number of reasons for the backup taking longer - but here are a few likely candidates:
    The server was busier than usual - run top to see if anything unusual is hogging CPU.
    The database was busier than usual - did someone run a large report/update
    Tape drive contention - do you share a tape device with another app?
    The database has grown significantly.
    Cheers,
    Andy Barry
    http://www.shutdownabort.com

Maybe you are looking for