RMAN backup error

Hello

I get an error when you try to run an Oracle database backup using a windows batch file that calls a settings file to execute RMAN commands. This is handled by the windows scheduler.

It's been in place for several months and worked fine until today.

Oracle Version - 11G 11.2.0.2.0

OS - Windows server 2008 R2

* Note *-I have changed for security reasons password and company information.

Here are the contents of the batch file:

echo: [email protected] > > \\CCCODS09\c$\Support\DB_Backup\Max.log

echo to: [email protected] > > \\CCCODS09\c$\Support\DB_Backup\Max.log

Echo subject: Max Backup log > > \\CCCODS09\c$\Support\DB_Backup\Max.log

RMAN @\\CCCODS09\c$\Support\DB_Backup\Max.txt > > \\CCCODS09\c$\Support\DB_Backup\Max.log

copy \\CCCODS09\c$\Support\DB_Backup\Max.log \\ccvmds51\c$\inetpub\mailroot\Pickup\email.txt

del \\CCCODS09\c$\Support\DB_Backup\Max.log

Here is the content of the Max.txt settings file:

connect sys/password@maxof target;

Run {}

backup as compressed backupset actual additional database tag 0 = = "format='\\cccobu02\oracle\cccods09\Max\%T_Max-HOT-BACKUP-OF-FULL-DATABASE-AND-LOGS-DATAFILE-%U.BKP';

backup as compressed backupset archivelog all delete tag all input = "format='\\cccobu02\oracle\cccods09\Max\%T_Max-HOT-BACKUP-OF-FULL-DATABASE-AND-LOGS-LOGFILE-%U.BKP';

backup as compressed backupset current controlfile tag = "format='\\cccobu02\oracle\cccods09\Max\%T_Max-HOT-BACKUP-OF-FULL-DATABASE-AND-LOGS-CONTROLFILE-%U.BKP";

}

"exit";

And here is the log file:

Recovery Manager: release 11.2.0.2.0 - Production on Mon Nov 17 05:30 2014

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

RMAN > Connect target *.

2 > run {}

3>           = backup as compressed backupset actual additional database tag 0 = "format='\\cccobu02\oracle\cccods09\Max\%T_Max-HOT-BACKUP-OF-FULL-DATABASE-AND-LOGS-DATAFILE-%U.BKP';

4>           backup as compressed backupset archivelog all delete tag all input = "format='\\cccobu02\oracle\cccods09\Max\%T_Max-HOT-BACKUP-OF-FULL-DATABASE-AND-LOGS-LOGFILE-%U.BKP';

5>           as a compressed backupset backup current controlfile tag = "format='\\cccobu02\oracle\cccods09\Max\%T_Max-HOT-BACKUP-OF-FULL-DATABASE-AND-LOGS-CONTROLFILE-%U.BKP ';

{6 >}

7 > exit;

connected to target database: MAX (DBID = 1234567890)

From backup 17 November 14

DBGSQL: TARGET > select nvl (max (al.recid), '0'), nvl (max (al.recid), 0) in : txtparmvalue,: parmvalue of al v$ archived_log where in al.status ('X', 'A') and al.is_recovery_dest_file = 'YES' and al.creator = "RMAN"

DBGSQL: SQLCODE = 1008

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

RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

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

RMAN-03002: failure of the backup at 17/11/2014 05:30:16 command

RMAN-03014: implicit recovery catalog Resync failed

ORA-01008: not all variables

Complete recovery manager.

If you need more information please let me know.

Any help to fix this would be appreciated.

Thank you

Hello

This is considered to be a bug for 11.2.0.2 version.

Please see this document of MOS

ORA-01008: RMAN backup does not work with assorted errors 11.2.0.2 If cursor sharing is turned on (Doc ID 1472116.1)

Kind regards

Shivananda

Tags: Database

