Cold backup for dataguard dbs

There is request to take cold backup of primary & standby db , i am New to dataguard backups, Should i take backup of only primary db or both?

Yes apps owner is insisting to take cold backup of both db this weekend(they are patching apps), and here are the step i had in mind to do that to stop , primary & llogical standby dbs , take cold backups ( scripts, usermanaged backups, dont have rman there) & start the dbs.
On standby db
SQL > set numformat “999999999999999”
SQL > select newest_scn,applied_scn from dba_logstdby_progress ; (both should match)
SQL > select thread#,sequence#,applied from dba_logstdby_log;
SQL> select sequence#, status from v$archived_log;( on primary) Both sequence# should match
on primary db
SQL > alter system switch logfile ;
SQL > alter system archive log current ; ( to make sure current transactions come thru)
check tail of alert log of standby to make sure these redologs shipped & mined
standby db
SQL> ALTER DATABASE STOP LOGICAL STANDBY APPLY; (stop SQL Apply)
SQL> shutdown immediate;
Lsnrctl stop listener_corp_remrpt-haprimary db
SQL > shutdown immediate ;
Lsnrctl stop listener_corp_remprd-ha
Dont shutdown abort for any case, if both dbs are going down, first stop SQL apply on standby, take primary down and then take standby down)
Startup
primary
SQL>startup;
Lsnrctl start listener_corp_remprd-ha
Standby
SQL > startup
SQL > alter database start logical standby apply immediate ;
Lsnrctl start listener_corp_remrpt-ha

