RMAN Script query

Hi all

I use 11 GR 2 on Windows.

I created a work in the library of work. I use the script as follows:

RUN {backup incremental level 1 data base;
delete any backup archivelog entry;
allocate channels to remove disc type;
delete noprompt obsolete device type disk;
output channel;
};

However when I try to present and perform the task, it will fail with an "error writing entry command. Y at - it something wrong with my script I don't see what is applicable.

Thank you

Hello

allocate channel for delete type disk;

is not correct, you must use the same syntax as the one used at the beginning of your script.

But are you sure that you must manually allocate the channel? Most of the time, you can use the automatically assigned channel, which is easier.

Kind regards
Sylvie

Tags: Database

Similar Questions

  • Using the Scheduler to run the rman script directly stored in the recovery catalog

    Hi everyone, I usually automate my backups rman, using either cron or dbms_scheduler to call my stored in a sh file NIX rman scripts.  Everything works fine but anyone know how / if it is possible to call a stored in the recovery catalog rman script. Let's say I have create a script in the catalog:

    RMAN > create script showall

    Comment "just one example of demonstration."

    {

    VIEW ALL;

    }

    Can I use dbms_scheduler to call this script directly? If Yes, how and if not then how can we plan for this or a stored script stored in the rman catalog catalog.  Been looking all over the place, but everything seems to indicate leaving Oracle to call .sh or .bat file.

    Kind regards

    Dave

    Well, let us know the result.

    The link you supplied refers to 12 c Scheduler improvements it seems, it may not be applicable to lower versions of Oracle.

  • implement a RMAN script in a cron job with a cold way of database

    Hello

    I want to run the Rman script in a cron job. But my question is: is it possible to make a backup of cold with the editing of the database and change at the end of the backup?

    here my sample rman script

    #! / bin/ksh

    export ORACLE_SID = test

    ORACLE_HOME=/U01/app/Oracle/product/11.2.0/dbhome_1; Export ORACLE_HOME

    PATH = / usr/sbin: $PATH: $ORACLE_HOME/bin. export PATH

    ORACLE_HOME/bin/rman target = / < < EOF

    Run {}

    SQL! connect / as sysdba;

    SQL! stop immediately;

    SQL! Startup mount;

    allocate channels ch1 disc type

    disc format ' / u01/app/oracle/backup/full_%d_T%T_s%s_p%p'(database).

    backup database archivelog;

    remove obsolete;

    output channel ch1

    SQL! alter database open

    }

    "exit";

    EXPRESSIONS OF FOLKLORE

    Thank you

    Hello

    No problem, when you use the rman target / it to connect with the RMAN and RMAN fast turns. You can change your order something like that

    #! / bin/ksh

    export ORACLE_SID = test

    ORACLE_HOME=/U01/app/Oracle/product/11.2.0/dbhome_1; Export ORACLE_HOME

    PATH = / usr/sbin: $PATH: $ORACLE_HOME/bin. export PATH

    ORACLE_HOME/bin/rman target = /.<>

    Run {}

    stop immediately;

    bootable media;

    allocate channels ch1 disc type

    format ' / u01/app/oracle/backup/full_%d_T%T_s%s_p%p';

    backup database archivelog;

    remove obsolete;

    output channel ch1.

    ALTER database open;

    }

    "exit";

    EXPRESSIONS OF FOLKLORE

    HTH

  • Error in the configuration of RMAN script for physical Standby creation

    Version of database - Oracle Database 11g Enterprise Edition Release 11.2.0.1.0

    I do creating waiting using physics 'RMAN duplicate script.

    The standby db is in nomount State.

    But when you connect to the primary database of standby DB to run the RMAN script on the backup server, I get the below error: -.

    [oracle@manu ~] $ rman target sys/oracle@orcl auxiliary sys/oracle@ORCL_STBY path = duplicate.trc

    Recovery Manager: release 11.2.0.1.0 - Production on Fri Jan 18 13:13:11 2013

    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.

    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-00554: initialization of the package manager internal collection failed
    RMAN-04005: target database error:
    ORA-01031: insufficient privileges


    I checked a few password file is to say things as db and Eve tnsnames.ora and listener.ora primary in both primary and standby, everything seems perfect.

    Can someone help me find the real problem?

    All tips/ideas would be very appreciated

    Published by: 918868 on January 18, 2013 12:25 AM

    Published by: 918868 on January 18, 2013 12:27 AM

    Hello;

    I don't know I would use sqlplus to solve a problem of RMAN. At the end of the day, you still have to use RMAN to connect.

    You can debug by taking:

    rman target sys/oracle@orcl auxiliary sys/oracle@ORCL_STBY trace=duplicate.trc
    

    And then just try:

    rman target sys/oracle@orcl 
    

    Assuming this works, you can refine the RMAN connection problem.

    Connection string your RMAN:

    rman target sys/oracle@orcl auxiliary sys/oracle@ORCL_STBY trace=duplicate.trc
    

    Is different from the ones I use:

    rman target sys/password@PRIMARY auxiliary /
    
    OR
    
    rman target=sys/password@primary auxiliary=sys/password@standby
    

    In addition, you must have a static entry on the side of the day before, so you have something to connect to:

    Example of

    LISTENER =
        (DESCRIPTION_LIST =
          (DESCRIPTION =
            (ADDRESS = (PROTOCOL = TCP)(HOST = )(PORT = 1521))
          )
        )
    
    SID_LIST_LISTENER =
        (SID_LIST =
          (SID_DESC =
          (global_dbname = STANDBY_DGMGRL.hostname)
          (ORACLE_HOME = /u01/app/oracle/product/11.2.0.2)
          (sid_name = STANDBY)
          )
          (SID_DESC =
          (global_dbname = STANDBY.hostname)
          (ORACLE_HOME = /u01/app/oracle/product/11.2.0.2)
          (sid_name = STANDBY)
    )
    

    The listener must be restarted to see this entry.

    The tnsnames.ora will also the entries for two databases as both sides need to connect.

    Keys to success

    1. new Eve started NOMOUNT on new password file. (So the watch is a current master password renames and then the database started in NOMOUNT use it)
    2. hard coded listener on the new standby server.
    3 fix the tnsnames.ora files.
    4 fix the command duplicate.

    Best regards

    mseberg

  • RMAN SCRIPT TO CLEAR THE BACKUP ITEMS MORE THAN 2 DAYS...

    Hello

    I take a full backup of the DB using RMAN script. The script is as below:

    grc_backup
    {allocate channel ch1 type disc format ' / home/oragrc/GRCbkup/rman_bkp/data/%T_%c_%s_%f';}
    backup database;
    SQL ' ALTER SYSTEM
    ARCHIVE LOG CURRENT ';
    change archivelog than any overlap;
    ARCHIVELOG backup all the format ' / home/oragrc/GRCbkup/rman_bkp/Archive/%T_al_%U.bck';
    current backup controlfile as ' / home/oragrc/GRCbkup/rman_bkp/%T_cf_%U.bck';
    }


    This script is supposed to run on a daily basis via an OS script.

    The problem is on a daily basis after the backup that I have to delete the backups more than 2 days. For this I use an OS script that finds the backups more than 2 days to find the command and deletes it. This script also removes the archivelogs over 2 days.

    I just know that it is not advisable to delete RMAN backups and archived logs OS command when using RMAN.

    I figured out the following script, I have changed the script and instance names are different please find below

    CONFIGURE REDUNDANCY 2 RETENTION STRATEGY;
    Configure type disk parallelism 1 backup compressed backupset device type;

    run
    {
    allocate channel d1 type disk;
    backup filesperset 5 ' format / u06/backup/EBSDEV/EBSDEV_data_t%t_s%s_p%p' database;
    SQL 'alter system archive log current';
    format of backup filesperset 20 ' / u06/backup/EBSDV3/EBSDV3_arch_t%t_s%s_p%p' all entered archivelog delete;
    backup format ' / u06/backup/EBSDEV/EBSDEV_control%U' current controlfile;
    backup spfile format ' / u06/backup/EBSDEV/EBSDEV_spfile_%U';
    SQL 'alter controlfile backup trace database as "/tmp/control.trc" re-use";

    OVERLAP BACKUPSET;
    DELETE NOPROMPT OBSOLETE;
    DELETE THE EXPIRED NOPROMPT BACKUP;
    }
    list summary backupset;
    "exit";

    Can someone suggest me this AM I correct...

    Yes.

    Note: The OVERLAP should be OVERLAPPING BACKUP.

    Hemant K Collette

  • understanding the order of the commands in the RMAN script

    I just started working at a new job and prior s/n had left until I'm there. I'm looking at the RMAN script to back up the database of the single instance 11 GR 2 and I do not understand what is the need of two commands 'backup duplication "? Would it not be prudent to also have a command of "overlap of the archivelog backup all ' as well? In addition, what is the point of having the command "Restore database overview" in the daily backup script?


    run
    {
    cross-checking of backup;
    retrieve the copy of the database with the tag "ORA OEM_LVL1_ILANDB_PRIM$ ' until ' SYSDATE-1';
    backup incremental level 1 to retrieve the copy with the tag "ORA$ OEM_LVL1_ILANDB_PRIM" database more archivelog delete all entries;
    delete noprompt obsolete;
    Overview of database restore;
    cross-checking of backup;
    }

    Hello again;

    These jump out of me.

    CONFIGURE REDUNDANCY 1 RETENTION STRATEGY; (too low would set to minus 2 and would consider higher)
    CONFIGURE EXCLUDE THEM FOR TABLESPACE "WEBTASK_DATA"; (Consider removing unless you have good reasons for maintaining)
    CONFIGURE THE NONE ARCHIVELOG DELETION POLICY; (Review based on your configuration - for Data Guard may be different)

    STRATEGY OF RETENTION may be based on redundancy or a window of recovery. For redundancy, I like 2 or 3, for recovery window I like 7.

    Best regards

    mseberg

  • Exit RMAN script linux problem...

    Hi all

    I use 11.1.6.0 on linux centos... Here is the rman script (the name is rmanbackup.sh).

    RMAN target / < <-EOF
    SQL 'alter system archive log current';
    Run {}
    backup current controlfile;
    }
    output
    EXPRESSIONS OF FOLKLORE
    echo "complete script for rman backup.
    mkdir/home/oracle/backup_dir
    CP/home/oracle/backup_dir/home/oracle/backup_dir1

    When I run this, rman output script without executing the last orders 3 operating system.
    any help in this regard.

    Mseberg said, please try to score you questions answers, here's the answer:

    Add * #! / bin/ksh * in your script. also cp-r no cp

    [oracle@wissem ~]$ cat rmanbackup.sh
    #!/bin/ksh
    rman target / <<- EOF
    sql 'alter system archive log current';
    run {
    backup current controlfile;
    }
    exit
    EOF
    echo "script complete for rman backup"
    mkdir /home/oracle/backup_dir
    cp -r /home/oracle/backup_dir /home/oracle/backup_dir1
    
    [oracle@wissem ~]$ ./rmanbackup.sh 
    
    Recovery Manager: Release 11.2.0.1.0 - Production on Sun Aug 28 17:00:11 2011
    
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    
    connected to target database: ORAWISSE (DBID=3964208472)
    
    RMAN>
    using target database control file instead of recovery catalog
    sql statement: alter system archive log current
    
    RMAN> 2> 3>
    Starting backup at 28-AUG-11
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=149 device type=DISK
    channel ORA_DISK_1: starting full datafile backup set
    channel ORA_DISK_1: specifying datafile(s) in backup set
    including current control file in backup set
    channel ORA_DISK_1: starting piece 1 at 28-AUG-11
    channel ORA_DISK_1: finished piece 1 at 28-AUG-11
    piece handle=/home/oracle/app/oracle/flash_recovery_area/ORAWISSE/backupset/2011_08_28/o1_mf_ncnnf_TAG20110828T170014_75np001q_.bkp tag=TAG20110828T170014 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:02
    Finished backup at 28-AUG-11
    
    RMAN> 
    
    Recovery Manager complete.
    script complete for rman backup
    [oracle@wissem ~]$ ls -rtl /home/oracle/backup_dir
    total 0
    [oracle@wissem ~]$ ls -rtl /home/oracle/backup_dir1/
    total 4
    drwxr-xr-x 2 oracle oinstall 4096 Aug 28 17:00 backup_dir
    [oracle@wissem ~]$ ls -rtl /home/oracle/backup_dir1/backup_dir/
    total 0
    
    [oracle@wissem ~]$ 
    
  • RMAN &amp; Configuration of RMAN script

    Dear all,

    This is the first time I'm with RMAN. I just wanted to run the RMAN script depending on the configuration of RMAN in order to test, for what is, I need to do before running this script below:
    RMAN > run {}
    stop immediately;
    bootable media;
    backup database;
    ALTER database open;
    }
    This is my current configuration of RMAN
    RMAN > show all.
    Database with db_unique_name DP RMAN configuration parameters are:
    CONFIGURE REDUNDANCY 1 RETENTION STRATEGY; # by default
    CONFIGURE BACKUP OPTIMIZATION # by default
    SET UP DEFAULT DISK DEVICE TYPE; # by default
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO "%F" # by default
    SET UP THE DEVICE TYPE DISK PARALLELISM 1 BACKUP BACKUPSET TYPE; # by default
    CONFIGURE BACKUP OF DATA TO DISK FILE TYPE DEVICE TO 1; # by default
    CONFIGURE BACKUP ARCHIVELOG FOR DEVICE TYPE DISK TO 1; # by default
    CONFIGURE THE FORMAT OF DISC TYPE CHANNEL DEVICE "E:\RMAN\";
    CONFIGURE MAXSETSIZE TO UNLIMITED; # by default
    CONFIGURE ENCRYPTION OF DATABASE # by default
    CONFIGURE THE ENCRYPTION ALGORITHM "AES128"; # by default
    CONFIGURE COMPRESSION ALGORITHM 'BASIC' AND 'DEFAULT' LIBERATION OPTIMIZE FOR TRUE LOAD; # by default
    CONFIGURE THE NONE ARCHIVELOG DELETION POLICY; # by default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO ' E:\APP\10004\PRODUCT\11.2.0\DBHOME_1\DATABASE\SNCFDP. ORA'; by default #
    kindly advice me and give me a very clear study for this above settings

    Concerning
    HAMEED


    Once I execute this script I got this following error message:

    + RMAN > run {+
    + 2 > shutdown immediate; +
    + 3 > mountain boot; +
    + 4 > backup database; +
    + 5 > alter database open; +
    {+ 6 >}; +

    database closed
    dismounted database
    Instance Oracle to close

    connected to the database target (not started)
    Oracle instance started
    mounted database

    Total System Global Area 770019328 bytes

    Bytes of size 1374780 fixed
    301991364 variable size bytes
    461373440 of database buffers bytes
    Redo buffers 5279744 bytes

    From backup may 18, 11
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID = 134 type device = DISK
    channel ORA_DISK_1: starting full datafile from backup set
    channel ORA_DISK_1: specifying datafile (s) in the backup set
    Enter a file name 00006 = E:\APP\10004\ORADATA\DP\HAMEED01 = datafile number. DBF
    Enter a file name 00007 = E:\APP\10004\ORADATA\DP\ABDUL01 = datafile number. DBF
    Enter a number of file datafile = 00008 name = E:\APP\10004\ORADATA\DP\TEST01. DBF
    Enter a number of file datafile = 00001 name = E:\APP\10004\ORADATA\DP\SYSTEM01. DBF
    Enter a file name 00002 = E:\APP\10004\ORADATA\DP\SYSAUX01 = datafile number. DBF
    Enter a file 00005 name = E:\APP\10004\ORADATA\DP\EXAMPLE01 = datafile number. DBF
    Enter a number of file datafile = 00003 name = E:\APP\10004\ORADATA\DP\UNDOTBS01. DBF
    Enter a number of file datafile = 00004 name = E:\APP\10004\ORADATA\DP\USERS01. DBF
    channel ORA_DISK_1: starting piece 1 to 18 May 11
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03009: failure of the backup command on the channel ORA_DISK_1 to 2011-05-18 17:22:30
    ORA-19504: cannot create the file 'E:\RMAN\ '.
    ORA-27038: created file already exists
    OSD-04010: < create > option specified, the file already exists

    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-00558: error occurred during parsing of order entry

    Published by: hamza on May 18, 2011 04:59

    CONFIGURE THE FORMAT OF DISC TYPE CHANNEL DEVICE "E:\RMAN\";

    Let's not setting up your chain. You must therefore run as

    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT 'E:\RMAN\full_%U.bk';
    

    Then try again.

  • Cold backup RMAN script

    DB version: 10.2.0.4

    Can't you find something wrong in the below mentioned the cold backup RMAN script? Improvements, corrections?
    {
    shutdown immediate;
    startup mount;
    backup database including current controlfile tag='full_bkp';
    startup;
    crosscheck backup;
    delete noprompt obsolete device type disk;
    resync catalog;
    }

    Should work, but you can include more 'archivelog' in the backup statement in the case where your database is running in archivelog mode. It's also a good idea to make a backup of the trace of the controlfile using "sql" controlfile alter backup database to TRACE";"

  • Behavior of abnormal (Tag Date and place of automatic backup) RMAN script

    Hi all

    I have 11 GR 1 material running on Sun SOLARIS 10.

    The parameter default RMAN for backup of control file is on DISK (format: u02/oracle/backup/rman/control/%F.ctl)


    I have the RMAN script following (L0.rman):
    Run {}
    allocate channels ch1 type SBT_TAPE parms 'ENV=(TDPO_OPTFILE=/opt/tivoli/tsm/client/oracle/bin64/tdpo.opt) ';
    tag backup "${CURRENT_DATETIME}" additional 0 filesperset 3 format 'DB_%T_%U.dbf' database more archivelog;
    output channel ch1.
    }
    host ' cp /oracle/app/oracle/product/11.1.0/db_1/network/admin/tnsnames.ora/u02/oracle/backup/rman/$(echo $CURRENT_DATETIME) /';


    This is called by the following (L0.sh) script:
    #! / bin/bash
    CURRENT_DATETIME = "$(date + 20 %y %m %d %H %M)»;) export CURRENT_DATETIME
    export ORACLE_SID = EDWH
    export ORACLE_HOME=/oracle/app/oracle/product/11.1.0/db_1
    mkdir/u02/oracle/backup/rman/$(echo $CURRENT_DATETIME)
    RMAN nocatalog target / cmdfile = L0.rman log = L0_EDWH_$ CURRENT_DATETIME.log


    The anomalies are as follows:

    1. the backupsets are created with a literal tag "${CURRENT_DATETIME}" instead of "201010051915" - why?
    FYI, the command 'host' at the bottom of L0.rman successfully copies the file in the right directory (/ u02/oracle/backup/rman/201010051915 /).

    2. after the backup finishes, the automatic backup for the control and spfile is taken on SBT_TAPE instead of DISK - why?

    Any help will be appreciated.

    1. well, this $CURRENT_DATETIME is variable shell, RMAN does not interpret it (she can't and doesn't have to.) HOST calls the external commands by spawning the shell in non-interactive mode and when placing the order for her, and since you have exported the variable is available to all processes having engineered and develop properly, then files are copied in the expected location. If you remove the '; CURRENT_DATETIME export"from your shell script, you will see files copied in/u02/oracle/backup rman / / because the variable will not be in the environment of the layed shell (it will be local to the script) and will expand to the empty string. You must pass $CURRENT_DATETIME to the RMAN script as a variable substitution so that the shell expands it before calling RMAN, like this:

    L0. RMAN: {code}
    Run {}
    allocate channels ch1 type SBT_TAPE parms 'ENV=(TDPO_OPTFILE=/opt/tivoli/tsm/client/oracle/bin64/tdpo.opt) ';
    backup format tag & 1 extra strength 0 filesperset 3 'DB_%T_%U.dbf' database archivelog;
    output channel ch1.
    }
    host ' cp /oracle/app/oracle/product/11.1.0/db_1/network/admin/tnsnames.ora/u02/oracle/backup/rman / $ CURRENT_DATETIME /';
    {code}
    L0.sh: {code}
    #! / bin/bash
    CURRENT_DATETIME = "$(date + 20 %y %m %d %H %M)»;) export CURRENT_DATETIME
    export ORACLE_SID = EDWH
    export ORACLE_HOME=/oracle/app/oracle/product/11.1.0/db_1
    mkdir/u02/oracle/backup/rman / $ CURRENT_DATETIME
    RMAN nocatalog target / cmdfile = L0.rman using $CURRENT_DATETIME log = L0_EDWH_$ CURRENT_DATETIME.log
    {code}

    Note the * & 1 * variable substitution in the RMAN script and * using * keyword in the RMAN command line.

    2. control file record is taken to the same media, that the last backup, this is normal. You can't "CONFIGURE CONTROLFILE AUTOBACKUP ON the DISC" or something like that, you can only enable or disable it and specify format for various types of devices. Default device type does not play here, you are precisely the configured default device type substitution tape backup.

  • Plan rman script in Windows 2003

    Oracle 10.2. I wrote an rman script and tried to plan the autorun in Windows 2003 server. I got this error:

    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-00554: initialization of the package manager internal collection failed
    RMAN-04005: target database error:
    ORA-12560: TNS:protocol adapter error

    The package file name: rman_backup.bat
    content: rman target / cmdfile rman_backup.rcv log rman_backup.log

    Here's how I set up:
    go to control panel > scheduled tasks > add task scheduled, find rman_backup.bat, the timing of the execution and finish it. When you ask for username and password, I provide the user located in the oracle dba group.

    But when he run, he just produced the above error and will not work.

    Please notify

    S.



    in SQLnet.log

    fatal OR connect error 12560, connect to:
    (DESCRIPTION = (ADDRESS = (PROTOCOL = DOB (ARGV0 = oracleORCL))(PROGRAM=oracle) (ARGS = '(DESCRIPTION =(LOCAL=YES) (ADDRESS = (PROTOCOL = DOB)))')) (CONNECT_DATA = (SID = ORCL) (CID = (PROGRAM = D:\oracle\product\10.2.0\db_1\bin\rman.exe)(HOST=W3TY5Z203)(USER=WELC)))

    VERSION INFORMATION:
    AMT for 32-bit Windows: release 10.2.0.4.0 - Production
    Oracle bequeath Protocol adapter for 32-bit Windows NT: release 10.2.0.4.0 - Production
    Time: March 30, 2010 11:27
    Tracing not lit.
    AMT error struct:
    NS main err in code: 12560
    AMT-12560: TNS:protocol adapter error
    NS secondary err code: 0
    NT main err in code: 530
    AMT-00530: Protocol adapter error
    NT secondary err code: 2
    NT OS err code: 0

    ski123 wrote:
    No, I don't set up oracle_sid and oracle_home
    S.

    There is your problem. Any process that requires a connection to an oracle database must be able to tell what database, it wants to connect to. If you are on the same box that the database, which is done by setting the ORACLE_SID environment variable. And this oracle process (in your case rman, but it also applies to sqlplus on a remote client) needs to know where to find its own components, which is done by setting ORACLE_HOME.

  • RMAN script hangs up just to what Ctrl + c is used

    Hello

    We have this old 9.2.0.8 database using a 11.2.0.3 RMAN Repository. Chneched backups today, and the script just seems to be suspended:

    RMAN > @full_backup.rman

    RMAN > run
    2 > {}
    3 > backup database incremental level 0 more entered archivelog delete;
    4 > delete noprompt obsolete;
    {5 >}

    From 23 November 15 backup

    When I press on CTRL-C, this shows up:

    ^ C
    interruption of user received
    error occurred in the source file: krmk.pc, line: 7699
    text has no SQL statement: alter system archive log current
    Target ORACLE database error:
    ORA-01013: user has requested the cancellation of the current operation

    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid = 21 devtype = DISK
    specification does not match any newspaper archive in the recovery catalog
    Backup finished at 23 November 15

    From 23 November 15 backup
    using channel ORA_DISK_1
    channel ORA_DISK_1: 0 datafile backupset additional start-up
    channel ORA_DISK_1: specifying datafile (s) in backupset
    input datafile fno = name=/oradata/common/EK/PRE11_LBH_LOG_LB05SLG_IND_TS_1.DBS 00011

    As you can see, after the CTRL-C the backup starts. Any ideas? I see the SQL faling is 'alter system archive log current', but why? The alertlog gives this information:

    LUN 23 07:36:58 Nov 2015

    Arc1: Evaluating archive log 3 thread 1 sequence 6

    Arc1: Impossible to archive log 3 thread 1 sequence 6

    Newspapers archived by another process

    Concerning

    3

    Had this when bounching data base:

    ORA-00294: format specifier invalid archivelog 'r '.

    ALTER system set log_archive_format = 'arch_%t_%s.arc' scope is spfile;.

    And this has solved the problem!

    Concerning

    3

  • Hot backup RMAN script gives error in R12.

    Hi experts

    I m facing more prob when it is run the backup script. 1 day before the same script runs correctily, but now it gives me error in the rest of the command channel allocatioion runs correctly.

    [root@testerp rman_log] # cat UAT_daily_rman_hot_bkp_01-11 - 14_140301.log

    -bash: / root/.bash_profile: permission denied

    Recovery Manager: release 11.1.0.7.0 - Production on Sat Jan 11 14:03:01, 2014

    Copyright (c) 1982, 2007, Oracle.  All rights reserved.

    connected to target database: UAT (DBID = 2855851979)

    connected to the recovery catalog database

    RMAN > 2 > 3 > 4 > 5 > 6 > 7 > 8 > 9 > 10 > 11 > 12 >

    RMAN-00571: ===========================================================

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

    RMAN-00571: ===========================================================

    RMAN-00558: error occurred during parsing of order entry

    RMAN-01009: syntax error: found 'end-of-file': expected an of: "assign, modify, Advisor, backup, beginline, blockrecover, catalog, edit, copy, convert, duplication, configure, duplicate, debug, delete, execute, endinline, flashback, host, mount, open, plsql, recover, release, replicate, report, restoration, repair, resync}, together, setlimit, sql, switch, start, stop, send, display, transport, post.

    RMAN-01007: column 1 row 12 file: entry standard

    RMAN >

    RMAN >

    RMAN-00571: ===========================================================

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

    RMAN-00571: ===========================================================

    RMAN-00558: error occurred during parsing of order entry

    RMAN-01009: syntax error: found 'identifier': expected an of: 'for '.

    RMAN-01008: the bad ID was: c2

    RMAN-01007: in the file column 18 row 1: entry standard

    RMAN >

    RMAN-00571: ===========================================================

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

    RMAN-00571: ===========================================================

    RMAN-00558: error occurred during parsing of order entry

    RMAN-01009: syntax error: found 'identifier': expected an of: 'for '.

    RMAN-01008: the bad ID was: c3

    RMAN-01007: in the file column 18 row 1: entry standard

    RMAN >

    RMAN-00571: ===========================================================

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

    RMAN-00571: ===========================================================

    RMAN-00558: error occurred during parsing of order entry

    RMAN-01009: syntax error: found 'identifier': expected an of: 'for '.

    RMAN-01008: the bad ID was: c4

    RMAN-01007: in the file column 18 row 1: entry standard

    RMAN >

    From backup 11 January 14

    allocated channel: ORA_DISK_1

    channel ORA_DISK_1: SID = 362 type device = DISK

    channel ORA_DISK_1: backup set from incremental level 1 datafile

    channel ORA_DISK_1: specifying datafile (s) in the backup set

    Enter a number of file datafile = name=/d06/UAT/proddata/a_txn_data06.dbf 00021

    Enter a number of file datafile = name=/d06/UAT/db/apps_st/data/a_txn_data01.dbf 00392

    Enter a number of file datafile = 00401 name=/d06/UAT/db/apps_st/data/a_txn_data02.dbf

    Enter a number of file datafile = name=/d06/UAT/db/apps_st/data/a_txn_data03.dbf 00402

    Enter a number of file datafile = name=/d06/UAT/proddata/a_txn_data07.dbf 00022

    Enter a number of file datafile = name=/d06/UAT/db/apps_st/data/a_txn_data04.dbf 00014

    Enter a number of file datafile = name=/d06/UAT/proddata/a_txn_data05.dbf 00020

    Enter a number of file datafile = name=/d06/UAT/db/apps_st/data/sysaux01.dbf 00011

    Enter a number of file datafile = name=/d06/UAT/db/apps_st/data/sysaux02.dbf 00018

    Enter a number of file datafile = name=/d06/UAT/proddata/a_txn_data08.dbf 00023

    Enter a number of file datafile = name=/d06/UAT/db/apps_st/data/undo01.dbf 00379

    Enter a number of file datafile = name=/d06/UAT/proddata/sysaux03.dbf 00024

    Enter a number of file datafile = name=/d06/UAT/proddata/sysaux04.dbf 00025

    Enter a number of file datafile = name=/d06/UAT/proddata/a_txn_ind11.dbf 00033

    Enter a number of file datafile = name=/d06/UAT/proddata/a_txn_ind09.dbf 00029

    Enter a number of file datafile = name=/d06/UAT/proddata/a_txn_ind10.dbf 00030

    Enter a number of file datafile = name=/d06/UAT/db/apps_st/data/a_txn_ind06.dbf 00015

    Enter a number of file datafile = name=/d06/UAT/db/apps_st/data/a_txn_ind07.dbf 00026

    Enter a number of file datafile = name=/d06/UAT/db/apps_st/data/a_txn_ind08.dbf 00028

    Enter a number of file datafile = 00393 name=/d06/UAT/db/apps_st/data/a_txn_ind01.dbf

    Enter a number of file datafile = name=/d06/UAT/db/apps_st/data/a_txn_ind02.dbf 00403

    Enter a number of file datafile = name=/d06/UAT/db/apps_st/data/a_txn_ind03.dbf 00404

    Enter a number of file datafile = name=/d06/UAT/db/apps_st/data/a_txn_ind04.dbf 00405

    Enter a number of file datafile = name=/d06/UAT/db/apps_st/data/a_txn_ind05.dbf 00406

    Enter a number of file datafile = name=/d06/UAT/db/apps_st/data/a_media01.dbf 00400

    Enter a number of file datafile = name=/d06/UAT/db/apps_st/data/system08.dbf 00353

    Enter a number of file datafile = name=/d06/UAT/db/apps_st/data/system12.dbf 00013

    Enter a number of file datafile = 00352 name=/d06/UAT/db/apps_st/data/system09.dbf

    Enter a number of file datafile = name=/d06/UAT/db/apps_st/data/a_ref01.dbf 00394

    Enter a number of file datafile = name=/d06/UAT/db/apps_st/data/a_ref02.dbf 00407

    Enter a number of file datafile = name=/d06/UAT/db/apps_st/data/a_summ01.dbf 00396

    Enter a number of file datafile = 00395 name=/d06/UAT/db/apps_st/data/a_int01.dbf

    Enter a number of file datafile = name=/d06/UAT/db/apps_st/data/a_queue02.dbf 00008

    Enter a number of file datafile = name=/d06/UAT/db/apps_st/data/a_queue03.dbf 00027

    Enter a number of file datafile = name=/d06/UAT/db/apps_st/data/a_queue04.dbf 00031

    Enter a number of file datafile = name=/d06/UAT/db/apps_st/data/a_queue01.dbf 00399

    Enter a number of file datafile = 00001 name=/d06/UAT/db/apps_st/data/system01.dbf

    Enter a number of file datafile = name=/d06/UAT/db/apps_st/data/system02.dbf 00002

    Enter a number of file datafile = name=/d06/UAT/db/apps_st/data/system03.dbf 00003

    Enter a number of file datafile = name=/d06/UAT/db/apps_st/data/system04.dbf 00004

    Enter a number of file datafile = 00005 name=/d06/UAT/db/apps_st/data/system05.dbf

    Enter a number of file datafile = name=/d06/UAT/db/apps_st/data/a_archive01.dbf 00398

    Enter a number of file datafile = name=/d06/UAT/db/apps_st/data/system06.dbf 00295

    Enter a number of file datafile = 00351 name=/d06/UAT/db/apps_st/data/system07.dbf

    Enter a number of file datafile = 00354 name=/d06/UAT/db/apps_st/data/system11.dbf

    Enter a number of file datafile = 00288 name=/d06/UAT/db/apps_st/data/system10.dbf

    Enter a number of file datafile = name=/d06/UAT/db/apps_st/data/apps_ts_tools01.dbf 00012

    Enter a number of file datafile = name=/d06/UAT/db/apps_st/data/a_ref03.dbf 00016

    Enter a number of file datafile = name=/d06/UAT/db/apps_st/data/MLSEIGL01.dbf 00019

    Enter a number of file datafile = name=/d06/UAT/db/apps_st/data/RMAN01.dbf 00032

    Enter a number of file datafile = name=/d06/UAT/db/apps_st/data/a_nolog01.dbf 00397

    Enter a number of file datafile = 00314 name=/d06/UAT/db/apps_st/data/portal01.dbf

    Enter a number of file datafile = name=/d06/UAT/db/apps_st/data/a_int02.dbf 00017

    Enter a number of file datafile = name=/d06/UAT/db/apps_st/data/ctxd01.dbf 00006

    Enter a number of file datafile = name=/d06/UAT/db/apps_st/data/olap.dbf 00010

    Enter a number of file datafile = name=/d06/UAT/db/apps_st/data/odm.dbf 00009

    Enter a number of file datafile = name=/d06/UAT/db/apps_st/data/owad01.dbf 00007

    channel ORA_DISK_1: starting piece 1 to January 11, 14

    [root@testerp rman_log] #.

    ###########################################################################################################################


    backup script is below:

    in this script, it returns error only on the rest of allocaition to control backup channel all that operate manually or with a script it works correctly.4

    I m not able to find out why it returns the error distribution challnel 1 day before it works properly.


    [orauat@testerp rman_script] $ cat rman_backup.sh

    #! / bin/sh

    #############################################################################

    #ORACLE_SID = UAT

    #BACKUP_START_TIME ='date + "%y" "%m" "%d"_"hour" "%m" '%s' '

    #ORACLE_HOME=/d06/UAT/db/tech_st/11.1.0

    #PATH = $PATH: $(ORACLE_HOME): $(ORACLE_HOME) / bin

    #export ORACLE_SID

    #export ORACLE_HOME

    #export PATH

    /D06/UAT/DB/tech_st/11.1.0/bin/RMAN catalogue rman007/rman target sys/sysuat < < EOF

    run

    {

    allocate channels c1 device type disk format ' / d06/UAT/rman_hot_backup/Daily_backup%d_Arch_%c_%U';

    SQL 'alter system switch logfile;

    SQL 'alter system switch logfile;

    SQL 'alter system archive log current';

    remove expired archivelog all;

    overlap archivelog all;

    ARCHIVELOG backup all;

    delete noprompt archivelog all completed before ' sysdate-4' saved 1 time to disk. "

    allocate channel c2 device type disc format ' / d06/UAT/rman_hot_backup/Daily_backup%d_DB_%c_%U';

    allocate channels c3 device type disk format ' / d06/UAT/rman_hot_backup/Daily_backup%d_DB_%c_%U';

    allocate channel c4 device type disc format ' / d06/UAT/rman_hot_backup/Daily_backup%d_DB_%c_%U';

    database backup incremental level 1;

    remove the disc peripheral type of backup expired;

    remove the obsolete device type disk.

    output channel c1;

    output channel c2.

    output channel c3.

    output channel c4.

    }

    output

    EXPRESSIONS OF FOLKLORE


    concerning

    pritesh Rodriguez

    The %U in the FORMAT provides a Unique name.  You can take the backup (weekly) L0 and the (daily) L1 in the same folder OR in different folders - Oracle is not meet all the requirements on the record.

    Hemant K Collette

  • Required removal of archives RMAN script

    Hello

    I need a shell script that will delete archivelog with rman and the archivelog backup will have to specified location. DB 10gr 2 OS RHEL 5 686.

    ARCHIVELOG backup all to destination ' / oracle/oracle /. Arch_bkp /';
    delete archivelog until the ' sysdate-10';

    Kind regards

    Published by: person not May 24, 2012 01:40

    Maybe something like this:

    #! / bin/sh
    export ORACLE_SID =
    RMAN target / nocatalog log bkup_log.txt<>
    ARCHIVELOG backup all to destination ' / oracle/oracle /. Arch_bkp /';
    delete archivelog until the ' sysdate-10';
    output
    EXPRESSIONS OF FOLKLORE

  • RMAN script to the completely different site

    Hi experts,
    I have a project of migration with the following basic scenario:
    A1. Saturday 14:00, DB will be discontinued temporarily
    A2. FULL backup of the DB and until the end
    A3. copy the backupsets in the staging of file system on the 2nd site
    A4. Open DB production in READ ONLY mode to prevent the modification of the data, until the 2nd DB is ready
    A5. Restore the backup at 2nd site
    A6. Upgrade the 2nd DB restored 9iR2 at 11 GR 2 and redirect the 2nd DB apps

    Notes:
    -I do not use in this case RMAN catalog

    -* 1 site *.
    FULL and incremental backup location: /oracle_backup

    -* 2nd site *.
    FULL and incremental backup location: /staging_backup

    to reduce the amount of downtime, I have a plan to change the script like this:
    B1. before Saturday (let's say it's Friday-21:00), I'll take the full production DB Backup, copy backupsets and restore it on the 2nd site
    B2. and Saturday @2 pm, prod DB will be stopped and I'll take the backup archivelog backup and copy them into /staging_backup in 2nd site (I think it's much faster than the point A2)
    B3. OPEN READ ONLY in prod DB
    B4. Restore archivelog backup on 2nd site
    B5. Start the upgrade and redirect the apps to the new DB

    I see 3 problems here:
    1. since I'm using Oracle 9iR2 (9.2.0.8), I can't recataloguer my backupsets of staging of file system
    2. the 2nd site structure is completely different, that I know I can use the NEWNAME VALUE to set the new location. But my data files are over 100 s.
    3. once I restored from a full backup on Friday, how do point B4?

    Please advice :-)

    Thank you
    Yusata.

    Hello
    You say you start the lot for the next time:

    It's Friday 21:00

    So you should all archivelogs created from Friday 20:59:59 to go.

    What I need to copy archivelog on/d06/oradata/TOST/archive (in the 2nd site)?

    This is a correct option, that here the recovery command will automatically look for because it is the setting for the destination of the archive.
    (The other option would generate for the archivelogs backupsets and copy them to "/ staging_backup".)
    So, how "roll forward" as you said?

    RMAN
    connection target;
    recover the database;

    Kind regards
    Tycho

Maybe you are looking for