Similar Questions

  • RMAN backup error; already saved 1 time, backup finished with errors

    Hi DBAs,

    I get error below after each backup to the production DB (Oracle 10.2.0.5)

    skip the log file archive + DATA_FRA/zeus/archivelog/2014_06_23/thread_1_seq_25321.3279.850962321; already saved 1 time

    skip the log file archive + DATA_FRA/zeus/archivelog/2014_06_23/thread_1_seq_25322.3265.850962439; already saved 1 time

    skip the log file archive + DATA_FRA/zeus/archivelog/2014_06_23/thread_1_seq_25323.3194.850963433; already saved 1 time

    skip the log file archive + DATA_FRA/zeus/archivelog/2014_06_23/thread_1_seq_25324.3206.850963501; already saved 1 time

    ...

    ..

    ..

    .

    Complete recovery manager.

    List of backup completed successfully

    = Thu Jun 26 07:38:33 IST completed 2014 list backups - complete set =.

    = Finished Thu Jun 26 07:38:33 IST 2014 =.

    Backup completed with errors

    A way to avoid this error daily and a way to remove the already saved up to archive newspapers 1 time?

    Kind regards

    Ritu

    This is not an error but an informational message.  The error comes from RMAN or one of your scripts?

    Are there other RMAN - or ORA-errors in your log file?

    Check your backup optimization, which can be turned on in which case it will not backup the archivelog again.

    You can use one of the two commands to remove the archivelogs that have been backed up.

    backup archivelog all not backed up delete input;
    delete archivelog all backed up 1 times to device type sbt;
    
  • Error of RMAN backup full

    Hi all

    I take a daily ful backup DB backup directly on the Strip.

    Due to a problem yesterday I deleted 2 days old files to archive my server.
    Today, I got following error message in my log RMAN backup.

    I'm surprised, how is it, RMAN are looking for an old file to archive, when I take a full backup.

    Can someone answer me above concern

    My version of DB is 11.2.0.3
    OPERATING SYSTEM: AIX 6.1

    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of the backup command to the 2013/05/29 04:28:54
    RMAN-06059: expected found archived newspaper, loss of archived newspaper compromised recoverability
    ORA-19625: error identification of file /prdarch/prdarch1/PALLMO_83504_696657779.arc
    ORA-27037: unable to get file status
    IBM AIX RISC System/6000 error: 2: a file or a directory in the path name does not exist.
    Additional information: 3

    The script that is used for the backup:
    run
    {
    allocate channel t1 type 'sbt_tape' parms 'ENV=(TDPO_OPTFILE=/usr/tivoli/tsm/client/oracle/bin64/tdpo.opt) ';
    SQL 'alter system archive log current';
    overlap archivelog all;
    backup
    filesperset 5
    (database) format "df_ % %%p s_ t_";
    SQL 'alter system archive log current';
    ARCHIVELOG backup all the format "af_ % %%p s_ t_";
    output channel t1;
    }


    Thanks in advnace

    any backup archivelog

    The BACKUP ARCHIVELOG command is independent of the BACKUP DATABASE command.
    This command waits all archivelogs known are available and can be backed up. In fact, your backup logs should show the same old archivelogs (most recent) being backed up every day!

    If you use non-RMAN commands to purge the archivelogs, RMAN knows not the archivelogs aren't available. He'll wait although they are present. You must run

    CROSSCHECK ARCHIVELOG ALL;
    DELETE EXPIRED ARCHIVELOG ALL;
    

    for RMAN to identify them as having been purged and remove them from its "list of the archivelogs expected."

    If you simply, have BACKUP ARCHIVELOG ALL and not to operate the ARCHIVELOG DELETE of RMAN, how do you maintain the archivelog file system space?

    How long have you been running this backup script? How were you purge archivelogs earlier?

    Hemant K Collette

  • RMAN throwing errors during backup Tablespace - RMAN-06004 and RMAN-06019

    Hi all.


    Please, help me difficulty trail of the error message I get when trying to backup to a tablespace that is newly added in the database. I'm with RMAN as a method of recovery.

    Tablespace name: test
    Version of DB: Oracle 10g R1.
    OS: Red Hat Linux 5




    RMAN > outline report;

    Report of the database schema

    List of permanent data files
    ===========================
    Size (MB) Tablespace RB segs Datafile file name
    ---- -------- -------------------- ------- ------------------------
    1 490 SYSTEM YES /u01/app/oracle/oradata/qrcl/system01.dbf
    2 25 UNDOTBS1 /u01/app/oracle/oradata/qrcl/undotbs01.dbf YES
    SYSAUX 3 270 NO /u01/app/oracle/oradata/qrcl/sysaux01.dbf
    4 23 USERS NO /u01/app/oracle/oradata/qrcl/users01.dbf
    5 40 TEST NO /u01/app/test01.dbf

    List of temporary files
    =======================
    File Size (MB) (MB) Maxsize Tempfile Tablespace name
    ---- -------- -------------------- ----------- --------------------
    1 20 TEMP /u01/app/oracle/oradata/qrcl/temp01.dbf 32767

    RMAN >





    RMAN > backup tablespace 'test '.

    From 22 August 12 backup
    using channel ORA_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of the backup command to 22/08/2012 11:57:13
    RMAN-06004: error ORACLE recovery catalog database: RMAN-20202: tablespace not found in the recovery catalog
    RMAN-06019: could not translate tablespace name 'test '.

    RMAN > restore tablespace test;

    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-00558: error occurred during parsing of order entry
    RMAN-01009: syntax error: found 'test': expected an a: 'double-quoted-string, identifier, single-quoted-string '.
    RMAN-01007: in the file column 20 line 1: entry standard



    I tried to update the catalog server but still no luck:

    RMAN > RESYNC CATALOG;

    from full resynchronization of the recovery catalog
    full complete Resync


    Please help.




    Thank you
    Prashant Dixit

    Prashant;

    I took the time to demonstrate using a tablespace that was NOT a reserved word in the hope that you would see how bad idea using a reserved word is.

    A tablespace is a logical structure and it can be almost any other name.

    Why create this problem yourself when there are simple alternatives?

    Time is the most precious thing in my life and I don't know that it's in yours also.

    Please consider using another name of the tablespace.

    ALTER TABLESPACE TEST RENAME OTEST;

    There is no sense, make things more complex, then they already are.

    If this is really not an option then:

    RMAN> backup tablespace "TEST";
    
    Starting backup at 22-AUG-12
    starting full resync of recovery catalog
    full resync complete
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=88 device type=DISK
    channel ORA_DISK_1: starting full datafile backup set
    channel ORA_DISK_1: specifying datafile(s) in backup set
    input datafile file number=00008 name=/u01/oradata/RECOVER2/test05.dbf
    channel ORA_DISK_1: starting piece 1 at 22-AUG-12
    channel ORA_DISK_1: finished piece 1 at 22-AUG-12
    piece handle=/u01/app/oracle/flash_recovery_area/RECOVER2/backupset/2012_08_22/o1_mf_nnndf_TAG20120822T152734_83bj5pt3_.bkp tag=TAG20120822T152734 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
    Finished backup at 22-AUG-12
    
    Starting Control File and SPFILE Autobackup at 22-AUG-12
    piece handle=/u01/app/oracle/flash_recovery_area/RECOVER2/autobackup/2012_08_22/o1_mf_s_791998056_83bj5rpq_.bkp comment=NONE
    Finished Control File and SPFILE Autobackup at 22-AUG-12
    

    Best regards

    mseberg

    Published by: mseberg on August 22, 2012 15:27

  • backup RMAN-06059 error

    Hello

    I get this error when running the backup. The o1_mf_1_74429_7kwmykb0_.arc file exists in the backend and relief. What is the problem?

    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of the backup command to 27/01/2012 15:07:07
    RMAN-06059: journal archived expected not found, lost of archived newspaper compromised recoverability
    ORA-19625: error identification of file /orafra/PRODSTB/archivelog/2012_01_24/o1_mf_1_74429_7kwmykb0_.arc
    ORA-27037: unable to get file status
    Linux-x86_64 error: 2: no such file or directory
    Additional information: 3

    Looks like your rman session is confused as to what he does then. I suggest to read this doc:

    http://docs.Oracle.com/CD/B28359_01/server.111/b28294/RMAN.htm#BAJEDHFB

    RMAN catalog use DB_UNIQUE_NAME with to differentiate DR envs, but I don't know how your env is set up, so, I guess right here. Aren't you offer a lot to solve this, but I think you probably have everything you need to understand this. Read about it, read the guides RMAN and DG.

    We have access to your data, so if you want to help you will need to allow us to see what you're doing.

    Good luck, you can do it completely.

  • ERROR during RMAN backups

    channel ORA_DISK_1: starting piece 1 to August 8, 11
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03009: failure of the backup command on the channel ORA_DISK_1 at 08-08-2011 21:01
    : 49
    ORA-19502: write error on file ' / home/oracle/backups/df_t758667603_s13834_p1, "
    blockno 334721 (blocksize = 8192)
    ORA-27063: skgfospo: number of bytes read or written is incorrect
    Additional information: 172032
    Additional information: 1048576


    What does that mean?

    878226 wrote:
    channel ORA_DISK_1: starting piece 1 to August 8, 11
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03009: failure of the backup command on the channel ORA_DISK_1 at 08-08-2011 21:01
    : 49
    ORA-19502: write error on file ' / home/oracle/backups/df_t758667603_s13834_p1, "
    blockno 334721 (blocksize = 8192)
    ORA-27063: skgfospo: number of bytes read or written is incorrect
    Additional information: 172032
    Additional information: 1048576

    What does that mean?

    It seems that you don't have enough space to ' home/oracle/backups /' directory

  • Error in the creation of the database of hot RMAN backup

    Hello

    I created the database at the time of the installation of Oracle software. Name AAA
    Now I took hot RMAN backup of database and after the fall of database.

    Now I want to restore the database again, but I am facing a problem.

    as: if I want to connect RMAN, $rman target / it gives error

    Recovery Manager: Release 10.2.0.1.0 - Production on Tue may 24 15:29:17 2011

    Copyright (c) 1982, 2005, Oracle. 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-12560: TNS:protocol adapter error

    Please help to get me out of this problem.


    Regs,
    Brij

    See this topic and say if this can help

    http://forums.Oracle.com/forums/thread.jspa?threadID=2190328&TSTART=90

  • RMAN-20260 error trying to delete a backup piece

    Hello

    In my company, we use Oracle 10 g, managed by RMAN and integrated with TSM backup.
    In order to remove old backup files, there is a removal script to do this.

    Basically this script:

    connect to the RMAN catalog
    allocate channel for maintenance device 'sbt_tape '.
    Change Remove backuppiece < names of files of more than 35 days rc_backup_piece >;

    When this command is executed, this error is generated:

    RMAN-03002: failure of the command to delete at 18/01/2010 17:14
    RMAN-06004: error ORACLE recovery catalog database: RMAN-20260: element not found in the Recovery Catalog backup
    RMAN-06092: error while up the backup piece

    Any ideas?

    Thanks in advance.
    Iron

    Hi iron,

    What I've noticed is that in the file log of alerts is an ALTER DATABASE OPEN RESETLOGS on 2 January 10.

    Any idea who executed the order resetlogs on January 2, 2010?

    It does not create a new entry in the rc_database table?

    No, someone part actively this database in the catalog.

    Can give you any suggestions what to do now?

    Well, you have a 35-day retention strategy, which means that you can purge all data catalogue the XPTO DBID 4085004961 database in less than a week.
    Wait until February 8, then run the following sql against the catalog.

    Select ' EXEC DBMS_RCVCAT. UNREGISTERDATABASE('||) DB_KEY | «, » || DBID |') ;'|| ' '|| resetlogs_time
    of rc_database
    WHERE name = "& db_name.
    ;

    Use the output to unregister database with DBID 4085004961 only.

    Kind regards

    Tycho

  • RMAN backup fails with the error

    Hi all

    Oracle 10.2.0.3
    Windows 2003 Server

    We take RMAN backup full every day. We are facing problems while taking backups.
    Please find the error message is recorded in the backup log.

    RMAN-03009: failure of the backup command on channel ch1 at 2009-09-07 23:17:05
    ORA-19502: write error on file '\\VN619. In. NAB.COM\ORACLE_BACKUP\DB\DB_DATA_GHKOM9K0_3_1_20090907 ", blockno 342401 (blocksize = 8192).
    ORA-27072: IO file error
    OSD-04008: WriteFile() failure, cannot write to the file
    S/O-error: (OS 64) the specified network name is no longer available.

    What is happening Alternatively, some days, the backup is successful. We thought that the problem of network and changed the way network access, but since a few days, it was ok, and even now, we are facing the same problem.

    I spoke with our network administrators, they said its not related to the network and there is no errors in the log of their network.


    If you please advice to slove this...

    TIA,

    RMAN works very well. This is your network connection. He sometimes works normal, sometimes doesn't

  • EBS R11i Rman DB Backup error

    Hi friends,

    AIX 5 L platform

    I'm my R11i EBS with RMAN database backup, but I got error.

    rman target $ /.

    Release of Recovery Manager: 9.2.0.6.0 - 64 bit Production

    Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.

    connected to target database: TEST (DBID = 1969797320)

    RMAN > backup database;

    From backup 10 December 08
    using controlfile target instead of recovery catalog database
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid = 39 devtype = DISK
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of the backup to 2008-12-10 15:17:06 command
    [ORA-00600: internal error code, arguments: [525], [0x70000001137DD50], [5], [cache library], [5], [0x700000000025BF0], [device information]]
    ORA-27041: could not open the file
    IBM AIX RISC System/6000 error: 25: not a typewriter
    Additional information: 16

    RMAN > exit

    This file is opening here RMAN > ORA-27041: could not open the file


    Thank you very much

    Please refer to the Note: 262997.1 - ORA-600 [525] / [510] and ORA-27041 when running RMAN backup on IBM AIX platform
    https://metalink2.Oracle.com/MetaLink/PLSQL/ml2_documents.showDocument?p_database_id=not&P_ID=262997.1

  • RMAN &gt; backup of level 0 &gt; ORA-27072: file IO error... Input/output error

    Hi, all.

    I get the following error messages when executing a level 0 backup. Please help!

    ====================================================================================================
    RMAN-03009: failure of the backup command on the channel of d1 at 2008-11-17 01:08:34
    ORA-19502: write error on file ' / NEW_backups/backups/admin/CCPROD/bkups/CCPROD.5313.1.670986008.DB ', blockno 82945 (blocksize = 8192)
    ORA-27072: IO file error
    Linux-x86_64 error: 5: input/output error
    RMAN-03009: failure of the backup command on the channel of d2 at 2008-11-17 01:08:34
    ORA-19502: write error on file ' / NEW_backups/backups/admin/CCPROD/bkups/CCPROD.5314.1.670986008.DB ', blockno 84609 (blocksize = 8192)
    ORA-27072: IO file error
    Linux-x86_64 error: 5: input/output error
    Additional information: 4
    Additional information: 84609
    Additional information:-1
    D2 disabled channel, job failed on it will run on another channel
    output channel: d1
    output channel: d2
    output channel: d3
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03009: failure of the backup command on the channel of d3 to 2008-11-17 01:08:34
    ORA-19502: write error on file ' / NEW_backups/backups/admin/CCPROD/bkups/CCPROD.5315.1.670986008.DB ', blockno 98433 (blocksize = 8192)
    ORA-27072: IO file error
    Linux-x86_64 error: 5: input/output error
    Additional information: 4
    Additional information: 98433
    Additional information:-1

    Since this is a clerical error, I look at the permissions on the target directory and available disk space on the target file system.

  • RMAN backup location must change and remove obsolete

    Dear Experts,

    I'm working on the following environment,

    Operating system: Windows server 2012 R2

    Oracle version: 11.2.0.1.0 release

    Type of RMAN backup: Cumulative (preferred by the direction and I can't change it in differential backup)

    My current situation,

    I set up RMAN and H: drive for purposes of backup and G: for Archivelog.

    Recently, my city was covered by the flood waters and the server works not for a week so that we delete obsolete level 0 does not work.

    Currently there is not enough space to run a level 1 and level 0, while I should change the backup location.

    My Question is,

    (1) I need to change this location of drive H: to G: drive backup backup correctly without error not enough space.

    (2) after having taken a level 1 and level 0, depending on my 1 redundancy, RMAN mechanism should delete obsolete backup disk without failure G: and H:.

    Kindly help me how to get to my need. This will help me, thanks in advance

    You can

    1. replace the DB_RECOVERY_FILE_DEST G:

    2 run backups

    3. wait for the DELETE OBSOLETE delete obsolete backups of H:

    and then

    4. change the DB_RECOVERY_FILE_DEST return h as it was more early

    In this way, you don't have to use the FORMAT or CHANNEL of CONFIGURE commands (I was referring to CONFIGURE CHANNEL, not ALLOCATE CHANNEL) to change the destination of the backup

    Hemant K Collette

  • Waiting for redo log file missing when restore main database using RMAN backup that was taken on the database physical standby

    Here's my question after tons of research and test without have the right solutions.

    Target:

    (1) I have a 12.1.0.2 database unique main enterprise 'testdb' as database instance running on the server "node1".

    (2) I created physical standby database "stbydb" on the server "node2".

    (3) DataGuard running on the mode of MaxAvailability (SYNC) with roll forward in real time 12 default c apply.

    (4) primary database has 3 groups of one-man redo. (/oraredo/testdb/redo01.log redo02.log redo03.log)

    (5) I've created 4 standby redo logfiles (/oraredo/testdb/stby01.log stby02.log stby03.log stby04.log)

    (6) I do RMAN backup (database and archivelog) on the site of relief only.

    (7) I want to use this backup for full restore of the database on the primary database.

    He is a DR test to simulate the scenario that has lost every primary & Eve total servers.

    Here is how to save, on the database pending:

    (1) performance 'alter database recover managed standby database Cancel' to ensure that compatible data files

    (2) RMAN > backup database;

    (3) RMAN > backup archivelog all;

    I got elements of backup and copied to primary db Server something like:

    /Home/Oracle/backupset/o1_mf_nnndf_TAG20151002T133329_c0xq099p_.BKP (data files)

    /Home/Oracle/backupset/o1_mf_ncsnf_TAG20151002T133329_c0xq0sgz_.BKP (spfile & controlfile)

    /Home/Oracle/backupset/o1_mf_annnn_TAG20151002T133357_c0xq15xf_.BKP (archivelogs)

    So here's how to restore, on the main site:

    I clean all the files (data files, controlfiles oder all gone).

    (1) restore spfile from pfile

    RMAN > startup nomount

    RMAN > restore spfile from pfile ' / home/oracle/pfile.txt' to ' / home/oracle/backupset/o1_mf_ncsnf_TAG20151002T133329_c0xq0sgz_.bkp';

    (2) modify pfile to convert to db primary content. pFile shows below

    *.audit_file_dest='/opt/Oracle/DB/admin/testdb/adump '

    * .audit_trail = "db".

    * full = '12.1.0.2.0'

    *.control_files='/oradata/testdb/control01.ctl','/orafra/testdb/control02.ctl'

    * .db_block_size = 8192

    * .db_domain = "

    *.db_file_name_convert='/testdb/','/testdb /'

    * .db_name = "testdb".

    * .db_recovery_file_dest ='/ orafra'

    * .db_recovery_file_dest_size = 10737418240

    * .db_unique_name = "testdb".

    *.diagnostic_dest='/opt/Oracle/DB '

    * .fal_server = "stbydb".

    * .log_archive_config = 'dg_config = (testdb, stbydb)'

    * .log_archive_dest_2 = "service = stbydb SYNC valid_for = (ONLINE_LOGFILE, PRIMARY_ROLE) db_unique_name = stbydb'"

    * .log_archive_dest_state_2 = 'ENABLE '.

    *.log_file_name_convert='/testdb/','/testdb /'

    * .memory_target = 1800 m

    * .open_cursors = 300

    * runoff = 300

    * .remote_login_passwordfile = "EXCLUSIVE."

    * .standby_file_management = "AUTO".

    * .undo_tablespace = "UNDOTBS1.

    (3) restart db with updated file pfile

    SQLPLUS > create spfile from pfile='/home/oracle/pfile.txt'

    SQLPLUS > the judgment

    SQLPLUS > startup nomount

    (4) restore controlfile

    RMAN > restore primary controlfile to ' / home/oracle/backupset/o1_mf_ncsnf_TAG20151002T133329_c0xq0sgz_.bkp';

    RMAN > change the editing of the database

    (5) all elements of backup catalog

    RMAN > catalog starts by ' / home/oracle/backupset / '.

    (6) restore and recover the database

    RMAN > restore database;

    RMAN > recover database until the SNA XXXXXX; (this YVERT is the maximum in archivelog backups that extends beyond the scn of the backup of the data file)

    (7) open resetlogs

    RMAN > alter database open resetlogs;

    Everything seems perfect, except one of the file log roll forward pending is not generated

    SQL > select * from v$ standby_log;

    ERROR:

    ORA-00308: cannot open archived log ' / oraredo/testdb/stby01.log'

    ORA-27037: unable to get file status

    Linux-x86_64 error: 2: no such file or directory

    Additional information: 3

    no selected line

    I intended to use the same backup to restore primary basic & helps record traffic and the downtime between them in the world of real output.

    So I have exactly the same steps (except STANDBY restore CONTROLFILE and not recover after database restore) to restore the database pending.

    And I got the same missing log file.

    The problem is:

    (1) complete alert.log filled with this error, not the concern here

    (2) now repeat it in real time apply won't work since the Party shall LGWR shows always "WAITING_FOR_LOG."

    (3) I can't delete and re-create this log file

    Then I tried several and found:

    The missing standby logfile was still 'ACTIVE' at present RMAN backup was made.

    For example, on db standby, under Group #4 (stby01.log) would be lost after the restoration.

    SQL > select GROUP #, SEQUENCE #, USE (s), the STATUS from v$ standby_log;

    GROUP # SEQUENCE # USED STATUS

    ---------- ---------- ---------- ----------

    4 19 ACTIVE 133632

    5 0 0 UNASSIGNED

    6 0 0 not ASSIGNED

    7 0 0 UNASSIGNED

    So until I take the backup, I tried on the primary database:

    SQL > alter system set log_archive_dest_state_2 = delay;

    This was the Group of standby_log side Eve #4 was released:

    SQL > select GROUP #, SEQUENCE #, USE (s), the STATUS from v$ standby_log;

    GROUP # SEQUENCE # USED STATUS

    ---------- ---------- ---------- ----------

    4 0 0 UNASSIGNED

    5 0 0 UNASSIGNED

    6 0 0 not ASSIGNED

    7 0 0 UNASSIGNED

    Then, the backup has been restored correctly without missing standby logfile.

    However, to change this primary database means break DataGuard protection when you perform the backup. It's not accept on the production environment.

    Finally, my real questions come:

    (1) what I do may not do on parameter change?

    (2) I know I can re-create the control file to redo before delete and then recreate after. Is there any simple/fast to avoid the standby logfile lost or recreate the lost one?

    I understand that there are a number of ways to circumvent this. Something to keep a copy of the log file waiting restoration progress and copy up one missing, etc, etc...

    And yes I always have done no real-time applies "to the aid of archived logfile" but is also not accept mode of protection of production.

    I just want proof that the design (which is displayed in a few oracle doc Doc ID 602299.1 is one of those) that backs up data backup works effectively and can be used to restore the two site. And it may be without spending more time to resume backups or put the load on the primary database to create the database before.

    Your idea is very much appreciated.

    Thank you!

    Hello

    1--> when I take via RMAN backup, RMAN does not redo log (ORL or SRL) file, so we cannot expect ORLs or SRL would be restored.

    2nd--> when we opened the ORL database should be deleted and created

    3rd--> Expecting, SRL should not be an issue.we should be able to do away with the fall.

    DR sys@cdb01 SQL > select THREAD #, SEQUENCE #, GROUP #, STATUS from v$ standby_log;

    THREAD # SEQUENCE # GROUP # STATUS

    ---------- ---------- ---------- ----------

    1 233 4 ACTIVE

    1 238 5 ACTIVE

    DR sys@cdb01 SQL > select * from v$ logfile;

    GROUP # STATUS TYPE MEMBER IS_ CON_ID

    ---------- ------- ------- ------------------------------ --- ----------

    3 /u03/cdb01/cdb01/redo03.log no. 0 online

    /U03/cdb01/cdb01/redo02.log no. 0 2 online

    1 /u03/cdb01/cdb01/redo01.log no. 0 online

    4 /u03/cdb01/cdb01/stdredo01.log WATCH No. 0

    /U03/cdb01/cdb01/stdredo02.log EVE 5 No. 0

    DR sys@cdb01 SQL > ! ls - ltr /u03/cdb01/cdb01/stdredo01.log

    method: cannot access the /u03/cdb01/cdb01/stdredo01.log: no such file or directory

    DR sys@cdb01 SQL >! ls - ltr /u03/cdb01/cdb01/stdredo02.log

    -rw - r-. 1 oracle oinstall 52429312 17 Oct 15:32 /u03/cdb01/cdb01/stdredo02.log

    DR sys@cdb01 SQL > alter database force claire logfile 4;

    change the database group claire logfile 4

    *

    ERROR on line 1:

    ORA-01156: recovery or current flashback may need access to files

    DR sys@cdb01 SQL > alter database recover managed standby database cancel;

    Database altered.

    DR sys@cdb01 SQL > change the database group claire logfile 4;

    Database altered.

    DR sys@cdb01 SQL > ! ls - ltr /u03/cdb01/cdb01/stdredo01.log

    -rw - r-. 1 oracle oinstall 52429312 17 Oct 15:33 /u03/cdb01/cdb01/stdredo01.log

    DR sys@cdb01 SQL >

    If you do, you can recreate the controlfile without waiting for redo log entry...

    If you still think it's something is not acceptable, you must have SR with support to analyze why he does not abandon SRL when controlfile_type is "underway".

    Thank you

  • RMAN backup gets already

    Hi all;

    RMAN > set the channel 1 device type disc format ' / u01/rmanbkp ";

    new RMAN configuration settings:

    CONFIGURE the CHANNEL 1 DEVICE TYPE DISK FORMAT ' / u01/rmanbkp ";

    new RMAN configuration settings are stored successfully

    output channel: ORA_DISK_1

    RMAN > list backup;

    specification does not match the backups in the repository

    RMAN > backup database tag = "NORMAL_BKP_15_jul_15";

    From 25 July 15 backup

    allocated channel: ORA_DISK_1

    channel ORA_DISK_1: SID = 20 type of device = DISK

    channel ORA_DISK_1: from complete compressed datafile backup set

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

    Enter a number of file datafile = 00005 name=/u03/app/oracle/oradata/crms/tbs02.dbf

    Enter a number of file datafile = 00001 name=/u02/app/oracle/oradata/crms/system01.dbf

    Enter a number of file datafile = name=/u01/crmsx4.dbf 00024

    channel ORA_DISK_1: starting piece 1 to July 25, 15

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

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

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

    RMAN-03009: failure of the backup command on the channel ORA_DISK_1 at 25/07/2015 10:30:26

    ORA-19504: cannot create the file ' / u01/rmanbkp.

    ORA-27038: created file already exists

    Additional information: 1

    There is no file physically in/u01/rmanbkp

    DB version: 11.2.0.1 on (Redaht)

    RMAN > set the channel 1 device type disc format ' / u01/rmanbkp ";


    Specify format with extension, something like below

    RMAN > set up the channel 1 device type disk format ' / u01/rmanbkp/backup%U';

    http://docs.Oracle.com/CD/B28359_01/backup.111/b28273/rcmsubcl010.htm

  • RMAN backup command gets failure


    Hello;


    Merry Christmas to all


    It's the test database (10.2.0.1) on RHEL 4.8, Rman backup command was already.

    I don't understand why I got the error? What was the reason?


    RMAN > backup the database archivelog;

    From backup 25 December 14

    Current archived log

    using the control file of the target instead of recovery catalog database

    allocated channel: ORA_DISK_1

    channel ORA_DISK_1: sid = 141 devtype = DISK

    channel ORA_DISK_1: from archive newspaper backupset

    channel ORA_DISK_1: specification of archive log backup set

    archive log entry thread = 1 sequence 2 recid = 1 stamp = 867230647 =

    archive log entry thread = 1 = 3 = 2 = 867233039 stamp recid sequence

    archive log entry thread = 1 sequence 4 recid = 3 = 867233044 stamp =

    archive log entry thread = 1 sequence 5 recid = 4 = 867233122 stamp =

    archive log entry thread = 1 sequence = recid 6 = 5 = 867233128 stamp

    archive log entry thread = 1 sequence = recid 7 = 6 = 867233214 stamp

    archive log entry thread = 1 sequence 8 recid = 7 = 867233453 stamp =

    archive log entry thread = 1 sequence 9 recid = 8 = 867233493 stamp =

    archive log entry thread = 1 sequence 10 recid = 9 = 867233559 stamp =

    channel ORA_DISK_1: starting piece 1 to December 25, 14

    channel ORA_DISK_1: finished piece 1 to December 25, 14

    piece handle=/home/oracle/oracle/product/10.2.0/db_1/flash_recovery_area/ORCL/backupset/2014_12_25/o1_mf_annnn_TAG20141225T101241_b9q5g4jo_.bkp tag = TAG20141225T101241 comment = NONE

    channel ORA_DISK_1: complete set of backups, time: 00:00:16

    Backup over at December 25, 14

    From backup 25 December 14

    using channel ORA_DISK_1

    channel ORA_DISK_1: from full datafile backupset

    channel ORA_DISK_1: specifying datafile (s) in backupset

    input datafile fno = 00001 name=/home/oracle/oracle/product/10.2.0/oradata/orcl/system01.dbf

    input datafile fno = name=/home/oracle/oracle/product/10.2.0/oradata/orcl/sysaux01.dbf 00003

    input datafile fno = 00005 name=/home/oracle/oracle/product/10.2.0/oradata/orcl/example01.dbf

    input datafile fno = name=/home/oracle/oracle/product/10.2.0/oradata/orcl/undotbs01.dbf 00002

    input datafile fno = name=/home/oracle/oracle/product/10.2.0/oradata/orcl/users01.dbf 00004

    channel ORA_DISK_1: starting piece 1 to December 25, 14

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

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

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

    RMAN-03002: failure of command thus backup archivelog to 2014/12/25 10:13:54

    ORA-19502: write error on file ' / home/oracle/oracle/product/10.2.0/db_1/flash_recovery_area/ORCL/backupset/2014_12_25/o1_mf_nnndf_TAG20141225T101301_%u_.bkp ', blockno 8833 (blocksize = 8192)

    ORA-27072: IO file error

    Linux error: 2: no such file or directory

    Additional information: 4

    Additional information: 8833

    Additional information: 348160

    > > Physical directories are available

    $ pwd

    /Home/Oracle/Oracle/product/10.2.0/Db_1/flash_recovery_area/ORCL

    [oracle@RAC1 ORCL] $ ls-l

    total 12

    drwxr-x - 3 oracle oinstall 4096 Dec 25 09:24 archivelog

    drwxr-x - 3 oracle oinstall 4096 Dec 25 09:18 backupset

    drwxr-x - 2 oracle oinstall 4096 Dec 24 17:16 onlinelog

    ORA-19502: write error on file ' / home/oracle/oracle/flash_recovery_area/ORCL/backupset/2014_12_26/o1_mf_nnndf_TAG20141226T233412_%u_.bkp ', blockno 37505 (blocks ize = 8192)

    I don't understand why is it taking over as "%u" rather than place a unique value for him. Is it the file with System FRA has enough space?

    DF h/home/oracle/oracle/flash_recovery_area/ORCL/backupset.

    Kind regards

    Shivananda

Maybe you are looking for