Automatic purge of the OS check files older than 30 days

Running Oracle 11.2.0.4. We are trying to purge audit records from the OS (.aud) in this case on an AIX system.

By using this command:

Start

() dbms_audit_mgmt.create_purge_job

audit_trail_type = > dbms_audit_mgmt.audit_trail_OS,

audit_trail_purge_interval = > 24,

audit_trail_purge_name = > 'OS_PURGE ',.

use_last_arch_timestamp = > TRUE

);

end;

/


I managed to delete files > 30 days, you use this command to create a timestamp:

Start

() dbms_audit_mgmt.set_last_archive_timestamp

audit_trail_type = > dbms_audit_mgmt.audit_trail_OS,

last_archive_time = >

TO_TIMESTAMP ('2015-03-14 00:00:00 ',' YYYY-MM-DD HH24:MI:SS'),

rac_instance_number = > null

);

end;

/

The way it's Setup, I can get it to delete all files before March 14, every 24 hours, which is good for April 14, 2015. However, we must somehow this automatically.

Is anyway either have alternative use "use_last_arch_timestamp = > false" so that it does not use a time stamp, but also does not remove everything?

Or is it possible to automate the creation of a timestamp that would create something 30 days before?

In addition, I apologize if I don't put this in the right place, I wasn't sure at all where I should put this.

Please follow the link below. Automated control section purge it is well described.

ORACLE-BASE - audit (DBMS_AUDIT_MGMT) improvements in Oracle Database 11g Release 2

Tags: Database

