AUTOMATING COLD BACKUP ON NT

제품 : ORACLE SERVER
작성날짜 : 2003-08-04
Automating cold backup on NT
============================
unix에서는 cron 이라는 것을 이용해서 주기적으로 데이타베이스를 원하는 시점에
shutdown 시킨 후 cold backup 을 할수 있다.
그렇다면 nt에서는 어떻게 이런 작업을 수행해 줄 수 있을까.
여기서는 이렇게 주기적으로 database 를 cold backup받는 방법에 관해서 설명
하고자 한다.
데이타베이스 환경은 다음과 같이 가정한다.
ORACLE_HOME = c:\ORANT
ORACLE_SID = ORCL
데이타화일들은 c:\ORANT\DATABASE 디렉토리에 존재한다.
cold backup을 schedule하기 위해서는 windows NT의 AT scheduler utility 가
필요하며
이것의 GUI version은 windows NT의 Resource Kit에 포함되어 있다.
우선은 NT scheduler service가 동작하고 있는지 확인해야 한다.
확인 방법은 NT 제어판을 열고 Service icon을 더블 클릭하여 schedule service가
동작하고 있으며 automatic인지 확인한다.
그러면 schedule 방법을 다음과 같이 정리하였다.
1. 만약 command line scheduler를 사용하고 있다면 다음과 같은 작업을 해준다.
backup.bat라는 batch file 을 만들어서 다음과 같은 내용을 입력한다.
call c:\orant\bin\svrmgr23.exe command="@c:\shutdown.sql"
copy c:\orant\database\*orcl.ora c:\backup
call c:\orant\bin\svrmgr23.exe command="@c:\startup.sql"
backup을 schedule 한다.
NT의 command prompt(Dos prompt)에서 다음과 같은 형식으로 입력한다.
AT time "C:\backup.bat"
eg. C:\> at 14:45 "c:\backup.bat"
2. SHUTDOWN.SQL SCRIPT를 다음과 같이 만들어 준다.
connect internal/password
shutdown immediate
exit
3. STARTUP.SQL SCRIPT를 다음과 같이 만들어 준다.
connect internal/password
startup pfile=C:\ORANT\DATABASE\INITORCL.ORA
exit
이상과 같이 해주면 원하는 시간에 db를 cold backup 받을 수 있을 것이다.
Reference Documents
<Note:74981.1>

You must cleanly shutdown database before proceeding with a cold consistent backup, otherwise you compromise database integrity, so recoverability.
By clean shutdown I mean Normal, Transactional or Immediate, never abort. The point is that the last transaction must properly be recorded by the last checkpoint, and no recovery process is required. Additionally, a clean shutdown guarantees consistency acrorss all datafiles.
~ Madrid.

