Dba_scheduler_jobs for clearing the sys audit table

Hi.
can u please tell me how to purge a sys.aud$ table records once its reached more than once lakh ... these 1 lakh is the threshold and other more data will be peridiodically purged by automated dba_scheduler_jobs.
My db is - 10g
so i need to always retain 1lakh rows on the table..extra data will be purged...once breaching the threshold...i don know how to write..since i am new to this oracle.can anyone help?
Thanks

See these MOS Docs
How To Shrink AUD$ IN ORACLE 10G (Doc ID 1080112.1)
New Feature DBMS_AUDIT_MGMT To Manage And Purge Audit Information (Doc ID 731908.1)
How to Truncate, Delete, or Purge Rows from the Audit Trail Table SYS.AUD$ (Doc ID 73408.1)
Srini

Similar Messages

  • Is there a way to include the sys.aud$ table in a full database dp export?

    I am doing an export using the following parfile information:
    userid=/
    directory=datapump_nightly_export
    dumpfile=test_expdp.dmp
    logfile=test_expdp.log
    full=y
    content=all
    However when I run this I do not see the sys.aud$ in the log file. I know I can do a seperate export to specifically get the sys.aud$ table but is there any way to include it in with my full export?
    Thanks in advance for any suggestion.

    here's more background infomation... I have some audits setup on my database for one of my users. Every quarter I have an automated job that runs that creates a usage/statics report for this person using data in aud$. at the end of the job I export the aud$ table and truncate it. However last quarter I found that there was a mistake in my report and my export did not run properly thus my audit data was gone. i also have full datapump exports that run daily but found that aud$ was not there. so that is why I thought I'd like to include sys.aud$ in the full datapump exports.
    i understand why other sys tables would be left out of a full export but aud$ data cannot be reproduced so to me it makes sense to include it in a full export.
    don't worry, we run our true backups using rman which is eventually how I got the aud$ data back by creating a copy of my database up until the time of the truncate. however this was quite time consuming.

  • Manual BRS system not picking the doc for clearing the payment

    While processing Manual bank statement if i am  using referance doc no system not picking doc no for clearing the bank payment. So that after finishing BRs I am matching the doc manually, in f-04. This is taking long time for processing. Anyone can tell me why ref doc no not working and to make it to work, or else any problem is there to use the field. please solve my query.
    Edited by: MANISFICO1 on Aug 1, 2011 11:49 AM

    Hi:
           Please follow as given and hopefully you will be able to resolve the issue.
    1...Go to SPRO...Financial Accounting....Bank...Business transactions...Payment Transactions...Manual Bank Statement..Create a new transaction with sign - and do not assign anything in posting rule for now and enter 15 in Algorithm field , save.
    2...In define posting keys and posting rules...create an account symbol for the one you did in step 1..In Assign account to account symbol please use account symbol created earlier and acc mode + and currency should be + too. In GL Account area please list the outgoing GL which you are using for outgoing postings..
    In create key for posting rule define a posting rule and now go back to step 1 and assign the posting rule you created to the transaction type
    In define posting rules please maintain posting rule as define above...in posting area assign 1. give nothing in first posting key.assign account symbol as created earlier...now give give posting key 50..give account credit Bank...and a suitable document you use for posting BRS...In posting type give 4.
    Your Manual Bank statement is ready ....
    Go to FS00 select your bank outgoing GL account there and in create/bank.interest tab double click on Field status group..in general data make assignment number mandatory for posting...
    Go to FB50....post and outgoing transaction using the GL given above it will require you to enter assignment number enter 123 and post.
    In FF67 Select the new statement , proceed with your normal data entry and give the transaction you created in above , enter value date, amount and in bank ref field enter 123 as given in FB50.
    Save and post it. Now it should work.
    Regards

  • Tool for viewing the relation between tables.

    Hi,
    I imported the schema dump in Oracle 10g R2 DB, there are about 800 plus tables in that schema. I would like to know the relataion between tables.So,What tools are available for viewing the relation between tables?. I have TOAD, and Oracles SQL Developer tolls, if there are any free tools for the same, please let me know the URLs.
    Regards,
    Sabdar Syed.

    Hmmm, for free, except what gave Eric earlier, not easy...
    Here already discuss about that :
    Re: Table Dependencies
    Nicolas.

  • OM: CLEARING THE PROCESS MESSAGES TABLES

    제품 : MFG_OM
    작성날짜 : 2004-10-11
    OM: CLEARING THE PROCESS MESSAGES TABLES
    ==========================================
    PURPOSE
    OM 모듈을 어느 기간 사용하다 보면 process messages table -
    OE_PROCESSING_MSGS_TL/OE_PROCESSING_MSGS - 에 많은 data가 쌓여 있는것을
    확인할 수 있다.
    이 tables의 size를 줄임으로써 system performance 향상도 기대할 수 있다.
    Explanation
    OE_PROCESSING_MSGS_TL table은 Order Entry concurreny problem이 실행되거
    나 User interface process가 실행될때 발생하는 processing messages를
    저장하는 table이다.
    아래의 3가지 방법중 하나를 이용하여 process messagea tables
    - OE_PROCESSING_MSGS_TL/OE_PROCESSING_MSGS -의 정보를 delete 할 수 있다.
    1.SQL을 이용하여 table을 truncate
    (OE_PROCESSING_MSGS_TL를 먼저 truncate 시켜야 함을 주의)
    경고: 만약 truncate 방법을 선택했다면, 위 두 tables에 있는 모든 정보를
    잃게 될 것이다.
    2.OM application의 Process Messages form을 이용.
    Delete 될 messages는 사용자의 query에 따른다.
    Process Messages form에서 delete 하고자 하는 messages range를 설정하여
    조회한 후, 그 query된 messages만 delete 할 수 있다.
    1) Navigation: Orders, Returns>Process Messages
    2) Messages source를 선택
    3) Query를 원하는 Messages Request ID range를 입력
    4) Query를 원하는 Messages의 Order Number range를 입력
    5) Query를 원하는 Messages의 Request Date range를 입력
    6) Query를 원하는 Messages의 Program Name을 선택
    7) 특정한 Workflow Activity를 가지고 있는 Workflow Activity를 선택
    WF activity는 Order의 actual stage를 참조한다.
    8) Query를 원하는 Message의 Order Type을 선택
    9) Attribute를 선택, Default는 null
    10) Customer Name or Number를 선택
    11) Requester를 선택
    12) Find button을 선택
    Process Messages window displays.
    13) Query된 모든 messages를 delete 하기 위새 'Delete All' button을
    click.
    3.SQL을 이용하여 특정 일자전의 모든 process messages를 delete.
    (OE_PROCESSING_MSGS_TL 의 data를 먼저 delete 함을 명심!!)
    위 1번의 truncate option을 이용하면, SQL statement는 어떤 messages를
    delete하는지 전혀 식별할 수가 없다.
    만약 특정 process에 관련된 messages만을 delete하길 원하면 아래의
    truncate option 2를 이용한다.
    아래는 sample script이며, creation date를 근간으로 delete한다.
    만약 오늘 날짜(dd-mon-yy)를 입력하면 script는 7일전의 messages만을
    delete 할 것이다.
    ====================================================
    DECLARE
    l_date DATE := to_date('&delete_date');
    BEGIN
    Delete from oe_processing_msgs_tl
    Where creation_date <= l_date - 7;
    Delete from oe_processing_msgs
    Where creation_date <= l_date - 7;
    Exception
    WHEN Others THEN
    Null;
    END;
    After executing this script commit and exit from sqlplus.
    =======================================================
    Note: 꼭 기억해야 할 것은 'Delete/Truncate' 작업시 'OE_PROCESSING_MSGS'
    data를 delete 전에 꼭 'OE_PROCESSING_MSGS_TL' data를 먼저 delete
    해야 한다는 것이다.
    Example
    Reference Documents
    Note 123150.1

    You can include PSA's in process chain and schedule deletion periodically.
    You can include process type 'Deletion of Requests from PSA / Deletion of Requests from the Change Log   ' in process chain . After EHP1 upgrade you can define pattern like 2lis* or 0* it will delete all the PSA's starting with 2lis or 0 data source .
    Ravi

  • Do you know the T-Code for clearing the A/P check?

    Hi Everybody,
    Do you know the T-Code for clearing the A/P check? 
    For example, we issue a check to vendor for payment.  When the check was cash, the bank will send us the statement for the cleared checks.  Currently, they sent us the diskettes or files to download the cleared checks.  We then upload into SAP.  The T-Code are ZBACK & ZEBCK.
    Usually, we had no problem.  Cleared checks were uploaded in SAP & we were done.  However, there was one check that could not upload in SAP because the check number was wrong (there was one digit missing from the check number sequence).  Is there a T-Code that we can bring up the check number & clear them?

    Hi
    You can use the tcode FEBA to post process the bank statement and manually pick up the open item and clear it.
    Thanks
    Ashok

  • Querying the sys.aud$ table

    can any one tell me which column of the sys.aud$ (audit trail) table is the one that shows when the grant occurred.
    I did a desc sys.aud$ ,but i cannot tell which one is the right column.
    thanks in advance

    you can see view DBA_AUDIT_TRAIL, column timestamp.

  • Query for clearing the caches automatically in the portal?

    Hi There,
    We are using EP Portal 6,currently we are having Oracle Archive logs issue which slows down the system.Now we are clearing the caches in the System Landscape-> Universal Worklist & Workflow->Universal Worklist Administration->Universal Worklist u2013Cache Admin by Manually.
    *Is there any steps to do it automatically which helps a lot?
    Thanks,
    Krishna.

    Hi,
    when you refresh the UWL it will clears the cache explicitly, Default time for UWl refresh is 5 min, You can automatically refresh the cache by changing the properties of UWL ivew (in Portal content) -
    sap_uwl_viewname  : DefaultView
    useNavigationId   : com.sap.pct.erp.mss.Main
    Check this wiki page for more info on cache interval change and more:
    http://wiki.sdn.sap.com/wiki/display/BPX/CompletedtasksdisappearonlyafterarefreshofUWL+cache
    all these work in EP 7 but not sure with EP 6.
    regards,
    Mahesh

  • How to clear the contents of table control

    Hi All,
              How to clear the contents that are present in a Table control. If there is any code Please Let me know.
    I will assign full marks to the correct code.
    Pradeep Kumar Kota.

    Hi
    U need to clear the contenents of internal table used to store the record displayed by table control.
    Every time the PBO is triggered the table control is automatically cleared, so you need only not to transfer any data from internal table to table control.
    So you should show how your PBO if you want a right answer.
    Max

  • Command to clear the bgp vrf table.

    Hi,
    I want to clear the bgp table on this vrf. Here is how it looks like :-
    address-family ipv4 vrf mj
    redistribute connected
    neighbor 12.12.12.12 remote-as 1111
    neighbor 12.12.12.12 activate
    neighbor 12.12.12.12 send-community
    neighbor 12.12.12.12 as-override
    neighbor 12.12.12.12 soft-reconfiguration inbound
    neighbor 12.12.12.12 route-map customer in
    neighbor 12.12.12.12 route-map vpn-routes out
    neighbor 12.12.12.12 maximum-prefix 1000
    neighbor 13.13.13.13 remote-as 65222
    neighbor 13.13.13.13 activate
    neighbor 13.13.13.13 send-community
    neighbor 13.13.13.13 remove-private-as
    neighbor 13.13.13.13 soft-reconfiguration inbound
    neighbor 13.13.13.13 route-map a-in in
    neighbor 13.13.13.13 route-map a-out out
    neighbor 13.13.13.13 maximum-prefix 1000
    no auto-summary
    no synchronization
    exit-address-family
    I would like to confirm that the command to clear this vrf is whereby the ASN is 1110 :-
    clear ip bgp vrf mj ipv4 unicast 1110 soft.
    Pls advice,
    InternetB.

    Hi Shivlu,
    To confirm, since my ASN is 1110, the 200 should be replaced with my ASN number of 1110 right ?
    Thank you,
    InternetB.

  • How to skip the mandatory field validation for clearing the screen fields

    Hi Friends,
      I have created a module pool screen, and made some fields mandatory. after entering some fields, if i try to clear the fields, am unable to clear. Its throwing the error "Enter all required fields"., since some mandatory fields are there. But i could able to navigate through other screen. Both the "CLEAR" and "NEXT" command are given in the at-exit command only. Next is working but clear is not working.
    Please  provide me the solution.
    Thanks
    Karthikeyan.L

    Hi,
    To avoid automatic input checks you have to assing function type - E to appropriate screen field, which is not to be checked.
    These function codes don't trigger PAI processing, instead they go directly to
    MODULE mod AT EXIT-COMMAND.
    ..placed in PAI of the screen. In this way you can ommit automatic checks performed by system on mandatory fields. Please ensure you have assing E type to next and clear functions in GUI status.
    Regards
    Marcin

  • Function module for updating the values in table VTTK

    Hi,
    I am working on a report in which I need to update the value of field tdlnr of table vttk for a particular shipment number. I need to do this using functional module and I am not been able to find one. If anyone knows answer to this plz help.
    Thanks in advance,
    Priyanka.

    As noted above, RETURN table must be supplied empty, it is for BAPI to return the messages back to the calling program. You simply need to define an internal table, pass it to BAPI as is and then analyze this table after the BAPI call. For example:
    DATA: BEGIN OF it_return OCCURS 0.
            INCLUDE STRUCTURE bapiret2.
    DATA: END OF it_return.
    CALL FUNCTION 'BAPI_SHIPMENT_CHANGE'
    <...>
      TABLES
    <...>
        return = it_return.
    LOOP AT it_return.
      MESSAGE
           ID      it_return-id
           TYPE    it_return-type
           NUMBER  it_return-number
       WITH
                   it_return-message_v1
                   it_return-message_v2
                   it_return-message_v3
                   it_return-message_v4.
    ENDLOOP.
    Hope this helps.

  • API for clearing the transaction data in cube

    Hi,
    I am doing the autoamtion test for my BW application.
    I need a function module or class method to clear all transaction data in my cube.
    Just like the 'delete data' fucntion in the context menu of cube in RSA1.
    Thanks a lot in advance!

    Hi ,
    Try this FM : RSDRD_SEL_DELETION
    And try this tcode also : delete_facts.
    Hope the above reply was helpful.
    Thanks & Regards,
    Ashutosh Singh

  • How can I import NT ACL into the SYS.USER$ table ?

    Hi guys,
    the version of Oracle i'm using is a 8.0.5.
    I'd like to grant access to my database through the Access Control List of my PDC. Is there a way to import this list to do so ?
    for the moment I have to create Users in Oracle and define their identification externally.
    Help !

    Update... For anyone looking for a similar solution:
    I ended up adding more to my logon script I have it check for a user's mozilla profile first and if not found it will use command line "firefox.exe -createprofile default" to make one. After that I just copy a working cert8.db to that new profile. Then when the user opens firefox for first time, it will detect this new profile, and it will load it along with the correct CA Certs intact...
    Also, for existing profiles my script just uses nss certutil to add my proxy CA Certificate to the users profile cert8db.

  • Can I set a password for clearing the history?

    I want to have a password set when deleting the history so I can track what is being used on my computer. Either that or hide were the history button is located

    You are better off using Parental controls or setting a content monitoring program, as there are plenty of ways to work around any limits you might set in the browser itself (someone can use another browser, use that browser safe mode, etc.) [[Block and unblock websites with parental controls]]

Maybe you are looking for