Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Accessing executing SQL with Perl DBI & Oracle?

by LameNerd (Hermit)
on May 08, 2003 at 18:09 UTC ( [id://256620]=note: print w/replies, xml ) Need Help??


in reply to Accessing executing SQL with Perl DBI & Oracle?

Doh!!
It appears that my SQL is wrong.
All I needed to do was change my SQL to this ...
select distinct o.sql_text "SQL text" ,s.username "User name" ,s.schemaname "Schema name" ,s.lockwait "Lock wait" ,s.status "Status" ,s.sid "Session ID" ,s.serial# "Serial N" ,s.server "Server" ,s.osuser "OS user" ,s.machine "Machine" ,s.terminal "Terminal" ,s.program "Program" from sys.v_$session s ,sys.v_$sql o where s.username is not null and s.sql_address=o.address(+)
which I found in this link
Ain't the internet great!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://256620]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-04-25 11:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found