Last time the table has been accessed flag

Is there any easier way to "log" when was the last time every table has been accessed than this ones:
-Audit all on every table and just check sys.aud$ when was the last time the table has a session rec (action# = 103)
-Place a trigger on every table to log the last access
If you wonder why I need it is beacause I have around 200 tables, some of them quite heavy, and probably half of them are not being used anymore so I want to backup and delete those tables from the database.
Thanks

Easier than
audit select on table <your_table> by access;and later query DBA_AUDIT_TRAIL?
Don't think so.

Similar Messages

  • Number of Times the table has been accessed

    Hi,
    How to find the number of the times the table has been accessed or read ?
    Regards,

    You can do it with 9i
    http://www.mpi-inf.mpg.de/departments/d5/teaching/ss05/is05/oracle/server.920/a96521/audit.htm
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com

  • How to check the last time a package has been compiled?

    How to check the last time a package has been compiled from sqlplus?

    LAST_DDL_TIME column in DBA_OBJECTS.

  • Determine the number of times the document has been printed

    Hi all,
    I have a form here ( SAPSCRIPT), there is certain field to show how many times the document
    has been printed, i use NAST-ANZAL, but it seems to display no correct value.
    Am I using the riht field anyway? Or missing something?
    Thanks ,,
    AUD

    Hi,
    Check for the field NAST-VSTAT.
    IF NAST-VSTAT = '1' meaning that document  is printed.
    Refer below example from NAST entries.  4000010000 document is printed 4 times.
    OBJKY                          KSCHL SPRAS PARNR      PARVW USNAM        VSTAT
    4000010000                     ZSGI  E                      XXXXXXX                             1
    4000010000                     ZSGI  E                      XXXXXXX                             1
    4000010000                     ZSGI  E                      XXXXXXX                              1
    4000010000                     ZSGI  E                      XXXXXXX                             1
    Rgds,
    Arun

  • Last time the table structure changed

    What is the best way to find out as to when a table structure was last changed? (Like adding or modifying a column) ?
    I queried LAST_DDL_TIME in the dba_objects view but the problem is that it stores the last time the table was truncated (using TRUNCATE TABLE table_name), as we do truncates often. I was interested in find out when the table was altered. Any ideas ?

    Hi,
    i think database trigger will do better according to your need....
    its simple and best.
    Just create a new table and database trigger.
    Like
    create table db_ddl_log
    username varchar2(30),
    ddl_date date,
    ddl_type varchar2(30),
    object_type varchar2(18),
    owner varchar2(30),
    object_name varchar2(128)
    create or replace trigger db_DDL_Trigger
    AFTER DDL ON DATABASE
    BEGIN
    insert into db_ddl_log
    username,
    ddl_date,
    ddl_type,
    object_type,
    owner,
    object_name
    VALUES
    ora_login_user,
    sysdate,
    ora_sysevent,
    ora_dict_obj_type,
    ora_dict_obj_owner,
    ora_dict_obj_name
    END;
    now check it.
    SQL> select * from db_ddl_log;
    no rows selected
    SQL> desc a
    Name Null? Type
    NO NUMBER
    SQL> alter table a add (name varchar2(1));
    Table altered.
    1* select * from db_ddl_log
    USERNAME DDL_DATE DDL_TYPE OBJECT_TYPE OWNER OBJECT_NAME
    SYS 06-MAR-06 ALTER TABLE SYS A
    SQL> truncate table a;
    Table truncated.
    sql> select * from db_ddl_log
    USERNAME DDL_DATE DDL_TYPE OBJECT_TYPE OWNER OBJECT_NAME
    SYS 06-MAR-06 ALTER TABLE SYS A
    SYS 06-MAR-06 TRUNCATE TABLE SYS A
    Thanks
    Kuljeet Pal Singh

  • My computer struggles to log in. I have to shut it down each time the computer has been shut and asleep for a few hours. The first day it happened my desktop photo was reset.

    My computer struggles to log in. I have to shut it down each time the computer has been shut and asleep for a few hours. The first day it happened my desktop photo was reset.

    Have you tried a PRAM reset?
    http://support.apple.com/kb/HT1379
    Ciao.

  • No of times the program has been executed in the last 6 months

    Hi,
    How to get the information on the number of times the 'z' programs has been executed and the users who executed them?
    Thank you,
    Chandra

    Hi Chandra ,
      I dont think this is stored.
    If the requirement is there then the program it self must have code to update a custom table with the details of when and who executed it , this table can later be accessed to get all the details.
    Regards
    Arun

  • Firefox vers 5, crashes continually. Plus, it doesn't hold my home page. Needs reset every time the app has been closed. So with each crash, another home page reset. How can these issues be corrected. I know how to set the Home Page in the Option tab.

    Closing Firefox 5.0 resets Home Page to /www.searchqu.com. I know how to set it in the options tab.Earlier versions never had this issue. Plus, I return after being away to find that a "crash error" apologizing for the inconvenience. How2 can this be corrected?

    See these posts:
    https://support.mozilla.com/en-US/questions/790833
    https://support.mozilla.com/en-US/questions/816181
    Check and tell if its working.

  • Finding the last fiscal a GL has been posted to

    Hi All,
    Is there any way by which we can find out the last time a GL has been posted to (fiscal year). We have a list of GL accounts and need to find a faster way of doind this.
    Regards,
    Vijay

    Hi,
    I finally found a report which can be used to find the GL Accounts not posted. You can use the report S_ALR_87012311 - G/L Account Balances and Line Items to find out the GL Accounts not posted. Run the report by ticking the checkbox "Print Accounts not posted to".
    This will give the list of the accounts not posted based on your data selection.
    Hope this helps.
    Regards
    Mahendra

  • How many times a program has been run?

    Is there a transaction or table or something that tracks how many times a program has been run?   The number of times the program has been run plus using the programs' attributes for last changed would help me a lot.  We need this for an archiving study to determine of the client has set up the configuration correctly since they went live and have been executing the correct programs.  Thanks and mucho rewards if someone has an answer.  FYI - I have done a forum search and could find nothing on this topic.  I have looked at the tables TADIR and no help, as well as transaction STAT.

    I know ST03N transaction can be used extensively to determine how the programs were executed or even to know who all are using a particular transaction...
    I tried to find if we can find the number of executions of a program through this transaction, I could not find myself...
    try if you can find it through this tcode.
    Phani

  • Creating a Materialized View Log After the Data has been instered

    Hi,
    I am trying to create a method of replication from Oracle to MySQL using the Materialized View Log table.
    This has been done before and works quite well, the only problem is that I am trying to impliment the log after the table has been created and populated and wish to push all the existing data through the log file...
    Does anyone know if it is possible to refresh the Materialized View Log and not a Materialized View.
    The way the replication is intended to work is:
    Oracle> Data inserted into table
    Oracle> writes the vector data to the MVL
    Script> Monitors the MVL and can see the changes being made to the Oracle Table
    Script> Updates MySQL with the data and removes the rows from the MVL
    MySQL is then used with other unix systems
    Currently we export the data from the table using Triggers and a cronjob running every x minute to check for changes in the TriggerTables
    Many thanks for your time on this, I have been checking for almost a whole working day and not found the answer to this problem.

    Thats what I thought, the MVL will only read data that has changed since it was created and wont have the option to load in all the data as though it was made before the table was created.
    From what I have read, the MVL is quicker than a Trigger and I have some free code that prooved to work from a MVL using it as a reference to know what records to update. There is not that much to a MVL, a record ID and type of update, New, Update or Delete.
    I think what I will have to do is work on a the same principle for the MVL but use a Trigger as this way we can do a full reload if required at any point.
    Many thanks for your help.

  • The last few times I've used headphones in my iPad, the audio has been all messed up to the extent where it's better to just use the internal speakers and not the headphones. I've tried multiple pairs of headphones to no avail. Help?

    The last few times I've used headphones in my iPad, the audio has been all messed up to the extent where it's better to just use the internal speakers and not the headphones. I've tried multiple pairs of headphones to no avail.
    The iPad was bought in mid-June, but I did not get extended Apple-Care warranty on it. Any idea of what's happenening?

    Multiple means how many? If only 2 or 3, they could all be faulty. Try the headphones in some other device, to make sure they are OK. Or there could be something wrong with the headphone port.
    Your iPad is still covered by the 1-year warranty so you should make a Genius appointment and have it looked at.
    Another thing to try is to plug in the headphone jack a few times in succession to see if it frees up something inside the port.

  • How Do I Assess The Number Of Times A Page Has Been Hit?

    Can anyone identify the schema, table and field that when queried identify the number of times an individual page has been accessed?
    I want to create a 'hit counter'. Ideally the field would identify all accesses, not by IP address or username or any other denominator.

    portal30.wwlog_activity_logs
    Portal logs activity in two tables wwlog_activity_log1 and wwlog_activity_log2. It toggles between these two tables every week by default. The wwlog_activity_logs is a view connecting both of these tables.
    Be prepared to do some homework to figure out how to identify the actual page(s) you want to log. It's not clear cut and also be aware that you can't get down to the actual tab pressed within a page without some custom coding... and also, portal purges logged data every two weeks by default.

  • Every time I download anything I get an error message stating ...could not open ....dmg because it is either not a supported file type or the file has been damaged." What do I need to do to fix this problem?

    For the last month or so, every time I download anything I get an error message stating "........could not open ...... .dmg because it is either not a supported file type or because the file has been damaged...." I do not know what to do to fix this issue. Any ideas?

    hmmm.... try this
    basic troubleshooting:
    Repair Disk Permissions http://support.apple.com/kb/PH5821
    Repair Disk http://support.apple.com/kb/ht1782
    reset ACLs http://osxdaily.com/2011/11/15/repair-user-permissions-in-mac-os-x-lion/

  • Finding query access frequency or how many times a query has been executed?

    Dear Experts
    I need to find the total number of access frequency of individual queries that are requested by the users say at a particular time.
    Say there are 20 distinct queries requested in the time difference of 3 hours. All of the 20 queries or some of the queries may be requested for more than 2/3 times at that time by other users. By the way say query Q1 is requested 5 times at that so its query access frequency or how many times this query is executed is 5.
    From where and how can I can find this counting of query access frequency or how many times a query has been executed at particular time or a session?
    Normally we know the there SQL history dynamic performance views or if it can be possible to query the Shared pool library cache for SQL area it may be possible to find the total number of execution time for a query. But how to find that if anyone knows, please help me about this.
    Regards-
    Engr. A.N.M. Bazlur Rashid
    OCP DBA

    That's one of the stats reported by statspack - assuming that your query does sufficient work to meet the thresholds for the standard report. Executions is of course one of the columns of v$sql so you might just wish to sample that yourself. Finally if you are on 11g and the sql you are interested is relatively low resource intensive and you are licensed for AWR then you can use the slightly madly named "colored sql" feature that ensures that a specific statement will always be sampled for AWR.
    Niall Litchfield
    http://www.orawin.info/

Maybe you are looking for

  • Can I restore Office 2004 from Time machine backup

    Hi Guys, I have managed to delete office 2004 when I was trying to install office 2008 using a friend's copy. Office 2008 will not work for me as it needs online registration. I no longer have the office 2004 install disk. Is it possible to re-instal

  • Photo caption links in xml

    hi......i was wondering if anyone had ideas on how to display links from the xml file?.....i have some photos with corresponding captions and links, but have had a hard time figuring how to make the links active on the page.......was looking into xli

  • Can't get postfix to send to google

    i'm trying to set up postfix to send to my google account, but it keeps timing out.  in /etc/postfix/main.cf i have myhostname = localhost.localdomain.  i'm on a cable internet connection.  any ideas? Oct 5 01:27:43 karstenhome postfix/postfix-script

  • Quick Create - Error occurred

    Hi, At the Navigation Panel area when we click on Leads or Opportunities, the following error occurrs: Quick Create Contact the administrator and report the exception ID in the log: 0018FE763800008000000048000003E400042FAA11C77D2A Is there any way to

  • Appleworks 6.2.9 & Leopard

    I've been running Appleworks 6.2.9 successfully on my Intel MacBook Pro running Leopard since October. Now it won't start up (quits unexpectedly). UGH! I don't have access to disks from my classroom over the summer so I can't reinstall. Are there any