Flashback log purge

Hi
I`ve set db_recovery_file_dest_size to 20m and flashback retention target to 60mins.
As far as I know flashback logs are automatically deleted when the fra is filled up.
I notice that there are 4 flashback logs and they are never deleted in the last two days.
What is the reason for that ?
log_1.287.760141739
log_2.281.759973635
log_2.285.760141745
log_3.298.760145161

It only possible it will reuse it.
Most of the time it will create a new log from my experience.
It all depends on your settings.
I watch v$flash_recovery_area_usage fairly close on my systems and the flashback logs are a fairly small piece of my FRA.
Archive and RMAN backups use up most of the space. For the most part I let Oracle just handle the flashback logs.
Best Regards
mseberg
Query I like for this :
SELECT
  ROUND((A.SPACE_LIMIT / 1024 / 1024 / 1024), 2) AS FLASH_IN_GB,
  ROUND((A.SPACE_USED / 1024 / 1024 / 1024), 2) AS FLASH_USED_IN_GB,
  ROUND((A.SPACE_RECLAIMABLE / 1024 / 1024 / 1024), 2) AS FLASH_RECLAIMABLE_GB,
  SUM(B.PERCENT_SPACE_USED)  AS PERCENT_OF_SPACE_USED
FROM
  V$RECOVERY_FILE_DEST A,
  V$FLASH_RECOVERY_AREA_USAGE B
GROUP BY
  SPACE_LIMIT,
  SPACE_USED ,
  SPACE_RECLAIMABLE ;And
column FILE_TYPE format a20
select * from v$flash_recovery_area_usage;Edited by: mseberg on Aug 24, 2011 9:01 PM

Similar Messages

  • Problem with deleting Flashback logs

    Hi all,
    I configured flashback database on my Oracle10g R2 DB that sits on Win 2003 server.
    When I issued the command to delete the flashback logs I see that the logs are not deleted.
    Please what could be the problem here?
    Regards,
    Creems

    Sorry, I should be clearer.
    My flashback retention target is 1 day - 1440 ... but that doesnt get deleted automatically, ERROR from Oracle so I hear.
    So, I tried to do it manually by putting the DB in mount state and issuing:
    ALTER DATABASE FLASHBACK OFF;
    Yet never get deleted.
    What could the problem be?
    Thanks.
    Creems

  • Why the flashback log'size smaller than the archived log ?

    hi, all . why the flashback log'size smaller than the archived log ?

    Lonion wrote:
    hi, all . why the flashback log'size smaller than the archived log ?Both are different.
    Flash logs size depends on parameter DB_FLASHBACK_RETENTION_TARGET , how much you want to keep.
    Archive log files is dumped file of Online redo log files, It can be either size of Online redo log file size or less depending on online redo size when switch occurred.
    Some more information:-
    Flashback log files can be created only under the Flash Recovery Area (that must be configured before enabling the Flashback Database functionality). RVWR creates flashback log files into a directory named “FLASHBACK” under FRA. The size of every generated flashback log file is again under Oracle’s control. According to current Oracle environment – during normal database activity flashback log files have size of 8200192 bytes. It is very close value to the current redo log buffer size. The size of a generated flashback log file can differs during shutdown and startup database activities. Flashback log file sizes can differ during high intensive write activity as well.
    Source:- http://dba-blog.blogspot.in/2006/05/flashback-database-feature.html
    Edited by: CKPT on Jun 14, 2012 7:34 PM

  • ODI - Logs purged while ETL is in progress.

    Hi All,
    We are using ODI 11.1.6 to execute ETL. We found that while a load plan is in progress, after some time ODI agent automatically stops executing the load plan, purges the logs and on agents command prompt window writes a message "Agent <AGENT NAME> executing load plan log purge for work repository <Work Repo Name>". After this, work repository goes down and ETL execution is halted.
    Is there any parameter which can be set for this behavior of ODI?
    Regards
    Gaurav.

    Hi All,
    We are using ODI 11.1.6 to execute ETL. We found that while a load plan is in progress, after some time ODI agent automatically stops executing the load plan, purges the logs and on agents command prompt window writes a message "Agent <AGENT NAME> executing load plan log purge for work repository <Work Repo Name>". After this, work repository goes down and ETL execution is halted.
    Is there any parameter which can be set for this behavior of ODI?
    Regards
    Gaurav.

  • DR server flashback error : Unable to allocate flashback log

    Hi,
    I have a Standby Database and the DR log synchronization with Primary Database was interrupted due to below errors:
    Unable to allocate flashback log of 1946 blocks from
    current recovery area of size 2147483648 bytes.
    Recovery Writer (RVWR) is stuck until more space is
    available in the recovery area.
    Unable to write Flashback database log data because the
    recovery area is full, presence of a guaranteed
    restore point and no reusable flashback logs.
    Use ALTER SYSTEM SET db_recovery_file_dest_size command
    to add space. DO NOT manually remove flashback log files
    to create space.
    --> On DR server
    SQL> SELECT DATABASE_ROLE, DB_UNIQUE_NAME INSTANCE, OPEN_MODE PROTECTION_MODE, PROTECTION_LEVEL, SWITCHOVER_STATUS FROM V$DATABASE;
    DATABASE_ROLE INSTANCE PROTECTION PROTECTION_LEVEL
    SWITCHOVER_STATUS
    PHYSICAL STANDBY A80 MOUNTED MAXIMUM PERFORMANCE
    SESSIONS ACTIVE
    SQL> select process, status, thread#, sequence#, block#, blocks from v$managed_standby;
    PROCESS STATUS THREAD# SEQUENCE# BLOCK# BLOCKS
    ARCH CONNECTED 0 0 0 0
    ARCH CONNECTED 0 0 0 0
    MRP0 APPLYING_LOG 1 29118 125049 186723
    RFS IDLE 0 0 0 0
    RFS IDLE 0 0 0 0
    RFS IDLE 0 0 0 0
    6 rows selected.
    --> Alert log
    Sat Mar 17 04:51:00 2012
    RFS[606]: Archived Log: 'L:\ORACLE\A80\ORAARCH\A80ARCH\ARC29222_0681431456.001'
    Primary database is in MAXIMUM PERFORMANCE mode
    Sat Mar 17 05:51:07 2012
    RFS[606]: Archived Log: 'L:\ORACLE\A80\ORAARCH\A80ARCH\ARC29223_0681431456.001'
    Primary database is in MAXIMUM PERFORMANCE mode
    Sat Mar 17 06:51:04 2012
    RFS[606]: Archived Log: 'L:\ORACLE\A80\ORAARCH\A80ARCH\ARC29224_0681431456.001'
    Primary database is in MAXIMUM PERFORMANCE mode
    Sat Mar 17 08:50:40 2012
    RFS[606]: Archived Log: 'L:\ORACLE\A80\ORAARCH\A80ARCH\ARC29225_0681431456.001'
    Sat Mar 17 12:28:30 2012
    ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL
    I did a "ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL" to stop the log shipping on DR server but the command is hanging.
    I also tried freeing up the disk space in my flashback drive but I think it won't help as indicated in the error message:
    "DO NOT manually remove flashback log files to create space".
    What is the best way to set the DR server back to normal operation?
    I do not need the flashback logs and will disable the flashback once this is rectified.
    This is Oracle 10.2.0.4 Physical Standby using Oracle Dataguard.
    Thanks a lot!

    <smacking forehead on the table>
    Bloody hell! How the heck I missed that darn "B" ? I guess, time to get some sleep and after that some coffee.Please don't do ;-)
    When knowledge is in extreme level, there is possibilities to miss small and small things some time.
    @OP,
    Here some practice
    sys@ORCL> show parameter db_reco
    NAME                                 TYPE        VALUE
    db_recovery_file_dest                string      C:\Oracle\flash_recovery_area
    db_recovery_file_dest_size           big integer 3852M
    sys@ORCL> alter system set db_recovery_file_dest_size=3900mb scope=both;
    alter system set db_recovery_file_dest_size=3900mb scope=both
    ERROR at line 1:
    ORA-02065: illegal option for ALTER SYSTEM
    sys@ORCL> alter system set db_recovery_file_dest_size=4gb scope=both;
    alter system set db_recovery_file_dest_size=4gb scope=both
    ERROR at line 1:
    ORA-02065: illegal option for ALTER SYSTEM
    sys@ORCL>  alter system set db_recovery_file_dest_size=3900m scope=both;
    System altered.
    sys@ORCL> alter system set db_recovery_file_dest_size=4g scope=both;
    System altered.
    sys@ORCL> show parameter db_reco
    NAME                                 TYPE        VALUE
    db_recovery_file_dest                string      C:\Oracle\flash_recovery_area
    db_recovery_file_dest_size           big integer 4G
    sys@ORCL>

  • Oracle not using space occupied by flashback logs

    Hi,
    oracle 10g R2 10.2.0.1 on RHEL 4 64-bits.
    my db_flashback_retention_target is set to 1440 and my db_recover_file_dest_size is set to 40G.
    flashback logs are occupying about 36G so whenever rman tries to backup the database, it breaks saying it cannot reclaim enough space from the 40G limit.
    when checking the flashback logs,i saw that the DB is keeping 3 day old logs. should it not reclaim the space occupied by these logs and delete them?

    Others have reported similar issues: http://www.wayneadamsconsulting.com/
    >
    One thing that I have not seen the database do, however, is delete reclaimable flashback logs in order to make room for a backup. If there is not enough free space in you FRA for a backup but there is plenty of space used by relcaimable flashback logs, RMAN and the database will not delete flashback logs to free up room in the FRA for the backup. This seems like a fairly large gap in the flashback log functionality, but hopefully Oracle will handle it in a future release.
    >
    See MOS note: Space issue in Flash Recovery Area( FRA ) [ID 829755.1] .
    Note also that 10.2.0.1 is a old 10.2 release and that you could consider upgrading to 10.2.0.4.

  • Remove the flashback logs in EBS envoirnment.

    Hi,
    In my production database(primary) machine flashback is ON.
    So, logs are creating in following directory:
    /d01/silprod/SILP/db/apps_st/data/archives/SILP01_SER/flashback
    In my physical standby database flashback is OFF.
    So, My question is that:
    Can I remove the flashback logs from production safely?
    Thanks.

    Hi,
    How to identified that which archive logs no longer needed and can delete, and how to reclaim the archive space?
    Is below steps are correct?
    Archive location: /d01/silprod/SILP/db/apps_st/data/archives/SILP01_SER/archivelog
    Archive files name like: o1_mf_1_894_5jpkly8k_.arc -------------> Sequence#=894
    Archive Size occupied:
    > du -sh archivelog/ ------------> 2.7G archivelog/
    STEP#1:
    SQL> SELECT THREAD#, SEQUENCE# FROM V$LOG WHERE STATUS='CURRENT'; -----------> RESULT: THREAD#=1 AND SEQ$= 894
    SQL> ALTER SYSTEM ARCHIVE LOG CURRENT;---------------->DONE
    SQL> SELECT THREAD#, SEQUENCE# FROM V$LOG WHERE STATUS='CURRENT'; -----------> RESULT: THREAD#=1 AND SEQ$= 895
    Confirm the current file have been applied to the standby database with the below query
    SQL> SELECT MAX(SEQUENCE#) FROM V$LOG_HISTORY; -----------------> RESULT: THREAD#=1 AND SEQ$= 894
    Step#2:(Memory)
    > delete unwanted archive log files from disk (rm, del commands)---------> all archives files deleted expected of PROD_1_894.arc
    RMAN> crosscheck archivelog all; - marks the controlfile that the archives have been deleted
    RMAN> delete expired archivelog all; - deletes the log entries identified above.
    But, How to identified that which flashback files no longer needed and can delete, and how to reclaim the flashback space?
    Flashback location: /d01/silprod/SILP/db/apps_st/data/archives/SILP01_SER/flashback
    Flashback files name like: o1_mf_5jlc8gb0_.flb, o1_mf_5jlcb2bv_.flb etc ------------> how to identified which file(File Name has no sequence#) should I delete?
    Flashback Size occupied:
    > du -sh flashback/ ------------> 3.5G flashback/

  • 11g block recover doesn't look for flashback logs

    dear all
    could you please let me know the reason of why rman doesn't uses flashback logs for block recovery? Here's the thread I've opened in ddatabase-general
    Re: 11g block recover doesn't look for flashback logs
    thanks
    john

    dear all
    could you please let me know the reason of why rman doesn't uses flashback logs for block recovery? Here's the thread I've opened in ddatabase-general
    Re: 11g block recover doesn't look for flashback logs
    thanks
    john

  • Reduce flashback log - disable flashback for a table

    Hi,
    We have a table which we use only for logging. This information is not essential but there is a lot (given our scale of data :p ) of data (5.000.000 by day)
    So we have put the table in nologging (reduce redo => archived),
    the insert are /*+ append*/ (reduce undo)
    Now, we want to reduce the flashback logs?
    Is there a way to disable flashback for a given table ?
    thanks
    Nicolas

    Hi,
    first i would use:
    alter table tablename nologging;
    So you won't generate a lot of redo.
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_3001.htm#CJAHHIBI
    I'm not sure you can disable flashback at table level.
    You can do that on tbs level.
    Hope this helped..
    Bye
    Acr

  • Delete flashback log dynamically.

    i want to delete flashback log dynamically.
    suppose today is 1st feb while running shell script it will remove flashback log 31stjan ...
    i have set retention policy 1 days.
    following is the my sh script
    =====================
    #!/bin/sh
    # Daily Backup
    . oraenv.oratest
    export NLS_DATE_FORMAT="Dy DD-Mon-YYYY HH24:MI:SS"
    LOG_DIR="/var/log/oracle"
    LOG_FILE="$LOG_DIR/$ORACLE_SID-daily-backup.log"
    EMAIL_TO="[email protected]"
    echo -e "\nBackup Commenced: " $(date) "\n"
    pushd $HOME/rman
    rman target / cmdfile="daily-backup.rman" log="$LOG_FILE" append
    retcode=$?
    if [ "$retcode" -ne "0" ]; then
    echo -e "\n***\n*** BACKUP FAILURE: Database $ORACLE_SID on $HOSTNAME \n***"
    mail -s "BACKUP FAILURE: Database $ORACLE_SID on $HOSTNAME" $EMAIL_TO < $LOG_FILE
    exit 1
    else
    mail -s "INFO: Backup success: $ORACLE_SID on $HOSTNAME" $EMAIL_TO << EOF
    Database $ORACLE_SID on $HOSTNAME backed up successfully.
    EOF
    fi
    popd
    echo -e "\nBackup Completed: " $(date) "\n"
    rman script
    run {
    # Remove any obsolete files prior to backup
    crosscheck backupset;
    crosscheck copy;
    delete noprompt obsolete;
    delete noprompt expired backup;
    delete noprompt expired copy;
    # Incremental backup and update of current image copy
    allocate channel oem_disk_backup device type disk;
    recover copy of database with tag 'ORA\$OEM_LEVEL_0';
    delete noprompt obsolete;
    delete noprompt expired backup;
    delete noprompt expired copy;
    backup incremental level 1 cumulative copies=1 for recover of copy with tag 'ORA\$OEM_LEVEL_0' database;
    # Following backup - remove any now-obsolete files
    delete noprompt obsolete;
    delete noprompt expired backup;
    delete noprompt expired copy;

    RMAN cannot delete flashback logs, these are maintained automatically according to parameter 'db_flashback_retention_target'. Don't confuse FLASHBACK DATABASE with RMAN point-in-time recovery.
    RMAN backups become obsolete as soon as no longer needed to meet the defined retention policy, 'delete obsolete' will never delete flashback logs.

  • Alert & Audit Log Purging sample script

    Hi Experts,
    Can somebody point to sample scripts for
    1. alert & audit log purging?
    2. Listener log rotation?
    I am sorry if questions look too naive, I am new to DBA activities; pls let me know if more details are required.
    As of now the script is required to be independent of versions/platforms
    Regards,

    34MCA2K2 wrote:
    Thank a lot for your reply!
    If auditing is enabled in Oracle, does it generate Audit log or it inserts into a SYS. table?
    Well, what do your "audit" initialization parameters show?
    For the listener log "rotation", just rename listener.log to something else (there is an OS command for that), then bounce the listener.
    You don't want to purge the alert log, you want to "rotate" it as well.  Just rename the existing file to something else. (there is an OS command for that)
    So this has to be handled at operating system level instead of having a utility. Also if that is the case, all this has to be done when database is shut down right?
    No, the database does not have to be shut down to rotate the listener log.  The database doesn't give a flying fig about the listener log.
    No, the database does not have to be shut down to rotate the alert log.  If the alert log isn't there when it needs to write to it, it will just start a new one.  BTW, beginning with 11g, there are two alert logs .. the old familiar one, now located at $ORACLE_BASE/diag/rdbms/$ORACLE_SID/$ORACLE_SID/trace, and the xml file used by adrci.  There are adrci commands and configurations to manage the latter.
    Again, I leave the details as an exercise for the student to practice his research skills.
    Please confirm my understanding.
    Thanks in advance!

  • Automatically Deleting Flashback logs

    Hi all,
    Platform: oracle 10g R2, Win 2003 server
    Is there a way someone can delete flashback logs automatically without doing it the normal way?
    The normal way: startup nomount
    alter database flashback off;
    My manager said I can keep on shutting down the database, he wants it done automatically.
    Any help please???
    Thanks.
    Creems

    Hi,
    Set the parameter DB_FLASHBACK_RETENTION_TARGET initialization parameter which determines exactly how far a database can be flashed back. The default value is 1440 minutes (one full day), but this can be modified to suit the needs of your database.

  • LDAP LOG PURGE (Housekeeping)

    I have 2 large tables in LDAP,
    1.ods.ods_chg_log (size :9375M)
    2.ods.ds_attrstore(size :2431M)
    Please anyone to help me and tell me how to housekeeping thees two tables?
    Thabks,
    Bryan

    Hi Bryan,
    1. If I am correct, the changes to the OID are stored in the ODS.ODS_CHG_LOG table You may want to have a look at
    Metalink Note:301727.1:
    Change Log Purging - Overview to purge some of the Change Log Entries.
    You may also get information about the same from the Oracle Internet Directory Administrator's Guide at this link :-
    http://docs.oracle.com
    2. Again, if I am correct, the ods.ds_attrstore stores information about OID Entry Attributes. I am not sure if we can / should purge the data in this table......but, 2431M for the table seems unusual.....how many records does it currently hold ?
    Regards,
    Sandeep

  • Estimate of Flashback logs to expect for my database

    Hi all,
    Please I need to know (roughly) the size of flahback logs to expect for my database.
    My database is about 500G in size, grows at about 1% per month and I hope to keep flashback logs for 48 hrs.
    If you currently use the flashback technology, let me know your database size, how many hours of flashback logs you keep and the size of your logs. If I get 2 or 3 responses, then I'll be able to make an intelligent guess for what my database flahback log size might be.
    Regards
    baffy

    The value of the DB_FLASHBACK_RETENTION_TARGET parameter (1440
    minutes in our example) determines how much flashback data the database should
    retain in the form of flashback database logs in the flash recovery area. In order to
    estimate the space you need to add to your flash recovery area for accommodating
    the flashback database logs, first run the database for a while with the flashback
    database feature turned on. Then run the following query:
    SQL> select estimated_flashback_size, retention_target,
    flashback_size from v$flashback_database_log;
    ESTIMATED_FLASHBACK_SIZE RETENTION_TARGET FLASHBACK_SIZE
    126418944 1440 152600576

  • How to Force Flashback Logs to Grow

    Hi, I want to test RMAN and Oracle's handling of disk space over time as a database is used, specifically flashback logs.
    For this I want to increase the size of the flashback logs and see oracle delete the old flashback logs as the sizes grow. Is there a way to force the flashback logs to grow? Or at least an efficient way to do it? I know flashback logs are block level deltas of my datafiles but I don't want to modify the entire database to generate flashback data.
    Thanks

    Hi,
    Is there a way to force the flashback logs to grow? Or at least an efficient way to do it? I know flashback logs are block level deltas of my datafiles but I don't want to modify the entire database to generate flashback dataThe size of flashback logs generated by the database for a given time period can vary considerably, however, depending on the specific database workload.
    When flashback is in use, a before image of each block that is updated is copied to the flashback log ; this only needs to be done once since no matter how many times the same block is updated as, if we flash back, we only care about the initial contents of the block. The size of the before image will be the same as db_blocksize. So the key to understanding how much flashback data will be generated is not just how much redo is generated but how many physical blocks are updated. If more blocks are affected by database updates during a given interval, then more disk space is used by the flashback log data generated for that interval and you will find that the size of the flashback data may greatly exceed the size of the redo generated.
    Read it:
    CALCULATE THE VOLUME OF FLASHBACK LOG GENERATION [ID 761126.1]
    Regards,
    Levi Pereira

Maybe you are looking for

  • Purchase order not saved

    hi, Iam not able to creating purchase order.when i try to save the order and  found a system error "session terminated." I restarted the system once but no solution. whether any setting changes is needed? guide me. Regards, Ram

  • Problem with JSObject.getWindow() method - Please Help

    I have a small Apllet that has a button that calls a Javascript function in the opening window, to close the window in which it is loaded. The Applet window is a PopUp window from one of my application's window. First time I start my application and

  • My computer doesnt do anything

    i have a thing called a windows Pro Defence kit and i dont have any idea how i got it but it doesnt let me get on anything like the internet or anything and if i try to switch it anything it tells me to get the full thing and that i have to buy it an

  • Configuration of BW 7.0 in coordination with ECC 6.0

    The SAP version is "4.6c", and BW is 7.0 (BI). Now , user wanna upgrade SAP version to ECC 6.0 What should to be configured within BW ? Just migration DataSource from 3.x to 7.0 ? Tks !

  • Calculating Totals

    Hi, I am new to Adobe Forms using LiveCycle Designer and need help in my scenario. I tried searching for a similar issue in the forum but could not find a solution. I have a PARENT subform in which i have inserted a table (table header + table Body R