Archivelog full

Hi,
11.2.0.1
When you db encounters "archive log full waiting to be freed", is there a way to resolve it without shutting down the db? Thanks.
vk82 Oct 9, 2013 9:35 AM
In case if your DB is Production. How will you continue to operate your DB in no archivelog mode.
The solution for above mentioned problem is either:
SQL> Shutdown abort;
SQL> Startup Mount;
1) Change your Archiving Destination by :
SQL> ALTER SYSTEM SET DB_RECOVERY_FILE_DEST='NEW_PATH_LOCATION'
or
2) Increase the size of Archiving Destination by first determining the size of the Archiving destination which intially you have:-
SQL> SELECT NAME,(space_limit/1048576),(space_used/1048576) from v$recovery_file_dest;
And after that increase the space according to above output:-
SQL> alter system set db_recovery_file_dest_size=more_size_than_getting_size_above scope=both;
SQL> Alter database open;
Now
SQL> Shutdown immediate;
SQL> Startup;
or
3) Zip the archive logs and move it to anyother destination but be careful to preserve this you require all this archivelogs during recovery.

ozgurumut wrote:
Hi,
As I understand , you need to manage disk space of archivelog field. You can make with script or RMAN config.
Firstly, You may try RMAN Configuration like on below;
RMAN> Crosscheck archivelog all;
RMAN> Delete exprired archivelog all;
Secondly , You can use shell script (contains oracle command).
1. find <archivelog location> -name '*.log' -mtime +10 -exec rm -rf {} \;
2. RMAN> Crosscheck archivelog all;
3. RMAN> Delete exprired archivelog all;
#!/bin/sh
ORACLE_HOME=/u01/app/oracleths/product/11.2; export ORACLE_HOME
ORACLE_SID=test; export ORACLE_SID
PATH=.:$ORACLE_HOME/bin:/usr/ccs/bin:/usr/proc/lib:/usr/ucb:/usr/lib:/usr/ucblib:/opt/bin:/bin:/usr/bin:/GNU/bin/make
export PATH
find <archivelog location> -name '*.log' -mtime +10 -exec rm -rf {} \;
$ORACLE_HOME/bin/rman target / << EOF
Crosscheck archivelog all;
Delete exprired archivelog all;
exit
EOF
Finally, you should put to crontab . And it will work...
Far better would be to construct the backup procedure to let rman manage it all -- FRA or not.
rman> backup database [options]
rman> backup archivelog delete [options]
rman> delete noprompt obsolete.
and for a bit of extra insurance against 'unauthorized maintenance'
rman> crosscheck archivelog all;
rman> delete noprompt expired archivelog;
rman> crosscheck backup;
rman> delete noprompt expired backup;
schedule it however you want.  All your backup, all your housekeeping, in one place, managed exclusively by rman.

