v$session_longops doesnot populate for long running SQL's

Posted on 2009-02-13
Last Modified: 2013-12-19
Hi Experts,

When we are running long running SQl's which are about 30sec this particular table does not populate entrees to monitor.But i see entrees from username 'SYS'.
Some parameters at  the system level needs to be set??
We are using Oracle9i
Thanks in advance
Question by:vkchaitu82
    LVL 73

    Expert Comment

    longops isn't for your sql statements it's for operations that the database runs.

    you can populate it yourself with dbms_application_info package but not at the sql level.

    Author Comment

    But i see from different articles that from Oracle 8i it has been enhanced to caputre the information about long running SQL's
    LVL 73

    Accepted Solution

    Yes, it "can" do that, but it's not the sql itself it's operations behind it.

    For instance, if your sql has a big table or index scan in it,  the scan might be considered a longop, the sql itself is not.  If your sql has lots and lots of small operations you very likely won't see it in the longops view because no one operation is considered "long"


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
    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 explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
    Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

    779 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

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now