Solved

Find Last 100 SQL Executions

Posted on 2014-03-28
3
455 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 77

Accepted Solution

by:
slightwv (䄆 Netminder) earned 300 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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.

726 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