Apply RMAN archivelogs on export backups

Hello Everyone
We are using the below script for RMAN
run
allocate channel c1 type 'sbt_tape';
backup database plus archivelog;
release channel c1;
So whether we shall be able to apply archivelogs on export backups ? If yes how?
Thanks.
Achyot

It's impossible to apply archived redo logs (physical backup) after importing a export file (logical backup).
You can only apply archived redo logs to a physical database backup or to a physical or logical standby database (Data Guard feature).
See logical and physical backup definitions:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/glossary.htm#sthref4165
http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/glossary.htm#i997232

Similar Messages

  • Backup archivelog all and backup archivelog in rman back

    Hi,
    Whats the difference between backup archivelog all and backup archivelog in rman backup.

    Please find below explanation from the online documentation;
    +"+
    +If you specify BACKUP ARCHIVELOG ALL, then RMAN backs up exactly one copy of each distinct log sequence number. For example, if you archive to multiple destinations, RMAN backs up one copy of each log sequence number—not each copy of each log sequence number. For other commands, such as DELETE ALL does refer to every log, even duplicate log sequences.+
    +"+
    Hope That Helps.
    Ogan
    Edited by: Ogan Ozdogan on 27.Tem.2010 00:38
    http://download.oracle.com/docs/cd/E11882_01/backup.112/e10643/rcmsynta007.htm#RCMRF107

  • Rman archivelog backup fails with rman-03002,ora-19563

    Hi,
    D:\ Oracle- -\BIN\RMAN TARGET / NOCATALOG
    RMAN> backup archivelog all;
    RMAN-03002: Error with backup command on 06-25-2013
    ORA-19563: Header-Validation is not successful.
        fails with the given errors.
    11.2.0.2 PROD DB on Windows Server 2008  R2 Enterpriise.
    When I issue BACKUP INCREMENTAL LEVEL 0 DATABASE; it works fine. but with archivelog it is creating problems. Unfortunatly, I have not found exactly the same problem on google and on Oracle support.
    The DB is using INIT.ORA and last time when I switched the mode to archive log mode I set the parameter like SCOPE=MEMORY as SPFILE was not in use and ALTER SYSTEM with SCOPE=BOTH  FRA destination and size, but after the DB restarting of course that setting is gone and I am having these problems.
    Please suggest.
    Thanks a lot.
    Best Regards,

    Hi,
    Thanks a lot.
    I don't think that archivelogs were relocated, except I changed the location yesterday.
    As I wrote at the start that because of INIT.ORA file being in use instead of SPFILE. I set DB_RECOVERY_FILE_DEST, DB_RECOVERY_DEST_SIZE after changing the DB mode to ARCHIVELOG, but DB was restarted by somebody else, and as the parameter changing was NOT PERMANENT, it rollback.
    LOG_ARCHIVE_DEST was set to d:\oradata\db with archivelog mode but db_recovery_file_dest and size was set to 0. Now here, I have no idea that whether archivelogs were not being backed up or deleted physically, but I guess that as log_archive_dest parameter is deprecated and mode is set to archivelog with no real ARCHIVELOG DESTINATION. Please correct me if I am wrong or totally wrong :-)
    I performed DELETED EXPIRED ARCHIVELOG ALL, and it deleted 49 EXPIRED objects.
    Now CROSSCHECK ARCHIVELOG ALL and LIST ARCHIVELOG ALL shows nothing.
    LIST BACKUP OF ARCHIVELOG ALL has of course those 49 archivelog gap.
    Could you please tell the impacts of those 49 missing archivelogs. Retention policy is set to 14 days. I mean the risk is for 14 days right? As anyhow, the older backups are being DELETED according to retention policy of RMAN.

  • Rman error when taking backup archivelog all delete input

    archive log filename=+FRA01/osondemand/archivelog/2012_02_27/thread_2_seq_15028.7182.776323223 recid=122876 stamp=77
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of backup command on ORA_DISK_2 channel at 02/27/2012 05:23:14
    RMAN-10015: error compiling PL/SQL program
    RMAN-10033: error during compilation of job step 3: ORA-00603: ORACLE server session terminated by fatal error
    ORA-04030: out of process memory when trying to allocate 272 bytes (PL/SQL DIANA,PTG: No
    10.2.04
    windows
    two node rac
    please help me with above error
    thanks for help

    Hi;
    Duplicate post
    Re: rman error when i am doing backup archivelog delete input
    Regard
    Helios

  • Error while taking RMAN back up - RMAN-03009: failure of backup command ..

    Hi Experts,
    I am trying to take RMAN back up but at the end I get this error message.. I found a solution at http://www.oracle-base.com/articles/9i/RecoveryManager9i.php
    But this is of oracle 9i. Can I use it on 10g too ?
    So is this Step correct ?
    1) First create a user to hold the recovery catalog:
    a) CONNECT sys/password@w2k1 AS SYSDBA
    b) GRANT connect, resource, recovery_catalog_owner TO rman;
    2) Then create the recovery catalog:
    a) C:>rman catalog=rman/rman@w2k1
    b) RMAN> create catalog tablespace "RMAN";
    c) RMAN> exit
    3) Register Database
    a) C:>rman catalog=rman/rman@w2k1 target=sys/password@w2k2
    b) RMAN> register database;
    c) Existing user-created backups can be added to the catalog using: (*So far no Back up taken so I guess this step can be ignored*)
    i) RMAN> catalog datafilecopy 'C:\Oracle\Oradata\TSH1.dbf';
    ii) RMAN> catalog archivelog 'log1', 'log2', 'log3', ... 'logN';
    4) Full Backup Configuration
    RMAN> configure retention policy to recovery window of 7 days;
    RMAN> configure default device type to disk;
    RMAN> configure controlfile autobackup on;
    RMAN> configure channel device type disk format 'C:\Oracle\Admin\W2K2\Backup%d_DB_%u_%s_%p';
    5) Full back up
    RMAN> run {
    backup database plus archivelog;
    delete noprompt obsolete;
    6) RMAN> resync catalog;
    Starting backup at 15-MAY-10
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00006 name=C:\ORACLE\PRODUCT\10.1.0\ORADATA\ZUMA\DM_MENTOR200
    60430230208_DB.DBF
    input datafile fno=00002 name=C:\ORACLE\PRODUCT\10.1.0\ORADATA\ZUMA\UNDOTBS01.DB
    F
    input datafile fno=00007 name=C:\ORACLE\PRODUCT\10.1.0\ORADATA\ZUMA\DM_MENTOR200
    60430230208_IND.DBF
    input datafile fno=00001 name=C:\ORACLE\PRODUCT\10.1.0\ORADATA\ZUMA\SYSTEM01.DBF
    input datafile fno=00003 name=C:\ORACLE\PRODUCT\10.1.0\ORADATA\ZUMA\SYSAUX01.DBF
    input datafile fno=00005 name=C:\ORACLE\PRODUCT\10.1.0\ORADATA\ZUMA\EXAMPLE01.DB
    F
    input datafile fno=00004 name=C:\ORACLE\PRODUCT\10.1.0\ORADATA\ZUMA\USERS01.DBF
    channel ORA_DISK_1: starting piece 1 at 15-MAY-10
    RMAN-03009: failure of backup command on ORA_DISK_1 channel at 05/15/2010 05:11:
    03
    ORA-19809: limit exceeded for recovery files
    ORA-19804: cannot reclaim 52428800 bytes disk space from 2147483648 limit
    continuing other job steps, job failed will not be re-run
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    including current controlfile in backupset
    channel ORA_DISK_1: starting piece 1 at 15-MAY-10
    channel ORA_DISK_1: finished piece 1 at 15-MAY-10
    piece handle=C:\ORACLE\PRODUCT\10.1.0\FLASH_RECOVERY_AREA\ZUMA\BACKUPSET\2010_05
    _15\O1_MF_NCNNF_TAG20100515T045136_5YX3TTFT_.BKP comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:17
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of backup plus archivelog command at 05/15/2010 05:11:21
    RMAN-03009: failure of backup command on ORA_DISK_1 channel at 05/15/2010 05:11:
    03
    ORA-19809: limit exceeded for recovery files
    ORA-19804: cannot reclaim 52428800 bytes disk space from 2147483648 limit
    RMAN>
    Thanks & Regards,
    Ranjith John

    Provided you consult the 10g RMAN documentation and the online error documentation: yes.
    But apparently you didn't check documentation, not even the error messages!!!!! Why?
    You are backing up to the Flash Recovery Area, and the error messages mean too much space is occupied.
    How to configure the Flash Recovery Areea is fully documented in the Backup and Recovery manual for 10g at http://tahiti.oracle.com
    READ IT.
    Please do not ask a volunteer to abstract it.
    Sybrand Bakker
    Senior Oracle DBA

  • Applying rman backuppieces to stanby database

    Hello,
    I have an standby database 10g, which is feeded by archive logs sent from primary.
    A lot of archive logs were missed for ever, so standby needs to be recovered. For that, I applied rman incremental backups.
    Those rman backuppieces were generated on primary, then copied to standby and applied like this:
    Step 3: Cancel managed recovery at the standby database
    STDBY>alter database recover managed standby database cancel;
    Media recovery complete.
    Copied the backup files to standby server to D:\arch\ folder.
    Step 4: Catalog the Incremental Backup Files at the Standby Database
    D:\arch> rman target /
    RMAN> CATALOG START WITH 'D:\arch\';
    Step 5: Apply the Incremental Backup to the Standby Database+
    RMAN> RECOVER DATABASE NOREDO;
    Step 6: Put the standby database back to managed recovery mode.
    STDBY>> recover managed standby database disconnect;
    Media recovery complete.However, I think something went wrong. I would like to try it again.
    My question: If I apply again the same rman backup pieces on standby... does it will add records on the tables or Oracle would be know that those rman backup pieces were already applied and do nothing?
    Edited by: user521219 on 18-jun-2012 9:46

    Based on your comment "I think something went wrong" there isn't a chance I am going to offer a suggestion. Please open an SR with Oracle Support.
    For those that wonder why I won't help and are inclined to jump in with both feet ... keep in mind ... you have no idea what the original issue was ... and you have no idea what went wrong.
    To the OP: If you want help you must provide all relevant information. Some well meaning person may toast your system due to the lack of information.

  • Apply all ArchiveLogs manually to the Standby Database

    Hi,
    we can create a Physical Standby Database on Standard Edition, but we have to transfer and apply all ArchiveLogs manually to the Standby Database. How can we do this ?
    many thanks

    Thank you, but I opened a SR and asked :
    1-can we install DATAGUARD (Primary and Standby) with STANDARD edition ?
    many thanks.
    they answered :
    DataGuard is not available with Standard Edition. You need to have the Enterprise Edition in
    stalled on the Primary and Standby Host. The Standard Edition only provides basi
    c Standby Database without Log Transport and Log Apply Services. So you can create a Physical Standby Database on Standard Edition, but you have to transfer and apply all ArchiveLogs manually to the Standby Database.
    that's why I asked you the question.
    What is the exact synatx for recover database using backup control file please ?
    Thanks again.

  • Export backups failing - Need advice

    Hello All,
    We have a 10.2.0.3 database for which we have to take export backups everyday in maintainence window, when only batch jobs and other non essentials SQL's are running on the database.
    The export command we have used in our script is as under:
    $ORACLE_HOME/bin/exp / file=$ORACLE_DUMP_FILE compress=y full=y direct=n buffer=20480000 consistent=y statistics=none log=$ORACLE_LOGAtleast 3-4 times in a week, the export backup us failing with ORA-01555 errors like the one below:
    EXP-00008: ORACLE error 1555 encountered
    ORA-01555: snapshot too old: rollback segment number 10 with name "_SYSSMU10$" too small
    EXP-00000: Export terminated unsuccessfullyMy DB is configured as:
    SQL> show parameter undo_
    NAME                                 TYPE        VALUE
    undo_management                      string      AUTO
    undo_retention                       integer     54000
    undo_tablespace                      string      UNDOTBSAlso:
    SQL> select max(tuned_undoretention) from v$undostat;
    MAX(TUNED_UNDORETENTION)
                       75598The Max value is reached somewhere in the evening, but our job runs at
    SQL> select begin_time from v$undostat where TUNED_UNDORETENTION = 75598;
    BEGIN_TIME
    29/05/2012 17:39:46At the time (as per my log file) when my export job failed, the above value was:
    SQL> select TUNED_UNDORETENTION from v$undostat where BEGIN_TIME like '29/05/2012 16:2%';
    TUNED_UNDORETENTION
                  71318Please advice how the above issue can be addressed/resolved.
    For further information, please let me know. Thank you.
    Suddhasatwa
    India.
    Edited by: SBhaumik_DBA on May 30, 2012 9:50 PM

    Hello. Thanks for the inputs on CONSISTENT option. There are pre-laid change mgmt processes in every organisation which needs to be maintained/taken in account before such changes are made, and that too, with client approvals, etc. Since it was not a feasible option to get EXPDP or RMAN implemented at this point, so was this question raised.
    There is a small issue, however, if we use CONSISTENT=N. Below is an extract from asktom.oracle.com:
    >
    imagine if you started an export at 9am of the EMP and DEPT tables.
    EMP started exporting at 9am and DEPT at 9:15am.
    Now, the EMP data would be "as of 9am", but the DEPT data would be as of 9:15am. What if
    you import that data now -- will it work? maybe, maybe not -- perhaps at 9:10am, someone
    fired the last employee in department 50 and deleted department 50. Your EMP export
    would have them in this deptno, your DEPT export would not have this deptno. The import
    would fail.
    If you use consistent=y, Oracle will export all of the data "as of 9am", so deptno=50
    will be included in all tables and the import will succeed.
    >
    That's one of the risks involved.
    Is there any other solution we can have in place for this issue? Thanks.

  • Script to send email when Export Backup finish

    I have a 10g(10.2.0.3) database that I am running on windows. I have export backups running every day and would like to build a script that sends me an email after the backup is finished and also send me if it does not finish with error. Has anyone build this kind of script yet?

    If you're using a Windows batch file, you'd need a command line SMTP utility. A quick Google search shows that you're in luck-- there are a rather large number of these utilities in the world
    http://www.google.com/search?q=SMTP+Windows+%22command+line%22
    I've used BLAT (the third or fourth hit most likely) with good luck. Though I'm sure other tools would be equally good.
    I'd be hard-pressed to come up with an application requirement that would influence whether a database had to be backed up. I'd argue that a DBA should always be doing a physical backup of the database (hot or cold, depending on requirements). Otherwise, you potentially have to re-create the database, re-apply all the parameter changes you've made, re-apply any patches you've applied, run the import, figure out what didn't get imported or didn't get imported correctly, potentially adjust sequence values, etc.
    Justin

  • Export Backup Size is different

    Hi Gurus,
    We are using Oracle 10G (10.2.0.1.0) on Solaris 10 and we used to take export backup daily basis. While taking export backup using 'exp' then .dmp file size is becoming 30.3 GB where as when we use 'expdp' .dmp file size is 26.1 GB. I've checked both the log files and found no. of tables along with their records are same. so I'm confused why this size difference? and as a result we are not in a position to implement 'expdp'. Can anybody tell me why this size difference and whether can we rely on expdp or not?

    user606947 wrote:
    Hi Gurus,
    We are using Oracle 10G (10.2.0.1.0) on Solaris 10 and we used to take export backup daily basis. While taking export backup using 'exp' then .dmp file size is becoming 30.3 GB where as when we use 'expdp' .dmp file size is 26.1 GB. I've checked both the log files and found no. of tables along with their records are same. so I'm confused why this size difference? and as a result we are not in a position to implement 'expdp'. Can anybody tell me why this size difference and whether can we rely on expdp or not?
    Oracle recommends that you use the new Data Pump Export and Import utilities because they support all Oracle Database 10g features
    Look at the following documentation:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/dp_overview.htm#sthref14

  • Daily export backup

    Hi,
    I have production & DR database of 350gb version 10.2.0.4 on aix 5.3 platform.
    In morning time after completion of daily batch, we are taking export backup (by stopping application services till application is not available for users) by using datapump utility which is taking 2 to 2.30 hrs to completes.
    After that we have starting the application services and then only application available for users.
    This export backup dump we are daily using for restoration on another development server.
    Kindly help me, is there any option to avoid export backup time so that it will not affect buisness time.
    and also i can do daily restoration on development server.
    Please help.
    Regards,

    In morning time after completion of daily batch, we are taking export backup (by stopping application services till application is not available for users) by using datapump utility which is taking 2 to 2.30 hrs to completes.
    After that we have starting the application services and then only application available for users.
    This export backup dump we are daily using for restoration on another development server.
    Kindly help me, is there any option to avoid export backup time so that it will not affect buisness time.
    and also i can do daily restoration on development server.if you want complete database refresh?
    you can use STREAMS.
    If certain schema/objects you can use MViews.

  • If RMAN incremental level-1 backup fails...

    Hi there,
    I have a question. If the RMAN incremental level-1 backup fails, will the next level-1 backup attempt take backup of all changes since last successful level-0 OR level-1 backup?
    Best regards

    Hi,
    I have a question. If the RMAN incremental level-1 backup fails, will the next level-1 backup attempt take backup of all changes since last successful level-0 OR level-1 backup?
    Check the V$BACKUP_SET dictionary to confirm whether the last backup has been touched by data dictionary. If the failed incremental backup is picked up then the previous incremental backup will be required in case of the next DIFFERENTIAL INCREMENTAL LEVEL 1 backup.
    But to be on safe side , it is recommended you take a LEVEL 01 CUMILATIVE INCREMENTAL backup from Level 0 till date. So that the recovery process can go through even  if the previous backup is not valid.
    Thanks &
    Best Regards

  • Export backup error while using where clause

    I am heaving Oracle9i on solaris platform. Whem i am trying to take the export backup of a table it is giving below error:
    exp swtiob tables=NDC_ATMPROOF_HIST file=NDC_ATMPROOF_HIST.dmp log=NDC_ATMPROOF_HIST.log query="where PROOF_DATE >= '01-july-2010'" statistics=none
    LRM-00112: multiple values not allowed for parameter 'query'
    EXP-00019: failed to process parameters, type 'EXP HELP=Y' for help
    EXP-00000: Export terminated unsuccessfully

    You need to escape the stuff like this:
    $ exp scott/tiger tables=emp file=emp.dmp log=emp.log query=\"where HIREDATE\>\'09-JUN-1981\'\"
    Export: Release 9.2.0.8.0 - Production on Wed Jul 7 12:54:48 2010
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Connected to: Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.8.0 - Production
    Export done in US7ASCII character set and AL16UTF16 NCHAR character set
    server uses WE8ISO8859P1 character set (possible charset conversion)
    About to export specified tables via Conventional Path ...
    . . exporting table                            EMP          6 rows exported
    EXP-00091: Exporting questionable statistics.
    Export terminated successfully with warnings.
    $

  • How to ZIP Oracle Datapump export backup file

    Hello All,
    My customer is asking to give him the production data dump to the following path \\138.90.17.56\OMNISAFE.
    I really don't understand his requirement and he also wants me to zip the export backup file. How do I do that, Do you know any unix command to zip backup files.
    thanks and regards
    cherry

    1013498 wrote:
    Well Thanks for your reply.....my oracle version is 11.2.0.3.b and if we have the compression option can you please elaborate how to do that......
    It's in the documentation.  See Data Pump Export
    let us say my expdp file is abc.dmp...should I give the command gzip abc.dmp or any different.
    Let me google that for you
    One more question what does teh customer mean by production data dump to the following path \\138.90.17.56\OMNISAFE. please explain
    How do we know what the customer means?  Why don't you ask him?
    That said, it looks like a url to an ip address and a defined folder at that ip address.  Again, if the customer wants you to send them a file, you need to be working with said customer on the mechanics of accessing their system.
    All that said ....
    Learning how to look things up in the documentation is time well spent investing in your career.  To that end, you should drop everything else you are doing and do the following:
    Go to tahiti.oracle.com.
    Locate the link for your Oracle product and version, and click on it.
    You are now at the entire documentation set for your selected Oracle product and version.
    BOOKMARK THAT LOCATION
    Spend a few minutes just getting familiar with what is available here. Take special note of the "books" and "search" tabs. Under the "books" tab (for 10.x) or the "Master Book List" link (for 11.x) you will find the complete documentation library.
    Spend a few minutes just getting familiar with what kind  of documentation is available there by simply browsing the titles under the "Books" tab.
    Open the Reference Manual and spend a few minutes looking through the table of contents to get familiar with what kind of information is available there.
    Do the same with the SQL Reference Manual.
    Do the same with the Utilities manual.
    You don't have to read the above in depth.  They are reference manuals.  Just get familiar with what is there to be referenced. Ninety percent of the questions asked on this forum can be answered in less than 5 minutes by simply searching one of the above manuals.
    Then set yourself a plan to dig deeper.
    - *Read a chapter a day from the Concepts Manual*.
    - Take a look in your alert log.  One of the first things listed at startup is the initialization parms with non-default values. Read up on each one of them (listed in your alert log) in the Reference Manual.
    - Take a look at your listener.ora, tnsnames.ora, and sqlnet.ora files. Go to the Network Administrators manual and read up on everything you see in those files.
    - *When you have finished reading the Concepts Manual, do it again*.
    Give a man a fish and he eats for a day. Teach a man to fish and he eats for a lifetime.

  • Can't take export backup

    Hello,
    I can't take export backup as it ends up with a message column name invalid.How to solve the problem. My database is on UNIXWARE 7.1.1 & Oracle8i.
    D ROY
    SHILLONG- INDIA

    content of the log file:
    Connected to: Oracle8i Enterprise Edition Release 8.1.7.4.0 - Production
    With the Partitioning option
    JServer Release 8.1.7.4.0 - Production
    Export done in US7ASCII character set and US7ASCII NCHAR character set
    About to export the entire database ...
    . exporting tablespace definitions
    . exporting profiles
    . exporting user definitions
    . exporting roles
    . exporting resource costs
    . exporting rollback segment definitions
    . exporting database links
    . exporting sequence numbers
    EXP-00008: ORACLE error 904 encountered
    ORA-00904: invalid column name
    EXP-00000: Export terminated unsuccessfully
    Last line of the dmp files
    CONNECT SYSTEM
    EXECFULL DBMS_DISTRIBUTED_TRUST_ADMIN.allow_all;
    CREATE SEQUENCE "AQ$_QIDSEQ" MINVALUE 1 MAXVALUE 999999999999999999999999999 INCREMENT BY 1 START WITH 21 CACHE 20 NOORDER NOCYCLE
    ___________________________________

Maybe you are looking for