Geeks Talk

Prepare for your Next Interview




How do I get the session id of particular package

This is a discussion on How do I get the session id of particular package within the Oracle forums, part of the Databases category; I face some problem regarding oracle package execution. One of the currently running package has locked some table. So I want to kill the session. How do I get the ...


Go Back   Geeks Talk > Databases > Oracle

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 04-18-2007
Junior Member
 
Join Date: Mar 2007
Location: india
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
ssusmitaa is on a distinguished road
How do I get the session id of particular package

I face some problem regarding oracle package execution. One of the currently running package has locked some table. So I want to kill the session. How do I get the session id of particular currently running package.
Reply With Quote
The Following User Says Thank You to ssusmitaa For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 04-24-2007
Junior Member
 
Join Date: Apr 2007
Location: bhubaneswar
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
arun_official_contact is on a distinguished road
Re: How do I get the session id of particular package

The DBA option in TOAD can help you on this. Here you can view each and every details of a particular session. For further details let me know.
Reply With Quote
  #3 (permalink)  
Old 04-25-2007
Expert Member
 
Join Date: Dec 2006
Location: Chennai
Posts: 197
Thanks: 2
Thanked 16 Times in 14 Posts
Barbie is on a distinguished road
Re: How do I get the session id of particular package

where shall we find those details in TOAD?
Reply With Quote
  #4 (permalink)  
Old 04-29-2007
Junior Member
 
Join Date: Apr 2007
Location: india
Posts: 11
Thanks: 0
Thanked 1 Time in 1 Post
balasubramanian.j is on a distinguished road
Re: How do I get the session id of particular package

Quote:
Originally Posted by ssusmitaa View Post
I face some problem regarding oracle package execution. One of the currently running package has locked some table. So I want to kill the session. How do I get the session id of particular currently running package.
Hello ssusmita,

U have to use the dynamic views to resolve this problem.

U can find the information abt the query package by v$sql or v$sqltext view. There it shows which session is executing that package. Based on which query ur v$session to identify the username , serial# and the sid with which u can kil that session.

Hope this helps..
Balasubramanian.J
Reply With Quote
  #5 (permalink)  
Old 06-25-2007
Moderator
 
Join Date: Jun 2007
Location: Bangalore,India
Posts: 1,432
Thanks: 8
Thanked 125 Times in 112 Posts
debasisdas will become famous soon enoughdebasisdas will become famous soon enough
Re: How do I get the session id of particular package

You can get the session id of particular currently running package.
But that session id is not of the package ,but of the user who is executing it.
Reply With Quote
  #6 (permalink)  
Old 06-25-2007
Moderator
 
Join Date: Jun 2007
Location: Bangalore,India
Posts: 1,432
Thanks: 8
Thanked 125 Times in 112 Posts
debasisdas will become famous soon enoughdebasisdas will become famous soon enough
Re: How do I get the session id of particular package

You can find the session sid and other info from this query.

select sid , serial#, username , osuser, machine , status, program, module
from v$SESSION
Reply With Quote
Reply

  Geeks Talk > Databases > Oracle

« Query | hi »

Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
SQL Quiz Package (100 Questions) Free Download admin Downloads 135 6 Days Ago 05:36 AM
Session Manager Lokesh M ASP.NET 1 06-04-2008 09:52 AM
Oracle Package.function Yajnas Oracle 2 06-25-2007 03:10 AM
Today's package includes both StarPort Professional which will allow you to create vi JobHelper Geeks Lounge 0 02-19-2007 07:40 AM
Oracle package question always_rgsm Oracle 5 01-23-2007 08:35 AM


All times are GMT -4. The time now is 01:11 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved