Solved

Check Status of Oracle Query

Posted on 2009-06-29
3
944 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 74

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

Suggested Solutions

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…
Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

790 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