Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Long running Jobs

GeetaMOct 15 2012 — edited Oct 15 2012
Hello Team

I have a query regarding long running jobs which I usually get from our application team saying that -
" My query is running for long time...pls check it status" ....etc

Kindly let me know what I am supposed to do in such situations - steps, srcipts to be followed.
I usually run the below scripts, say them the status of it -
select INST_ID,sid,serial#,username,to_char(logon_time,'dd:mm:yyyy hh24:mi:ss'),status,event,sql_id,osuser,machine from gv$session where username='username' order by logon_time;

select p.spid from gv$session s, gv$process p where s.sid=&a and s.paddr=p.addr;
Regards
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 12 2012
Added on Oct 15 2012
9 comments
8,338 views