RMAN backup Scripts: Please Check and Advice

Dear All
We are now upgrading our database from 9iR2 to 10gR2.
Before this process we want a full database backup with RMAN with the following scrips. I also included our current database configuration.
So, dear all gurus please check this process if any thing goes wrong and give some valuable advice for better performance and other issue.
===========================================================
/data01          400GB
/data02      400GB
/data03          400GB
/idx04          400GB
Current Tablespace Used Size= 1700GB
Total Tablespace=31
Total File=295
Max File Size= 15GB
Avg File Size= 9GB
CPU_COUNT=4
Memory=32GB
sqlplus /nolog
conn /as sysdba
--configured database in archivelog mode.  Then
create user rman identified by pass default tablespace INDX tempprary tablespace temp;grant connect,resource,RECOVERY_CATALOG_OWNER to RMAN;
RMAN target rman/rman@dwh nocatalog
RMAN>configure channel device type disk maxpiecesize=64GB;
RMAN>configure channel device type disk maxsetsize=195GB;
RMAN>configure channel device type disk parallelism=4;
RMAN>run { 
allocate channel Channel1 type disk format '/data01/oracle/rman_backup/DWH_df_%s_%p_%c';
allocate channel Channel2 type disk format '/data02/oracle/rman_backup/DWH_df_%s_%p_%c';
allocate channel Channel3 type disk format '/data03/oracle/rman_backup/DWH_df_%s_%p_%c';
allocate channel Channel4 type disk format '/idx01/oracle/rman_backup/DWH_df_%s_%p_%c' ;
backup as compressed backupset database plus archivelog;
backup current controlfile format '/idx01/oracle/rman_backup/DWH_cf_%U.f';
backup spfiel format '/idx01/oracle/rman_backup/DWH_spf_%U.f';
release channel Channel1;
release channel Channel2;
release channel Channel3;
release channel Channel4;
===========================================================
Thanks & Regards
Quazi Abdur Rab

Try this ...
RUN {
RECOVER COPY OF DATABASE WITH TAG 'incr_backup' UNTIL TIME 'SYSDATE - 7';
BACKUP INCREMENTAL LEVEL 1 FOR RECOVER OF COPY WITH TAG 'incr_backup' DATABASE;
The RECOVER COPY... line will not do anything until the script has been running for more than 7 days. The BACKUP INCREMENTAL line will perform a complete backup (level 0) the first day it is run, with all subsequent backups being level 1 incremental backups. After 7 days, the RECOVER COPY... line will start to take effect, merging all incremental backups older than 7 days into the level 0 backup, effectively moving the level 0 backup forward. The effect of this is that you will permanently have a 7 day recovery window with a 7 day old level 0 backup and 6 level 1 incremental backups. Notice that the tag must be used to identify which incremental backups apply to which image copies

Similar Messages

  • RMAN Backup Script not running in cron tab

    Hi,
    I am having rman backup script which is being executed successfully through shell.
    but when scheduled in cron the script is being called but RMAN commands are not getting executed.
    i have scheduled cron using oracle user.
    Attached below the rman script for taking LEVEL 1 backup
    #! /bin/ksh
    DATE=`date +%Y-%m-%d`
    export ORACLE_SID=ACIDC
    export ORACLE_BASE='/home/app/oracle/product/10.2.0'
    PATH=$PATH:${ORACLE_HOME}/bin
    export PATH
    export ULIMIT=unlimited
    export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/network/lib
    export LIBPATH=$LD_LIBRARY_PATH:/usr/lib
    export TNS_ADMIN=$ORACLE_HOME/network/admin
    cd $ORACLE_HOME/bin
    rman TARGET= / << EOF > /oraclebkp/rmanlogs/ACIDC/$DATE.log
    backup incremental level 1 database;
    report obsolete;
    delete noprompt obsolete;
    exit;
    EOF
    exit 0
    Attached cron script
    SHELL=/bin/sh
    PATH=:/usr/ucb:/bin:/usr/bin
    10 17 * * 2 /oraclebkp/rmanscripts/rmandclvl1.sh 2>&1 >/oraclebkp/cronlogs/delobs.log
    Files delobs.log
    and oraclebkp/rmanlogs/ACIDC/$DATE.log are being created but with 0 bytes .
    Thanks in Advance
    HariPriya,

    rman TARGET= / << EOF > /oraclebkp/rmanlogs/ACIDC/$DATE.log Change this line to and try..
    $ORACLE_HOME/bin/rman TARGET= / << EOF > /oraclebkp/rmanlogs/ACIDC/$DATE.log

  • HT3702 My bank was charge me the following amount of USD 1. But i do not have any purchase of USD1. Please check and refund.

    My bank was charged me the following amount of USD 1. But i do not have any purchase of USD1. Please check and refund.

    We are fellow users here on these user-to-user forums, you're not talking to iTunes Support nor Apple.
    The HT3702 page that you posted from tells you what it is :
    As with many other merchants, the iTunes Store and Mac App Store places an authorization hold on your payment card account for the approximate amount of any purchase you make. If you update your billing information, the iTunes Store or Mac App Store will place an authorization hold on your payment card account, usually in the amount of 1 USD or the local currency equivalent, to verify your account information.
    Authorization holds are removed by your financial institution shortly after your purchase clears. The time it takes to remove authorization requests varies by financial institution.

  • HT1918 I can not buy money in the game "i am mt: card batte". please check and help me as soon as possible

    I can not buy money in the game "i am mt: card batte". please check and help me as soon as possible

    Most of the people on here, including myself, are fellow users - you are not talking to iTunes Support here.
    If you are getting a message to contact iTunes support then you can do so via this page and ask them for help : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption
    If it's a different problem ... ?

  • Need Advice on RMAN backup script

    Hi;
    Can any one advice if any error or guide to make RMAN backup proper :
    Backup Policy are:
    1.     0 level backup
    2.     current log file is arvhived before backing up
    3.     backup whole database (datafiles)
    4.     backup separate control file
    5.     backup is done on disk
    6.     control file auto backup ON
    7.     only 7 days archive log are need to be preserve ; old need to be deleted
    ### one time paramters seting
    RMAN> CONFIGURE DEFAULT DEVICE TYPE TO DISK;
    RMAN> CONFIGURE DEVICE TYPE DISK PARALLELISM 2;
    RMAN> CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO 'O:\rman\backup\Auto_Ctrl_weekly_%F';
    RMAN> CONFIGURE CONTROLFILE AUTOBACKUP ON;
    ### Command for weekly 0 level backup
    run {
    allocate channel c1 type disk;
    sql 'alter system archive log current';
    backup incremental level 0 tag = weekly_database format 'o:\rman\backup\full_weekly_%d_%s_%p_%t'(database);
    release channel c1;
    configure controlfile autobackup format for device type disk to 'o:\rman\backup\auto_ctrl_weekly_%f';
    allocate channel c1 type disk;
    backup tag = weekly_arch archivelog until time 'sysdate-7' format 'o:\rman\backup\archive_weekly_%d_%s_%p_%t';
    delete archivelog until time 'sysdate-7';
    release channel c1;
    Regards
    Smith

    Dear Pierre F.;
    Actually, I just added in my backup plan to have daily backup through RMAN, instead of COLD backup.
    I have planned to take cold backup once a week. here is the side of data:
    *** datafile 410
    *** size of database : 86 GM
    *** relog files size : 250MB
    *** daily archive logs are : 250MB * 4(number of files) = 1GM aprox.
    yes, time constraint is there; just because of the size of database. and we r going for 24/7
    Is this script going to run only one per week ?
    Ans: no I this was level 0 backup; i will take level 1 incremental backup with same script daily too.
    Do you have any other RMAN script ?
    ANS: no, I will modify same script for incremental.
    after local copy of backup all backup files (RMAN) will be copy over network to backup server or we can install LTO tape device to copy directly from database server.
    kindly advise me I am new in RMAN.
    regards;
    SMITH

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

  • RMAN backup to network share and local at the same time ?

    Hi all,
    is it possible to force rman to backup database into two different locations ? one location would be network drive, another local directory.
    I was trying to do it with this script:
    run
    allocate channel c1 type disk format '\\10.236.196.247\BACKUP\%U' maxpiecesize 2g;
    allocate channel c2 type disk format 'F:\data\flashback\db_recovery_area/%U' MAXPIECESIZE 2g;
    backup database;
    backup current controlfile;
    release channel c1;
    release channel c2;
    what I get is my backup is split between these two locations... unable to recover database from one of them.

    Hi,
    You can check the documentation: Multiple Copies of RMAN Backups ;-)
    When backing up datafiles, archived redo log files, server parameter files and control files into backup pieces, RMAN can duplex the backup set, producing up to four identical copies of each backup piece in the backup set on different backup destinations with one BACKUP command. (Note that duplexing is not supported for backup operations that produce image copies.)
    There are three ways to specify duplexing of backup sets when using the BACKUP command:
    Specify a default level of duplexing with CONFIGURE... BACKUP COPIESAll backup commands that back up data into backup sets will be affected if you use this option, unless you specify different duplexing options for a command using SET BACKUP COPIES or provide a COPIES option for the BACKUP command.
    Use SET BACKUP COPIES in a RUN block All commands in the RUN block will be affected, overriding any CONFIGURE... BACKUPCOPIES setting, except those where you provide a COPIES option as part of the BACKUP command.
    Provide a COPIES option to the BACKUP command For this specific BACKUP command, files will be duplexed to produce the number of copies you specify.
    Cheers
    Legatti

  • Cannot launch vivado simulator 2015.1: behav/compile.bat' script "Please check that the file has the correct 'read/write/execute' permissions"

    Hi,
    I'm trying to run a verilog simulation using the vivado simulator 2015.1 on Windows 7.
    I get the following error when I attempt to launch simulation:    
    ERROR: [USF-XSim-62] 'compile' step failed with error(s) while executing 'D:/projects/axi/axi_test_system/axi_test_system.sim/sim_1/behav/compile.bat' script. Please check that the file has the correct 'read/write/execute' permissions and the Tcl console output for any other possible errors or warnings.
    The tcl console repeats the same message, "Please check that the file has the correct 'read/write/execute' permissions"
    I cannot find any problem with the permissions.  I believe that windows will always execute a .bat file.   Within the same project, I can run elaboration, synthesis and implementation without problems. 
    Any idea why the simulation compile script won't run?
    Thanks,
    Ed

    Hi,
    Thanks very much for your detailed reply. These were the right questions based upon what I told you.   
    However, I took the code home last night and ran it on my webpack 2014.2 release.   It still failed, but I got completely different error messages.   These messages correctly pointed me to an undeclared signal in my testbench. Once fixed, the compile worked and the simulator launched. 
    This morning, I fixed the signal name in my 2015.1 setup, and it also compiled and launched correctly. 
    So, the problem wasn't actually related to file permissions.  It seems like the 2015.1 error message may be broken compared to 2014.2.  
    I was running the Vivado GUI, clicking on "Simulate > Run Behavioral Simulation"
    Thanks again for your help. 
    Regards,
    Ed  
      

  • Rman backup script suggestion

    Hi,
    I have script bellow. I want to run in one script on linux as shell script: how can i do that. i have very limited knowledge about it:
    setenv TNS_ADMIN "/location/network/admin"
    setenv ORACLE_HOME "/location/db1"
    setenv TWO_TASK "DB1"
    setenv ORACLE_SID "DB1"
    rman run {
    # Shutdown database for backups and put into MOUNT mode
    shutdown immediate
    startup mount
    # Allocate channel. Important: This must be done after
    # database has been mounted!!!
    allocate channel t1 DEVICE TYPE DISK FORMAT '/backuplocation/DB1RMAN/%U' ;
    # Perform full database backup
    backup Database format '/backuplocation/DB1RMAN/%d_FULL_%U.bck';
    # Open database after backup complete
    sql 'alter database open';
    sql 'ALTER DATABASE BACKUP CONTROLFILE TO TRACE';
    release channel t1;
    }

    user12020966 wrote:
    Hi,
    I have script bellow. I want to run in one script on linux as shell script: how can i do that. i have very limited knowledge about it:
    setenv TNS_ADMIN "/location/network/admin"
    setenv ORACLE_HOME "/location/db1"
    setenv TWO_TASK "DB1"
    setenv ORACLE_SID "DB1"
    rman run {
    # Shutdown database for backups and put into MOUNT mode
    shutdown immediate
    startup mountWhy the shutdown? are you running in norachivelog mode?
    # Allocate channel. Important: This must be done after
    # database has been mounted!!!
    allocate channel t1 DEVICE TYPE DISK FORMAT '/backuplocation/DB1RMAN/%U' ;Above not needed if you set it as part of the rman config:
    oracle> rman target /
    rman> CONFIGURE DEFAULT DEVICE TYPE TO DISK FORMAT '/backuplocation/DB1RMAN/%U';
    # Perform full database backup
    backup Database format '/backuplocation/DB1RMAN/%d_FULL_%U.bck';Your use of "format" is redundant with your channel allocation.
    # Open database after backup complete
    sql 'alter database open';
    sql 'ALTER DATABASE BACKUP CONTROLFILE TO TRACE';No need to shell out to sql. those commands are accepted directly by rman.
    RMAN> startup mount;
    connected to target database (not started)
    Oracle instance started
    database mounted
    Total System Global Area     285212672 bytes
    Fixed Size                     1267068 bytes
    Variable Size                146803332 bytes
    Database Buffers             134217728 bytes
    Redo Buffers                   2924544 bytes
    RMAN> alter database open;
    database opened
    RMAN>
    release channel t1;
    }I'd strongly suggest you go to amazon.com and look up the books on rman backup and recovery by Hart and Freeman. You are making waaay too much work for yourself.

  • Oracle 9i Rman backup script !!

    hi,
    We are taking rman backup level 0. While making this backup the backup size is very big i.e. let's suppose if DB size is some 100GB then backup size would be somewhere around 60-70 GB. I need to know , does anybody having any script which compresses the backup sets after they get generated during the backup i.e. lets suppose 10 backup sets get generated, what I need to know is when RMAN is generating lets say 2 backup can we compress 1st backupset and so on like when 3rd backup set is getting generated we compress the 2nd backupset and so on till 10th backup set.
    Let me know if anybody needs more information on this...I know it's a typical requirement :o))

    hello Hamir,
    what operating system are you working on
    after the backup you could call a routine in unix to gzip file_name
    or in windows to use winzip.
    however in 9i to restore the database you would then need to unzip the files first.
    what possibility do you have to upgrade to 10g, this has the ability to automatically compress the backup set from within RMAN.
    rgds
    alan

  • RMAN backup testing using networker and NMO

    I want to do some RMAN backup testing using networker 7.5 and NMO 5.0. I am doing these testing on VMware. I am not sure whether I need to buy some tape drive for my home PC to do backup testing or I can mimic hard drive as tape drive in VMWARE.
    Do you have any idea? any suggestion please?
    Thanks..

    I think this is not a RMAN/Oracle issue, as soon as you configure networker MML it's up to networker to define the real backup destination behind. Maybe networker has also a 'fake' tape destination,but I don't know this. There's a networker forum:
    http://www.tek-tips.com/threadminder.cfm?pid=480
    Werner

  • RMAN backup goes to filesystem and not to ASM diskgroup

    Hi,
    DB: 11.2.0.1
    OS: Linux
    Parameter configured in database:
    SQL> show parameter db_recovery_file_dest
    NAME TYPE VALUE
    db_recovery_file_dest string +BACKUP
    db_recovery_file_dest_size big integer 10184M
    If i execute the command " RMAN> backup database; " , then the backup ( backup pieces) is going to +BACKUP destination and this is as expected.
    But, if i execute the same command using script, then the backup pieces are going to filesystem(default location $ORACLE_HOME/dbs ).
    Could you suggest me(if i understood wrongly), why the backup pieces are going to the location of filesystem , and not to the ASM diskgroup ?.
    I want to take the backup to ASM diskgroup, because of less space at filesystem.
    The script i used is this:
    [oracle@rac1 rmanscripts]$ more online.sh
    export ORACLE_SID=test;
    export NLS_DATE_FORMAT='dd/mm/yy hh24:mi:ss';
    umask 022
    date
    rman target / cmdfile online.rcv msglog online.log
    [oracle@rac1 rmanscripts]$ more online.rcv
    run {
    backup
    full
    tag b_db_full_test
    filesperset 2
    format 'df_%d_%t_%s_%p'
    database include current controlfile;
    Thanks in advance,
    Regards,

    Hi mseberg,
    Thanks for your reply and the thing is that the controlfile autobackup is going to ASM diskgroup ( +BACKUP).
    Even after changing the suggested config, no luck to me.
    RMAN> show all;
    RMAN configuration parameters for database with db_unique_name TEST are:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 15 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 '+BACKUP';
    CONFIGURE DEVICE TYPE DISK PARALLELISM 3 BACKUP TYPE TO BACKUPSET;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    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 COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON ALL STANDBY;
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/home/oracle/app/oracle/product/11.2.0/dbhome_2/dbs/snapcf_test.f'; # default
    Backup piece destination info from log is here:
    channel ORA_DISK_2: finished piece 1 at 16/02/13 22:41:22
    piece handle=/home/oracle/app/oracle/product/11.2.0/dbhome_2/dbs/df_TEST_807575973_155_1 tag=B_DB_FULL_TEST comment=NONE
    channel ORA_DISK_2: backup set complete, elapsed time: 00:01:49
    Finished backup at 16/02/13 22:41:22
    Starting Control File and SPFILE Autobackup at 16/02/13 22:41:22
    piece handle=+BACKUP/test/autobackup/2013_02_16/s_807576082.342.807576083 comment=NONE
    Finished Control File and SPFILE Autobackup at 16/02/13 22:41:25
    I cannot understand why this is,
    Regards,

  • RMAN Backup Script Error

    Hi ,
    I am getting the following error when i am executing manbackup shell script.
    Message file RMAN<lang>.msb not found
    Verify that ORACLE_HOME is set properly
    RMAN Script
    DATE=`date +%Y%m%d.%H%M`
    #su - oracle
    #<<EOF
    export ORACLE_HOME=/home/app/oracle/product/10.2.0/db_1
    echo $ORACLE_HOME
    export PATH=$PATH:$ORACLE_HOME/bin
    #export PATH=$ORACLE_HOME/bin:$PATH
    export ORACLE_SID=ACILOC
    echo $ORACLE_SID
    rman cmdfile=/oraclebkp/rmanbackupscripts/rmanlevel0bkp.bck log=/oraclebkp/rmanbackupscripts/rmanACILOClev0$DATE.log
    export ORACLE_SID=ACIDC
    echo $ORACLE_SID
    rman cmdfile=/oraclebkp/rmanbackupscripts/rmanlevel0bkp.bck log=/oraclebkp/rmanbackupscripts/rmanACIDClev0$DATE.log
    #EOF
    level0bkp.bck
    connect target `/'
    run
    backup incremental level 0 database;
    but I am able to take RMAN backups by connecting as RMAN TARGET /
    Thanks in advance
    Priya

    connect target `/'Dont give / in quotations just connect as
    connect target /
    backup incremental level 0 database;
    }Thanks
    Close the threads as answered if helpful/correct.
    user11342455
    Handle: user11342455
    Status Level: Newbie
    Registered: Feb 18, 2010
    Total Posts: 22
    Total Questions:  10 (8 unresolved)
    Edited by: CKPT on Jan 5, 2011 12:17 PM

  • RMAN Backup Script Help

    Hi,
    We currently have an RMAN script that runs nightly to backup the database, including the archivelogs and purge. We are using flashback and would like to keep the archivelog available for 3 days.
    I changed this:
    backup check logical as compressed backupset archivelog all format '${RMAN_DIR}/%d_ARC_%Y%M%D_%s_%p'
    delete input;
    To this:
    backup check logical as compressed backupset archivelog until time 'sysdate-3' format '${RMAN_DIR}/%d_ARC_%Y%M%D_%s_%p'
    delete input;
    I changed "all" to "until time 'sysdate-3'" and want to confirm this before I do anything. Thanks.

    Kamran's video would clear you everything.
    I just want to add few quick steps from my side.
    Step1.Make sure RMAN is connected to the right target database and the recovery catalog.
    Then run the CREATE SCRIPT command, as shown in this example:
    CREATE SCRIPT full_bkup
    allocate channel ch1 type disk format '/backups/rman/%n%M%D%Y%s%U.bak' maxpiecesize 4G;
    sql 'alter system archive log current';
    sql 'alter system switch logfile';
    backup incremental level 0 tag=rman_10 filesperset=5 database include current controlfile;
    sql 'alter system archive log current';
    sql 'alter system switch logfile';
    release channel ch1;
    Step2.Create a shell script rman_bkup_10g.ksh as below and initiate execution of the above script from this shell script.
    rman target sys/sys-pwd@tgt-db-conn-str catalog rman/rman-pwd@rec-cat-conn-str
    run {execute script *full_bkup*;}
    exit
    Step3.Schedule the shell script rman_bkup_10g.ksh in crontab as below(The example shows,the shell script gets executed everyday at 05:30)
    30 05 * * * /path/to/script/rman_bkup_10g.ksh >> /path/to/log/rmanbkup.log
    You may please tailor the scripts as per your need.
    Edited by: bharathDBA on Aug 8, 2011 3:27 AM
    Edited by: bharathDBA on Aug 8, 2011 3:52 AM
    Edited by: bharathDBA on Aug 8, 2011 3:54 AM

  • Rman backup scripts

    Hi, I am inquiring as to how to create a job to run an rman script without using the Enterprise manager to schedule and create the job.
    Thanks
    James

    You are going to want to at least set the following RMAN parameters. You may need to set other depending on your environment.
    RETENTION POLICY
    CONTROLFILE AUTOBACKUP ON
    CONTROLFILE AUTOBACKUP FORMAT
    PARALLELISM
    CHANEL DEVICE TYP FORMAT
    SNAPSHOT CONTROLFILE NAME
    Below is an example of how I have these set on a test system. This from a 10g database
    RMAN> show all;
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 2;
    CONFIGURE BACKUP OPTIMIZATION OFF; # default
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/backup/ecmtst/%F';
    CONFIGURE DEVICE TYPE DISK PARALLELISM 3 BACKUP TYPE TO BACKUPSET;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/backup/ecmtst/%U';
    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 '/backup/ecmtst/snapcf_ecmtst1.f';
    RMAN>

Maybe you are looking for