Solved

Check Status of Oracle Query

Posted on 2009-06-29
3
943 Views
Last Modified: 2012-05-07
Can anyone tell me how to check the status of a long running query (Oracle 10g)?
0
Comment
Question by:iBinc
  • 2
3 Comments
 
LVL 40

Assisted Solution

by:mrjoltcola
mrjoltcola earned 200 total points
ID: 24741550
You can start with the V$SESSION_LONGOPS view

You can join it against the V$SQL view to get the text of the query.
0
 
LVL 40

Assisted Solution

by:mrjoltcola
mrjoltcola earned 200 total points
ID: 24741555
0
 
LVL 73

Accepted Solution

by:
sdstuber earned 300 total points
ID: 24742022
what type of status are you looking for?  

you can try something like this if you want to see what the query's session is waiting on.

SELECT   s.sid, sw.event
  FROM   v$session s, v$session_wait sw
 WHERE   sw.sid = s.sid
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

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…
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 video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
Via a live example, show how to take different types of Oracle backups using RMAN.

832 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