Similar Messages

  • Database ArchiveLog Full

    Hi
    Everyday we are facing same issue on online backup for our all databases which are runing on ARCH log mode.
    Issue : Archive Destination Full
    Database Version :
    SQL*Plus: Release 11.2.0.2.0 Production
    If we check from OS level we can see disk space is not an issue
    $ df -k /xxx_ucfepte/fra
    Filesystem 1K-blocks Used Available Use% Mounted on
    /dev/vx/dsk/101appdg9/xxx_ucfepte_fra
    94371840 385504 93252584 1% /xxx_ucfepte/fra
    But if we check from sql prompt
    sql> SELECT NAME, TO_CHAR(SPACE_LIMIT, '999,999,999,999') AS SPACE_LIMIT,
    TO_CHAR(SPACE_LIMIT - SPACE_USED + SPACE_RECLAIMABLE, '999,999,999,999') AS SPACE_AVAILABLE,
    ROUND((SPACE_USED - SPACE_RECLAIMABLE)/SPACE_LIMIT * 100, 1) AS PERCENT_FULL FROM V$RECOVERY_FILE_DEST;
    NAME
    SPACE_LIMIT SPACE_AVAILABLE PERCENT_FULL
    /vmj_ucfepte/fra
    95,563,022,336 184,616,448 99.8
    It says 99.8% full,
    Can anyone please help me on that, why we got same alert everyday when online backup is running.
    Thanks

    873346 wrote:
    Hi
    Everyday we are facing same issue on online backup for our all databases which are runing on ARCH log mode.
    Issue : Archive Destination Full
    Database Version :
    SQL*Plus: Release 11.2.0.2.0 Production
    If we check from OS level we can see disk space is not an issue
    $ df -k /xxx_ucfepte/fra
    Filesystem 1K-blocks Used Available Use% Mounted on
    /dev/vx/dsk/101appdg9/xxx_ucfepte_fra
    94371840 385504 93252584 1% /xxx_ucfepte/fra
    File system looks empty
    But if we check from sql prompt
    sql> SELECT NAME, TO_CHAR(SPACE_LIMIT, '999,999,999,999') AS SPACE_LIMIT,
    TO_CHAR(SPACE_LIMIT - SPACE_USED + SPACE_RECLAIMABLE, '999,999,999,999') AS SPACE_AVAILABLE,
    ROUND((SPACE_USED - SPACE_RECLAIMABLE)/SPACE_LIMIT * 100, 1) AS PERCENT_FULL FROM V$RECOVERY_FILE_DEST;
    NAME
    SPACE_LIMIT SPACE_AVAILABLE PERCENT_FULL
    /vmj_ucfepte/fra
    95,563,022,336 184,616,448 99.8
    Database administration thinks the files are still there. Did anyone delete/move them manually?
    If yes, the database doesn't know that.
    Use RMAN and the command
    RMAN> CROSSCHECK ARCHIVELOG ALL;
    RMAN> DELETE NOPROMPT EXPIRED ARCHIVELOG ;
    to update the administration of the database.
    Can you also post your backup command file
    Are you using RMAN for the backup?
    HTH
    FJFranken

  • RMAN - Is it possible to run Archivelog Backup while Full backup is running

    Hi,
    Our full database backups runs daily in the night. It fails whenever an archivelog backup kicks off. This happens on our big databases where backups run for long hours and we have to run the archivelog backup to backup/delete the archivelogs to maintain the archivelog destinations.
    Is there any way to run these 2 backups in parallel without both failing. We use RMAN catalog to take backups, and we get errors when resyncing of catalog happens during backup.
    We get these errors:-
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03008: error while performing automatic resync of recovery catalog
    RMAN-20033: control file sequence# too low
    and sometimes
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03008: error while performing automatic resync of recovery catalog
    ORA-00230: operation disallowed: snapshot control file enqueue unavailable
    Our archivelog destinations are not big enough to hold more than 1 days of logs and we have backups that runs for 30 hours. We have to backup and delete the archivelogs in between, while the full backup is running and right now its failing with able errors. Is there any solution or workaround I can opt for in this scenario.
    Any help is Highly appreciated. Thanks in advance for the Help.
    Thanks,
    Vish

    Your primary issue is SPACE. Allocate sufficient space to keep at a MINIMUM 4 days worth of archivelogs ONLINE.
    Use multiple channels
    you will need to test your system to see where you get optimal throughput.
    Use compression
    you will need to test your system to see where you get optimal throughput.
    Use disk-disk backups (and sweep to tape later)...
    If RAC, 11gR2 - consider ACFS (stored in ASM as well as OS accessible).
    Anything less and you could be issuing the command "alter dba update resume".
    Database management is not something that should be approached lightly... If you don't have the resources - maybe you need to trim the data or if the business requires that data volume, then the business needs to allocate sufficient resources to stay in business. Catastrophic database failures and the businesses ignorance on the importance of their data is a huge contributor business failures. At one point (not sure of the latest figures) if a business suffered such a data loss, they rarely stayed in business for more than a year.
    Storage is MUCH cheaper and the proper configuration and allocation of those resources than a company failure.
    onedbguru, CISSP.

  • Can archivelog history in the v$table be full?

    Hi All,
    9i
    OEL 5.6
    Our database in set to archivelog mode but we keep on deleting the archive logs because we do cold backup everyday at 12 midnight,
    since we only have 9am - 6pm office hours and apps processing window.
    All the users go home after 6pm. So we shut down the database and perform tar all the /u01/oradata directory where all the data files are located.
    Then we delete all the archive logs.
    My question is ....since we do manual delete of the archivelogs (and not rman delete obsolete logs) this means in the data dictionary views all the logs are still recorded?
    I am afraid the data dictionary for archive logs will get full since we generate lots of logs everyday.
    Any comments or suggestions please....
    Thanks a lot,
    Yxz

    I thank you all,
    @Ed
    Every time an archivelog is written, a record of that is created in the control file.So if I am not deleting my expired archive logs using rman crosscheck the control file will grow bigger and bigger? Since it is recording all the archivelogs ?
    If I delete the archivelogs using rman does it make the controlfile smaller?
    ***Oh sorry I think this is answered my heman.
    It is a very powerful tool, and without it you are just making any recovery scenario much more difficult.I agree with you dear :), but sometimes I found it hard and complicated to recover if you miss a single archive log or when it gets corrupted for some reason(just a single archivelog will make a database get doomed) :(. Sometimes the database will not start even after appyling the last archive log....it will ask for the next one (why is this?, How can I force startup the database after applying a certain archivelog?)
    Compared to a cold backup (which we can afford since we should down it everyday) , After copying the datafiles ...presto! the database is good. What you see is what you get. You do not
    feel afraid or stressed that something is missing. Well this is only my opinion and it can be wrong.
    @bawer
    What do you copy at midnight? flash_recovery_area or control+data files ?
    is there any scheduled rman task to backup database (daily or weekly) ?There is a schedule cron that shutdown db and copy datafiles and then startup db. the archive logs just retained where they are and deleted every week using "rm" and not rman delete.
    Edited by: yxes2013 on 14.2.2013 18:03

  • Diffrent name for backuppiece archivelog and full backup

    Hi,
    Is it possible to set in RMAN diffrent name for archivelog backup and full backup?
    I need to recognize file in os like.
    archivelog backup in backuppiece ... arch_%U
    full backup in backuppiece ... full_%U
    Tx & reg
    Tom
    http://oracledba.cz

    Hi Soli!
    You may use the code from the following example to solve your problem:
    <pre>
    RUN
    ALLOCATE CHANNEL ch1 DEVICE TYPE disk FORMAT '/u01/backups/datafiles_%U.bkp';
    ALLOCATE CHANNEL ch2 DEVICE TYPE disk FORMAT '/u02/backups/controlfile_%U.bkp';
    ALLOCATE CHANNEL ch3 DEVICE TYPE disk FORMAT '/u03/backups/archivlog_%U.bkp';
    BACKUP
    (DATAFILE 1,2,3,4 # channel ch1 backs up datafiles
    CHANNEL ch1)
    (CONTROLFILECOPY '/oracle/copy/cf.f'
    CHANNEL ch2) # channel ch2 backs up control file copy
    (ARCHIVELOG FROM TIME 'SYSDATE-14'
    CHANNEL ch3); # channel ch3 backs up archived redo logs
    Hope that helps!
    yours sincerely

  • Archivelog became full too quickly.

    Hi experts
    Please, yesterday early morning 3:00 AM my filesystem /archivelog got full in 20 minutes (200 archive files), the size of the filesystem is 20G and it's use to become full after a week, I don't know what could happened. What I can see that there's four archivelog each 100MB at the same hour and minute.
    Have you ever happen this to you?, what do you recommend to do?.
    Thank you very much.

    Hi,
    There might be any activity in the database at around 3:00 AM, there might be huge loading or DML into the database.
    It happened to us many times to us, we compress the archivelogs to keep some space in archivelog destn so to avoid database hung.
    I would recommend you to create archive zip script which will run whenever space in the archivelog goes beyond some threshold.
    Regards
    Jafar

  • Rman Full and Archivelog backups

    I am scripting my rman stuff and it's part of a much larger Perl maintenance. I have nightly and hourly jobs. Nightly will do a full backup and hourly will do archivelog backup. Full backups take about 2-3 hours.
    My question is: is there a problem with running archivelog backups be running while I am doing a full backup. If system resources are not an issues, what are some arguments for or against it?

    Thanks Tychos.
    That is something that I've debated - if my full would be with Plus ArchiveLog or not. So, I've decided not to backup the log during a full backup.
    This is for my nightly:
    open (RMAN, "| rman target sys/$SYPASS\@$CSID catalog rman/$CATPSS\@catalog >$Rlog");
    print RMAN <<"END";
    run {
    allocate channel d1 device type disk format \'$HBDir/$HBFiles\';
    set controlfile autobackup format for device type disk to \'$HBDir/$ControlFile\';
    backup as compressed backupset database;
    crosscheck backup;
    delete noprompt obsolete;
    report need backup;}
    END
    close (RMAN);
    This is the hourly:
    open (RMAN, "| rman target sys/$SYPASS\@$CSID catalog rman/$CATPSS\@catalog >$Rlog");
    print RMAN <<"END";
    run {
    allocate channel d1 device type disk format \'$TempArchHBDir/$BUFile\';
    CROSSCHECK ARCHIVELOG ALL;
    set controlfile autobackup format for device type disk to \'$HBDir/$ControlFile\';
    backup archivelog all not backed up 1 times delete input;
    END
    close (RMAN);

  • Restore database in the past using only archivelog without full backup

    Hi,
    We have a 11g Oracle database up & running.
    We don't have a full backup, but we have all archived log from the last 2 months.
    Is it possible to "restore" the database using archived logs in a date in the past?
    I mean for example 3 days ago?
    Thanks in advance.

    user8973191 wrote:
    Oh, ok Vijayaraghavan K.
    Thx for u help.
    And about the users ?
    i need to create the "same" user in another machine ?
    For example:
    In this machine i using the "system" user, where i have my tables.
    Another machine, when i restore, my tables will go to the "system" user too? or i can choice? or i need to create one?A true backup is a copy of the data files at the file/block level. The restore is therefore a restore of the data files/blocks. Applying the redo (archive logs) is also done at the block level. None of that knows or cares (or needs to know or care) about logical objects (such as users, tablespaces, tables, rows, etc) within the database. so if you do a proper restore, you are restoring files to a consistent state and thus everything that was defined within those files will be there when restored.

  • Full backup with archivelogs

    I tried to do an incremental level 0 backup with archivelogs, it failed with the error messages said that can not recognize file C:\ARCHIVE\ORCL\4_1_684433700.ARC, the error code was ORA-19625. So I added "crosscheck archivelog all;" to the backup script and Redo it.
    This time it succeeded, but there is still something I'm confused. I set up two folders to store the archivelogs, during the process, the archivelogs in the folders were not deleted synchronously,for example arhivelog a was deleted from one folder while the same file in the other folder was remained. Below is my backup script
    RUN {
    ALLOCATE CHANNEL ch00 TYPE DISK;
    ALLOCATE CHANNEL ch01 TYPE DISK;
    BACKUP
              incremental level 0
    SKIP INACCESSIBLE
    TAG hot_db_bk_level0
    FILESPERSET 5
    # recommended format
    FORMAT '\\dell090121\rman_hotbackup\bk_full_%s_%p_%t'
    DATABASE;
    sql 'alter system archive log current';
    RELEASE CHANNEL ch00;
    RELEASE CHANNEL ch01;
    # backup all archive logs
    ALLOCATE CHANNEL ch00 TYPE DISK;
    ALLOCATE CHANNEL ch01 TYPE DISK;
    BACKUP
    filesperset 20
    FORMAT '\\dell090121\rman_hotbackup\al_%s_%p_%t'
    ARCHIVELOG ALL DELETE INPUT;
    RELEASE CHANNEL ch00;
    RELEASE CHANNEL ch01;
    # Note: During the process of backing up the database, RMAN also backs up the
    # control file. This version of the control file does not contain the
    # information about the current backup because "nocatalog" has been specified.
    # To include the information about the current backup, the control file should
    # be backed up as the last step of the RMAN section. This step would not be
    # necessary if we were using a recovery catalog.
    ALLOCATE CHANNEL ch00 TYPE DISK;
    BACKUP
    # recommended format
    FORMAT '\\dell090121\rman_hotbackup\cntrl_%s_%p_%t'
    CURRENT CONTROLFILE;
    RELEASE CHANNEL ch00;
    }

    Even if you have two (or more) archivelog destination directories, the "DELETE INPUT" clause in "BACKUP ARCHIVELOG ..." would delete only archivelogs which it reads for the backup. Thus, because the backup could read from dest_1 (for instance), it would archivelogs from dest_1 but not from dest_2. The Backup is free to backup files at either dest location and delete only what it has backed up, by default with "DELETE INPUT".
    However if you specify DELETE ALL INPUT, then Oracle deletes all copies of the ArchiveLogs.
    Thus your backup command would be
    BACKUP ARCHIVELOG ALL DELETE ALL INPUT;where the first "ALL" is "all archived log sequences available, but only 1 copy of each" while the second "ALL" is "all copies of each archived log backed up by the BACKUP"

  • How to Restore Full Offiline Backup using BRTOOLS from a Tape

    Dear all,
    I want to recover PRD Full Offline Backup using BRTOOLS from a tape in a new machine.
    I have Install SAP in the new machine.
    Now I want to restore the PRD Full Offiline Backup taken through BRTOOLs in tape in the new machine.
    1. I have shutdown the SAP.
    2. I have shutdown the database Oracle 10g.
    3. I have inserted the backup tape
    4. Through user ORASID I have executed BRTOOLS
    I got the following options: -
    BRTools main menu
    1 = Instance management
    2 - Space management
    3 - Segment management
    4 - Backup and database copy
    5 - Restore and recovery
    6 - Check and verification
    7 - Database statistics
    8 - Additional functions
    9 - Exit program
    I selected Option 5 Restore and recovery
    And got the Following Options
    Restore and recovery
    1 = Complete database recovery
    2 - Database point-in-time recovery
    3 - Tablespace point-in-time recovery
    4 - Whole database reset
    5 - Restore of individual backup files
    6 - Restore and application of archivelog files
    7 - Disaster recovery
    8 - Reset program status
    1. Now which option do I need to select and then what all other options do I need to select.
    2. Whether the database should be a mount state or shutdown ?
    Kindly help.

    Dear Mark,
    Thanks.
    As suggested I tried both the options however face some difficulties please suggest
                                       brrestore -u / -c -b <backup_log.ext> -p init<SID>.sap -m full
    hinrnddev:oradev 1> brrestore -u / -c -b bedflluv.fft -p initDEV.sap -m full
    BR0401I BRRESTORE 7.00 (32)
    BR0405I Start of file restore: redhafeh.rsb 2010-05-22 11.55.55
    BR0484I BRRESTORE log file: /oracle/DEV/sapbackup/redhafeh.rsb
    BR0252E Function fopen() failed for '/oracle/DEV/sapbackup/bedflluv.fft' at location BrbLogRead-1
    BR0253E errno 2: No such file or directory
    BR0121E Processing of log file /oracle/DEV/sapbackup/bedflluv.fft failed
    BR0406I End of file restore: redhafeh.rsb 2010-05-22 11.55.55
    BR0280I BRRESTORE time stamp: 2010-05-22 11.55.55
    BR0404I BRRESTORE terminated with errors
    When I used the brrestore command I got the above error message.
    Then I tried the next option Complete database recover
    BRRECOVER options for restore and recovery
    1 * Recovery type (type) ............. [complete]
    2 - BRRECOVER profile (profile) ...... [initDEV.sap]
    3 ~ BACKINT/Mount profile (parfile) .. []
    4 - Database user/password (user) .... [/]
    5 - Recovery interval (interval) ..... [30]
    6 - Confirmation mode (confirm) ...... [yes]
    7 - Scrolling line count (scroll) .... [20]
    8 - Message language (language) ...... [E]
    9 - BRRECOVER command line (command) . [-p initDEV.sap -t complete -i 30 -s 20 -l E]
    Standard keys: c - cont, b - back, s - stop, r - refr, h - help
    BR0662I Enter your choice:
    C
    Complete database recovery main menu
    1 = Check the status of database files
    2 * Select database backup
    3 * Restore data files
    4 * Restore and apply incremental backup
    5 * Restore and apply archivelog files
    6 * Open database and post-processing
    7 * Exit program
    8 - Reset program status
    Standard keys: c - cont, b - back, s - stop, r - refr, h - help
    BR0662I Enter your choice:
    C
    Complete database recovery main menu
    1 + Check the status of database files
    2 # Select database backup
    3 # Restore data files
    4 # Restore and apply incremental backup
    5 # Restore and apply archivelog files
    6 + Open database and post-processing
    7 = Exit program
    8 - Reset program status
    Standard keys: c - cont, b - back, s - stop, r - refr, h - help
    BR0662I Enter your choice:
    the + sign got changed to +
    and the * got changed to #
    then it is getting in loop please suggest what do I do now.

  • Error while taking Full DB Backup

    Hi,
    We had Multiplexed the Archive Log File to default location(Flash Recovery Area) and log_archive_dest_1=/u02/app/oracle/oradata/orcl/archive
    As too much of archive log's are generated we had removed the log_archive_dest_1.
    We had scheduled full DB backup every sunday and incremental DB backup everyday(midnight) through OEM.
    I am backing up all the archive log's and after each backup (incremental and full DB backup) we are deleting all Archive logs backed up.
    The Full DB Backup failed as it is still trying to backup archive logs from log_archive_dest_1(/u02/app/oracle/oradata/orcl/archive)
    Please find below the error log file generated after backup failed.
    RMAN> backup device type disk format='/u02/backup/scheduled/Full-ARC_%d_%t_%s_%p' tag 'BACKUP_ORCL_000022_091608120501' archivelog all not backed up;
    Starting backup at 16-SEP-08
    current log archived
    using channel ORA_DISK_1
    using channel ORA_DISK_2
    skipping archive log file */u02/app/oracle/oradata/orcl/archive*/1_8459_639421762.dbf; already backed on 01-SEP-08
    skipping archive log file /u02/app/oracle/oradata/orcl/archive/1_8460_639421762.dbf; already backed on 01-SEP-08
    skipping archive log file /u02/app/oracle/oradata/orcl/archive/1_8461_639421762.dbf; already backed on 01-SEP-08
    skipping archive log file /u02/app/oracle/oradata/orcl/archive/1_8462_639421762.dbf; already backed on 01-SEP-08
    archived log /u02/app/oracle/oradata/orcl/archive/1_8463_639421762.dbf not found or out of sync with catalog
    trying alternate file for archivelog thread 1, sequence 8463
    archived log /u02/app/oracle/oradata/orcl/archive/1_8464_639421762.dbf not found or out of sync with catalog
    trying alternate file for archivelog thread 1, sequence 8464
    archived log /u02/app/oracle/oradata/orcl/archive/1_8465_639421762.dbf not found or out of sync with catalog
    trying alternate file for archivelog thread 1, sequence 8465
    archived log /u02/app/oracle/oradata/orcl/archive/1_8466_639421762.dbf not found or out of sync with catalog
    trying alternate file for archivelog thread 1, sequence 8466
    archived log /u02/app/oracle/oradata/orcl/archive/1_8467_639421762.dbf not found or out of sync with catalog
    trying alternate file for archivelog thread 1, sequence 8467
    Please suggest me the possible outcome
    Thanks and Regards
    Amith

    Hi,
    The Archive log's has occupied full Hard Disk space so i changed the status of DB to NoArchive Log mode and deleted all the archive files available at "/u02/app/oracle/oradata/orcl/archive" using OS command.
    Now I changed the DB to Archive Log Mode and now using RMAN to delete All Archive files which are backed up.
    backup incremental level 0 cumulative device type disk tag '%TAG' database include current controlfile;
    backup device type disk tag '%TAG' archivelog all not backed up delete all input;
    Thanks
    Amith
    Edited by: amith r on Sep 17, 2008 3:00 PM

  • Retention Policy to delete both backup sets and archivelogs automatically

    I configured the Recovery Window-Based Retention Policy for my database for the window=14 days. I also set up a crontab to do a full backup every Monday. So say in a month, there will be 30 archive logs and 4 full DB backup sets.
    Now that I understand if the FRA gets filled up, older archive logs that are not needed for the 14 days recoverable window will be automatically deleted. My questions is what happen to the old backup sets? Will they get deleted automatically too if there is no space left in FRA? Or I need to use "DELETE OBSOLETE" to delete them?
    Thanks.

    One of the advantages of the FRA is, in case of space pressure obsolete objects (obsolete due to the defined retention policy) are deleted automatically. That's true for backups and archivelogs. The objects are NOT deleted automatically after the retention policy expires, but only when additional space is needed. That does not mean you don't have to care about FRA space consumption. You may have unusual amounts of archivelogs, additional backups and flashback logs (if flashback database is configured), which fill up the FRA.
    Werner

  • Retention policy vs. Archivelog deletion policy

    Environment:
    Oracle EE 11.2.0.3 on Solaris 10.5
    Which policy takes precedence?
    My Retention Policy is set to 'Recovery window of 8 days' and my Archivelog deletion policy is set to 'backed up 2 times to disk'.
    My DAILY full backup happens at 03:00am and uses the following commands:
    backup incremental level 0 cumulative database tag 'full_daily' plus archivelog tag 'full_daily';
    DELETE NOPROMPT OBSOLETE;I also have an archivelog backup that runs every 4 hours at 02:00, 06:00, 10:00, 14:00, 18:00 and 22:00 and looks like this:
    backup archivelog all tag '&1';
    delete noprompt ARCHIVELOG UNTIL TIME 'SYSDATE-8';With the archivelog backup running every 4 hours the logs are getting backed up to disk the required 2 times very quickly. Much sooner than 8 days! :-)
    I have a problem where the archivelog backup that runs immediately AFTER the full database backup fails due to not being able to find some older archivelog files.
    In looking at V$ARCHIVED_LOG the files were dated (COMPLETION_DATE) just outside the 8 day retention window but they had a status of 'A' (Archived) instead of the 'D' (Deleted) I was expecting. When I ran a 'Crosscheck archivelog all' it changed the statuses to 'D' and the next archivelog backup ran successfully.
    What am I missing?
    Should I change the archivelog deletion policy to something else? If so, what and why (just trying to understand!) ?
    I am not using an FRA and have controlfile autobackup turned on.
    Please let me know if you need more information. I have been scouring the docs and the 11g RMAN Oracle Press book but haven't found the trick yet!
    Thanks for any assistance!
    -gary

    Hemant K Chitale wrote:
    The Retention Policy applies to Backups. It does not apply to ArchiveLogs.
    The ArchiveLog Deletion Policy applies to ArchiveLogs. It does not apply to Backups.
    Since you have 2 copies of ArchiveLogs in the backups and these are retained for 8 days, a "delete noprompt ARCHIVELOG UNTIL TIME 'SYSDATE-8';" is overkill. Why retain 8 days of archivelogs on disk if there are 2 copies already backed up ?
    Does your full backup that begins at 3am complete before 6am ? If it goes beyond 6am, it will be deleting some files after 6am but the "backup archivelog all" at 6am will expect some archivelogs (8 days old) to be present.
    Hemant K Chitale
    RMAN> CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/oracle/oracle/.Autobackup_CTRL/%F.ctl_bkp';    
    Starting backup at 22-MAY-12
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting datafile copy
    input datafile file number=00001 name=/oracle/oracle/oradata/orcl/system01.dbf
    output file name=/oracle/oracle/flash_recovery_area/ORCL/datafile/o1_mf_system_7vpg432v_.dbf tag=TAG20120522T122602 RECID=1 STAMP=783951999
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:46
    channel ORA_DISK_1: starting datafile copy
    input datafile file number=00002 name=/oracle/oracle/oradata/orcl/sysaux01.dbf
    output file name=/oracle/oracle/flash_recovery_area/ORCL/datafile/o1_mf_sysaux_7vpg5l1n_.dbf tag=TAG20120522T122602 RECID=2 STAMP=783952038
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:35
    channel ORA_DISK_1: starting datafile copy
    input datafile file number=00003 name=/oracle/oracle/oradata/orcl/undotbs01.dbf
    output file name=/oracle/oracle/flash_recovery_area/ORCL/datafile/o1_mf_undotbs1_7vpg6ms0_.dbf tag=TAG20120522T122602 RECID=3 STAMP=783952046
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:03
    channel ORA_DISK_1: starting datafile copy
    input datafile file number=00004 name=/oracle/oracle/oradata/orcl/users01.dbf
    output file name=/oracle/oracle/flash_recovery_area/ORCL/datafile/o1_mf_users_7vpg6ptn_.dbf tag=TAG20120522T122602 RECID=4 STAMP=783952047
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:03
    Finished backup at 22-MAY-12
    Starting Control File and SPFILE Autobackup at 22-MAY-12
    piece handle=/oracle/oracle/product/11.2.0/dbhome_1/dbs/controlfile_c-1309370544-20120522-02 comment=NONE
    Finished Control File and SPFILE Autobackup at 22-MAY-12
    ORA-00604: error occurred at recursive SQL level 1
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    RMAN-08132: WARNING: cannot update recovery area reclaimable file list
    old RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F';
    new RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/oracle/oracle/.Autobackup_CTRL/%F.ctl_bkp';
    new RMAN configuration parameters are successfully stored
    RMAN> delete noprompt ARCHIVELOG UNTIL TIME 'SYSDATE-8';
    released channel: ORA_DISK_1
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=196 device type=DISK
    RMAN-08138: WARNING: archived log not deleted - must create more backups
    archived log file name=/oracle/oracle/flash_recovery_area/ORCL/archivelog/2012_04_28/o1_mf_1_2_7sq8tf5p_.arc thread=1 sequence=2
    RMAN-08138: WARNING: archived log not deleted - must create more backups
    archived log file name=/oracle/oracle/flash_recovery_area/ORCL/archivelog/2012_05_22/o1_mf_1_3_7vpdcjjm_.arc thread=1 sequence=3
    ORA-00604: error occurred at recursive SQL level 1
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    RMAN-08132: WARNING: cannot update recovery area reclaimable file list
    RMAN> having problem with Archivelog backup.

  • Rman errors on restore archivelog

    Hi all,
    I am running scripts to back up database every day , but after while 7 days it start to give me errors like:
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 12/16/2003 04:06:04
    RMAN-06026: some targets not found - aborting restore
    RMAN-06025: no backup of log thread 1 seq 43 scn 3924903 found to restore ...........
    that is script:
    $ORACLE_HOME/bin/rman target / << EOF
    configure retention policy to redundancy 3;
    configure retention policy to recovery window of 3 days;
    configure backup optimization on;
    configure controlfile autobackup off;
    configure default device type to Disk;
    configure device type Disk parallelism 1;
    configure datafile backup copies for device type Disk to 1;
    configure channel device type Disk format '/backup/%d_datafile_%s_%p.bak';
    configure maxsetsize to unlimited;
    configure snapshot controlfile name to '/backup/prod_snapcf.f';
    set controlfile autobackup format for device type Disk to '/backup/prod_controlfile_%F';
    show all;
    run {
    allocate channel ch1 type Disk maxpiecesize = 1900M;
    backup full database noexclude
    include current controlfile
    format '/backup/%d_datafile_%s_%p.bak'
    tag 'prod_datafile_daily';
    run {
    allocate channel ch1 type Disk maxpiecesize = 1900M;
    backup archivelog all
    delete all input
    format '/backup/%d_archivelog_%s_%p.bak'
    tag 'prod_archivelog_daily';
    run {
    allocate channel ch1 type Disk maxpiecesize = 1900M;
    backup format '/backup/%d_controlfile_%s.bak' current controlfile;
    crosscheck backup;
    restore controlfile to '/backup' validate;
    restore tablespace SYSTEM validate;
    restore archivelog all validate;
    list backup of database;
    report unrecoverable;
    report schema;
    report need backup;
    report obsolete;
    delete noprompt expired backup of database;
    delete noprompt expired backup of controlfile;
    quit
    I can resetlogs and that error disapeire
    Does anybody know that wrong with that script?
    Thanks

    Really the error is very strange realizing that if functions well for about 6 days or something like that.
    this is a notable line in the error.
    some targets not found - aborting restore
    I recommend you to check very well your targets path
    to be restore. I think that is the cause of the failure.
    Joel P�rez

  • How to check for archivelog backup on a particular date or time?

    Dear All,
    We have RMAN full database, cumulative and archivelog backup(eg location: Diskgroup A) scheduled on a regular period basis. Assume archivelog location is Diskgroup B. The diskgroup B became full and unable to archive further, since no space. Unable to connect to database, connect internal only until freed error. alert log also shows that archiver error. So the solution for this to clear some space in diskgroup B by removing some old archive logs. In our environment, everyday the archive logs are stored in a separated folder arranged in date wise.  I can do that . But before clearing some space, i need to make sure that the folder( or any date folder what im going to delete) is backed up or not. How to check that? Any idea please?
    eg: i have archivelogs like this in folders
    01_11_2013/
    02_11_2013/
    03_11_2013/
    04_11_2013/
    05_11_2013/
    06_11_2013/
    If i want to remove the folder 01_11_2013/( and its contents ie archivelogs) , how to check whether the archivelogs in this folder 01_11_2013/ is backed up or not?
    Regards,

    Pradeepcmst wrote:
    Dear All,
    We have RMAN full database, cumulative and archivelog backup(eg location: Diskgroup A) scheduled on a regular period basis. Assume archivelog location is Diskgroup B. The diskgroup B became full and unable to archive further, since no space. Unable to connect to database, connect internal only until freed error. alert log also shows that archiver error. So the solution for this to clear some space in diskgroup B by removing some old archive logs. In our environment, everyday the archive logs are stored in a separated folder arranged in date wise.  I can do that . But before clearing some space, i need to make sure that the folder( or any date folder what im going to delete) is backed up or not. How to check that? Any idea please?
    eg: i have archivelogs like this in folders
    01_11_2013/
    02_11_2013/
    03_11_2013/
    04_11_2013/
    05_11_2013/
    06_11_2013/
    If i want to remove the folder 01_11_2013/( and its contents ie archivelogs) , how to check whether the archivelogs in this folder 01_11_2013/ is backed up or not?
    Regards,
    rman> list backup;
    Which begs the question .. why is the FRA getting filled in the first place?  Is it seriously undersized?  Are you not doing regular housekeeping with rman 'delete obsolete' and 'backup archivelog delete input'

Maybe you are looking for

  • Strange sound issue on iPad2

    my mom is having odd sound issues on her iPad 2 that i was able to somewhat fix. and it goes from fixed back to broken o.O i thought it was interesting and worth mentioning, in case this happens to anyone else. her iPad 2 is up to date on the latest

  • Convert varchar to date in OBIEE-sql server database

    Hi we have SQL server database, and we need to convert varchar to to_date . In OBIEE we use evaluate,cast etc on Oracle......Not sure about sql server..please help

  • ITunes installer won't work

    First, sorry for my English. I'm having an issue installing iTunes after format my computer (using ORIGINAL Windows 7 Home Premium, wich worked fine with iTunes before the format). I've downloaded the last iTunes version from Apple site, but when I t

  • Legacy uploads

    The current company that i work for has sap but we are acuiring a new company which does not have sap. They are wanting for the time being financials be put on sap. The PO and GR will be done in legacy system and every day IR will be created in sap.

  • About use native sql

    how to use the native sql get the following value REPORT  YXLIU0010. DATA: exc_ref TYPE REF TO cx_sy_native_sql_error,       error_text TYPE string. DATA: BEGIN OF ITAB OCCURS 0 ,   F_BH(30) TYPE C,   F_NCYEJE TYPE p DECIMALS 2, END OF ITAB.   TRY.