How to enable trce for active session

HI all
Please help us to trace the active session
We have one qurey its running around 2 hrs now we want to trace that session so please post the steps to trace the session
Thanks

947721 wrote:
HI all
Please help us to trace the active session
We have one qurey its running around 2 hrs now we want to trace that session so please post the steps to trace the session
Thanks
DBMS_MONITOR.SESSION_TRACE_ENABLE(
    session_id   IN  BINARY_INTEGER DEFAULT NULL,
    serial_num   IN  BINARY_INTEGER DEFAULT NULL,
    waits        IN  BOOLEAN DEFAULT TRUE,
    binds        IN  BOOLEAN DEFAULT FALSE,
    plan_stat    IN  VARCHAR2 DEFAULT NULL);

Similar Messages

  • Enable Trace for the Session Loggied in..

    Hi All,
    How to enable trace for the session logged in with out db bounce.
    after enable how to stop and how to get the trace file in readable format.
    Please suggest
    Thanks
    Mano

    Trace a session.
    1)Logout all sessions from the database
    2)Login to application (ensure that only one session is available)
    3)sqlplus trace/trace
    Schema which has privilege to trace the session
    4)check the sid and serial# of the session from v$session
    Use the following query
    SQL> select username,to_char(logon_time,'DD-MON-YYYY HH:MI:SS') from v$session where username='<db username>' order by logon_time;
    SQL>exec sys.dbms_system.set_sql_trace_in_session(sid,serial#,TRUE);
    5)now execute the report/transaction.
    6)once the activity is over
    SQL>exec sys.dbms_system.set_sql_trace_in_session(sid,serial,FALSE);
    7)Now the trace file will be available in the udump folder of the database ip
    Userid/password: trace/trace
    The trace wil be available in /oracle/admin/orcl/udump
    8)To find the name of the trace file use the below query
    select spid from v$process where addr=(select paddr from v$session where sid=<enter the SID>);
    This will give the name of the file
    If you are not able to identify the trace file then please remove all files in udump before starting trace.
    9) ftp the trace fil to ur local pc and issue the tkprof command
    TKPROF <trace file (like D:\orcl_8853.trc)> D:\trace.txt explain=Oracle username/password (application user) sort=(prsela,exeela,fchela)
    This will give trace file in readable format(you need to have 10g client on your pc for tkprof to work)

  • How to enable SSL for policy service?

    Hi all,
    My application is using SunONE's C API to communicate with the Identity Server.
    In order to enable SSL, I have changed the following lines in amconfig.properties:
    com.sun.am.namingURL = https://id01.core.development.net:443/amserver/namingservice
    com.sun.am.policy.am.loginURL = https://id01.core.development.net:443/amserver/UI/Login
    com.sun.am.policy.am.library.loginURL = https://id01.core.development.net:443/amserver/UI/Login
    After operating these changes, everything continued to work fine...but then, I checked with a network sniffer what data is being sent to IS:
    - The login and naming data were over SSL
    - Policy and session items were plain HTTP
    My questions are:
    1. How to enable SSL for policy evaluation requests?
    2. How to enable SSL for sessionservice requests?
    3. What are the changes required on the server/client?
    Many thanks,
    Dan

    There might a better different forum for this question.

  • How to enable GUI for a Cisco 1841?

    How to enable GUI for a Cisco 1841?

    Hi,
    install SDM or CCP on your PC then on the router :
    en
    conf t
    ip dhcp excluded-address 192.168.1.254
    ip dhcp pool MYPOOL
    network 192.168.1.0 255.255.255.0
    default-router 192.168.1.254
    ip http server
    ip http authentication local
    username xxx privilege 15 secret   xxxx
    int f0/0
    ip address 192.168.1.254 255.255.255.0
    no shutdown
    Regards.
    Alain.

  • How to enable logging for the Web Proxy

    Hi,
    Does anyone know how to enable logging for the Web Proxy feature under "Web" in Server Admin?

    Aren't the web proxy hits logged in the standard apache logs? /var/log/httpd/access_log

  • For active sessions error what can i do ..Install j2ee or sdm locally How ?

    Hi,
    Here many developers r working on Web DynPro Java. So when morethan one developers deploying application parallely at that time sdm gives error of active sessions, I found some threads told me that we had to install j2ee or sdm locally . But that threads could not ans satisfactory. Please any one tell me satisfactory ans what i need to install locally and how ?
    Regards,
    Gurprit Bhatia

    Hi,
      WAS Web Application Server has SAP J2EE Engine in which Web Dynpro Applications run. Software Deployment Manager(SDM) component manages deployment process.
    Once you deploy WAS locally, developer will have local server very similar to Tomcat kind... which you he/she can manage.
    Developer need to login to local server portal using http://server url:50000/irj/portal
    if u have any more doubts please let us know.

  • How to enable logging for mail.app in Mountain Lion

    I am at my wits end trying to figure this out....
    Does anyone have a clue how to enable the logging for mail.app under Mountain Lion?
    In the past, you could open up Console and click on Console.log and see the logging of mail. Under mountain Lion, there is no more console.log. I cannot figure out how to enable it.
    I have tried to run the AppleScript of "Turn On Logging" but the script errors out under Mountain Lion.
    Does anyone know how to do this or a better way, maybe a tool or something that can help you troubleshoot mail.app issues?
    Thanks in advanced

    Hello,
    I have a similar problem. The script "Turn on Logging.scpt" runs without error, but I do not see any socket logging. I only get two messages, which I also get when I start mail without the script by just clicking the mail.app icon in the dock. The Messages are:
    1/10/13 3:43:32.618 PM Mail[11276]: Using V2 Layout
    1/10/13 3:43:36.388 PM Mail[11276]: *** -[IADomainCache init]: IA domains cache is out of date.
    Any help would be appreciated

  • How to enable history for settypes?

    Hi,
    We are using few custom settypes in our project and want to track any changes made to their attributes.
    I can see two tables created for each settype, one of which ends with 'H', which is a history table.
    But this table is always blank, even if i make any changes to the settype attributes. How can I enable history for settypes? Any idea?
    Regards,
    Vikrant.

    there is one xml or .dat file which your Basis team would be having, which need to be placed in the directory where your GUI is installed... without which nothing can be done after these many trials on options provided.
    some ppl know it as sticky memory too... search for OSS or in sap support..
    Re: History gets disbaled with SAP GUI 7.10 Patch 11
    Edited by: Jay Sadaram on Dec 4, 2009 1:59 AM

  • How to enable DFF for a particular country on a Standard OA Framework page

    Hi All,
    I have a requirement for iExpense. Here I need to enable a DFF and that should be display only for a particular country say 'India'. I have done this for the core apps forms but for OA Framework pages I am not sure.
    In core apps we have used context senstive rather than Global.
    Could you please help me on this that how can I enable DFF for a particular country.
    Thanks,
    Sam

    hi
    i think u r talking about Domestic and Recoverability DFF,u need to find out the id of those LOV fields ,u can find them going in view source ,right click go to view source and search the fields against the prompt appearing against these LOV like (Recoverability) u will get the id of this field ,then extend your CO and hide this field in processRequest method of extendedCO according to your org id .
    thanx
    Pratap

  • How to enable "Check For Updates" ??

    how can I to enable "Check For Updates" in the Help menu ??

    There is an outside chance you can download the updates and install them, but in the case you have that probably would not work. Are you logged in as an administrator?

  • How to enable hyperlink for a cell in excel thru OLE?

    Hi,
    Iam using OLE2 to download data from an internal table into excel sheet.I want to enable hyperlink for one cell in each line of the excel. Please advice how to go abt it?
    Regards,
    Shambu

    To hyperlink to the specific sheet in your workbook, you need to first create the sheet and use the parameter #3 of the Hyperlink's ADD method.
    Try like this:
    *.....Hyperlink to another sheet
      GET PROPERTY OF e_appl 'Range' = e_range
        exporting
        #1 = 'A1'
        #2 = 'A1'.
      GET PROPERTY OF e_activesheet 'Hyperlinks' = e_hyperlink.
      get property of e_work 'Sheets' = e_sheets.
      CALL METHOD OF e_sheets 'Add' = e_work2.
      CALL METHOD OF e_hyperlink 'Add'
        EXPORTING
        #1 = e_range
        #2 = ''
        #3 = 'Sheet2!A1'.   "Targeted Sheet & Cell
    *.....Hyperlink to another sheet
    Regards,
    Naimesh Patel

  • How to enable cookies for a single web page or site?

    How do I enable cookies for just one site or web page, without enabling cookies for ever site?

    They should be enabled out-of-the-box, but it's worth checking.
    Gingerbread: Menu > More > Settings > "Privacy & Security" section
    On newer versions of Android, the menu may be organized differently, but hopefully you can still find Settings.

  • How to enable https for a single webapp in tomcat 5.5 ?

    Hi ,
    I want to enable https for my web app in Tomcat 5.5(with JDK 1.5, in WinXP) without affecting other webapps running in the same server . Any idea how to do it ? Pl. note , I dont want to make the entire tomcat as SSL enabled.
    Regards
    Diana

    You specify SSL in web.xml of your application. So, in that case other web applications in same server would not be affected.
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>myresources</web-resource-name>
    <url-pattern>/*</url-pattern>
    </web-resource-collection>
    <user-data-constraint>
    <transport-guarantee>CONFIDENTIAL</transport-guarantee>
    </user-data-constraint>
    </security-constraint>Following link will help you to setup SSL in tomcat:
    [http://techtracer.com/2007/09/12/setting-up-ssl-on-tomcat-in-3-easy-steps/|http://techtracer.com/2007/09/12/setting-up-ssl-on-tomcat-in-3-easy-steps/]
    Thanks,
    Mrityunjoy

  • How to enable chekbox for cookies

    HI,
    I want to enable end user to clear cookies from IE. At present this option is grayed out. How to enable this using GPMC?
    Regards,
    Ram Kudva P 

    Its for Windows 2008 R2. Do you have any sample script ?
    I have checked the option in user settings , but no luck. All options like clear history, clear data are enable except cookies. 

  • How to Enable Alerts for Column Chart

    Hi,
    I am new to Xcelsius. I have a column Chart with some data, I want to create alerts for that chart but Enable Alerts option is disabled. My question here is Will this option disabled for Column Chart, if not please tell me how to enable this option.
    Your reply is always appreciated.
    Regards,
    Naresh

    Hi,
    By default Enable Alert option is un ticked check box, if you try to bring new colum chart and see if that enable or not.
    If you get enabled Alert option in new one then delete old one and use new one.

Maybe you are looking for

  • ABAP class mapping in PI (7.0)

    I just switched from XI (3.0) to PI (7.0). I tried to move one of my interfaces, but in Interface Mapping there is no "ABAP-class" option. How to use ABAP mapping in PI?

  • "System Resource Exceeded" for simple select query in Access 2013

    Using Access 2013 32-bit on a Windows Server 2008 R2 Enterprise. This computer has 8 GB of RAM. I am getting: "System Resource Exceeded"  errors in two different databases for simple queries like: SELECT FROM .... GROUP BY ... UPDATE... SET ... WHERE

  • How to map different dataset with ESB

    Hi All, We have an interface in which an application is exposing webservice, but the way the msg format defined at the Requestor is not as provider eg: wsdl of Service Requestor <s:element name="sample"> <s:complexType> <s:sequence> <s:element minOcc

  • BPS - possibility of Manual Planning Functions

    Hi guys,   I need some technical advice. Please advice if this task can be "EASILY" accomplished via BPS Manual Planning Function ?   My client need to input certain data into BW and generate a report displaying all the below mentioned data into a si

  • Can iDS sync with another IDAP server database?

    if i use iDS 5.1 to be a backup server and sync with another LDAP server (Master).The iDS can suppport? or need another tools to connect those servers? my master server is using: Fujitsu InfoDirectory Ver.1.0.9 thanks epee