Similar Messages

  • Using Cold Backup for a 42GB database

    I plan to have a Cold backup for a 42GB db (v 8.1.6). Since it's size is quite large, i am not sure how to back it up quicker.
    I did a trial copy for a 3GB file, it took almost 9 hours to finish.
    Please help!!!
    Thanks a lot :)
    Tracey

    I did a trial copy for a 3GB file, it took almost 9 hours to finish.Wouaw, what is your network ?
    You can copy the files in local, restart db, and move files on an other drive trough network, like this, the service is not down for a long time.
    Nicolas.

  • Rman cold backup for oracle rac

    Hi experts;
    I want to create a cold backup for an oracle 10g rac DB.
    It has 2 nodes, it's not in archive log, this will be the next step.
    But now, I want to backup before to proceed.
    My doubts are:
    I need to shutdown the both nodes?
    If yes:
    I need to startup nomount just in one node?
    If there any document with this specifics steps?
    Thanks for your help.
    Al

    Cold backups are done with the DB completely shut down.
    For RAC the data files are used by all nodes in the cluster.
    You need to shut down all instances in the RAC.
    Then use your OS utilities or RMAN to do the backup.
    Here is an 'Ask Tom' topic that discusses this:
    http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:851658400346232494

  • HOWTO cold backup for Apps 11i?

    Can anyone please provide me any documentation or tips on how to do a coldbackup on Apps 11i DB 9.2.0.
    Chase

    a cold backup means you shutdown the database and make a os backup of the database.
    For an 11i database is works the same. If you want to do ot nicely, you also stop all the application processes, like forms, web, fndfs....

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

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

  • Database hangs in shutdown immediate for cold backup

    Dear experts ,
    we have scheduled cold backup for our database.
    is there any solution to resolve below mentioned errors other than RMAN hot backup or shutdown abort ?
    Sat Jan 26 00:20:55 2013
    Active call for process 3939 user 'oracle' program '[email protected]'
    SHUTDOWN: waiting for active calls to complete.
    Sat Jan 26 01:15:59 2013
    SHUTDOWN: Active sessions prevent database close operation
    Instance shutdown aborted

    Hi,
    should we daily kill these processes with LOCAL=NO
    what is proposed solution in such cases ?
    is it not harmful for OS or database to kill these processes daily ?Yon can create shell script to find kill session only when you find active calls in your database alert log. You need not have to kill it on daily basis.
    Refer MOS tech notes for more details:
    *Alert Log: Shutdown Waiting for Active Calls to Complete [ID 1039389.6]*
    *What Is The Fastest Way To Cleanly Shutdown An Oracle Database? [ID 386408.1]*
    thanks,
    X A H E E R

  • 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

  • Build standby database using cold backup on a different file system & host

    Hi gurus,
    The database version is 11.2.0.3. OS is HP UX Itanium 11.31
    I am building a standby database using cold backup of primary. The primary mount points are (/p003/oracle, /p004/oracle) on HOST1 and the standby file system on HOST2 are (/s003/oracle,/s004/oracle). I am not using Data Guard to apply logs as we have a script that mounts the log location periodically to standby server and apply the logs to make it current. I am using cold backup as the database is small like 200G and can be taken down. Could someone help me with the steps to build standby using cold backup for a different file location in standby ?? My concern is I can copy the data files from /p003 to /s003. How will I build the controlfile ?
    If it was same File system on both HOST 1 and HOST2 I can copy the cold backup to the standby server, build a standby control file on primary and copy and replace the standby control file and everything was set.
    Thanks
    Cherrish Vaidiyan

    Hello;
    I have a note on this using a cold copy of the current files instead of a copy backup :
    http://www.visi.com/~mseberg/data_guard_on_oracle_10_step_by_step.html
    I will post SCP SQL in a moment.
    Best Regards
    mseberg
    set heading off
    set feedback off
    set pagesize 100
    set linesize 400
    select 'scp '||a.name ||' server_name:' || a.name as newname from v$datafile a;
    select 'scp '||a.name ||' server_name:' || a.name as newname from v$controlfile a;
    select 'scp '||a.member ||' server_name:' || a.member as newname from v$logfile a;Edited by: mseberg on May 25, 2013 10:35 AM

  • Cold backup using script

    Dear all,
    I need a script to take cold backup of oracle database 10.2.0.3.0 .. such that if todays date is 28-oct-08.. then a folder with the name 28oct08 to be created in the backup location.then using the script user should login to the database shutdown the db and listener and make sure this is completely down and copy the complete oracle files and home location to the above mentioned folder in the server.. any links or points will help a lot ?
    Kai

    Kai, rather than write a script to perform a cold backup for whatever platform you are on I suggest you write a script to generate the cold backup script. The script can connect to the database, read various v$ and dba views such as dba_data_files to get the necessary data file information, and place the file names into OS copy commands. The resulting script should probably include steps to connect to and stop the database and to restart the database instance when it is complete.
    Be sure to include a copy of your control file and the spfile in your backup. You do not need to include the online redo logs in your manual cold backup.
    An alternate might be to run an rman backup while the database is in restricted session depending on how freely your site has given out the DBA role and/or restricted session privilege.
    HTH -- Mark D Powell --

  • Database cloning using cold backup

    Hello Guys,
    I am doing cloning of a database from cold backup for testing, actully one datafile has been croupted, so my issue is that, can i exclude tht datafile from controlfile when creating the controlfile and is that poosible that controlfile will created sucessfully and database will open sucessfully.
    Please reply.
    Thanks

    @asif, @ckpt
    With humble, how all you know that corrupted datafile is not belonging to system and undo tablespace? If this case, then do you think we can restore that corrupted cold-backup ? Sorry, but this is not the way to just start providing help without asking OP :
    1.Current Oracle Version ?
    2.Where he want to restore i.e. restoring platform info Oracle version OS ?
    3.After cold backup how he came to know that one datafile is corrupted ?
    4.When and how datafile became corrupted ?
    5.How he taken cold backup ? Was db running fine just before shut immediate for cold backing ?
    6.What he has done so far to restore the cold backup ?
    7.What error he is getting right now ?
    Here problem is corrupted datafile. So, first let come problem clear from OP, ask all missing question in one go, and then start helping is the right way... (my personal opinion, may be wrong!).
    Regards
    Girish Sharma

  • Cold backup with online redo logs

    I am working on 10G in AIX for a single instance
    It is just a general db backup & restore question, but I have something confused.
    I am going to perform a cold backup with my ARCHIVELOG database.
    No wonder why I perform a cold backup because it is a testing database which can suffer from data lost and down time during backup.
    I read some guides. They all mentioned to backup all the datafiles and control files.
    During the restoration, I have to copy all the backed up datafiles and control files to the default location.
    Then Startup mount;
    The last step before open the database is recover database until cancel;
    For the acknowledgement, I have to do the command of recover database, because the online redo logs were not backed up, thus we have to recover it in order to reset the redo logs.
    For my question,Would I be able to skip the command of recover database, then directly startup the database if I have backed up the online redo logs and copy the default location during the restoration?
    However, I read many documents which mention that it is not suggested to backup the online redo logs. Is it just the case which ONLY applied in hot backup? Do you all think that for my case, cold backup for online redo logs is recommended?
    Thanks all

    jgarry wrote:
    Edit: And never forget, those test databases are some developers production.Absolutely true according to my experience. Loosing the work of a payed developer is just as bad as loosing the work of a production system and may even be worse because it may not be possible to re-enter missing data into the system.
    I think a cold backup is only suitable on special occasions, for instance, to relocate/copy the database to a different storage media, or if the database doesn't change or if loosing changes is absolutely irrelevant. Otherwise, put the database into archivelog mode and do a hot backup. After that you will also have alternative options which can make the restore and recovery of the database very easy and efficient, like flashback database, etc. but it will take substantial additional disk space.

  • A script for oracle10g cold backup on linux

    Hi,
    I have a urgent need to do a cold backup using o/s command. Can anyone please send me a script for this.
    Thanks in advance
    PK

    I ended up writing the script
    define 3 = &backup_directory
    define 4 = &instance_name
    define 5 = &user_dump_directory
    Set Heading Off
    Set Verify Off
    Set FeedBack Off
    Set LineSize 132
    Set PageSize 1000
    set termout off
    Spool cold_back.sql
    select 'connect /as sysdba' from dual;
    Select 'Startup Force' || CHR(10) ||
    'Shutdown Normal' From Dual;
    select '! mkdir '||'&&3'||'/'||to_char(sysdate,'yyyyddmm') from dual
    /* Data Files */
    Select '!cp ' || File_Name || ' &&3'||'/'||to_char(sysdate,'yyyyddmm') || CHR(10) ||'!gzip ' || '&&3' ||'/'||to_char(sysdate,'yyyyddmm')|| '/' || SubStr(File_Name, InStr(File_Name, '/', -1)+1) From Sys.DBA_Data_Files
    /* Redo Log Files */
    Select '!cp ' || Member || ' &&3'||'/'||to_char(sysdate,'yyyyddmm') || CHR(10) || '!gzip ' || '&&3'||'/'||to_char(sysdate,'yyyyddmm') || '/' || SubStr(Member, InStr(Member, '/', -1)+1) From V$LogFile
    /* Control Files */
    Select '!cp ' || name || ' &&3'||'/'||to_char(sysdate,'yyyyddmm') From V$controlfile
    /* Init and Config Files */
    Select '!cp $ORACLE_HOME/dbs/init&&4' || '.ora &&3'||'/'||to_char(sysdate,'yyyyddmm') From Dual
    alter session set tracefile_identifier=coldbackup
    alter database backup controlfile to trace
    select '!mv '||'&&5/*COLDBACKUP*' ||' &&3'||'/'||to_char(sysdate,'yyyyddmm') FROM dual
    Select 'Startup' From Dual;
    Select 'Exit' from dual;
    set termout on
    PROMPT " Run the output cold_back.sql script [sqlplus -s '/as sysdba' @cold_back.sql ]"
    Spool Off
    -----------------------

  • Can cold backup be taken for ASM managed oracle 10g databases

    Can cold backup be taken for ASM managed oracle 10g databases
    Pls help

    do we still need to take cold backupYou need to take backup. Hot or cold depends on how your DB is running (archivelog or not).
    Will we have file permisions for copyng Use RMAN and don't worry about that.

  • ORA-00313: open failed for members during restore from COLD backup

    Hi all,
    I took a cold backup of an 11.1 database using RMAN (database in mount state).
    I used the following command to restore it:
    restored the controlfile and then
    RESTORE DATABASE FROM TAG 'TAGxxxxxxxxxx';
    Now I'm restoring it and it's taking too much time. When checking alert log it says:
    ORA-51106: check failed to complete due to an error. See error below
    ORA-48318: ADR Relation [HM_FINDING] of version=3 cannot be supported
    ORA-00313: open failed for members of log group 1 of thread 1
    ORA-00312: online log 1 thread 1: '/oracle1/oradata/******/redo1_02.log'
    ORA-27037: unable to obtain file status
    HPUX-ia64 Error: 2: No such file or directory
    Additional information: 3
    RMAN is still in progress, why does it complain about redo?
    I'm not doing recovery since it was a cold backup.
    Thanks in advance.

    Hi Michael,
    Yes, it's the correct one because it says "full restore complete":
    ORA-00312: online log 1 thread 1: '/oracle1/oradata/******/redo1_01.log'
    ORA-27037: unable to obtain file status
    HPUX-ia64 Error: 2: No such file or directory
    Additional information: 3
    Tue Apr 30 14:38:14 2013
    Full restore complete of datafile 32 /oracle1/oradata/******/apr_sesm_index_01.dbf. Elapsed time: 1:25:42
    checkpoint is 12652187135448
    last deallocation scn is 12651877642745
    Tue Apr 30 15:38:04 2013
    Full restore complete of datafile 34 /oracle1/oradata/******/apr_stage_data_01.dbf. Elapsed time: 6:42:52
    checkpoint is 12652187135448
    last deallocation scn is 12651877637877
    thanks,

