Running thread - which statement to get to know what this thread is doing

Hallo,
I have a thread in my database running.
Normally the action I am doing with this thread lasts 1 hour. Now it is working for 3 hours.
How can I get to know what my thread is doing and how long this will last? Which statement can I use?
Thanks in advance, Jadexy

This query shows what a session is doing:
select s.sid
,(a.APPLICATION_WAIT_TIME / 1000000) as APPLICATION_WAIT_TIME
,(a.CONCURRENCY_WAIT_TIME / 1000000) as CONCURRENCY_WAIT_TIME
,(a.CLUSTER_WAIT_TIME / 1000000) as CLUSTER_WAIT_TIME
,(a.USER_IO_WAIT_TIME / 1000000) as USER_IO_WAIT_TIME
,(a.CPU_TIME / 1000000) as CPU_TIME
,(a.ELAPSED_TIME / 1000000) as ELAPSED_TIME
,a.ROWS_PROCESSED
,a.disk_reads
,a.buffer_gets
,a.direct_writes
,a.optimizer_mode
,a.sql_text
from v$session s, v$sqlarea a
where s.sid = &YOUR_SESSION_ID
and a.sql_id = s.sql_id
order by 1
Times are shown in seconds.

Similar Messages

  • Help Dont know what this code is doing ?????

    i dont know what this code is doing from the for part can some one explain it for me
    i am confused starting at the for statement thanks for the help
    public class LeastToGreatestPlaceHolder {
      public static void main(String []args) {
         int [] myArray;
         myArray = new int[3];
         myArray[0] = 6;
         myArray[1] = 7;
         myArray[2] = 9;
        for (int i = 0; i < 2 ; i++){     // confused here
         for(int j = 1; j < 3; j++) {
           int placeholder = myArray[j];
           if (myArray[i] > myArray[j]) {
             myArray[j] = myArray;
    myArray[i] = placeholder;
    System.out.print(myArray[0]);
    System.out.print(myArray[1]);
    System.out.print(myArray[2]);

    Have you tried running the program and seeing what it outputs?
    Have you considered writing out the state of the array and running through the code by hand?
    I'll give you a [head start|http://java.sun.com/docs/books/tutorial/java/nutsandbolts/for.html].

  • Anyone know what this code is doing?

    Howdy,
    Don't suppose ya know what this code could be doing:
    TABLES:  nast,
            *nast.
      SELECT * FROM  *nast
             WHERE  kappl       = nast-kappl
             AND    objky       = nast-objky
             AND    kschl       = nast-kschl
             AND    spras       = nast-spras
             AND    parnr       = nast-parnr
             AND    parvw       = nast-parvw.
        IF *nast-vstat = 1.
          processed = 'X'.
        ENDIF.
      ENDSELECT.
      CHECK processed NE 'X'.
    Its got me stumped! what on earth is *NAST?
    Are we simply looping through all the entries in NAST???
    Basically I came across this code because I am trying to write a program that gets triggered when the user saves a Debit note.
    My program should then take the billing document number that was saved and use it to create a credit memo request, but finding the billing document number was a pain and someone told me that I had to use NAST or something...
    ANyhow, I came a cross the following code but it doesn't make sense...
    I think it should be
    TABLES:  nast.
    data: wa_nast type NAST.
      SELECT single * FROM  nast into wa_nast
             WHERE  kappl       = nast-kappl
             AND    objky       = nast-objky
             AND    kschl       = nast-kschl
             AND    spras       = nast-spras
             AND    parnr       = nast-parnr
             AND    parvw       = nast-parvw.
        IF nast-vstat = 1.
          processed = 'X'.
        ENDIF.
    What do you all think?????

    Thanks Rich,
    May be you are right or may be I didn't amke myself clear.
    I think my program will be connected to the output type via transaction NACE. Then whenever the user saves a debit memo it will trigger the output type and this should then trigger my program to produce the BDC based on the billing document number in the debit memo.
    I thought this would be passed into nast-objkey and I thought I would write an entry routine that could be placed in NACE that access my program.
    AM I correct in thinking that this would work????

  • My itunes won't install the new itunes.  I keep getting error messages that seem to be linked to MobileMe service which I don't even know what it is.

    my itunes won't install the new itunes.  I keep getting error messages that seem to be linked to MobileMe service which I don't even know what it is.

    Read this:
    iTunes 11.1.4 for Windows - Unable to install or open - MSVCR80 issue

  • Everytime I open Safari I get a message that says the "Safari version you are using doesn't support the Community Toolbar."  Does anyone know what this means?

    Everytime I open Safari I get a message that says "we're sorry but the Safari browser version you are currently using does not support the Community Toolbar." Does anyone know what this means?

    Have a read at this thread https://discussions.apple.com/message/15620421#15620421 with similar problem and a solution.
    Stefan

  • After downloading the latest version of iTunes and updating my iPhone everytime I turn on my computer I get a message that reads: AppleSyncNotifier.exe - Entry Point Not Found. Does anybody know what this means?

    After downloading the latest version of iTunes and updating my iPhone, everytime I turn on my computer I receive a message that reads: "AppleSyncNotifier.exe - Entry Point Not Found. The procedure entry point sqlite3_wal_checkpoint could not be located in the dynamic link library SQlite.dll" Help! Does anybody know what this means and how I can fix it? Thanks.

    Yes.  I just solved the problem on my PC.  Here goes...
    Issue:  My Windows7 computer was producing the pop up box with the error text as you described.
    The Problem: You have another application on your computer that uses the like named .DLL file... in this case a DLL supporting SQLite on your local PC.
    Solution: 
    1.  You need to use the Windows File search feature to look for the name "SQLite".  This will quickly locate the offending DLL in the other application.
    2. Decide which program you like the most, in my case "Mobile Me", and uninstall the offending application.
    3.  Uninstall Mobile Me.
    4.  Restart your PC.
    5.  Reinstall Mobile Me.
    6.  Mobile Me should sync at this point, but if not, restart the PC once again.
    In my case, the offending program was my Aptana Studio development application.  I had recently the SQLite3 database to my Ruby On Rails configuration...
    This is where the file was located:
    C:\Users\<USERNAME>\Aptana Studio 2.0\plugins\com.aptana.radrails.sqlite3.win32_3.5.7.1278709071\vendor\SQLite3.d ll
    I hope this helps,
    Ron

  • I'm getting this error message, "An unexpected error occurred (error code -6584)"  Does any know what this is?

    I'm getting this error message, "An unexpected error occurred (error code -6584)"  Does any know what this is?

     

  • TS4291 I can't send mail from my iPad apps, I just get the error message, 'The recipient- was rejected by the server because it does not allow relaying.' Does anyone know what this means and how to fix the problem.

    I can't send mail from my iPad apps, I just get the error message, 'The recipient… was rejected by the server because it does not allow relaying.' Does anyone know what this means and how to fix the problem.

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    Setting up and troubleshooting Mail
    http://www.apple.com/support/ipad/assistant/mail/
    Using a POP account with multiple devices
    http://support.apple.com/kb/ht3228
    iOS: Adding an email account
    http://support.apple.com/kb/HT4810
    iOS: Setting up an Outlook.com, Hotmail, Live, or MSN email account
    http://support.apple.com/kb/ht1694
    Server does not allow relaying email error, fix
    http://appletoolbox.com/2012/01/server-does-not-allow-relaying-email-error-fix/
    Why Does My iPad Say "Cannot Connect to Server"?
    http://www.ehow.co.uk/info_8693415_ipad-say-cannot-connect-server.html
    How to Sync Contacts with Your iPad Using iTunes
    http://www.dummies.com/how-to/content/how-to-sync-contacts-with-your-ipad-using- itunes.html
    iOS: 'Mailbox Locked', account is in use on another device, or prompt to re-enter POP3 password
    http://support.apple.com/kb/ts2621
    eMail Groups - You can use a third party app that many users recommend.
    MailShot -  https://itunes.apple.com/us/app/mailshot-pro-group-email-done/id445996226?mt=8
    Group Email  -  https://itunes.apple.com/us/app/group-email!-mail-client-attachments/id380690305 ?mt=8
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    Configuration problems with IMAP e-mail on iOS with a non-standard SSL port.
    http://colinrobbins.me/2013/02/09/configuration-problems-with-imap-e-mail-on-ios -with-a-non-standard-ssl-port/
    Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Or this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts   Tap on the Account, then on the red button that says Remove Account.
     Cheers, Tom

  • I can't get my project to share. A pop up screen comes up saying, "This item can't be shared while it is still referencing media on the camera". Does anyone know what this means.

    I can't get my project to share. A pop up screen comes up saying, "This item can't be shared while it is still referencing media on the camera". Does anyone know what this means. I'm confused because I don't have a camera hooked up to my computer.

    may you have directly imported clip to timeline without copying it to local drive..
    update project for links and check if missing clips are there..
    reconnect it if you have it on local drive..

  • I can't upload a copy I got of Adobe Photoshop CS on my Mac Mini OS X 10.5.8. All I can get for why is this  "This program cannot be run in DOS mode" I have no idea what this means?

    I can't upload a copy I got of Adobe Photoshop CS on my Mac Mini OS X 10.5.8. All I can get for why is this
    "This program cannot be run in DOS mode"
    I have no idea what this means?

    Are you certain the copy of Adobe Photoshop CS is for the Mac OS, not Windows?

  • How can I get to know what's my iCloud account and password, I forgot them

    How can I get to know what's my iCloud account and password, I forgot them

    Welcome to the Apple community.
    If you can't remember the password, reset it at...
    iForgot.com

  • Every time I launch iTunes I get message "We could not complete your iTunes Store request. An unknown error occurred (4002)." Anyone know what this is?

    Hi everyone. Every time I launch iTunes I get a message "We could not complete your iTunes Store request. An unknown error occurred (4002)." Anyone know what this is or what I need to do to stop it? Any suggestions much appreciated.
    Geoffrey

    Re: An unknown error occurred (4002).
    This might solve your problem....

  • I'm trying to connect my iPad to my Samsung galaxy s by bluetooth but the ipad will pair with it but not connect and says "its not supported" does anyone know what this means and how I get it to work?

    I'm trying to connect my iPad to my Samsung galaxy s by bluetooth but the ipad will pair with it but not connect and says "its not supported" does anyone know what this means and how I get it to work?

    iOS devices do not have the BT profiles that support file sharing and othr general functions. See:
    iOS: Supported Bluetooth profiles
    Basically it support headphones, keyboards, speakers, peer-to-peer gaming

  • I keep getting the message "The backup disk image "/Volumes/Donald  Baker's Time Capsul/Donald Baker's iMac.sparsebundle" could not be accessed (error -1). does anyone know what this means? My time capsule refuses to back up.

    I keep getting the message "The backup disk image “/Volumes/Donald  Baker's Time Capsul/Donald Baker’s iMac.sparsebundle” could not be accessed (error -1). does anyone know what this means? My time capsule refuses to back up.

    Time Capsule and Time Machine master guru Pondini has all the answers.
    Check # C17 in his excellent support document Time Machine -- Troubleshooting.
    http://Pondini.org/TM/Troubleshooting.html

  • I'm getting an "error 404" when I try to connect to a webinar - does anyone know what this means?

    I'm getting an "error 404" when I try and connect to a webinar - does anyone know what this means?

    Basically, it means that either the link you have is bad or the Connect server you are trying to connect to is down or inaccessible.
    HTTP 404 - Wikipedia, the free encyclopedia

Maybe you are looking for

  • Can I install Calendar Server on another partition other than root file system

    Can I install Calendar Server on another partition other than / ? <P> In this version, the default path is hard coded to install in /users/unison. However, if you do not have enough room on your root partition or choose to install it in another locat

  • No fact table exists at the requested level

    Hi, I have a 3 dimension tables and D_CANDIDATE, D_QUALIFICATION, D_SERIES. D_CANDIDATE is linked with D_QUALIFICATION and D_SERIES. If i create a analysis with all the 3 dimensions i am getting this error. no fact table exists at the requested level

  • Mapping DTO to XML Schema for Worship Web Service

    I have a number of DTOs that my application uses. This application needs to consume a number of document style web services created in workshop. When I generate the proxies for this web service, it creates Java beans for the XML schema types defined

  • Dates

    hi abapers ,                        how many function modules r there to calculate duration between two dates , r else is there any simple logic to calculate in module pool programing guide me very urgent

  • I just got my iCloud email address and wish to change it. Is this possible?

    I just got my iCloud email address and would like to change it to something more meaningful to me. Is this possible?