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

Tags: Database

Similar Questions

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

  • backup and restore gives error cannot find the file specified 0 x 80070002

    I'm trying to make a backup of the windows backup and Restore Center | I can't do what I get an error saying message cannot find the file specified 0 x 80070002. can someone give me an answer on how to fix this so I can do the same

    Thank you

    Hello

    You did changes to the computer before the show?

    Please follow the steps from the link below.

    http://support.Microsoft.com/kb/979281 (applies to Windows Vista)

  • Save the attachment script gives error "Mail has been a mistake: AppleEvent Manager has failed. ' number - 10000

    Hi all

    I'm completely ignorant when it comes to Apple Script and I'm trying to get this simple script to work. The purpose of the script is to save attachments in a folder named when I run on the Apple Mail messages via a rule.

    This is the code:

    Tell application "Mail".

    theMessages set of selection

    Repeat with thisMessage in theMessages

    the value of the theAttachments attached to a letter of thisMessage

    Repeat with thisAttachment in theAttachments

    the value theAttachmentFileName ((chemin d'accès àle texte riche de la règle de type dossier de départ) & ' treatment of the Documents record: Hazel ") & name of the thisAttachment

    Save thisAttachment in file theAttachmentFileName

    end repeat

    end repeat

    tell the end


    The folder does not exist, but I get a "error " Mail has been a mistake: AppleEvent Manager has failed. ' number - 10000 "when I run.

    The code in the Script Editor editor also inserts "type of rule" in my code, so I guess that my syntax is faulty.

    Any help would be greatly appreciated.

    Kind regards

    Beem

    If ' folder of treatment of Hazel ' already exists in the Documents folder, the following script of GUI, which seems to work perfectly under OS X 10.11.3, should do what you ask for:

    Try

    game of theDestinationFolder to ((path to the documents folder) as text) & "Hazel treatment record" as alias

    on error - file does not exist

    return Beep 3

    end try

    say application "Mail".

    activate

    the value theMessages to the selection

    Repeat with thisMessage in theMessages

    thisMessage Open

    say application 'System events' to say process "Mail".

    click on menu item "Save attachments...". " of 1 of the 'file' menu bar item menu of the menu bar 1

    Repeat until sheet 1 window 1 is

    end Repeat

    key sequence "o" using { control down,shift down}

    key sequence "Nutty".

    click on button 'Save' of the sheet 1 of window 1

    Repeat while sheet 1 window 1 is

    end Repeat

    key sequence 'w', using {control down} - close this message

    end say

    end Repeat

    end say

  • Apex 5.0 install the script gives error: ORA-02291 constraint (APEX_050000.SYS_C0013507)

    We used a script to install our applications in Apex 4.02. When you use this script with Apex 5.0, we get an error:

    [6399] ORA-02091: transaction cancelled

    [6400] ORA-02291: integrity constraint violation (APEX_050000.SYS_C0013507) - parent

    ALTER SESSION SET CURRENT_SCHEMA = &2;
    
    declare
       l_schema       varchar2(30) := upper('&1');
       l_workspace_id number;
       l_app_id       number;
    
    begin
       -- Get workspace ID for schema
       begin
          select workspace_id
            into l_workspace_id
            from apex_workspaces
           where workspace = l_schema;
       exception
          when no_data_found then
      
             -- Create workspace for schema
             apex_instance_admin.add_workspace(p_workspace_id => null, p_workspace => l_schema, p_primary_schema => l_schema, p_additional_schemas => null);
      
             -- Get ID for created workspace
             select workspace_id
               into l_workspace_id
               from apex_workspaces
              where workspace = l_schema;
       end;
    
       -- Put ID in install package
       apex_application_install.set_workspace_id(l_workspace_id);
    
       -- Get application ID.
       begin
          select application_id
            into l_app_id
            from apex_applications
           where workspace = l_schema;
    
          -- Set application ID in package
          apex_application_install.set_application_id(l_app_id);
    
       exception
          when no_data_found then
             -- No applicication create a new one
             apex_application_install.generate_application_id;
       end;
    
       -- Generate offset
       apex_application_install.generate_offset;
    
       -- Set schema and alias.
       apex_application_install.set_schema(l_schema);
       apex_application_install.set_application_alias(l_schema);
    
       l_app_id := apex_application_install.get_application_id;
       dbms_output.put_line('Applicatie installed with ID :' || l_app_id);
    end;
    /
    
    @..\apex\f127.sql
    
    

    The script starts promising:

    Applicatie installed with ID :100                                
    APPLICATION 127 - NedGraphics NedBrowser
    Set Credentials...
    Check Compatibility...
    API Last Extended:20130101
    Your Current Version:20130101 This import is compatible with version: 20100513
    COMPATIBLE (You should be able to run this import without issues.) Set Application ID...
    ...authorization schemes
    
    

    But in the end:

    .....scheme 39275367140332431
    ......scheme 47816685350333762
    ...plugins
    commit
    *
    ERROR at line 1:
    ORA-02091: transaction rolled back
    ORA-02291: integrity constraint (APEX_050000.SYS_C0013507) violated - parent
    key not found
    
    

    F127. SQL is exported from 4.02 Apex.
    Can manually import this application in the Apex 5.0 using the Apex development interface...

    Hi René,.

    the bug is not public. I already fixed it for 5.0.2.

    Kind regards

    Christian

  • Need help with RMAN archive destination error during hot backup

    Hello

    Oracle 8.0.6, Win 2000 Server.

    We take the cold daily backup as our backup strategy. We wanted to implement the backup hot. If one day, I turned on the log mode archive and set the directory to archive in F:\drive to store all archived generated. I took the backup and put the database in noarchive log mode. We continued with offline backup.

    After a few days, I wanted to test the hot backup again. I created the directory of the archive in E:\archive\ instead of F:\archive\. When I started the hot backup, all files have been copied except the archives.

    The error was:

    RMAN-03022: compilation command: sql
    RMAN-06162: SQL statement: alter system archive log current
    RMAN-03023: executing command: sql

    RMAN-03022: compilation command: backup
    RMAN-03026: recovery error release of channel resources
    RMAN-08031: output channel: c1
    RMAN-08031: output channel: c2
    RMAN-00569: = error message stack follows =.
    RMAN-03002: failure during the compilation of command
    RMAN-03013: type command: backup
    RMAN-06089: journal archived F:\ARCHIVE\ARCH1_0000327116.ARC not found or at odds with catalog

    Complete recovery manager.

    RMAN is looking for the destination of the journal archive old i.e. 'f:\archive\ '. I don't have the backup of the old archives of destination. I put the new destination to archive E:\archive\ in the initorcl.ora file, rman is always looking for destination F:\archive\.

    Please suggest what to do. How can I remove old information from archive of controlfile and say rman, look in the new archives destination i.e. E:\archive\

    Hello
    WOW 8.0.6.
    Maybe you can run a cross?

    change archivelog than any overlap;

    Update
    Found some docs online for 8.0
    http://download.Oracle.com/docs/CD/A58617_01/server.804/a58396/TOC.htm
    She does not mention the overlap.
    With the change command, you should be able to do the cleaning as well.
    If you have moved the archivelogs to the new location, you can use catalog according to the doc.
    Kind regards
    Tycho

    Edited by: tychos on mrt-27-2011 08:26

  • 7 backup fails and gives an error Ox81000037 (only 1 error message)

    I followed the remedy given in the answer to the problem ""7 backup fails and gives error Ox8007045D + Ox81000037 "without success."  That is to say, I disabled the protection for all readers, created a new restore point and then reactivated the drive. I checked that the drive I save uses the NTFS file system, and then run back to the top again.  I always get the message that the backup failed and the Ox81000037 error code.

    Help with this problem would be greatly appreciated.

    I had a similar problem also (Win 7 Pro) on the new installation.  But be careful with the installation of utilities backup/restore 3rd party as some suggest below.

    As others have said that your problem is probably due to the VSS (Volume Shadow Service) feature be corrupted.  I had MSE too but turn it off made no difference.

    In my case, it was because of software that included drivers for my motherboard.  There is a backup/restore utility which took control of the "false" Windows Restore and VSS feature & backup of MS of the system.

    Go to the system event log and sort through VSS.  Then search for errors on the VSS or the backup.  Is particularly important to look at the "Information" events that led to the error.  They are more revealing than the error itself real.  The error is misleading for me.  In any case, look in the Inbox details information for the process that was involved.  My bet is that you need a 3rd part/application that needs to be removed.

    I have fought with this problem for weeks and stumbled on the errant software.  I did not intentionally install it.  So look for software that could have been bundled with other applications or drivers.

    Good luck

    John

  • Incremental backup gives error on Standby Database.

    Dear all,

    I configured the RMAN scripts for full and incrementak on primary and standby.  Full backup for his works very well on both sides, I'm me following error on the database waiting for incremental backups.

    ORA-19648: datafile 1: incremental YVERT of start is equal to checkpoint YVERT

    ORA-19640: datafile checkpoint is YVERT 1150604773 11/03/2015 time 08:14:57

    Database version: 11.2.0.1.0

    Configured Active DataGuard.

    OS: RHEL - 5.5

    I also observed that when I cancel the MRP process (using command, below) and run the backup script incremental standby it works fine without error.

    (Alter basic managed recovery sleep cancel;)

    Please suggest for the resolution of it.

    Kind regards

    Ronak Masudi

    You primary and stanndby are synchronized. ? Since

    ORA-19640:

    DataFile checkpoint is SNA time string

    Cause: This message identifies the control point data file for a data file that was too old to take an incremental backup, or the target of a gradual restoration, which could not be applied.

    Action: See other error message.

  • 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

  • Hot backup maintained by users script? 11g (Unix) good measures?

    I'm looking for a script to hot backup maintained by users for GR 11, 2 under Unix. My client does not want to use RMAN.

    I think that the main steps are:

    -alter system switch logfile
    -change the system log archive current
    -alter database begin backup
    -alter database backup controlfile (and also the backup on the track)
    -copy the data files, archives, remake, controlfiles to another location
    -take the database out of hotbackup mode
    -J' have also capture spfile and other config files

    Recovery is just restore to the original location, at STARTUP and backup of the end.

    Basically, there may be cases where we have archives that have been made after the hotbackup we want to apply. In this case, it is RECOVER database with the HELP of BACKUP CONTROLFILE until CANCEL in order to apply the archives.

    His right?

    After you take the database out of Hot Backup, you must switch logfile (preferably several times) and backup generated archivelogs.
    You can back up archivelogs while the database is in backup mode but you must also back up the first archivelog (s) after the backup of the end.

    Hemant K Collette

    PS: Oracle provides documentation.
    http://download.Oracle.com/docs/CD/E11882_01/backup.112/e10642/part_umb.htm#BEHBHCBA

    Hemant K Collette

  • 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

  • RMAN backup shell script

    Hello
    on 10 G R2 in AIX 6.1

    I'm looking for an RMAN backup Shell script.

    In addition, if we should connect like this:
    rman nocatalog target sys/password@myDB << EOF
    backup as compressed backupset format '$savdir/ctl_%d_%T_%s_%p' current controlfile;
    exit
    EOF
    How to avoid writing the password in shell script?

    Thank you.

    There is a standard 'backup' option in the control of the database.
    You don't need any shell script and you're wasting your time by establishing a.

    -------
    Sybrand Bakker
    Senior Oracle DBA

  • How to create the file controlf from scratch when there is no backup rman, catalog, or trace.

    Hello

    I am a beginner, I know that we can restore with RMAN control file configure automatic backup feature or by connecting the catalog

    charge the Alter database backup controlfile to trace.

    But suppose that there is no backup. You have the database running in nomount. I came across a blog which was responsible for creating the control file manually and when there is no planned block number error came, the blogger has used the forumale something as expected number of block * 1024 / something. Lost the link to this blog

    was wondering is it possible to create a controlfile from scratch. with little information as the location of the data file, repeat the log size / location.

    Please can someone let me know it in detail or shoot me this link!

    Thank you

    2638616 wrote:

    Hello

    I am a beginner, I know that we can restore with RMAN control file configure automatic backup feature or by connecting the catalog

    charge the Alter database backup controlfile to trace.

    But suppose that there is no backup. You have the database running in nomount. I came across a blog which was responsible for creating the control file manually and when there is no planned block number error came, the blogger has used the forumale something as expected number of block * 1024 / something. Lost the link to this blog

    was wondering is it possible to create a controlfile from scratch. with little information as the location of the data file, repeat the log size / location.

    Please can someone let me know it in detail or shoot me this link!

    Thank you

    1. Yes, you can do this

    2 Controlfile script is standard... link doc oracle: http://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_5003.htm

    3. prepare with the location of the data files and of redologs online then create it.

    Note - If you have placed the name of the different database, then, it will check with datafile and it give error (if you need correct the name of the database)

    As you have not indicated whether or not the last stop of database is compatible (we assume that there are his uniform and mandatory ORL and archives)

    -Pavan Kumar N

  • RMAN-01005: syntax error:

    Hi all

    I have a backup script as below
    RUN {
    ALLOCATE CHANNEL ch00 TYPE DISK FORMAT 'E:\BACKUP\rmanbackup\db\%d_DB_%u_%s_%p';
    ####crosscheck backup;
    backup
    filesperset 4
    INCREMENTAL LEVEL 0 AS COMPRESSED BACKUPSET database include current controlfile;
    sql "alter system archive log current";
    release channel ch00;
    ALLOCATE CHANNEL CH01 TYPE DISK FORMAT 'E:\BACKUP\rmanbackup\ar\al_%U';
    backup
    filesperset 4
    AS COMPRESSED BACKUPSET archivelog all delete input;
    restore database validate;
    delete noprompt archivelog until time 'SYSDATE-1';
    ###delete backup completed before 'sysdate-1';
    delete obsolete device type disk;
    RELEASE CHANNEL CH01;
    }
    It gives the following error
    RMAN-06091: no channel allocated for maintenance (of an appropriate type)
    I have search the Internet and find the following command
     allocate channel for maintenance type disk;
    delete obsolete device type disk;
    but it gives the following error
    RMAN-00558: error encountered while parsing input commands
    RMAN-01005: syntax error: found "for": expecting one of: "channel_id, double-quoted-string, equal, identifier, single-quoted-string"
    I think my rman is not recognize the command.
    my version of oracle's
    Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Prod
    PL/SQL Release 10.1.0.2.0 - Production
    CORE    10.1.0.2.0      Production
    TNS for 32-bit Windows: Version 10.1.0.2.0 - Production
    NLSRTL Version 10.1.0.2.0 - Production
    Kindly help.

    "ALLOCATE CHANNEL FOR MAINTENANCE" should not be used as a block RUN

Maybe you are looking for

  • Hello from Firefox can be used for three or more way call or is it only from person to person?

    Hello from Firefox can be used for three or more way call or is it only from person to person?

  • Problem syncing Itunes-Iphone 6

    I try to transfer all of the apps on my iPhone to iTunes 6 but can't manage it. On the file menu, I click on «Synchronize all applications on iPhone» I do a normal synchronization, it transfers the pictures, music, but not applications. There are onl

  • Qosmio F750: What 3D games works / is playable?

    Now that Toshiba has finally allowed support for 3D games, what games are really playable with the Integrated GPU? So far, I've tested a few and here are my results: Batman: Arkham Asylum - playableStreetfighter 5 - playableHeroes of Might and Magic

  • How can I access my e-mail account to hotmail.

    Access hotmail When I went to my hotmail account after having been a way for 3 weeks, the name he had wasn't the path, I've used since I began. When I finally got to a login screen it won't take my password and/or a proper name. My login information

  • Windows Media Player 12

    Hello! WMP 12 always begins with the first song in my library when I press play. I would like to start playing songs randomly or to pick up where I stopped changed. I activated the random function. Thanks for help.