Find Last time a procedure was called

Hi DBAs,
How to find when a procedure or function was called last time in 10g. For that matter even when a table was last accessed. If this can be done without enabling audit ? are there any such views or tricks to find such changes ?
Thanks!

Without auditing, this is not possible as a general rule.
If a procedure has side effects, you could potentially look through the database to find those side effects. If it inserts a new row in a table with a CREATE_DATE of SYSDATE, that would be very helpful. If you're talking about a function that doesn't have side effects, however, that isn't an option. If the function or procedure runs for a relatively long period of time, its executions may be picked up in an AWR/ statspack report. But it's unlikely that every execution would be captured, it's unlikely that the history is kept particularly long, and it's not always trivial to search these reports for the last time a procedure was executed. And if you have a relatively quick procedure, it's unlikely that executions would ever be recorded.
Segment-level statistics might give you hints about table accesses. But those statistics are cumulative since the last reboot. And there are likely background processes that touch every table at some interval (i.e. statistics gathering), which probably isn't the sort of "access" you're interested in.
Justin

Similar Messages

  • Need to find last time a table was used.

    I am in the process of cleaning out a group of staging tablespaces and I would appreciate some help finding the last time a table was used. (ie: records added, deleted, ect.) Is there an SQL statement that will do it? Any other suggestions?
    I will Appreciate any assistance.

    How can I activate the auditing? http://download-east.oracle.com/docs/cd/B19306_01/network.102/b14266/auditing.htm#i1011984
    Daljit Singh

  • How to find out when the last time a tcode was run by someone

    Hi Team,
    I am just trying to find out if there is a way to find out when the last time a tcode was run by someone.I mean i need to know when was a certain  tcode was last run.
    Thanks,
    Priyanka

    HI Priyanka
    Another way would be using transaction STAT,enter the t-code you like to monitor.This will provide all details,like user, time etc...
    Hope this will help
    Thanks
    Santosh Kumar

  • When was the last time a program was run?

    Experts, is there a way to know when was the last time a program was run (particularly, Z Program). We are trying to identify obsolete programs and avoid working on those programs that weren't touched for more than 3 years during our next upgrade. How can I find this? Any suggestion would be highly appreciated.
    Thank you.

    Hi,
    One way is to check TRDIR table(se11/se16) and display it. In the next screen once you will get 'Data Browser Table TRDIR' selection screen. There either you put the individual 'Z' program name in the 'Name' field & execute it or for all multiple entries execute it.
    Once you execute it with the particular Z prog. name then you will get the required details like CDAT(Created on),UNAM(Last changed by),UDAT(Changed On),SDATE(Standard selection screen generation: Date),IDATE(Selection screen generation: Date) etc.
    Hope this can help you.

  • The last time an index was used

    Hi to all, 
    I would like to know, if there is a way of knowing  the last time an index was used, or what indexes have never been used.
    Regards
    Eduardo Barrios
    Compañía Cervecera de Canarias S.A.
    Tfno.     922 568 246
    Fax.      922 670 600
    Correo   [email protected]

    Hi Eduardo,
    reading through the updates from Thomas and Volker, I was wondering if there was a bug in i5/OS that causes the "Last used date" information in the file description not to be updated properly for indexes. If you have the plan cache dump or database monitor active (i.e. quite current data in ST04), you could do the following to find out if indexes have been used by the SAP system without a proper update in the file description:
    1. List all indexes into a temporary output file:
        DSPFD FILE(R3<sid>DATA/ALL) TYPE(MBR) OUTPUT(*OUTFILE)
              FILEATR(*LF) OUTFILE(QTEMP/DSPFD)
    2. Compare output with database monitor data using STRSQL or SQLUTIL:
        SELECT T1.MBFILE, T1.MBUDAT, T2.QQTIME, T2.QQLIFN
          FROM QTEMP/DSPFD T1, R3<sid>DATA/SQ3001_DB4 T2,
               R3<sid>DATA/SYSINDEXES T3
         WHERE T1.MBFILE = T3.SYSTEM_INDEX_NAME
           AND T3.INDEX_NAME = T2.QQLIFN
         ORDER BY T1.MBUDAT
    If you find indexes, where the "Last Used Date" is smaller than the QQTIME value, you know that the
    file statistics are not updated properly. You could then open a PMR at IBM for that.
    On one of our internal systems I did not see a discrepancy, so it seems to me that the information is correct. Volker's experiences could be explained by the fact that indexes are not just used to implement SQL statements, but also for table statistics. I assume that the "Last used date" is not updated when the index was only used to obtain table statistics. With incomplete statistics, the optimizer may choose a different join order or access method, which can result in poor performance. So there is some risk involved when dropping an index that has a very old "Last used date", and you can only decide it by trying (with care!).
    Kind regards,
    Christian Bartels.

  • HT201269 How do I see the last time my phone was backed up?

    My iphone has gone dark. I was planning on getting a new phone but I can't turn my old phone on to transfer data. How can I see the last time my phone was back up?

    If you back up to iTunes, open iTunes on your computer.  Go to Preferences (from the leftmost item in iTunes' menu bar), then choose "Devices".  The backup time will be shown there.
    If you back up to iCloud, you would be able to see it on your iPhone, but since you can't turn it on, I don't think there is another way to find it.

  • Query to show last time a query was run

    I am trying to write a query that will show me the last date/time a specific query was run. I have looked into v$sql and I can find the query, but from what I can tell it does not show the last time the query was executed.

    Hi,
    use v$sqlarea instead of v$sql and look at the column last_active_time. See also the documentation (docs.oracle.com/cd/E11882_01/server.112/e40402/title.htm) on the dynamic performance views in the database.
    You will get more answers, however, if you put your question to the forum Oracle Database > SQL and PL/SQL .
    Regards,
    Gudrun Pabst

  • I can't seem to decide between the 13" or the 15" MacBook Pro. I had a 14.5 in Dell which crashed on me for the third and last time. It was also my primary home computer. Is the 15" necessary or should I just get the 13"?

    I can't seem to decide between the 13" or the 15" MacBook Pro. I had a 14.5" I'm just used to that size. Dell which crashed on me for the third and last time. It was also my primary home computer. Is the 15" necessary or should I just get the 13"? I probably won't be doing any graphics or anything like that.

    It is really a matter of your personal preference. You have to choose between the extra carrying convenience of the smaller machine and the greater "real estate" of the bigger. I use a 15", and have not found it inconvenient for carrying, even on aircraft, where it has to share backpack space with an SLR camera and assorted lenses.

  • Is it possible to find the time a website was visited in safari history?

    Is it possible to find the time a website was visited in safari history?

    See:
    http://www.justanswer.com/computer-programming/7c5qf-iphone-settings-safari-adva nced-website-data.html

  • I can get the last time a patch was applied. What I need is this info for ALL servers.

    Getting the last time a server was patched is a simple, single line of PowerShell:
         get-hotfix -computername seadcweb10 | sort InstalledOn | select -last 1
    What I need is to get a list of *all* the servers in Active Directory, and get this information for each.
    I've tried variations of foreach , but I get errors.
    foreach ( $p in Get-ADComputer -Filter 'OperatingSystem -like "Windows *Server*"' ) { get-hotfix -computername $p.Name | select -last 1 }
    Get-HotFix : The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
    At line:1 char:97
    + foreach ( $p in Get-ADComputer -Filter 'OperatingSystem -like "Windows *Server*"' ) { get-hotfix <<<<  -computername
    $p.Name | select -last 1 }
        + CategoryInfo          : NotSpecified: (:) [Get-HotFix], COMException
        + FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.PowerShell.Commands.GetHotFixCommand
    What am I doing wrong?

    Hi
    The RPC server is unavailable
    This error  comes when any server is not pingable.
    Make sure you are able to ping to all server from the server you are running the script.
    Then give a try to below script :
    foreach ( $p in Get-ADComputer -Filter {OperatingSystem -like "Windows *Server*"})
    get-hotfix -computername $p.Name | select -last 1
    MCITP - Exchange 2010 | MCITP - Windows Server 2008 R2

  • HT1212 If I never synced to itunes and I restore the device. Will I lose unstored data? How can I check to see the last time my phone was backed up if I forgot the passcode to my phone?

    If I never synced to itunes and I restore the device. Will I lose unstored data? How can I check to see the last time my phone was backed up if I forgot the passcode to my phone?

    If you can't remember your passcode, you'll need to restore your phone.  If you never synched to iTunes, all data on your phone will be erased.  No way around this.

  • HT1414 How can i find out the last time my iphone was restored?

    Hey, i need help on how to find out when the last few times my iphone was restored.
    Thanks

    This is a strange question, not sure where you are going with this one. On the computer you Restored with, iTunes requests to back up the iPhone. These are time stamped and stored on the computer. You can use iTunes to search the list of back ups of your iPhone and see the dates, so you can at least see the dates of the back ups.

  • How to find out last time, when AE was started?

    Hi guys!
    I need to find out, when was our AE last time started.. Is it possible w/o Visual Admin?
    Thank you!
    Olian

    Hi Olian,
    You need to go into RWB.
    Inside RWB go to Component Monitoring -> Adapter Engine  ->  Adapter monitoring. You will see all the adapter listings there.
    Thanks
    Aashish Sinha
    PS : Reward points if Helped

  • How to get the last time a record was modified or created ?

    Is there a way (hidden system fields for example, system view, other ?) to get the last time a record of a table was modified or the date it was created.
    Thanks for any help.
    Stiphane CAMPION

    blarman74 wrote:
    I know I could do this with a trigger, but I was wondering if there is a data dictionary view I can query to find the date/time a table was last updated. What I have is a table that is constantly getting hammered with new data being uploaded from a third party. We need to keep close tabs to verify that this datafeed is constantly running and bringing in new data. Because the data that comes in comes from multiple timezones and there are hundreds of lines, our attempts at monitoring by just looking at the data leave something to be desired.
    Any ideas?refer this links
    How to find Last modified/updated time of a particular table
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1590655700346557237
    Thanks

  • Is there a way to see the last time my ipad was online?

    I lost my ipad and I can't use the locate my iphone app because the ipad is offline.  I am wondering if there is a way to see when the last time it was connected to the internet and where it was the last time it was connected. 

    No.  Find My iPad doesn't keep any history of that.  Also, it it's a wifi-only model, it will only be online if it is connected to a known wifi network.  The best strategy is to put it in lost mode and change your iCloud password so someone can't take over your account.
    You might also want to read this: http://support.apple.com/kb/HT5668.

Maybe you are looking for

  • How to parse crystal report query prompt value via url parameters

    HI All, I am creating a employee detail report in crystal report. The recordset is huge and i have created a parameter prompts in the query and thinking to parse the prompt value via url parameters. Not sure why i still could not make it works. for e

  • How to get log information from database server?

    Oracle 9.2 in Unix we got blocking error in the production database last midnight for 40 min and nothing was being processed during that time which delayed our production night batch process. Then it was gone after 40min. I like to know what was happ

  • USB flash disk is not mounting, Xfce doesn't remember the setting

    Hello, I'm new in Archlinux and I think I can't set up it well. I use Linux for four years /Ubuntu, Debian/. Now I have installed system with X server, Slim and Xfce. 1/ I have one big problem. I want to automount my flashdisk but it doesn't work lik

  • Ade too many activations

    I need to reset/extend the Adobe ID to authorize my device. I cannot open an DRM pdf in my tablet because of too many activations... Can you help me please? I live in Italy I need an email for contacting support,no phone number please. Thanks for hel

  • Outlook Express warning, and it is not used.

    HP Pavilion A1222N desktop, win XP Home, IE 8, Eset Nod 32 v 5.0.95.0  I keep getting this message (in red), at log on all of a sudden.  We do not use Outlook Express, but use Hotmail which is Outlook.com ... I believe?? They are two different things