Similar Messages

  • Cold backup automated script

    Hi--
    Can any one provide me one cold backup script,,with that i need to delete 2 days old backup and need to put current backup in that mountpoint.
    Thanks in advance.

    user8683962 wrote:
    We are not using RMAN So what is preventing you from starting? The real value of rman will be when you have to recover, it will already know where all the necessary peices are and what needs to be done. Plus, it will take care of the housekeeping of deleting your old, obsolete backups.
    and Hot backups.....So you don't care if you lose any changes that occur between your cold backups?
    i want to take a cold backup of my database every day and delete need to delete 2 days old backup, so that i can maintain 2 backups(today's and yesterday's) in my hand... Again, rman will do this for you, and more, and much more simply
    for this can any one provide me a script to make it automate by adding to crontab.If someone else hasn't by the time I get back to my hotel room this evening, I'll post an rman solution. It is a waste of time to work on a non-rman solution.

  • ORA-01154: On Open After Cold Backup - No DataGuard

    We have one 11.2.0.3 database that will occasionally fail to start with an ORA-01154 after a cold backup. It's a test database, so I usually just manually start it the next morning. I have seen this with standby databases running Data Guard, but never on a standalone database with no Data Guard. Anyone seen this behavior? It started after the database was upgraded from 11.2.0.1 to 11.2.0.3.

    Could it be whatever did the shutdown didn't complete? Do you have some automated process doing the shutdown? Why do you have cold backups?

  • How to recover a cold backup (Oracle 9i)

    Hello,
    We got the following situation, one of our clients wants to switch from Oracle 9i to Microsoft SQL Server 2008.
    Our client is located in Singapore and we operate in Belgium, they have sent us an external HD with a media/cold backup of their database.
    We also got both the database name and the passwords for the database.
    In order to get this database available I have taken the following steps:
    1)Created an Virtual Machine with Windows XP SP3,
    2)Installed Oracle 9i on this VM,
    3)Created a database using the database name and passwords given by the client.
    Now I want to recover our clients database, how do I do this.
    I know there texts about it, but I need a step for step guide to do this (that's the way I learn by seeing how its done and then reproduce it)
    Thanks for any response

    After some calls and putting pressure on our client IT I've been able to find out that there either using 11 or 10g.
    Also found out that the name they gave me is not the name they use
    So I followed the instructions on [http://download.oracle.com/docs/cd/B10501_01/server.920/a96521/create.htm#1000691] , I did find some mistakes in the page
    I got the following create database statement
    CREATE DATABASE dbname
    USER SYS IDENTIFIED BY pz6r58
    USER SYSTEM IDENTIFIED BY y1tz5p
    LOGFILE GROUP 1 ('D:\dbname\redo01.log') SIZE 100M,
    GROUP 2 ('D:\dbname\redo02.log') SIZE 100M,
    GROUP 3 ('D:\dbname\redo03.log') SIZE 100M
    MAXLOGFILES 5
    MAXLOGMEMBERS 5
    MAXLOGHISTORY 1
    MAXDATAFILES 100
    MAXINSTANCES 1
    CHARACTER SET US7ASCII
    DATAFILE 'D:\dbname\system01.dbf' SIZE 700M REUSE
    EXTENT MANAGEMENT LOCAL
    DEFAULT TEMPORARY TABLESPACE tempts1
    TEMPFILE D:\dbname\temp01.dbf' *(The documentation said datafile instead of tempfile)*
    SIZE 270M REUSE
    SYSAUX DATAFILE 'D:\dbname\sysaux01.dbf' size 700M reuse
    UNDO TABLESPACE undotbs
    DATAFILE 'D:\dbname\undotbs01.dbf'
    SIZE 3984M REUSE AUTOEXTEND ON NEXT 5120K MAXSIZE UNLIMITED;
    after executing
    ORA-01501: CREATE DATABASE failed
    ORA-00200: controlfile could not be created
    ORA-00202: controlfile: 'D:\dbname\control01.ctl'
    ORA-27038: file exists
    OSD-04010: <create> option specified, file already exist
    So what did I do wrong, altough I'm guessing I copied the original files to early
    [code="sql"]DATAFILE 'D:\dbname\system01.dbf' SIZE 700M REUSE
    Although I did use reuse
    I shutdown the database and removed the files to and replaced them with the files from the client,
    Mounted the database succesfully and tried to query the metadata
    Mixing the information found on
    Creating an Oracle Database,
    Oracle Recovery Procedure
    Got ORA-01219, which is logical since the databse isn't open yet.
    I open the database using alter database open
    ORA-01157: cannot identify data file 1 - file not found
    ORA-01110: data file 1: '/home/oracle/product/10.1.0/oradata/orcl/system01.dbf'
    So any ideas want went wrong this time
    Edited by: Resender on 19-mei-2011 1:00

  • Database give ORA-600 error after cold backup

    HI,
    I have oracle 10g install on linux system. i take cold backup of my database using
    sql> shutdown immediate
    and then copy all files to any other location.
    but when i start my database it gives me error like
    Errors in file /opt/oracle/fina/bdump/fina_smon_4422.trc:
    ORA-00607: Internal error occurred while making a change to a data block
    ORA-00600: internal error code, arguments: [4193], [136], [139], [], [], [], [], []
    Fri Dec  4 15:23:18 2009
    Errors in file /opt/oracle/fina/bdump/fina_smon_4422.trc:
    ORA-00600: internal error code, arguments: [4193], [67], [70], [], [], [], [], []
    Fri Dec  4 15:23:19 2009
    Doing block recovery for file 2 block 1702
    Block recovery from logseq 13, block 3531 to scn 758385
    Fri Dec  4 15:23:19 2009
    Recovery of Online Redo Log: Thread 1 Group 1 Seq 13 Reading mem 0
      Mem# 0 errs 0: /opt/oracle/fina/dbs/redo01.log
    Block recovery completed at rba 13.3532.16, scn 0.758386
    Doing block recovery for file 2 block 153
    Block recovery from logseq 13, block 3531 to scn 758436
    Fri Dec  4 15:23:19 2009
    Recovery of Online Redo Log: Thread 1 Group 1 Seq 13 Reading mem 0
      Mem# 0 errs 0: /opt/oracle/fina/dbs/redo01.log
    Block recovery completed at rba 13.3612.16, scn 0.758437
    Fri Dec  4 15:23:19 2009
    Errors in file /opt/oracle/fina/bdump/fina_smon_4422.trc:
    ORA-00607: Internal error occurred while making a change to a data block
    ORA-00600: internal error code, arguments: [4193], [67], [70], [], [], [], [], []
    Fri Dec  4 15:23:29 2009
    Errors in file /opt/oracle/fina/bdump/fina_smon_4422.trc:
    ORA-00600: internal error code, arguments: [4193], [136], [139], [], [], [], [], []
    Fri Dec  4 15:23:29 2009
    Errors in file /opt/oracle/fina/bdump/fina_pmon_4410.trc:
    ORA-00474: SMON process terminated with error
    Fri Dec  4 15:23:29 2009
    PMON: terminating instance due to error 474
    Instance terminated by PMON, pid = 4410i have seen this happen sometime after cold backup database give errors. is taking cold backup of database is not safe.
    Please suggest.

    Umesh,
    Since it is case of Ora 600, for which only last solution is oracle support, but i would like to mention that your are getting ORA-00600: internal error code, arguments: [4193].... So, this 4193 is cause to read following links too:
    http://www.orafaq.com/forum/t/47048/2/ and. see Metalink note 153788.1 and 39282.1.
    Regards
    Girish Sharma

  • 11.5.10.2 Cold Backup

    Helo all my friend;
    I am soo new in backup thing,thatswhy i need ur help.I wanna take cold backup of my 11.5.10.2 system. But i dont know how i have to do it.I read some documents in here but its not so clear.
    I know if i want to take cold backup then i have to close APPS service,database and listener and then i will do what? Which folder i have to copy for cold backup?(eg:All my apps and database directory or just APPL_TOP's folder or $ORACLE_HOME's folders etc..)
    If anyone explain cold backup in 11.5.10.2 step by step it would be great ... I am waiting ur answers..
    Thanks
    helios

    Hi my friend i found something like in
    "how we backup a database forms"
    "Please have a look at the following links for a similar discussion:
    System Backup
    http://forums.oracle.com/forums/thread.jspa?messageID=1674975
    Apps Backup
    http://forums.oracle.com/forums/thread.jspa?messageID=1622999
    Backup Oracle Applications (11.5.10.2)
    http://forums.oracle.com/forums/thread.jspa?messageID=1765123
    Best Backup Strategy
    http://forums.oracle.com/forums/thread.jspa?messageID=1972656
    how to clone with rapid clone utilityNote: 230672.1 - Cloning Oracle Applications Release 11i with Rapid Clone
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=230672.1 " but its not what i am asking you...
    i was looking my system.Should i copy all my apps and database directory or
    i should copy my $APPS_TOP(by applvis user) and $ORACLE_HOME(by oravis user) ??
    But i checked my dbf file stored in visdata directory if i copy $ORACLE_HOME its mean i wont copy visdata directory and its makes me confused here...
    Plz help
    thanks

  • Enterprise Manager Configin a new host after recovery from cold backup

    Dear friends ,
    we have recovered a DB in new host(windows) from the cold backup.
    Listener is configured and EM is also configured .
    I am able to login through the EM . In the front page i get an error like
    java.lang.exception:unknownhost exception sensding request ::<hostname>.<domain>
    Please Note :The hostname from which we have taken backup(operation system) is different from the new host name where have recovered the DB.
    Also when i clicked the link for administration page or performance page
    i was taken to the login page which was showing as follows
    user name:
    password:
    Connect String : <old host name>.<domain name>
    Now i dont know where is parameter of old host details are stored and how it has to be replaced.
    Please reply if anyone can have the solution .
    Thanks in advance
    Madhu

    Please Note :The hostname from which we have taken backup(operation system) is different from the new host name where have recovered the DB
    This is the call for trouble actually.EM repository stores the info of hostname/ipaddress of the machine where it is configured. So any change in that information will not let you use EM.There are couple of files which are there in which this information is stored and if needed, that information can be be manualy edited.But manual editing is not a good way to deal with repository.So the better option for you is to recreate the repository of your EM
    Follow the link for the description of the commands.
    You would have to use
    $emca -deconfig dbcontrol db -repos drop
    $emca -config dbcontrol db -repod createHTH
    Aman....

  • How to do media recovery from cold backup?????????/

    Hi
    i take cold backup of my 9i database ....
    in case my database is up .....
    how will i recover my database if i lose a single database file and i want to recover it from cold backup......
    Thanks in advance
    Gagan

    Here you go
    These are the steps:
    1. Restore the lost file from a backup.
    2. If the database is down, mount it.
         SVRMGR> STARTUP MOUNT PFILE=<location_of_pfile>;
    3. Issue the following query:
    SVRMGR> SELECT V1.GROUP#, MEMBER, SEQUENCE#,
    FIRST_CHANGE#
    FROM V$LOG V1, V$LOGFILE V2
    WHERE V1.GROUP# = V2.GROUP# ;
    This will list all your online redolog files and their respective
    sequence and first change numbers.
    4. If the database is in NOARCHIVELOG mode, issue the query:
         SVRMGR> SELECT FILE#, CHANGE# FROM V$RECOVER_FILE;
    If the CHANGE# is GREATER than the minimum FIRST_CHANGE# of your logs,
    the datafile can be recovered. Just keep in mind that all the logs to
    applied will be online logs, and move on to step 5.
    If the CHANGE# is LESS than the minimum FIRST_CHANGE# of your logs, the
    file cannot be recovered. Your options at this point would be to restore
    the most recent full backup (and thus lose all changes to the database
    since) or recreate the tablespace as explained in scenario a.
    5. Recover the datafile:
    SVRMGR> RECOVER DATAFILE '<full_path_file_name>'
    6. Confirm each of the logs that you are prompted for until you receive the
    message "Media recovery complete". If you are prompted for a non-existing
    archived log, Oracle probably needs one or more of the online logs to
    proceed with the recovery. Compare the sequence number referenced in the
    ORA-280 message with the sequence numbers of your online logs. Then enter
    the full path name of one of the members of the redo group whose sequence
    number matches the one you are being asked for. Keep entering online logs
    as requested until you receive the message "Media recovery complete"
    7. If the database is at mount point, open it.

  • Recovery from cold backup

    Hi,
    We take Hot backup everyday, but I took a cold backup using the same catalog. If I want to restore the cold backup I took, what is the proceedure. We are running on 10g in HP Unix.
    Thanks.

    Hi Rock2,
    If you want to restore the cold backup you need to know the tag belonging to this backup.
    Using the logfile of the coldbackup or <list backup summary;> in rman you should be able to get this info.
    The restore would be similar as:
    connect catalog rman/pwd@define_rcv;
    # check in catalog database for the dbid.
    # If so set the appropriate dbid by unhashing the line directly below using the current dbid
    # set dbid = define_dbid
    connect target /;
    STARTUP NOMOUNT;
    run {
    allocate channel tc1 type 'SBT_TAPE'; # or 'DISK'
    allocate channel tc2 type 'SBT_TAPE'; # or 'DISK'
    # adjust the TAG in the following lines
    restore controlfile from tag TAG0000001;
    sql 'alter database mount';
    restore database from tag TAG0000001;
    sql 'alter database open resetlogs';
    release channel tc1;
    release channel tc2;
    Regards,
    Tycho

  • How to restore cold backup + archived log files

    Hi,
    Suppose I take a cold backup on 18th. After that I have four days of archived log files. if the database crashes on 5th day, I have to restore the 18th cold back + 4 days of archived log files. How do I restore since it is a cold backup and I cant do incomplete recovery.
    can I use
    Recover database ( with 18th cold backup) in mount state and apply archived logs.
    Prabhath

    The details of how you perform forward recovery using a cold backup depends on
    1- rman or manual backup
    2- using current or backup control file
    3- if rman, recovery catalog or no recovery catalog
    4- if full database recovered or only a few files
    Each of these conditions will affect what is known to Oracle and what needs to be done. For example if you restored the entire cold backup including the control file then Oracle would see a consistent database and not need to perform recovery so you would need to startup mount and tell the database to perform recovery using a backup control file. If using rman and no recovery catalog you might need to catalog some of the archived redo logs, etc....
    It is advisable to consult the Backup and Recovery manuals before attempting recovery for any new scenario.
    HTH -- Mark D Powell --

  • How can I amke a full cold backup

    Hi, I would like to make a full cold backup in command line mode and then recover it.How caI proceed?
    Backup sets or image copy?
    I have tried this but it didn't work, I made it after a normal dbstart.
    connected to target database: ISCREAM (DBID=3415054131)
    RMAN> backup incremental level 0
    2> as compressed backupset database;
    Starting backup at 26.04.06
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=145 devtype=DISK
    channel ORA_DISK_1: starting compressed incremental level 0 datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00002 name=/home/oracle/oradata/iscream/undotbs01.dbf
    input datafile fno=00001 name=/home/oracle/oradata/iscream/system01.dbf
    input datafile fno=00003 name=/home/oracle/oradata/iscream/sysaux01.dbf
    input datafile fno=00005 name=/home/oracle/oradata/iscream/example01.dbf
    input datafile fno=00004 name=/home/oracle/oradata/iscream/users01.dbf
    input datafile fno=00006 name=/home/oracle/oradata/iscream/tools.dbf
    channel ORA_DISK_1: starting piece 1 at 26.04.06
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of backup command on ORA_DISK_1 channel at 04/26/2006 10:22:33
    ORA-19809: limit exceeded for recovery files
    ORA-19804: cannot reclaim 52428800 bytes disk space from 5242880000 limit

    You did fill up flash recovery area :
    $ oerr ora 19809
    19809, 00000, "limit exceeded for recovery files"
    //*Cause: The limit for recovery files specified by the
    //        DB_RECOVERY_FILE_DEST_SIZE was exceeded.
    //*Action:The error is accompanied by 19804. See message 19804 for further
    //        details.
    $ oerr ora 19804
    19804, 00000, "cannot reclaim %s bytes disk space from %s limit"
    // *Cause: Oracle cannot reclaim disk space of specified bytes from the
    //         DB_RECOVERY_FILE_DEST_SIZE limit.
    // *Action: There are five possible solutions:
    //          1) Take frequent backup of recovery area using RMAN.
    //          2) Consider changing RMAN retention policy.
    //          3) Consider changing RMAN archivelog deletion policy.
    //          4) Add disk space and increase DB_RECOVERY_FILE_DEST_SIZE.
    //          5) Delete files from recovery area using RMAN.
    $

  • RMAN cold backup taking more time than usual

    Hi everybody.. please help me resolving below issue..
    I have configured the RMAN in one of the production database with separate catalogue database six months earlier. I have sceduled weekly cold backup through RMAN on sunday 6pm. Normally it used to take one hour to complete the cold backup and database goes down soon as the job starts.
    But since from then every week the time taken to just initiate the database shutdown continuosly increasing and recently when i checked it is taking 1 hour to initiate the database shutdown. Once the initiation starts it hardly take 1 to 3 min to shutdown.
    Database is up and running during that one Hour. I was in the assumption that RMAN takes some time to execute its internal packages.
    Please help
    Regards,
    Arun Kumar

    Hi John and Tychos,
    Thank you very much for your valuable inputs.
    Yesterday there was cold backup and i have monitored the CPU usage. But there was no load on the CPU at that time and CPU usage was 0%
    I have tried connecting to RMAN manually and it connects within a second. And also noticed in prstat -a that rman connects as soon as the job starts.
    So i think that its taking time at the deleting obsolete backups.
    But I have observerd following observation.
    Before executing the delete obsolete command as mentioned before
    RMAN> REPORT OBSOLETE RECOVERY WINDOW OF 35 DAYS DEVICE TYPE 'SBT_TAPE';
    Report of obsolete backups and copies
    Type Key Completion Time Filename/Handle
    Backup Set 83409 25-JUL-09
    Backup Piece 83587 25-JUL-09 arc_SID_20090725_557_1
    Backup Set 83410 25-JUL-09
    Backup Piece 83588 25-JUL-09 arc_SID_20090725_558_1
    Backup Set 83411 25-JUL-09
    Backup Piece 83589 25-JUL-09 arc_SID_20090725_559_1
    After executing the delete obsolete command
    RMAN> REPORT OBSOLETE RECOVERY WINDOW OF 35 DAYS DEVICE TYPE 'SBT_TAPE';
    Report of obsolete backups and copies
    Type Key Completion Time Filename/Handle
    Backup Set 83409 25-JUL-09
    Backup Piece 83587 25-JUL-09 arc_SID_20090725_557_1
    Backup Set 83410 25-JUL-09
    Backup Piece 83588 25-JUL-09 arc_SID_20090725_558_1
    Backup Set 83411 25-JUL-09
    Backup Piece 83589 25-JUL-09 arc_SID_20090725_559_1
    Please advice me on the following.
    1. Why its not deleting the obsolete BACKUP SETS?
    2. Is it normal that RMAN takes this much deleting obsolete backup sets? How can i minimize the time taking for deleting obsolete files.
    Thanks and Regards,
    Arun Kumar

  • Create a standby controlfile using cold backup

    Hi All,
    We have to setup a DR for a production database.
    Here we have the coldbackup which backups all the datafiles and the control file from the production database.
    For cloining we generally copy them to another instance and then create controlfile manually. But for setting up as a DR , we would be creating it for standby controlfile.
    I tried to google but I am not able to find a way to create a standby controlfile from the existing controlfile cold backup.
    OS version solaris 10 , database version 11.2.0.1
    Regards
    KK
    Edited by: Kk on Feb 16, 2012 8:51 AM

    Kk wrote:
    Hi All,
    We have to setup a DR for a production database.
    Here we have the coldbackup which backups all the datafiles and the control file from the production database.
    For cloining we generally copy them to another instance and then create controlfile manually. But for setting up as a DR , we would be creating it for standby controlfile.
    I tried to google but I am not able to find a way to create a standby controlfile from the existing controlfile cold backup.
    OS version solaris 10 , database version 11.2.0.1
    Regards
    KK
    Edited by: Kk on Feb 16, 2012 8:51 AMTry as below
    My version:
    SQL> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0      Production
    TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    SQL>1) Taken backup of current controlfile
    2) Deleted Current controlfiles
    3) Restored using standby clause from current controlfile
    4) Mounted & now controlfile type is Standby
    Try in this way when you have cold backup. :)
    SQL> select controlfile_type from v$database;
    CONTROL
    CURRENT
    RMAN> run
    2> {
    3> allocate channel ch1 device type disk format 'c:\oracle\control%U.bkp';
    4> backup current controlfile;
    5> release channel ch1;
    6> }
    using target database control file instead of recovery catalog
    allocated channel: ch1
    channel ch1: SID=63 device type=DISK
    Starting backup at 16-FEB-12
    channel ch1: starting full datafile backup set
    channel ch1: specifying datafile(s) in backup set
    including current control file in backup set
    channel ch1: starting piece 1 at 16-FEB-12
    channel ch1: finished piece 1 at 16-FEB-12
    piece handle=C:\ORACLE\CONTROL08N3GEA6_1_1.BKP tag=TAG20120216T230334 comment=NONE
    channel ch1: backup set complete, elapsed time: 00:00:01
    Finished backup at 16-FEB-12
    released channel: ch1
    RMAN> exit
    RMAN> restore standby controlfile from 'C:\ORACLE\CONTROL08N3GEA6_1_1.BKP';
    Starting restore at 16-FEB-12
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=66 device type=DISK
    channel ORA_DISK_1: restoring control file
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:03
    output file name=C:\ORACLE\ORADATA\ORCL\CONTROL01.CTL
    output file name=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\CONTROL02.CTL
    Finished restore at 16-FEB-12
    SQL> alter database mount;
    Database altered.
    SQL> select controlfile_type from v$database;
    CONTROL
    STANDBY
    SQL>
    Some More information:-
    Even if your database backup is old, still you can create a new standby controlfile and restore new controlfile and restore database. Later after starting MRP all will be synchronized. No issues
    SQL> select controlfile_type from v$database;
    CONTROL
    CURRENT
    SQL> alter database create standby controlfile as 'c:\oracle\control_stby.ctl';
    Database altered.
    SQL> $dir c:\oracle\con*
    Volume in drive C is System
    Volume Serial Number is 1853-3E21
    Directory of c:\oracle
    02/16/2012  11:41 PM         9,748,480 CONTROL_STBY.CTL
                   1 File(s)     19,546,112 bytes
                   0 Dir(s)  177,185,570,816 bytes free
    SQL>Now Just restore database. You already have backup.
    Or
    If you have opportunity you can go ahead for Duplicate/Duplicate from active database
    Edited by: CKPT on Feb 16, 2012 11:41 PM

  • Stop and start database for cold backup

    Hi,
    Database :Oracle 10g R1
    OS : Red hat 3
    I have a RAC database with 2 nodes.
    I build this script to make a cold backup of the database. (I will put it in the cron tab).
    My question is the SRVCTL will work in this scripts??
    # ***** COLDBACKUP ORACLE DATABASE ON LINUX *****
    DIRECTORY=/u02/backup/script/; export DIRECTORY
    cd ${DIRECTORY}
    # ***** SHUTDOWN THE DATABASE *******
    export oracle_sid=RCDB
    srvctl stop database -d RCDB
    # *****cold backup for "RCDB" database on 13-FEB-07 ... *****
    # ***** COPY FILES *****
    # Redo logs
    cp /u02/oradata/RCDB/redo01.log ${DIRECTORY}
    cp /u02/oradata/RCDB/redo07.log ${DIRECTORY}
    cp /u02/oradata/RCDB/redo03.log ${DIRECTORY}
    cp /u02/oradata/RCDB/redo08.log ${DIRECTORY}
    # Datafiles
    #*********START UP DATABASE AND SERVICES********
    srvctl start database -d RCDB
    exit
    Message was edited by:
    ASkika
    Message was edited by:
    ASkika

    I need to put a quick policy backup ... and cold
    backup it's what I use and it works.And reduces the availability of your cluster.
    The problem about RMAN is that we never use it. I
    have to learn about it to make scripts to test....
    and this will tack me 2 or 3 days...I'd assume that installing RAC didn't go overnight, so why underfund the crucial part of any database system, the backup?
    There's even a step by step guide for backup on the Getting Started: DBAs page.
    Samples (and changes) on the latest version of RMAN can be found for example in RMAN Enhancements.
    Or take a look at this Oracle Magazine article:Faster Backup, Faster Recovery
    Backup and Recovery Basics in the user documentation may also be a good starting point.
    C.

  • Oracle R12 12.1.3, how to make cold backup

    Hello guys
    After a month long efforts, I was able to deploy the 12.1.3 templates successfully and the full vision instance is accessible without any technical hickups. I have setup VM Server 3.1.1 and VM Manager 3.1.1 using Oracle VirtualBox. The application is running on a two node structure now and I would like to take cold backups for both apps and database tier, later merge them to a single node and move to Oracle Linux 6.2/6.3 so that I could take it around in my laptop for demonstration purposes (We are on 12.0.4) right now and dwelling the possibilities of migrating to 12.1.3)
    regards,
    raj

    I already have two node application R12 (12.1.3) structure, now what I want is
    I want to take a cold backup of application tier, and database tier.
    Then move the backup to a new server and setup a single node, which will be on Oracle Enterprise Linux 6.2
    So, basically I want to know how to take a cold backup and then setup a new server with the backup.You can use any of the commands mentioned in this link -- http://www.oracle-base.com/articles/misc/os-backup-commands.php
    You might also use rcp/scp.
    http://linux.about.com/od/commands/l/blcmdl1_rcp.htm
    http://www.linuxtutorialblog.com/post/ssh-and-scp-howto-tips-tricks
    Please note for cold backup you will need to shutdown the application/database properly (clean shutdown).
    Thanks,
    Hussein

Maybe you are looking for

  • Problem with save as box

    Hello, i have a PHP script that will pop up a save as dialog box. This script works well at Firefox and IE7, but when i test it with Safari for Windows. It will download the PHP script itself and not the file that i want to give to user. Can someone

  • Very Slow rendering

    I just started tinkering with LT and even for small simple renders it seems to take so long. Is there a setting I should change? I know I do not have the fastest processor but it seems to work fine in FCEHD. Thanks in advance! RB

  • Images dont show up

    Hi im a graphic designer and not really strong in web design so im having a bit of trouble with the site im creating for the company i work for. i created the site off line and created it in Dreamweaver CS3 now as far as I kno all my links are accura

  • What is table where we can have access to all objects in a order

    Hi all, could you tell me what is the table name where i can get access to all objects to an order in crm..

  • SQL Loader + CLOB

    Dear buddies, Please guide me with this. LOAD DATA INFILE 'D:\load\dat\Enquiry_reply.dat' BADFILE 'D:\load\bad\Enquiry_reply.bad' DISCARDFILE 'D:\load\dat\discard\Enquiry_reply.dsc' replace INTO TABLE OES_Enquiry FIELDS TERMINATED BY '[' *(Reply CLOB