Similar Questions

  • Why has my creative suite was extraction of the files older than 2 days?

    Why has my creative suite was extraction of the files older than 2 days?

    because there is a problem.

    undo the check and to redownload the installation files in the case where your dl has been altered.

  • ASMCMD delete files older than N days

    Hello

    in ASM diskgroup.

    (under the same directory)

    ASMCMD > ls - Lt.

    ... (thoudsands of log files looks at, for example, log_19.26718.790635667).

    How can I delete these files older than 10 days on a single command line?


    Thank you

    Edited by: 951932 24 October 2012 09:53

    Change the query that is used in wire,

    declare cur CURSOR,
    Select fname, numero_fichier, gnum gname from
    (SELECT numero_fichier gname, gnum, filnum, concat ('+' | gname, sys_connect_by_path (aname, ' /')) fname)
    FROM (SELECT file_number, g.name gname, out a.parent_index, b.SID Anom,
    a.reference_index rindex, a.group_number gnum, filnum a.file_number
    Of
    v$ asm_alias, v$ asm_diskgroup g
    WHERE a.group_number = g.group_number
    )
    START WITH (mod (out, power (2: 24))) = 0
    CONNECT BY PRIOR Rindex = out) output
    where gname = 'TEST'---> DG name
    and
    There are
    (select 'X' from v$ asm_file b)
    where b.file_number = output.file_number
    and b.group_number = output.gnum
    and b.type = 'FLASHBACK'
    and b.MODIFICATION_DATE<>
    );
    sqlstr VARCHAR2 (250);
    BEGIN
    FOR my heart IN cur_rec
    LOOP
    sqlstr: = 'alter diskgroup' | cur_rec.gname | "fall of file"' | cur_rec.fname | " « ; » ;
    DBMS_OUTPUT. Put_line (sqlstr);
    END LOOP;
    END;

    Published by: renee_mathieu on October 24, 2012 13:04

  • How to run the rman output files, which are more days of retention

    I use for my rman backup tasks.

    I have format my output files of rman to a specific path, instead of the fast recovery area.

    Also, I spend below command in RMAN

    RMAN > CONFIGURE RETENTION POLICY to RECOVERY OF 7-DAY WINDOW;

    And the "control_file_record_keep_time" parameter is also set to 7.

    I've been running rman for 8 days. Everything seems good. But I find several rman output files are more than 7 days.

    So, I just want to know how to handle the rman output, which is longer than 7 days files?

    In fact, I assumed that these older files should be obsolete files, but rman is not to declare that they are obsolete.

    So how do now?

    user8710670 wrote:

    I use for my rman backup tasks.

    I have format my output files of rman to a specific path, instead of the fast recovery area.

    Also, I spend below command in RMAN

    RMAN > CONFIGURE RETENTION POLICY TO RECOVERY OF 7-DAY WINDOW;

    And the "control_file_record_keep_time" parameter is also set to 7.

    I've been running rman for 8 days. Everything seems good. But I find several rman output files are more than 7 days.

    So, I just want to know how to handle the rman output, which is longer than 7 days files?

    In fact, I assumed that these older files should be obsolete files, but rman is not to declare that they are obsolete.

    So how do now?

    Windows 7 day average recovery rman will protect everything necessary for the recovery to any point in time in the last 7 days.  In fact, in the last 604800 seconds.  The same will mean that he need the files OLDER than that.  Simply because a backupset is older that your recovery window does NOT as yet, it is obsolete.  Any recovery begins with the last FULL or INCREMENTAL backup ZERO before the recovery point.  And it does not matter how old the backup is, it will be obsolete.  Suppose you take a level 0 backup, 1 January and for the rest of the year taking nothing but level 1 and backup archivelog.  31 December than and only the full backup will still not be obsolete, even though he is a year old.

    ============================================================================

    removal of the obsolescence of RMAN

    Day 1 - level 0

    Day 2 - level 1

    Day 3 - level 1

    Day 4 - level 1

    Day 5 - level 1

    Day 6 - level 1

    Day 7 - level 1

    Day 8 - level 0

    Day 9 - level 1

    Day 10 - level 1

    Day 11 - level 1

    Day 12 - level 1

    Day 13 - level 1

    Day 14 - level 1

    On day 14, your window of 7 days is up to date 7.  A recovery to date must begin by restoring the backup of level 0 of the day 1. So it may be outdated.  Some level 1 between 1 and 6 days backups might be obsolete, depending on if they are incremental or cumulative, and it also happens with archivelogs.

    If you have access to MOS, you can review the notes 462978.1 and 463875.1.

    ============================================================================

  • Query a directory and delete all files older than 1 hours

    How do I query a directory and delete all files in this directory that are older than 1 hour?

    I used CFDIRECTORY before displaying the pages in the directory and the directory information, but I can't understand how to query a directory and delete all files older than 1 hour of this directory.

    1 hour of old means that time is NOW over an hour of the date and time of the file on the server.

    You need to the user a combonation of the tag to read files and the to delete the files in conjunction of a tag to decide when and when not to do the removal.  The dateDiff function would be useful in this decision.

    In the pseduo code:

    
    
    
       
         
      
    
    

    NOTE: Look closely at the way the dateDiff works with fractional amounts.  That is, 59 minutes and 59 seconds is 0 hours while 1 hour and 1 second is 1 hour with the value of 'h' percision.

    Also note that I didn't look at the syntax for one of these tags, and I probably poorly named and. or misorderd settings.

  • Delete files older than the time period

    I have a sub (attached) vi which I have short after a period of time checks the files and comapres them against a time constraint. If this time constraint is met the files are deleted or moved. My current Setup uses file vi information to check the path of the folder. I want to delete or copy files after a period of time. In view of the last exit of change on the file information this only checks the date of last modification of the file, and I want that it checks the files in the folder. How can I do this?

    Hi CAEHP

    I finally get it to work. I join all of the finished program. Feel free to use and change around to meet your needs. The finished application to remove or move the files in the specified folders older than the set time. You can also set the frequency with which the application to check the folders.

    Hope this helps

  • Need to install and/or purge for the set-up file process?

    Hello

    I just installed OEM GC 10 gR 5 and when I look in the directory WHO & OMA I found a lot of generated files: these files are not purged by OEM itself or do I need to Setup/install something else for those files purged at the time?

    Kind regards

    Noel

    Christmas morning,

    You should look at ea tak:

    $OMS_HOME/sysman/config

    emagentlogging. Properties
    emcalog. Properties
    emiasconsolelogging. Properties
    emomslogging. Properties

    Concerning
    Rob

  • Why is the Windows backup file larger than the original disk?

    I just used the system on Windows 7 backup utility to back up to an external hard drive (USB). I'm curious to know why the backup hard disk file is 170 GB when my computer has only 103 GB used on a 150 GB C drive. Also, should it more than 8 hours to run?

    When you back up your computer using backup software and that you select the default options in the backup process that you backup not only installation Windows (C:\) but also other files you can have outside of the default installation.  Also, some files may been compressed into your windows installation may have been expanded to ensure that the intergerity backup file.

  • purge of the trace dump files or user

    Hello
    on 11g R2 (11.2.0.3) Windows,
    is there a scheduled task to purge the trace and dump the users files?

    Thank you.

    Please check cmd utility PURGE ADRCI;
    http://docs.Oracle.com/CD/E11882_01/server.112/e16536/adrci.htm#autoId43

    Nicolas.

  • Automatic setting of the M58 BIOS change after a few days.

    In fact, the problem is related to the boot sequence.

    I put the system BIOS AHCI disable and the HARD drive on the boot option will be excluded and I have to manually change the IDE HDD to the included side so that the system to boot from the HARD drive.

    But after a few days, the system will ask me boot error 1962 durong.

    When I go to the sequence, the IDE HDD going to sit on those excluded from BIOS to start starting site.

    Try to Flash the BIOS to version 5ckt48aus to 5ckt50aus (Latest), already, but still hit with the problem.

    Help, please.

    You can refer to the URL below for more visibility.

    http://www-307.IBM.com/PC/support/site.WSS/document.do?sitestyle=Lenovo&lndocid=SF08-D0203

    Hi Peter,.

    The problem I encounter is due to AHCI HARD drive setting and only after WOL.

    If you do not use AHCI 3, 4 & 5 will be AHCI / IDE HDD SATA not.

    You can change the BIOS setting followed steps below:
    1. power on the system and press 'F1' enter the BIOS utility.
    2. go to the "Device" option, make sure that "Enable the SATA AHCI" change to "disable"(if you don't use AHCI, pls ignore this step).
    3. go to the "Start" option, select "Boot Sequence"
    and ensure that the IDE HDD: is not in the section 'Excluded from the boot order' to [Primary] start sequence screen.
    4. press "2" to enter "start sequence screen [automatic],
    and ensure that the IDE HDD: is not in the section 'Excluded from the boot order' to [Auto] sequence start screen.
    5. press "3" to enter "start screen for sequence [error],
    and make sure that the IDE HDD: is not in the section 'Excluded from the boot order' on-screen of start sequence [error].
    6. press "F10" to save and exit the setting.

    Make sure that the HARD drive is not in the list of the excluded for all 3 optios. Primary, automatice & error.

    Let me know if this helps or not.

  • validate the email - check for more than one point

    I'm looking to validate and address email and I found how to check for a simple point 'never@land. . com' with email_txt.text.indexOf('.') < 0 but I want to also want to check to see if the user may have registered two points 'never@land. . com ".

    I tried:

    email_txt.text.indexOf('.') < 0 |  email_txt. Text.IndexOf('.') > 2 but which in fact throw up all the time.

    I also tried:

    email_txt.text.indexOf('.') < 0 & & > 2 and one launched all sorts of errors.

    I don't know if I've ever seen someone check for that, so I might be a little more zealous, but I thought I'd give it a try.

    Thanks in advance

    function validateEmailF(inputEmail:String):Boolean {}
    Search for spaces
    If (inputEmail.indexOf("") > 0) {}
    Returns false;
    }
    bust of the email part in what comes before the @ and what comes after
    var emailArray:Array = inputEmail.split("@");
    Make sure that there is exactly a symbol @.
    Also make sure that there is at least one character before and after the @.
    If (emailArray.length! = 2 | emailArray [0] .length == 0 | emailArray [1] .length == 0) {}
    Returns false;
    }
    bust of share the stuff after the @ apart on any. characters
    var postArray: Array = emailArray [1].split(".");
    Make sure that there is at least one. After the @.
    If (postArray.length<2)>
    Returns false;
    }
    Make sure that there is at least 1 character in each segment before, between and after each.
    for (var i: Number = 0; i
    If (postArray [i] .length<1)>
    Returns false;
    }
    }
    Download what's left after the last.
    suffix var = postArray [postArray.length - 1];
    Make sure the end segment is 2 or 3 characters
    If {(suffix.length<2 ||="" suffix.length="">3)}
    Returns false;
    }
    It is passed all the tests, it is a valid email address
    Returns true;
    }

  • How can I set the history to keep more than two days of history, for example up to a week

    I want to keep a history for two more showing days. What is this, please?

  • the system registry file is missing or damaged

    When I try to load up vista premium 32 bit edition on my laptop, a screen will appear and say the system registry file is missing or damaged and the custom of vista so load up, I just need my pictures of my son on my hard drive, all the rest does not matter, I even tried to use one of these inclosures of hard drive to see if I can get the data on the hard drive on my other computer laptop but has not been successful, I just need to know how to recover the system registry file on.

    Do you know when this problem started?  Try a system restore to a point in time BEFORE the problem started.  Here is the procedure: http://www.howtogeek.com/howto/windows-vista/using-windows-vista-system-restore/.  Don't forget to check the box to show more than 5 days of restore points.  If the first attempt fails, then try an earlier point or two.  NOTE: You will need to re - install any software and updates that you have installed between now and the restore point, but you can use Windows Update for updates.  System Restore restores the registry among other things, and this should solve your problem.  You should probably use the facility or the recovery disc to access this feature.

    You may need to change the BIOS to do first the CD drive in the boot sequence to boot from the CD.  To do this, hold the screen that tells you the key F to push to enter the menu start or start of installation.  Push it quickly. Make the changes, save your work and exit.  Put the CD in the drive and reboot.  When you are prompted, press any key to boot from the CD.

    If you do not have a floppy disk, you can make a bootable recovery disk by using http://neosmart.net/blog/2008/windows-vista-recovery-disc-download/ with burning software like: http://www.snapfiles.com/get/active-isoburner.html and, of course, a blank CD (if necessary, you may need to do this drive on another PC / laptop).

    I hope this helps.

    Good Lluck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How to use the pageDef of the Page template file.

    Hello

    JDev Version 11.1.2.3.0.

    I have an app with the pageTemplate file that is used on all pages. I added a taskflow bounded to the page template. To use this bounded taskflow, I need to have in the file pageDef the taskflow definition:

    "< taskFlow id ="languageBTF2"taskFlowId="/facets/language/languageBTF.xml#languageBTF ' activation 'deferred = '.

                  xmlns=" http://xmlns.Oracle.com/ADF/controller/binding "/ > "

    However this was automatically added in the model pageDef file. If I want to use it in all of my pages, I need to add it to all their files pageDef manually, because the #{bindings} resolves to the pageDef of the current page and not the model page.

    Kind regards

    Pamela

    If you add the template, you must update all the linking pages to access the model pageDef pageDef. You can try this:

    1 - Open one of you request page (.jspx) and go to the pageDef, this page, and in the executable section add this as:

    
        
        
    
    

    in the path to write the path of the file for pageDef model.

    2 - Open the .jspx page and in the pageTemplate add this value = "#{bindings.ptb1}" as "

        
          
            
    
            
          
        
    

    3 - Repeat these 2 steps for all pages.

  • Problems with the service of version 9.0.2? Sudden research questions of text in the output WinHelp files

    I've been building and using the same aid project in multiple versions of Robohelp since 2002 about.  Upgrade to Robohelp 9 earlier this year (Office 2010/Win 7), properly migrated project in RH9 and Word 2010 RH7 and W2003.  Despite being really bug RH9 and doesn't play well with Word, were able to continue to build multiple versions of the project without successfully exit WinHelp 2000 compilation problem, no error messages all basically good.  Until the 9.0.2 update.  Of course, the update fixed the issues of speech, now HR and Word 2010 not play very well. But now I get the dreaded "cannot search, display tab: error 177' Message in compiled projects.»  This same message now appears on WIn XP machines that have the project distributed.  Also find full-text search is available on the Win 7 despite the warning, but on a XP machine machine only partial text is available for searching (so this is not the question of Win7 re display of files HLP - win 7 has all the patches of register machine and MS. HLP Patch installed to run and has not been a problem to date).  Coincidence?  This started to happen since the 9.0.2 update installed?  (The cause of the error message doesn't seem to be the traditional corrupt file GID on PC like on XP machines before the new installed help file, it will be deleted).  Have I somehow changes the settings in the HPJ file or another project file generation?  Is this a problem of indexing that I can fix?  If so someone at - it ideas?  Come to think of him with ideas at all about what is happening here and how can I solve this problem?  (I'm considering back in the initial installation of RH 9 (implemented with Bugs) and see what happens but fear I might have inadvertently installed something version 9.0.2 )

    Another interesting question is that the immediately previous version of this project (built with the Buggy of RH9 version) re - unfolds on the other computers and XP very well.  So why I suspect 9.0.2?  Anyone with some help pls?  Where I could look in settings (if any) to correct the problem?  I tried to re - create a completely new project with the same word documents, but using the origingal. HPJ file and the same problem presented?

    Peter,

    With a lot of relunctance, (probably because of being on holiday and in the middle of the Christmas break), I've rolled up their sleeves and rebuilt the project from scratch. (What else do you ndo when on vacation?-can think of several things). The project is bitmaps quite large, consisting of 38 separate Word Documents, 908 topics, 731 jumps, 907 keywords and 37.  This project was built in 2000 and enjoyed time has reached this size. Each year, some 15 to 20 of the draft versions are built as subjects and content changes.  The propject resulting is distributed on a netwrok involving 3 operating sites and more than 250 terminals.

    The first step in correcting this problem was to place all word documents in word 2010 format (38) project.  Before that documents previously saved in Word 2003 format and open in Word 2010 (compatibility) mode.  On the assumprtion there was a problem of compatibility between 2003 and 2010 word format causing the compiled research questions.  I saved all the latest known version of 'Good' of the project documents in this mode.

    Once all documents saved to Word 2010 format, each document has been individually then imported into the new project, the project saved and built after each document imported.  This was done for was the origin of the problem to ensure that a particular document.  None appeared.

    Once that all the 38 documents any OCD has created the last well-known CNT file.  Imported into this new project in the form of measurements of the CNT old file rather than use then file itself.  Project saved and rebuilt again.  Still good.  I used the text instead of the CNT file again just to try to eliniate hidden, coding of corruption in the file of the CNT.

    Then the sequences to browse relevant have been updated in order to meet the requirements, project archived for proken links (found nothing) or any other error.  Once again.  Nothing found.  Re-built and still saved.  No problem identified with the project.

    At this point the last well-known version has been restored in a new project just in Word 2010, format, changes in the (next) version of fault had not yet been restored to the project.  5 files in this version had a lot of changes that I have taste not individually make each change.  In order to reduce to a minimum rework them, I took the opportunity to copy the text of the documents and paste the text into the new word format documents (rather than import something that may have corrupt and coding). In each case I deliberately does not include the first or the last lines of the documents in the copied text, again try to eliminate the import of any coirruption that may have existed?  Yet once, save and rebuild the project after each import text.

    Final score, a return without erors project.  Tested on 2 different local machines (both running Win 7 with Winhelp patch applied) no error returned.  Deploy the updated on the work network this morning.  (XP systems), yet once no erors returned and full don't search feature now available.

    So, what was the problem?  Not sure that I'll never know, (I have a second project on another topic which is still in Word 2003 format, built under this version of RH9 and she does not have the same problems I had in this project).  Whatever, it was an absolute pain, many lost hours, but a positive result (finally).

    Thanks to you and the people who have offered nhave his help.

    Bryan

Maybe you are looking for

  • 4 TB HD Wi - Fi transfer Itunes library

    Just bought a WD 4 to Cloud My Wireless HD.  I want to transfer the Go 107,58 primarily of the music that is currently in my Itunes library for the new external hard drive wireless.  What are the best options/procedures do?  I take the ITunes folder

  • PMB: Asterisk on thumbnail?

    Some of the thumbnails of my pic have a green box in the lower right corner of a white asterisk in a white circle in it. That shows that? Thank you

  • 6510 Photosmart will not print black

    6510 won't print black. I followed all the steps shown to others by the Lady HP representative on the help forum, but nothing helped. Before finding the forum, I thought that haveway just went black cartridge empty through a print page 7 of a documen

  • External files are not deployed to target

    I'm trying to follow the example in this post where the user specifies a file in the build specification which includes no - LV files.  It contains HTML files that must be deployed with the project.  It seems to be a good idea to keep HTML and JS fil

  • Code error 800b0100 installing KB983590

    He has downloaded on the computer, but will not be installed. I did what they suggest that when this problem occurred, but it helps doesn´t. I have Windows 7 and Internet Explorer 8