Results 1 to 4 of 4

Thread: Find previous executed SQL

  1. #1
    Junior Member
    Join Date
    Nov 2007
    Answers
    22

    Find previous executed SQL

    Hi all

    Can anybody tell me the query to find out the last or previous some executed SQL by SQL command prompt.

    it doesnt matter it is executed by application or the SQL command prompt

    thanks in advance


  2. #2
    Expert Member
    Join Date
    Apr 2007
    Answers
    500

    Re: Find previous executed SQL

    Use Sys.V_$SQL


  3. #3
    Junior Member
    Join Date
    Jun 2007
    Answers
    5

    Re: Find previous executed SQL

    Quote Originally Posted by susarlasireesha View Post
    Use Sys.V_$SQL

    susarla,
    Use Sys.V_$SQL
    executing the above in Oracle SQL Developer
    gives "Invalid SQL Command"
    Do we execute in SQL Plus*????, give the exact steps


  4. #4
    Junior Member
    Join Date
    Apr 2006
    Answers
    2

    Re: Find previous executed SQL

    Run the below query to fetch the last executed SQL

    select * from sys.V_$SQL
    order by FIRST_LOAD_TIME desc


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact