How to trace an already running session

Hi,
Sometime I come across following situation.
Queries/SQL statements keep on running for a long time and users complain about the same.
But since they have already started I am not able do anything about it.
So please guide me "how can I trace already running session."
Thanks,
Rushi

Rushi Shah wrote:
Hi,
Sometime I come across following situation.
Queries/SQL statements keep on running for a long time and users complain about the same.
But since they have already started I am not able do anything about it.
So please guide me "how can I trace already running session."
http://www.petefinnigan.com/ramblings/how_to_set_trace.htm
Use DBMS_SUPPORT to set trace in another users session
Next use the interface to again set trace for SCOTT's session that we found earlier. here it is:
     SQL> exec dbms_support.start_trace_in_session(10,20,waits=>true,binds=>false);
     PL/SQL procedure successfully completed.
     SQL> -- execute some code
     SQL> exec dbms_support.stop_trace_in_session(10,20);
     PL/SQL procedure successfully completed.
     SQL>                          
                              

Similar Messages

  • How to trace someone else's session

    Hello,
    How do I trace a user's session. A user is complaining of an error and I want to trace the user's session. Thank you.

    You will need to get the sid and the serial# from v$session. Once you have them, issue one of the following:
    You can use dbms_support to enable and disable the trace. If it is not installed, you will need run $ORACLE_HOME/rdbms/admin/dbmssupp.sql
    To enable a level 1 trace, like setting sql_trace=true
    exec dbms_support.start_trace_in_session(<sid>,<serial#>);
    To enable trace with binds
    exec dbms_support.start_trace_in_session(<sid>,<serial#>,binds=true);
    Toe enable trace with binds and waits
    exec dbms_support.start_trace_in_session(<sid>,<serial#>,waits=true,binds=true);
    To stop tracing
    exec dbms_support.stop_trace_in_session(<sid>,<serial#>);
    It is better to end the session instead of disabling the trace. Some cursor stat lines may not be written to the trace when disabling trace that would have been written if the session terminated.

  • How to trace other user's session?

    Dear Experts,
    I would like to trace other user's session, I am on Oracle 10g R2 (10.2.0.4) on a Windows box. I did search on google and found tons of articles explaining about tracing techniques. But unfortunately, trace file is not getting generated in my case. Below are the steps I am following:
    SQL> conn /as sysdba
    Connected.
    SQL>
    SQL> select sid, serial# from v$session where username = 'TEST';
           SID    SERIAL#
            38         17
    SQL> show parameter user_d
    NAME                                 TYPE        VALUE
    user_dump_dest                       string      C:\DB10G\UDUMP
    SQL> show parameter timed_s
    NAME                                 TYPE        VALUE
    timed_statistics                     boolean     TRUE
    SQL>Connect a new SQL*Plus session as TEST and then
    SQL> show user
    USER is "SYS"
    SQL>
    SQL> select sid, serial# from v$session where username = 'TEST';
           SID    SERIAL#
            19      24465
            38         17
    SQL> exec dbms_system.set_ev(38,17, 10046, 12, '');
    PL/SQL procedure successfully completed.
    SQL> exec dbms_system.set_ev(38,17, 10046, 0, '');
    PL/SQL procedure successfully completed.
    SQL> grant execute on dbms_system to test;
    Grant succeeded.
    SQL> exec dbms_system.set_ev(38,17, 10046, 12, '');
    PL/SQL procedure successfully completed.in the new session (TEST):
    SQL> select * from tab;
    TNAME                          TABTYPE  CLUSTERID
    T                              TABLE
    T3                             TABLE
    T1                             TABLE
    T2                             TABLE
    MYEMP                          TABLE
    SQL>Yet, no trace file is generated in "C:\db10g\udump" folder.
    C:\db10g\udump>dir
    Volume in drive C is SYSTEM
    Volume Serial Number is AC21-0462
    Directory of C:\db10g\udump
    12/15/2008  12:36 PM    <DIR>          .
    12/15/2008  12:36 PM    <DIR>          ..
                   0 File(s)              0 bytes
                   2 Dir(s)   9,891,508,224 bytes free
    C:\db10g\udump>Your help/advice in this regard will be very helpful.
    Regards

    You must be using shared server.
    You can verify this by referring to the SERVER column of v$session.
    In shared server several servers will execute your code, so that's why you don't find a trace file.
    The method described in this article should work in your case also:
    http://technology.amis.nl/blog/1794/how-to-trace-a-java-application-through-a-connection-pool-using-dbms_monitor-6
    Hth
    Sybrand Bakker
    Senior Oracle DBA

  • How to trace for multiple user sessions?

    Hello -
    I have a username from the app that has 7 connections to the database. What is the easiest way that I can run the 10046 trace event across all 7 sessions, and also name the trace files so they can be recognized in user_dump?
    Thanks in advance!

    Check what sid and serial# has session:
    select sid, serial# from sys.v_$session where ...
    start tracing session with:
    execute dbms_system.set_sql_trace_in_session(sid, serial#, true);
    stop tracing with
    execute dbms_system.set_sql_trace_in_session(sid, serial#, false);
    Look into udump directory for trace files:
    The default name for a trace files is INSTANCE_PID_ora_TRACEID.trc where:
    INSTANCE is the name of the Oracle instance,
    PID is the operating system process ID (V$PROCESS.OSPID); and
    TRACEID is a character string of your choosing.

  • How to trace users Long Running transaction?

    It happened a day ago, is there a transaction I can use to trace the users execution that caused them to time_out?
        Thank-You.

    dear friend,
    follow this link ,u ll get ur answer....
    https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=17826
    try for transactions st03,st03n,se30,st12........
    regards
    kanishak

  • Enabling https on already running apache server

    How to enable https already running apache server.
    Regards

    Saurabh,
    > How to enable https already running apache server.
    >
    It should be on by default. It is controlled by the secure listen
    directive in httpd.conf
    - Anders Gustafsson, Engineer, CNE6, ASE
    NSC Volunteer Sysop
    Pedago, The Aaland Islands (N60 E20)
    Novell does not monitor these forums officially.
    Enhancement requests for all Novell products may be made at
    http://support.novell.com/enhancement
    Using VA 5.51 build 315 on Windows 2000 build 2600

  • How do i start an Oracle Trace?   For a currently running session?

    How do i start an Oracle Trace? For a currently running session? How do i read it?

    How do i read it? Ohh forgot this one. That tracing will create a tracefile in udump directory and you need to run tkprof to parse that trace file so that you can read it. To find the udump dir type "show parameter user_dump_dest" at sqlplus prompt and then run tkprof like (from OS prompt):
    tkprof file_name.trc file_name.txt sys=no
    Type only tkprof for more option of this tool.
    Daljit Singh

  • When closing FF and then try to go back on, a msg. says FF is already running, but not responding, to open new window you must first close the existing window or restart system. How do i close without restarting?

    'This happens after a FF session is ended and am back on my desktop screen. If I then try to go back online a message says that FF is already running but is not responding. To open a new session you must first close the existing process or restart your system. I have to restart the computer to before it allows me to go back on. How can I close the session and then open a new one without rebooting???

    Hey GreenViking,
    You can kill the process manually by right clicking in the task bar (next to the time and date) and opening the task manager.
    [https://support.mozilla.com/en-US/kb/Firefox%20hangs#w_firefox-hangs-when-you-quit-it This article] has some information about Firefox hanging when you try to close it.
    Hope that helps!

  • Firefox claims that it is already running and will not let me start a new session after closing out

    I've been having this problem intermittently on both my Dell XPS 8000 and my HP nx7400 laptop. The Dell is running the latest version of Windows 7 Pro and the HP is running XP Pro (fully updated). After closing out of a Firefox session and running other apps, Firefox will not let me initiate another session, saying that "Firefox is already running... Please close the session..." That's not an exact quote, but you get the idea. CTRL-ALT-DEL and all other conventional means don't work and I am forced to reboot the system. This is a royal pain.. and I need some pain relief! Any suggestions? I may revert to an earlier version of Firefox until I see a solution... can't hurt, but I really like 4.0 and I don't look at going backwards as "progress."
    Thanks.
    Tom

    Sounds like it is hanging when you exit and later try to restart Firefox.
    * How to stop the running Firefox process
    ** In Task Manager, does firefox.exe show in the '''<u>Processes</u>''' tab?
    ** See: http://kb.mozillazine.org/Kill_application
    **Windows 7 users: http://www.techrepublic.com/blog/window-on-windows/reap-the-benefits-of-windows-7s-task-manager/2576
    * What may cause Firefox to hang at exit
    **Windows 7 Task Manager: http://www.techrepublic.com/blog/window-on-windows/reap-the-benefits-of-windows-7s-task-manager/2576
    ** http://support.mozilla.com/en-US/kb/Firefox+hangs
    ** http://kb.mozillazine.org/Firefox_hangs
    ** https://support.mozilla.com/en-US/kb/Firefox+is+already+running+but+is+not+responding
    * You may need to try Firefox Safe Mode
    ** You may need to use '''Safe Mode''' to locate the problem:
    ***See: http://kb.mozillazine.org/Safe_Mode
    ***Firefox 4 users, hold the Shift key while clicking the Firefox 4 desktop icon to enter Safe Mode.
    ***Firefox Safe Mode is a diagnostic mode that disables Extensions and some other features of Firefox.
    ****In Firefox 4, Safe Mode also disables Plugins and Hardware Acceleration.
    ****If you are using a theme, switch to the DEFAULT theme: Tools > Add-ons > Themes '''<u>before</u>''' starting Safe Mode (In Firefox 4, Tools > Add-ons > Appearance). See: http://support.mozilla.com/en-US/kb/Using%20themes%20with%20Firefox#w_managing-themes-and-personas
    ****When entering Safe Mode, do not check any items on the entry window, just click "Continue in Safe Mode".
    ****Test to see if the problem you are experiencing is corrected.
    *** If the problem does not occur in Safe-mode then disable all of your Extensions and Plug-ins and then try to find which is causing it
    ***#by enabling '''<u>one at a time</u>''' until the problem reappears.
    ***#You can also enable a few at a time (3-5), keeping track of what you just re-enabled to see if the problem re-occurs; this will help narrow down the possibilities if you have a large number of add-ons.
    ***#'''<u>You MUST close and restart Firefox after EACH change</u>''' via File > Restart Firefox (on Mac: Firefox > Quit).
    ***#You can use "Disable all add-ons" on the Safe Mode start window.
    **See the following for more information
    *** http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes
    *** http://support.mozilla.com/en-US/kb/Troubleshooting+plugins
    *** http://support.mozilla.com/en-US/kb/Basic+Troubleshooting
    <br />
    <br />
    '''You need to update the following.''' The Plugin version(s) shown below was/were submitted with your question and is/are out of date. You should update to avoid known security issues with the version(s) you have installed. Click on "More system info..." to the right of your question to see what was included with your question.
    *Next Generation Java Plug-in 1.6.0_24 for Mozilla browsers
    #'''''Check your plugin versions''''' on either of the following links':
    #*http://www.mozilla.com/en-US/plugincheck/
    #*https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #*There are plugin specific testing links available from this page:
    #**http://kb.mozillazine.org/Testing_plugins
    #'''Update the [[Java]] plugin''' to the latest version.
    #*Download site: http://www.oracle.com/technetwork/java/javase/downloads/index.html (Java Platform: Download JRE)
    #**'''''Be sure to <u>un-check the Yahoo Toolbar</u> option during the install if you do not want it installed.
    #*Also see "Manual Update" in this article to update from the Java Control Panel in Windows Control Panel: http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox#Updates
    #* Removing old versions (if needed): http://www.java.com/en/download/faq/remove_olderversions.xml
    #* Remove multiple Java Console extensions (if needed): http://kb.mozillazine.org/Firefox_:_FAQs_:_Install_Java#Multiple_Java_Console_extensions
    #*Java Test: http://www.java.com/en/download/help/testvm.xml

  • How to trace session(3rd paty application) accessing oracle

    Solaris 9
    oracle 9i and 10g
    I would like to know how to trace session which is 3rd party application currently running .
    I need to collect statisctics for currently running session.
    Thanks.
    Message was edited by:
    user539835

    See this thread:
    Re: SQL_TRACE help to newbie in oracle
    Search the forum and you will also see how to manually decode most of the trace file.
    Charles Hooper
    IT Manager/Oracle DBA
    K&M Machine-Fabricating, Inc.

  • ITunes could not sync information to the iPod "...." because another sync session was already running.

    Normally, syncing my iPod Touch is no problem. However, last time I tried to sync, the process hung up and even after half an hour the progress bar would not finish. I ended up having to force quit iTunes. Now when I try to sync I get 2 messages: the first says "iTunes could not back up the iPod "......" because a session could not be started with the iPod." as soon as I close that message another appears: "iTunes could not sync information to the iPod "......." because another sync session was already running."
    There seems to be a half finished sync file saved somewhere and a new one cannot be started. However, I can't continue the partial one either so I'm stuck.
    Other than that my iPod Touch 4 is operating normally. Syncing with Mac Book Pro.
    How do I fix this problem?

    WHat do yo meanby rebooting?
    Is is a reset like defined in the users guide:
    Reset iPod touch:  Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.

  • How to check if  web application already running?

    Is it any way to check, if a web application is already running on clients computer.  In other words how to prevent users to opens second instance of the same running application??

    Not sure what you mean.
    The application (scope) only runs once.  A user cannot force another application scope to open up, ColdFusion controls this.  If no request is made within the timespan set for the application timeout, then the next request fires off the onApplicationStar() BIF automatically before the request BIFs are executed.
    If you mean that you don't want them to have more than 1 browser open to the same website, I'm not sure that's going to cause any issues; as what was said before, the web is stateless.  ie:
    If I open Chrome, and in Tab 1 I goto home.cfm and in Tab 2 I goto home.cfm the to ColdFusion, it basically sees 2 requests to home.cfm made from (in essence) the same person (even though it doesn't know that until you implement some form of user tracking).
    But even if a person logs into a website, the session data is shared for the browser or session (depending in how your sessions are setup)  So even if he logs in on Tab 1, the next time he goes anywhere in Tab 2, it'll be when he's logged in.  The 2 tabs share the same session data.

  • When I attempt to open firefox an error message appears telling me that firefox is already running, but I can't find it running. How do I do so or in any case close the already running Firefox process?

    When I attempt to open Firefox instead of Firefox opening, an error message appears saying "Firefox is already running but isn't responding. To open another window please close the existing Firefox process or restart the system.", but I can't find that process of Firefox in order to kill it, and after restarting the system there is still the problem. I have found an emergency fix to at least get online, and that is to use"Firefox_Profile_Manager" in the start menu's "run" start menu, but the
    Firefox that then opens is that one doesn't carry over what I had in my bookmarks but starts bookmarks anew.

    Sounds like it is hanging when you exit and later try to restart Firefox.
    * How to stop the running Firefox process
    ** In Task Manager, does firefox.exe show in the '''<u>Processes</u>''' tab?
    ** See: http://kb.mozillazine.org/Kill_application
    **Windows 7 users: http://www.techrepublic.com/blog/window-on-windows/reap-the-benefits-of-windows-7s-task-manager/2576
    * What may cause Firefox to hang at exit
    **Windows 7 Task Manager: http://www.techrepublic.com/blog/window-on-windows/reap-the-benefits-of-windows-7s-task-manager/2576
    ** http://support.mozilla.com/en-US/kb/Firefox+hangs
    ** http://kb.mozillazine.org/Firefox_hangs
    ** https://support.mozilla.com/en-US/kb/Firefox+is+already+running+but+is+not+responding
    * You may need to try Firefox Safe Mode
    ** You may need to use '''Safe Mode''' to locate the problem: ***See: http://kb.mozillazine.org/Safe_Mode
    ***Firefox 4 users, hold the Shift key while clicking the Firefox 4 desktop icon to enter Safe Mode.
    ***Firefox Safe Mode is a diagnostic mode that disables Extensions and some other features of Firefox.
    ****In Firefox 4, Safe Mode also disables Plugins and Hardware Acceleration.
    ****If you are using a theme, switch to the DEFAULT theme: Tools > Add-ons > Themes '''<u>before</u>''' starting Safe Mode (In Firefox 4, Tools > Add-ons > Appearance). See: http://support.mozilla.com/en-US/kb/Using%20themes%20with%20Firefox#w_managing-themes-and-personas
    ****When entering Safe Mode, do not check any items on the entry window, just click "Continue in Safe Mode".
    ****Test to see if the problem you are experiencing is corrected.
    *** If the problem does not occur in Safe-mode then disable all of your Extensions and Plug-ins and then try to find which is causing it
    ***#by enabling '''<u>one at a time</u>''' until the problem reappears.
    ***#You can also enable a few at a time (3-5), keeping track of what you just re-enabled to see if the problem re-occurs; this will help narrow down the possibilities if you have a large number of add-ons.
    ***#'''<u>You MUST close and restart Firefox after EACH change</u>''' via File > Restart Firefox (on Mac: Firefox > Quit).
    ***#You can use "Disable all add-ons" on the Safe Mode start window.
    **See the following for more information
    *** http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes
    *** http://support.mozilla.com/en-US/kb/Troubleshooting+plugins
    *** http://support.mozilla.com/en-US/kb/Basic+Troubleshooting
    <br />
    <br />
    '''You need to update the following:'''
    *Adobe Shockwave for Director Netscape plug-in, version 11.5
    *Adobe PDF Plug-In For Firefox and Netscape "9.3.2"
    *Shockwave Flash 10.2 r153
    *Next Generation Java Plug-in 1.6.0_17 for Mozilla browsers
    #'''''Check your plugin versions''''' on either of the following links':
    #*http://www.mozilla.com/en-US/plugincheck/
    #*https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #*There are plugin specific testing links available from this page:
    #**http://kb.mozillazine.org/Testing_plugins
    #'''Update Shockwave for Director'''
    #*NOTE: this is not the same as Shockwave Flash; this installs the Shockwave Player.
    #*Use Firefox to download and SAVE the installer to your hard drive from the link in the article below (Desktop is a good place so you can find it).
    #*When the download is complete, exit Firefox (File > Exit)
    #*locate and double-click in the installer you just downloaded, let the install complete.
    #*Restart Firefox and check your plugins again.
    #*'''<u>Download link and more information</u>''': http://support.mozilla.com/en-US/kb/Using+the+Shockwave+plugin+with+Firefox
    #'''Update Adobe Reader (PDF plugin):'''
    #*From within your existing Adobe Reader ('''<u>if you have it already installed</u>'''):
    #**Open the Adobe Reader program from your Programs list
    #**Click Help > Check for Updates
    #**Follow the prompts for updating
    #**If this method works for you, skip the "Download complete installer" section below and proceed to "After the installation" below
    #*Download complete installer ('''if you do <u>NOT</u> have Adobe Reader installed'''):
    #**SAVE the installer to your hard drive (save to your Desktop so that you can find it after the download). Exit/Close Firefox. Run the installer you just downloaded.
    #**Use either of the links below:
    #***https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox ''(click on "Installing and updating Adobe Reader")''
    #***''<u>Also see Download link</u>''': http://get.adobe.com/reader/otherversions/
    #*After the installation, start Firefox and check your version again.
    #'''Update the [[Managing the Flash plugin|Flash]] plugin''' to the latest version.
    #*Download and SAVE to your Desktop so you can find the installer later
    #*If you do not have the current version, click on the "Player Download Center" link on the "'''Download and information'''" or "'''Download Manual installers'''" below
    #*After download is complete, exit Firefox
    #*Click on the installer you just downloaded and install
    #**Windows 7 and Vista: may need to right-click the installer and choose "Run as Administrator"
    #*Start Firefox and check your version again or test the installation by going back to the download link below
    #*'''Download and information''': http://www.adobe.com/software/flash/about/
    #**Use Firefox to go to the above site to update the Firefox plugin (will also install plugin for most other browsers; except IE)
    #**Use IE to go to the above site to update the IE ActiveX
    #*'''Download Manual installers'''.
    #**http://kb2.adobe.com/cps/191/tn_19166.html#main_ManualInstaller
    #**Note separate links for:
    #***Plugin for Firefox and most other browsers
    #***ActiveX for IE
    #'''Update the [[Java]] plugin''' to the latest version.
    #*Download site: http://www.oracle.com/technetwork/java/javase/downloads/index.html (Java Platform: Download JRE)
    #**'''''Be sure to <u>un-check the Yahoo Toolbar</u> option during the install if you do not want it installed.
    #*Also see "Manual Update" in this article to update from the Java Control Panel in Windows Control Panel: http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox#Updates
    #* Removing old versions (if needed): http://www.java.com/en/download/faq/remove_olderversions.xml
    #* Remove multiple Java Console extensions (if needed): http://kb.mozillazine.org/Firefox_:_FAQs_:_Install_Java#Multiple_Java_Console_extensions
    #*Java Test: http://www.java.com/en/download/help/testvm.xml

  • How can I stop from getting the "Firefox is already running" error message when trying to open links and FF has already been opened through a symbolic link?

    I use symbolic links and program shortcuts as a way to easily open different Firefox profiles ie. one for casual/personal use and another for work. This works well, but I get the "Firefox is already running, but is not responding" error message if I try to open external links with FF as my default browser. FF is actually open and running fine, but I guess it doesn't acknowledge this fact because of how I'm originally starting the process.
    I wasn't able to add the symbolically linked executables to the default program pane. Is there a way to bypass this error or other way to fix this?
    The solution to the question linked below is what I'm using to open the different FF profiles.
    http://superuser.com/questions/255312/pin-same-app-multiple-times-in-windows-7

    hello, this is probably happening when you run the default profile with the -no-remote switch.
    http://kb.mozillazine.org/Profile_in_use

  • After closing out, FF will not restart, says it is already running forcing me to reboot. I have removed and re-installed FF and still get the same message when trying to open the internet using FF. How can this be fixed?

    When I close out Firefox, and return later to use the internet, I click on Firefox and it gives me a message stating that Firefox is already running and needs to be closed before restarting or reboot my system. This occurs every time Firefox is closed and attempt to re-start it,,, not only at times,,,, EVERY time.
    I have tried removing Firefox from my system and re-installing to fix this issue however,,, this did not work. After re-installing, I still get the same message when attempting to restart Firefox.
    I have also tried Ctrl, Alt, delete to open the task manager and find there is no task to close.
    I do not have any problems when using IE, I prefer to use Firefox as it is faster and crashes less than IE.
    I am very frustrated at having to reboot my system each time I want to use the internet.
    How can this problem be repaired?

    There are various causes for this error, see [[Firefox is already running but is not responding]] for details.

Maybe you are looking for

  • Adobe Flash/Shockwave Problems

    for some reason Adobe Flash is Crashing Every day for the last 2 weeks with Firefox i'v reinstalled it and it didn't help one bit and not sure whats going on. my system is a Win 8 (64bit) Firefox version is 25.0

  • How can I use iMac mid 2007 24" 2.8GHz as screen for Xbox

    I am about to buy a new Xbox with Kinect. I would really like if there was some way I could use my iMac as a screen with it. There is not a lot of space in front of our TV, so playing (and jumping etc) in front of the mac will be ideal. I have search

  • Header child element 'WSCorIDSOAPHeader' must be namespace qualified!

    I have two machines. The first machine have an OSB managed server and admin server. The second machine have a SOA managed server, admin server and enterprise manager. A service call in OSB is redirect do SOA Server (BPEL process). After the route the

  • WEBAUTH SSID ISSUE

    /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Tableau Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-

  • Delayed email notification in OIM

    We want OIM to send an email notification to the user that a new account was created for that user on the target system, but there are some instances when we will not know the email address until after the account on the target system is created. Onc