Maybe you are looking for

  • Lots of photos won't sync - error of no free space

    Hi There, I have an 8GB original iPhone. When syncing, it frequently fails to copy photos saying "No photos were copied to the iPhone "iPhone" because there is not enough free space on the iPhone to hold your photos and albums" Now, all my photos for

  • When switch on...I don't know what's going on...

    I don't know what's wrong with my MacBook Pro when I switch it on Please watch the video below http://youtu.be/uPCtqYYOMvY?list=UUcR6nO8MYaeh6ZbcEs7-Cyg How can I solve this problem? Please help.

  • Bridge cs3 may i edit many photos metadata IPTC?

    Hi may i ask a question can i edit metadata (like IPTC ) with bridge many files ? in short like the lightroom 1.4.1 library module metadata panel thanks!

  • Sleep if no action in given amount of time

    Hello, I am trying to make my program sleep if no command is entered and come out of sleep if a command is entered. Once a command is entered it then has to go back into sleep again and so on. This is part of a bigger program shown in a different thr

  • Manipulating Custom Headers in REST calls via BPEL's HTTP Binding Adapter

    Hi, I have a requirement wherein I am supposed to invoke a REST based service via BPEL. Moreover, I have to set a custom HTTP header before calling that service. I have been able to successfully call a Hello World Rest based service via BPEL, but I w