RMAN script for RAC Hot Backup

Anyone who want to share an RMAN script to Hot Backup a 9i RAC Database.

Try to remove the DURATION option in your script.
Here more details about that part.
http://download-east.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta009.htm#i1010261
Bye, Aron

Similar Messages

  • Step by Step RMAN configuration for full hot backup daily

    Dear experts,
    i am new to oracle RMAN , i have gone through couple of RMAN guides for configuration ,
    i have oracle e-business suite (R12.1.1) and database is ( 11.1.0.7) on red hat enterprise linux 5.3 . All of this is 64 bit.
    i have a database about 175 gb which is as usual growing day by day as data entry is taking place.
    Untill now we have a cold backup strategy in the midnight 3 am a script down the database and make abc.tar.gz file of 25 gb approx. . This process takes about 100 minutes. But now due to new sales system we want our database up 24/7 .
    So we want to configure RMAN hot backup.
    I want to take backup on disk.
    daily full hot backup.
    backupsets
    currently database is in no-archivelog
    plz help me to proceed with this .
    Edited by: user13376823 on Feb 10, 2011 12:17 PM

    user13376823 wrote:
    Dear all,
    i am using this script for my full hot backup ,
    run
    allocate channel c1 device type disk format '/opt/R12Backups/rman/%U';
    allocate channel c2 device type disk format '/opt/R12Backups/rman/%U';
    crosscheck backup;
    BACKUP DATABASE FORMAT '/opt/R12Backups/rman/proddb_%u_%p_%c';
    sql 'alter system switch logfile';
    BACKUP ARCHIVELOG ALL DELETE INPUT FORMAT '/opt/R12Backups/rman/archlog%U';
    DELETE NOPROMPT OBSOLETE REDUNDANCY =1 device type disk;
    DELETE NOPROMPT EXPIRED BACKUPSET OF DATABASE device type disk ;
    BACKUP AS COPY CURRENT CONTROLFILE FORMAT '/opt/R12Backups/rman/copy_of_cf_%U';
    BACKUP SPFILE FORMAT '/opt/R12Backups/rman/spfile_%U';
    release channel c1;
    release channel c2;
    1.please tell me that it is covering all aspects of a backup . Can i do complete recovery with this backup in case of disaster?
    Define "all aspects".
    2. i only get database and controlfile backup at my location. There is no backup of archivelogs , What happened with
    that ?Without seeing the output that rman generated from running the above block, and without seeing all of the persistent rman settings, it is impossible to diagnose anything. I will say that your script looks overly complex.
    Just to give you a point of comparison, here's my setup. First the persistent rman settings. Take note of anything that is NOT marked as "default";
    RMAN> show all;
    using target database control file instead of recovery catalog
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
    CONFIGURE BACKUP OPTIMIZATION ON;
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
    CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COMPRESSED BACKUPSET PARALLELISM 1;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE 'SBT_TAPE' TO 3;
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/ora00/app/oracle/product/10.2.0/db_1/dbs/snapcf_vlnxora1.f'; # defaultAnd here is my basic "full backup" script
    [oracle@vmlnx01 bin]$ cat rman_full.scr
    connect target /
    show all;
    run {
      backup incremental level 0 database tag='bkup_vlnxora1_full';
      backup archivelog all not backed up 2 times tag='bkup_vlnxora1_arch';
      delete noprompt archivelog all backed up 2 times to device type disk;
    list backup summary;
    report obsolete;
    quit

  • RMAN script for hot backup (looking for code critic) code attached.

    Hello Guru's,
    I have been having soem trouble running a successful hot full rman backup nightly.
    We max our CPU load whenever our RMAN takes too long and conflicts with a Legato tape backup. I have a development server that I attempted to get a consistent backup time duration that is rock solid as to not conflict with the Legato backup time.
    I just found out about duration with RMAN scripts here is my code:
    #!/bin/bash
    #rman backup script for daily hot whole database backup
    at -f /hd1/rman_scripts/rman_backup 0600 tomorrow
    rman target/
    run {
    allocate channel d1 device type disk format '/path/%U';
    backup duration 1:00 partial minimize load database filesperset 1;
    backup as BACKUPSET tag '%TAG' database;
    backup as BACKUPSET tag '%TAG' archivelog all delete all input;
    delete noprompt obsolete;
    release channel d1;
    exit
    It completes the backup, but does not use the 1 hour allocated- it only uses 15 minutes on average and creates many files instead of normally three backup files.
    Here is the results from querying the v$rman_status table for operation,status,start_time:
    RMAN,FAILED, 17-OCT-06 0600
    BACKUP,FAILED,17-OCT-06 0600
    RMAN,FAILED,17-OCT-06 0606
    BACKUP,COMPLETED,17-OCT-06 0606
    BACKUP,COMPLETED,17-OCT-06 0606
    BACKUP,FAILED,17-OCT-06 0615
    RMAN,COMPLETED,17-OCT-06 1513
    REPORT,COMPLETED,17-OCT-06 1513
    DELETE,COMPLETED,17-OCT-06 1513
    However, the timestamps of the backupset files it creates is:
    06:15 and not 1513?????????????
    RMAN appears to have only taken 15 minutes to create the files, why do I have a completed timestamp from v$rman_status of 1513???
    Please advise and comment, I am just learning RMAN.

    Try to remove the DURATION option in your script.
    Here more details about that part.
    http://download-east.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta009.htm#i1010261
    Bye, Aron

  • RMAN Scripts for 9i RAC

    We have just recently started to use Oracle 9i RAC on Red Hat linux 2.1. And we are going to use RMAN for backing up the archived logs.
    Currently we have 2 node cluster and the archived logs of respective nodes are on their respective local hard disk. e.g for node1 logs are archived on /arch1 and for node2 on /arch2 individually.
    Can I have some sample RMAN scripts for backing and restoring the logs of this individual nodes.?
    An early guidance is highly appreciated.
    Thanks

    you can use the same scripts as you where running before you upgraded to RAC. The main difference is that to distribute the load you can allocate channels from other nodes. A simple backup could be done as follows:
    #rman
    #connect target /
    #connect catalog rman/cat@cat
    #run{
    #allocate channel ch1 type sbt_tape;
    #allocate channel ch2 type sbt_tape;
    #configure channel 1 device type 'SBT_TAPE' connect = 'node 1'
    #configure channel 2 device type 'SBT_TAPE connect = 'node 2'
    #backup database;
    that will work (he says) but thats the main difference, remember oracle only recommend you allocate the same number of channels as you have devices (EG if you have 2 tape drives you can allocate 2 channels to maximize effiantcy)...
    hope this helps a bit,
    Marky Mark...

  • RMAN Backup script for RAC Database..please suggest

    Hi All,
    I am currently working on backup policy for RAC Database for my client.The client requirement is to backup while database is shutdown(mount state).I have made below script and could any one please suggest what further things should I need to add with below rman script.
    echo "Shutdown Database";date
    srvctl stop database -d PROD
    srvctl status database -d PROD
    echo "Database shutdown on";date
    echo "Mount Database ";date
    srvctl start instance -d PROD -i "PROD1" -o mount
    srvctl status database -d PROD
    echo "Start Full Database Backup on";date
    $ORACLE_HOME/bin/rman target / nocatalog <<EOF
    configure controlfile autobackup on;
    configure controlfile autobackup format for device type disk to '/BACKUP/PRODBKP/%F';
    run{
    allocate channel c1 device type disk connect 'sys/******@node1-vip:1521/PROD';
    allocate channel c2 device type disk connect 'sys/*****@node2-vip:1521/PROD';
    backup format '/BACKUP/PRODBKP/PROD_df_%t_%s_%p.bak'(database);
    backup format '/BACKUP/PRODBKP/archive_%t_%s_%p.bak' archivelog all;
    copy current controlfile to '/BACKUP/PRODBKP/PROD.ctl';
    delete noprompt obsolete;
    release channel c1;
    release channel c2;
    exit
    EOF
    echo "RMAN Backup Finished on";date
    echo "Shutdown Database";date
    srvctl stop database -d PROD
    echo "Start Database";date
    srvctl start database -d PROD
    srvctl status database -d PROD
    Please share your experiences.
    Regards

    Hi,
    Some tweaks for your script.
    echo "Shutdown Database";date
    srvctl stop database -d PROD
    srvctl status database -d PROD
    echo "Database shutdown on";date
    echo "Mount Database ";date
    srvctl start instance -d PROD -i "PROD1" -o mount1. If you database does not shutdown properly , does your script stops the execution of next step?
    2. configure controlfile autobackup on;
    configure controlfile autobackup format for device type disk to '/BACKUP/PRODBKP/%F';(Why you need to configure this every time) ?
    It's persistent at db level one time setting (until some other script changes the settings by other dba - else remove that - set the configuration at db level once for all)
    - Pavan Kumar N
    3.

  • Please help with RMAN dup for RAC db

    Happy Holidays!! All,
    I need help with the following issue:
    Both target and auxiliary databases are:
    Database version is 10.2.0.3 with 2-node RAC db
    Servers are MS 2003
    Oracle Clusterware 10.2.0.3
    Oracle ASM for storage
    I have run the rman dup from RAC to a single instance db for a while. This is the first time I ran from RAC to RAC. This auxiliary db was refreshed before and was up for a while and was managed by server control tool. Now I am trying to refresh it with new backup files from production. I did the following as people suggested:
    1)     shutdown instance in the second node.
    2)     Startup nomount mode in the first node
    3)     Run RMAN dup
    It failed in the same place with slightly different errors. I pasted error messages at the bottom. I already created a TAR with Oracle but would like to know if anybody has any info related to this. Also I have several questions to ask:
    1)     Should I stop all services related to Oracle in node-2
    2)     Should I stop all clustware related services in node-1 except oracleCSServie since ASM uses it?
    3)     Is there any way I can finish the dup manually from the place I failed? What going to happen if I don’t finish the rest of the dup and go ahead with “alter database open resetlogs”?
    4)     How do I remove the database from under Server control – I already run “srvctl remove database -d atlrac” successfully. Is this all?
    Thanks a lot for your help and have a great holiday season!!!
    First time run:
    contents of Memory Script:
    shutdown clone;
    startup clone nomount ;
    executing Memory Script
    database dismounted
    Oracle instance shut down
    connected to auxiliary database (not started)
    RMAN-00571: ====================================================
    RMAN-00569: ======= ERROR MESSAGE STACK FOLLOWS ==============
    RMAN-00571: =============================================
    RMAN-03002: failure of Duplicate Db command at 12/21/2009 20:24:47
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-04014: startup failed: ORA-00610: Internal error code
    Second time run:
    contents of Memory Script:
    shutdown clone;
    startup clone nomount ;
    executing Memory Script
    database dismounted
    Oracle instance shut down
    connected to auxiliary database (not started)
    RMAN-00571: ===================================================
    RMAN-00569: ========== ERROR MESSAGE STACK FOLLOWS ==========
    RMAN-00571: ===================================================
    RMAN-03002: failure of Duplicate Db command at 12/22/2009 15:53:27
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-04014: startup failed: ORA-03113: end-of-file on communication channel
    Shirley

    1) Should I stop all services related to Oracle in node-2
    No, you just need to stop the second instance.
    2) Should I stop all clustware related services in node-1 except oracleCSServie since ASM uses it?
    No, you don't need to stop anything. Just have the instance startup nomount.
    3) Is there any way I can finish the dup manually from the place I failed? What going to happen if I don’t finish the rest of the dup and go ahead with “alter database open resetlogs”?
    You have not shown enough information. Did the restore succeed ? Did the recover succeed ? What was it doing when it failed ?
    4) How do I remove the database from under Server control – I already run “srvctl remove database -d atlrac” successfully. Is this all?
    Yes, srvctl remove database is all you need. (unless you also want to remove from listener.ora, tnsnames.ora, oratab etc)

  • RMAN script for Unix

    We have decided to abandon user managed hot backups and go with RMAN. Could you critizize the following approach and see if we are missing anything? I am making whole database backup and controlfile and archivelogs. I am using RMAN catalog.
    In a Unix script setting all of the environment variables and then
    connect target ********
    connect catalog *********
    configure snapshot controlfile to '${ORACLE_HOME}/snapshot_${ORACLE_SID}_${TIMESTAMP}_ctl';
    run {
    allocate channel c1 type disk;
    allocate channel c2 type disk;
    allocate channel c3 type disk;
    backup database plus archivelogs;
    release channel c1;
    release channel c2;
    p.s. control file autobackup is on
    Also, I have these questions:
    1. How do I direct the output of this backup to a file?
    2. Is there a way to check for errors within this file to see if the backup went ok?
    3. Would anyone have a unix shell script example of the above?
    4. How do I make sure that catalog is synched with control file and what is on the file system?
    5. Is it customary to delete archive logs via RMAN script if, say, my policy is to keep it on the file system for 7 days?
    thank you for any input!

    Hi,
    You didnot mention the db version, assumed it's 10g.
    If you planned to schedule this job at os level, you might use crontab (unix). The snapshot controlfile config can set with catalog once, so it's not needed to include in your backup script. Like wise your retention can set as "recovery window of 7 days".
    1. How do I direct the output of this backup to a file?
    ==> inside rman script you might use the following command,
    set log to '/home/oracle/rmanbkp.log';
    2. Is there a way to check for errors within this file to see if the backup went ok?
    ==> you might check in the logfile for ORA- and RMAN- errors.
    3. Would anyone have a unix shell script example of the above?
    I use to schedule this job either by OEM or crontab using rman script file.
    4. How do I make sure that catalog is synched with control file and what is on the file system?
    RMAN will do auto sync with controlfile.
    5. Is it customary to delete archive logs via RMAN script if, say, my policy is to keep it on the file system for 7 days?
    Upon successful backup you may delete the archivelogs or you might decide to keep it for 7 days and then delete by applying "delete obsolete" command.
    Thanks,
    Nirmal

  • RAC Hot Backup

    I have a hot backup script for single-instance.
    Any one who want to explain me points to take care in a hot backup for RAC environment?

    Hello,
    I am sorry to bring this up again since it was last posted on Feb 2007. Does anyone know exactly how to perform user managed backup or at least convince me not to use it in a RAC environment? For example, if my storage array has the snapshot capability and I run Oracle10g RAC on Linux with two nodes cluster using OCFS2 (file systems), can't I just put the database in online backup mode for both instances and just take a snapshot of my Linux volumes? The reason is that I create one shared volume for database datafiles, and one shared volume for online redo logs, and one shared volume for archived logs, in a RAC environment, if one instance fail, then the database is still OK, but if a datafile is missing, then I can just startup one instance, recover the datafile, and then restart the other instance. Is this OK or am I smoking something? Please explain.
    Thank you,
    TD

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

  • Script for daily Incremental Backup with Weekly full back?

    Hi Can abybody plz give me the scrip for the daily incremental backup and weekly full backup.
    Do we need 2 different scripts each for Incrmental and Full Backup or one will do.
    Thanx in advance
    Gagan

    I will suggest you always
    -backup archivelog daily when after yours backup database completion
    -keep two days archivelog out of yours database storage to others device or
    always take frequent archivelog to tape cartrideg after an hour depends yours
    database activity pace.
    You should also include archivelog backup within these backup scripts to others teriotry device i.e tape cartridge as well keep frequent archivelog backup if you think yours backup storage space is an issue or if you dont trust on yours backup storage media,keep an alternate tape cartridge for archivleog for frequent archivelog backup after every one hours depends the pace of yours database activity.Either backup archivelog frequently or multiplex the archvivelog to other devices.
    Now you probably may confuse thats why i need archivelog backup command within this script when i am going to take incremental/full backup, its due to some thing happened with yours last backup got corrupted then you have alternate to restore before last backup.
    Mon      Incremental + Archivelogs
    Tue       Incremental + Archvielogs
    Wed      Yours Database files got smokesWhat will you do
    You will restore Tue backup and will apply alls redo from archivelogs which are generated to other devices yours data chances to be lost is minumum.You may lose only the current archivelog which is not yet to be log switched.If yours archivelog destination devices may corrupt then you have alternate to restore from tape cartridge.
    If yours Tue backup cannot be restored even though you validate it after backup then you will have alternate to restore monday backup and you have backup of tue archivelog as well yours two days archivelog is also at another device then you may also recover the database till before crash.In this case you may lose only the current archivelog which is not yet to be log switched.
    You cannot pile up archivelog to others device cause they begin to take a serious issue on disk thats why i mentioned two days archivelog to other device.
    I hope now you clear why archivelog backup is essential with daily backup either its incremental or non incremental.
    Khurram

  • OSB / RMAN configuration for recovery area backup

    Hi
    I am having trouble performing a recovery area backup to tape.
    Current config
    Media server - attached tape library (OSB installed as media server, admin and client - Contains RMAN Repository) - configured as per guide. I can see the library tapes and have tested an OSB filesystem backup to tape which was fine, this was done from the OSB GUI.
    Server 1 - databaseA, DatabaseB (OSB client installed) .
    ZFS device - Shared storage where the FRA for DatabaseA belongs. All databaseA backups go here (currently databaseA is running in nonarchivelog mode).
    I have set the tape details for databaseA, done a backup to the FRA but the backup recovery area to tape backup just hangs, no real errors and the job list through the obtool and list the job it always has state as 'retryable', I am wondering if I have missed some configuration somewhere? I am using Grid control for this.
    I did have a couple of RMAN messages tried to resolve this as per some metalink notes to no avail, I am assuming this is causing the problem? Or am I missing something else?
    specification does not match any archived log in the repository
    specification does not match any datafile copy in the repository
    Can anyone help?

    Rest the times on the servers and now get the following errors:
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of backup command on ORA_SBT_TAPE_1 channel at 10/28/2011 16:22:55
    ORA-19506: failed to create sequential file, name="16mq8bjj_1_2", parms=""
    ORA-27028: skgfqcre: sbtbackup returned error
    ORA-19511: Error received from media manager layer, error text:
    shmcheck: obscheduled reports that job 'oracle/16.1' has terminated with status 'failed'.
    The action at time of failure was 'wait_for_resource'.
    The error message was 'unknown'.
    exit;

  • Pleaseprovide the script for the tape backup

    Hi All,
    I am a new to Oracle Apps DBA.Here, the client needs to take the full Tape backup of a Oracle Apps GL Server.
    Please help me in this regard.
    Thanks

    You should use CONFIGURE CHANNEL DEVICE TYPE sbt.
    Check Configuring SBT Channels for Use with a Media Manager for the full details.

  • Scripting for Windows Server Backup for Exchange 2010

    Hi,
    I'm new to writing scripts and was wondering if anyone could assist with writing a script to backup an Exchange Server in a windows 2008 r2 environment.  I currently use Windows Server Backup with a full VSS backup to run exchange backups, however,
    each backup overwrites the previous one, and i would really like to have multiple backups.  I would also like  to specify backup log locations, and have emails sent upon successful backups or failed backups.  I am trying to write this powershell
    but cant seem to get things to work.
    Thanks
    Debbian

    You can use PowerShell in conjunction with the Windows Backup command line utility, wbadmin.exe. The code below should help get you started. I have included the date in order to help maintain multiple back ups, but if you do more than one back up per day,
    you will need to change the date format to include the time. You cannot control the built in logging of Windows Backup, but you could collect your own backup information and write that out to a text file. As far as sending emails, look into the Send-MailMessage
    cmdlet including the -Attachment parameter that could send your log file with your mail message. Cheers.
    $Date = Get-Date -Format 'MM-dd-yyyy'
    $Path = "\\server\share\$Date"
    New-Item -Path $Path -ItemType Directory | Out-Null
    Start-Process wbadmin.exe -ArgumentList "start backup -backupTarget:$Path -allCritical -vssFull -quiet"

  • Win2000/NT hot backup script

    Can someone provide a basci script for online(hot) backup for Oracle9i(8i) on Windows2000/NT server? we have a online application, and plan to back it up every night.
    Also, Windows should have administrative tool to schedule the backup by envoking the script every night after we set it up, right?
    Many THANKS for your help!!!

    Hope this solves ur problem
    Run this script through SQLPLUS and it will ask you for the
    HOT_BACK_DIR and GEN_FILE values.
    HOT_BACK_DIR : defines the directory to which the hot backup is written
    SCRIPT_FILE : Hot Backup Script for your environment
    INT_PWD :Internal Password ( Needed for NT Only )
    Give me the Credit and never use it without askin me ;)
    ****************************** DO NOT DELETE*********************/
    define HOT_BACK_DIR = &1
    define SCRIPT_FILE = &2
    define INT_PWD = &3
    /* Create Temporary Table with Tablespace Data */
    drop table dsc_hot_stage;
    create table dsc_hot_stage
    tablespace_name varchar2(30),
    file_name varchar2(200)
    insert into dsc_hot_stage
    select rtrim(tablespace_name),rtrim(file_name) from sys.dba_data_files;
    /**** Set up the parameters for the spool file */
    set feedback off
    set heading off
    set pagesize 0
    set linesize 128
    set verify off
    set termout oN
    set echo off
    spool &SCRIPT_FILE
    select '/* ',
    '**** This is the hot backup script and has been generated',
    '**** by gen_hot_dos.sql.',
    '**** ' || to_char(sysdate, 'MM/DD/YYYY HH:MI:SS') ,
    '**** You are Allowed to Use this script freely as long '
    '**** as this title is not deleted
    '**** For more Scripts Visit DBASUPPORT.COM */'
    from dual;
    select 'connect internal/&3' from dual;
    -- Create Script to backup Control File to Trace
    select 'alter database backup controlfile to trace; '
    from dual;
    -- Create Script to backup actual files to a directory
    select 'alter tablespace '|| tablespace_name||' begin backup;' c1,
    'host ocopy80 '||file_name||' &HOT_BACK_DIR' || '\' ||
    substr(file_name,instr(rtrim(file_name),'\',-1,1)+1,length(rtrim(file_name)))||
    '.bak' c2
    from dsc_hot_stage
    union
    select 'alter tablespace '|| tablespace_name||' end backup;' c1,
    null c2,
    from dsc_hot_stage
    group by tablespace_name,file_name order by 1;
    select 'exit' from dual;
    spool off

  • Rman backup for rac by oem

    Br,Hi,
    DB : 10.2 and 11.2
    How to schedule rman backup for cluster  in OEM?How to schedule without OEM?
    If one of the node failed,Is it possible to  run in another node automatcially?
    How to schduel export/datadump in rac by oem?
    Br,
    Raj

    I Am not using oem, without oem you should write several scripts....
    for linux hot backup(archive log enabled):
    bck.sh
    set ORACLE_SID=mydb
    set ORACLE_HOME=....
    rman target sys/.... @'.../bck.ora'
    bck.ora
    run
    BACKUP AS COMPRESSED BACKUPSET FORMAT "..../db_%d_%T_%s_%p_%U.bak" INCREMENTAL LEVEL 0 DATABASE PLUS ARCHIVELOG DELETE INPUT FORMAT "...../archivelogBackup/arch_%d_%T_%s_%p_%U.bak";
    delete force noprompt obsolete redundancy 3;
    backup FORMAT '..../ctl_%d_%T_%s_%p_%U' current controlfile spfile;
    And create executable job which instance_id=1 and will run your bck.sh script and create schedule for this job, when first node will down you must change instance_id attribute to second one, and be sure that all backup paths exists in all nodes.
    Ramin Hashimzade

Maybe you are looking for

  • Book color and size on indb pdf

    Help needed please The problem started when my 8x10 abridged PB version arrived and the colors are way off with a strong magenta cast. I used CMYK just like before but THIS time I followed the printers instructions and didn't make any changes to the

  • Usage of joins & sub-queries

    can anyone help me know the situation when to use the joins and sub-queries manipulating with more than one tables???? which among the two is faster normally???? because we can do same process using both these options.....

  • Diff,  in IDOC;s features, changes and functionalities in 4.6c to ecc6

    <b>Hi Guru’s Will anyone share knowledge / experience about the new features, changes and functionalities of<u> IDOC's  which are available in ECC 6 version when compare to 4.6C version  </u>. Both technical and functional upgrade point of view Will

  • Can it be any slower?

    I have the E4200 on a Mac.  Wireless connection.  HughesNet Internet Service.  Just downloaded the latest firmware.  Internet Speed tests consistently show (over a couple of days): Download Speed = 1.31 (Highest!) Upload Speed = 0.21 (Again, highest

  • Photoshop and lenticular printing

    How do I know how many images do I need to use in photoshop if I am using a Canon printer with 9600 x 2400 dpi and the lens that I will be using is a 200 LPI lens? Which of the two resolutions should I use and why? Should I use dpi, lpi or ppi in ord