To know what procedure  is in exectution using  SID  and SERIAL#

Hi
Is there some way to know what procedure(package or function) is running using SID and SERIAL#, I tried to use v$sqltext , but show only query
Tia
using oracle 9.2.02

Hello
Joining v$session (sql_id) with v$sql (sql_id) you have the program_id.
Joining v$sql (program_id) with dba_objects (object_id) and you have the proc/pkg
Something like this:
select rpad(s.sid || ',' || s.serial#, 10) sid
, p.spid
, to_char(sysdate - (s.last_call_et / 86400),'HH24:MI:SS') "LASTCALL"
, to_char(s.LOGON_TIME,'dd/mm HH24:MI:SS') logon
, rpad(substr(lower(s.username), 1, 10), 10) usr
, rpad(substr(nvl(lower(s.osuser), 'n/a'), 1, 10), 10) osu
, rpad(lower(decode(lower(trim(s.terminal)), 'unknown', substr(s.machine, 1, instr(s.machine, '.')-1), null
, s.machine, s.terminal)),15) mcn
, s.sql_id
, o.object_name
from v$session s, v$process p, v$sql q, dba_objects o
where s.status = 'ACTIVE'
and s.username is not null
and p.addr = s.paddr
and q.sql_id = s.sql_id
and q.program_id = o.object_id
order by 5;
Regards
Edited by: ERadaell on 16/06/2011 11:31
Edited by: ERadaell on 16/06/2011 11:33
Edited by: ERadaell on 16/06/2011 11:37

Similar Messages

  • HT1920 I have got a Activation Lock on my iPhone and I need to get it activated. I don't know what Apple ID I was using with my iPhone. It shows as U***@h******.uk which is too short to be my email address. I have reset all my Apple ID passwords and none

    I have got a Activation Lock on my iPhone and I need to get it activated. I don't know what Apple ID I was using with my iPhone. It shows as U***@h******.uk which is too short to be my email address. I have reset all my Apple ID passwords and none are activating my iPhone. I have also been into the apple store and they have tried to find out the Apple ID my iPhone was using but this was not successful. The serial number of my iPhone is: C32JN641DTWF

    You are going to need to change the email address you use with your old ID. Once you have got access to your old account you will then log into both accounts at the same time on your Mac and transfer your data to a single account. We can do this later, but need you to get access to your old account first.
    My Apple ID

  • HT1918 how do you know what computers are authorized to use home share before i delete a computer

    how do you know what computers are authorzed to use an I tune account?

    Welcome to the Apple Community.
    There is no way to view a list of authorised computers. You can only tell a computer is authorised from that computer itself, from the store menu in iTunes.

  • Hello I am not able to published to the web using an FTP the test has a negative response  I do not know what is required in Directory/path Protocol and port

    Hello I am not able to published to the web using an FTP the test has a negative response  I do not know what is required in Directory/path Protocol and port

    If you use FTP then ftp is the protocol and 21 is the port.
    Your webhoster will tell you what path to use.
    You probably can read it in the FAQ/Help/Support pages where you host your website.
    All difficult words are explained in manuals, dictionaries or wikis.

  • Wanna know what kind of effect that used on this video?

    wanna know what kind of effect that used in transformation in this video or can we  just crop the effect .

    That transformation is a result of careful planning, 3-D modeling, and layering. It is not just an effect. 3-D tracking, camera tracking, match moving, rotoscope, keying, and other effects can be used to create this kind of transformation. Without careful preproduction planning this kind of a shot/effect is nearly impossible.
    If you already knew that then what part of the transformation is giving you troubl?

  • How to know what level of optimization to use / which symbols to remove

    I probably should have asked this question along time ago, but how do you know what level of optimization to use and what symbols you can safely remove when compiling

    EDLundquist wrote:
    I probably should have asked this question along time ago, but how do you know what level of optimization to use and what symbols you can safely remove when compiling
    I have no direct experience with development for Macs, but based on my experience on other platforms, I'd use lower optimization and symbol removal early in the debugging process, increasing those as the program becomes more stable.

  • HT201376 How do I go about unlocking a recovery HD? Also I need to know what disk image should I use when trying to restore a failed(erased) disk in DU?

    Also I need to know what disk image should I use when trying to restore a failed(erased) disk in DU?

    You need to plug it into your computer running iTunes and restore it. Have you tried that? If so, what happened?

  • Does anyone know what converter i need to use to watch a dvd film on my phone

    does anyone know what converter i need to use to watch a dvd film on my phone

    Moveis/tv shows etc that you buy on DVD are encrypted to stop you from doing this.  Breaking this encryption is against the law.  We cannot help you break the law here.
    Sorry.

  • Does anyone know what msn messenger you can use on ipad?

    Does anyone know what MSN Messenger you can use on a iPad?

    I'm used to Windows Live Messenger - but unlike with my former Blackberry - I'm not loving how it signs me offline if I want to do anything else with the iPhone.

  • Can I know what deffence are there in between "PowerPivot" and "Power Pivot" ?

    Can I know what deffence are there in between "PowerPivot" and "Power Pivot" ?
    I want to use collect one.
    I found both "PowerPivot" and "Power Pivot" in Microsoft Web Site.
    ex. http://office.microsoft.com/ja-jp/excel-help/HA102893837.aspx
    Regards,
    Yoshihiro Kawabata

    Thank you Darren.
    Yes, I think "Power Pivot" correct now.
    But I don't found any official annouce "PowerPivot" to "Power Pivot" in Microsoft.
    and There are "PowerPivot" in Microsoft Japan's documents.
    and My friends are using "PowerPivot" in their books that published at Apr/2014.
    I am looking forward official annouce.
    I want to use official word.
    Regards,
    Yoshihiro Kawabata

  • I wanted to sign in to iChat and I didn't know what to write so I wrote AIM and now it doesn't work

    I wanted to sign in to iChat and I didn't know what to write so I wrote AIM and now it doesn't work

    hi,
    Which version of iChat and which version of the OS ?
    It can make slight difference in what we have to tell you.
    As a start open iChat if it will launch
    Go to the iChat Menu (The menu for the App)
    Select Preferences > Accounts
    Bonjour is always in this List
    Highlight the name you entered incorrectly and then use the minus button at the bottom to delete it.
    10:34 PM      Friday; February 24, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.3)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • I wonder to know what is the enterprise solution for windows and application event log management and analyzer

    Hi
    I wonder to know what is the enterprise solution for windows and application event log management and analyzer.
    I have recently research and find two application that seems to be profession ,1-manageengine eventlog analyzer, 2- Solarwinds LEM(Solarwind Log & Event Manager).
    I Want to know the point of view of Microsoft expert and give me their experience and solutions.
    thanks in advance.

    Consider MS System Center 2012.
    Rgds

  • How do I delete a previously saved bookmark but I don't know what Bookmark Folder it is stored in and I didn't want to search folder by folder.

    How do I delete a previously saved (open) bookmark but I don't know what Bookmark Folder it is stored in and I didn't want to search folder by folder. I know there must be a way to delete it or find from the address (URL) window/bar but I can't seem to figure this one out.
    (Yosemite 10.10.1  Safari 8.0.2)

    Click "Bookmarks" in the Safari menu bar, then choose "Edit Bookmarks" from the drop-down.
    Go to the bottom right corner of the page that opens up.
    Enter the search terms in the search box.
    Location  of the bookmark will be shown.

  • I dont know what to do i try install itunes and this keeps coming up "itunes was not installed correctly. please reinstall itunes  error 7 (windows error 127)" what should i do?

    i dont know what to do i try install itunes and this keeps coming up "itunes was not installed correctly. please reinstall itunes  error 7 (windows error 127)" what should i do?

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    tt2

  • What are the advantages of using CACHE and NOCACHE Hint

    What are the advantages of using CACHE and NOCACHE Hint & difference of them.I saw one of oracle.sql script have CACHE & oracle rac script include NOCACHE .Why is that

    924250 wrote:
    In a SOA product include db scripts,when we install the product we want to execute the db script to create sequence both oracle RAC & Oracle db
    Oracle DB
    CREATE SEQUENCE REG_LOG_SEQUENCE START WITH 1 INCREMENT BY 1 NOCACHE
    Oracle RAC DB
    CREATE SEQUENCE REG_LOG_SEQUENCE START WITH 1 INCREMENT BY 1 CACHE 20 ORDERas sb mentioned, this has nothing to do with oracle hints.
    you'll want to search the documentation about sequences.

Maybe you are looking for

  • Modal window can't show window with viewset???

    Hi all, I use the following code to create a popup modal window. When i embed only one view, it works fine, but when i embed a viewset, and put multiple views into the viewset, it can only pop up a tiny little area with nothing in it. is there a reas

  • Really urgent: reagrding FBL2N tcode

    Hi, I making a report in which i have to display the cost of the materials is being paid to vendor or not? plzz tel me which tables n flow for it. as help will be definately rewarded. Edited by: ric .s on Apr 28, 2008 8:22 AM

  • Placing an Image Beside a Spry Menu Bar

    Is there any way for an image (logo) to be directly placed along side of a Horizontal Spry Menu Bar?  I am having a difficult time.  If I draw an AP div, I can place it next to the menu bar, but it remains fixed when I expand the browser window.  I k

  • I want to place a query in main menu

    Hi Experts I want to place a query in main menu but it is not in a crystal report format? How should I be able to do that in SAP 8.8? Please guide me further in this matter.

  • Is it really vital to update N95 Firmware? Come up...

    Is it really important to update N95 all the time to the latest firmware version? What have those gained who updated to latest version, and what have those lost who are using the previous versions. Is it really worth considering to update N95 while t