?
Solved

Find Last 100 SQL Executions

Posted on 2014-03-28
3
Medium Priority
?
463 Views
Last Modified: 2014-03-28
Where do I look to find the last 100 SQL statements executed on a server?
0
Comment
Question by:xoxomos
  • 2
3 Comments
 
LVL 78

Accepted Solution

by:
slightwv (䄆 Netminder) earned 1200 total points
ID: 39962970
Turn on auditing.

There is a last_active_time column in v$sql but the v$ views are dynamic and possibly unreliable.

You might also look at v$active_session_history with the same note above about V$ views.

There may also be some ADDM views that might have a history if you are licensed for ADDM.
0
 

Author Comment

by:xoxomos
ID: 39962986
I've requested that this question be deleted for the following reason:

Found an example.
0
 

Author Closing Comment

by:xoxomos
ID: 39962987
Thanks.   Please ignore the delete request.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question