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)

Similar Messages

  • Enable trace for particular concurrent program

    Hi Experts,
    I want to enable trace for the program called "Print Invoice Notice". I tick the enable trace box in Concurrent->Define-> navigation.
    But i didn't get any trace under USER_DUMP_DEST destination.
    Thanks
    Sundar.

    Hi,
    Please run the query in (Note: 296559.1 - FAQ: Common Tracing Techniques within the Oracle Applications 11i/R12) to find the trace file name and location.
    Regards,
    Hussein

  • Save parameters for the session

    Hello,
    I  am using WDP CE 7.2 and wants to store parameters in the memory for the session:
    In Wdp 7.0 we used:
    IMaintainScope maint = Utils.getScopeMaintainer(WDScopeType.SERVERSESSION_SCOPE);
    maint.getScope().put(<  Some object >);
    I cant find this interface on CE 7.2, is there any other way to do the same ?
    Thanks for all the help.
    N.

    Hi trixie!
    This depends on your app. On page A U enter parameters and start execution. Result is presented on page B. How, when or why the user is on page A doesn't matter as long as he has permission. So the servlet (or whatever) between the pages does always the same: read parameters from request, do calculations, present result.
    That is how I think about it.
    Thomas.

  • Remote enabled FM for the Portal application

    Dear all,
    I need to develop a Remote enabled FM for the Portal application. The requirement is to pass the output( few fileds) of MC.1 Transaction to the portal.The issue is whether to write our own logic in the function module or is there any alternative way.
    The input is same as for the std tarnsaction MC.1
    Thanks
    Kumar

    Yes you will have to create a Z function module.
    Instead of declaring the function module as normal function module in the attributes tab, mention it as remote function module.
    Also when giving import and export parameters select the pass value check box.
    This might solve your query.
    Thanks & Regards,
    Lalit Mohan Gupta.

  • Prerequisitions to be enabled/followed for the items that has to come in ASCP Collection Plan

    Hi team,
    I need to know what are all the prerequisitions to be enabled/followed for the items that has to come in ASCP Collection Plan (ie.,) the Item must be in Active status & Planning Method must be in MRP Planning like wise.
    Anyone please give me the details.
    Thanks in advance.
    Suriya

    Please check Support Note 1060245.1 Advanced Supply Chain Planning (ASCP) Item Collection Criteria
    Regards,

  • FMor Bapi to get the number of transactions in SM35 for the session name

    Hello All,
    Can you anybody give me a function module or bapi to get the number of transactions in SM35 for the session name.
    Can anybody help me out in this issue.
    Thanks

    Hello Maroz,
    Thanks for the help.But can you provide me a FM or BAPI.
    Thanks

  • Initialization of encryption for the session failed.

    Everytime I try to remote control into a machine that has the adaptive agent installed I get an error that states "Initialization of encryption for the session failed. Unable to proceed." I have tried to remote into both Windows XP and 7 machines with no luck. I have confirmed that the zcm certificate is a trusted certificate with the client. The server time and the client times are also in sync. Any thoughts??

    Try This.........
    Change AllowedTimeDiff from 10 to 120 in serverstats.xml.
    Then restart your services.
    This was changed from 10 to 120 in ZCM 10.3.0
    I just found out it was changed back to 10 in ZCM 11, not sure why.
    It's really hard to spot a 10 second TimeSynch diff.
    Might be something else, but this could be it.
    On 4/18/2011 1:06 PM, rhedgecorth wrote:
    >
    > Everytime I try to remote control into a machine that has the adaptive
    > agent installed I get an error that states "Initialization of encryption
    > for the session failed. Unable to proceed." I have tried to remote
    > into both Windows XP and 7 machines with no luck. I have confirmed that
    > the zcm certificate is a trusted certificate with the client. The
    > server time and the client times are also in sync. Any thoughts??
    >
    >
    Craig Wilson - MCNE, MCSE, CCNA
    Novell Knowledge Partner
    Novell does not officially monitor these forums.
    Suggestions/Opinions/Statements made by me are solely my own.
    These thoughts may not be shared by either Novell or any rational human.

  • 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

  • How to enable cookies for the site I am on? (WinXP)

    I have several questions about cookies. I hope it's OK to post them all at once, rather that each one in a separate topic.
    1. Cookie Prompt
    I would like to configure FF so that whenever a website tried to store a cookie, FF will prompt me with these options:
    a. Always allow.
    b. Allow for this session only.
    c. Never allow.
    Is that possible? If so, what are the settings? If not, is there any chance this will be added at some point? This would make life so much easier. What I do now is copy the URL top the clipboard, then open the Privacy setting dialog and paste the URL into the exceptions window.
    I didn't see any way to attach images to this post, so I put a screen shot of my current privacy settings in this DropBox folder:
    https://www.dropbox.com/sh/2le075i5wn6maaa/U8ob-Q7FIJ
    2. Format of Exceptions
    What's the correct format of the entries in the Exceptions dialog? For xyz.com, is it "xyz.com"? "www.xyz.com"? ???
    3. Toolbar Icon
    Is there a toolbar icon I can add to put the current website in the Exceptions list?
    Thanks

    To manage cookie exceptions for the site listed in the address bar (a page may contain elements from many servers that all set cookies, this only applies to the main site), you can use the Permissions tab of the Page Info dialog. To open that, you can use any of these:
    * right-click > View Page Info > Permissions
    * Tools menu > Page Info > Permissions
    * click the globe or padlock icon in the address bar > More Information > Permissions
    It's a bit more than 1 click...

  • Sql trace for forms sessions

    Q1.How can you trace the session of forms?

    c:\ifrun60 module=<formname> userid=scott/tiger
    statistics=yes
    This will do a alter session set sql_trace=true in the background.

  • 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);

  • Bulk-enabling users for the Office 365 Messaging Service

    Is it possible to bulk-assign the Office 365 Messaging Service for Unity users after they are migrated to Office 365 from our on-premises Exchange environment instead of manually going into the Cisco Unity Connection Administration tool and performing these steps?
    4.1) Edit the user account in the Cisco Unity Connection Administration
    4.2) From the Edit drop-down menu, select Unified Messaging Accounts
    4.3) Click Add New
    4.4) Select the Office 365 messaging service you created
    4.5) Have it use the corporate email address unless it doesn't actually match the email address for the user on Office 365.
    4.6) Save
    I am hoping something can be done with the Bulk Administration Tool.... :).

    Yep its possible with BAT, i would export the users out. Modify the CSV to only reflect the users that you need, and make sure you have the 'serviceDisplayName' column populated and use the CSV to update it. The BAT column names can be found here: http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/connection/10x/administration/guide/10xcucsagx/10xcucsagappb.html

  • Does AIR 3.4 re-enable StageVideo for the desktop?

    I'm working on an installation that requires it and will have to switch to OpenFrameworks or Cinder etc. if it is not included in this version...

    Nope. The Flash roadmap says 2013.

  • How can i enable the trace for OpenDocument URL

    When i trying to view the document through OpenDocument URL getting an error message "An error occured. Error occured while trying to view the document". But when i verified throguh infoview/cmc able to view the report with out any error for the same user.
    I verified access level and the user have required access rights "view access, View Objects" etc..
    I enabled the trace for the servers "Crystal Processing Server, Crystal Cache Server, CMS server, Report Application Server", but i didn't see any useful information.
    I'm facing the issue with Crystal Reports and didn't try with WEBI reports.
    Is there any way to debug the issue and any path to enable the trace

    Hi RVS,
    I integrated BO to my application. When i tried to open the instance through my app using OpenDocument URL, it asking the login credentials (generally it should not). Once if i provide the credentials navigating to the error page.
    I'm using the BOXI 3.1 with SP6.
    Below are the url's captured when i tried to see the instance
    http://myserver.com:8080//PlatformServices/service/app/logon.do?appKind=InfoView&service=%2FOpenDocument%2FappService.do&backContext=%2FOpenDocument&backUrl=%2Fopendoc%2FopenDocument.jsp%3FbackContext%3D%252FCrystalReports%26SERVICE%3D%252FOpenDocument%252FappService.do%26backUrl%3D%252Fview.do%26service%3Dtimeout&backUrlParents=1&appName=Open+Document&prodName=Business+Objects+Enterprise&cmsVisible=false&cms=myserver%3A6400&authenticationVisible=false&authType=secEnterprise&sso=false&sm=true&smAuth=secLDAP&sapSSOPrimary=false&persistCookies=true&sessionCookie=true&useLogonToken=true
    http://myserver.com:8080//OpenDocument/appService.do?service=skinning&resource=stylesheet
    Thanks,
    Pradeep.

  • Generating Trace file for ODI Sessions

    ODI Gurus
    am new to ODI, for one of our integration project am using ODI for transforming data from Source to Target Instance.
    Oracle Database is installed on both Source and Target instances. Is there a way to generate Database Trace files for ODI sessions triggered.
    If yes can you provide the steps to enable/disable database trace for ODI sessions.
    Regards
    Uma Shankar

    Hi Uma Shankar,
    My assumptions:
    1.) You want to selectively enable Oracle tracing when only the ODI scenarios are executed and not otherwise.
    If that is the case then you will have to add some external steps comprising of OS commands and variables that will control if those steps are to be executed or not. These steps will invoke the OS commands to start Oracle tracing.
    2.) You know the steps to create a package and know how to use Interfaces and other ODI utilities in the flow of the package.
    3.) You know how to create and execute scenarios
    Steps to Selectively enable tracing.
    1.) Add a variable named V_START_TRACE to the package. This variable will be passed a value from scenario which will determine if you want to enable to trace or not. This variable type is EVALUATE and can have 2 values - TRUE or FALSE. You will have to check for the condition and depending on the condition you will take a path forward.
    2.) Add 2 OS commands to the package - OS_START_TRACE and OS_END_TRACE
    3.) Create 2 shell scripts (or bat files) - odi_start_trace.sh and odi_end_trace.sh with the following commands:
    odi_start_trace.sh :-
    sqlplus session - ALTER SYSTEM SET trace_enabled = TRUE;
    odi_end_trace.sh :-
    sqlplus session - ALTER SYSTEM SET trace_enabled = FALSE;
    You need to invoke SQLPLUS sessions from the above shell scripts to enable/disable the oracle level tracing.
    4.) Add the above shell scripts to the OS commands created in Step 2.
    5.) Join the steps in the following order in the package :
    V_START_TRACE (OK) ->OS_START_TRACE (OK) -> <<+Your Actual Integration Code+>>(OK) -> OS_END_TRACE
    V_START_TRACE (KO) -> <<+Your Actual Integration Code+>>(OK)
    The above KO variable statement doesnt start the trace if the evaluated value doesnt = TRUE. So this will let you do a selective trace.
    6.) Create the scenario from the package and execute the scenario by passing it a value "TRUE" for variable V_START_TRACE.
    Check the startscen.sh syntax, something like:
    *>startscen.sh ... "GLOBAL.V_START_TRACE=TRUE"*
    The above is a general solution for enabling trace for any RDBMS
    If you need any more information, feel free to ping back.

Maybe you are looking for

  • ITunes, ID3 Tags, and Metadata

    Oh hai der! I'm new and I'm so sorry if this questioned has been answered before. But I've done some research on the web and I've got some questions about iTunes and what it does to my music. First, here's my situation. I love iTunes, it's awesome, h

  • Flash not showing up in DW Template

    I have a DW template page that contains a flash element at the top and when I apply it to my pages and upload the pages the flash is missing. I thought it was a problem with where the swf resided, but I've put the swf file in the images folder, I put

  • Java.io.File.renameTo

    Is there any limitation on renameTo(file) method. It fails when I try to rename a file from root user to a different file which belongs to a different user. I'm running the code as root. Root should have permission to write anywhere. Also, I'm trying

  • Epub TOC formatting

    Hey folks, I'm hoping you can help me out.  I have a indb file with a TOC STYLE set up in the first indd file.  The TOC style is determining which Paragraph styles to retrieve for use in an ereader's native TOC mechanism.  I have Level 1 and Level 2

  • Programmat​ically Reading and Setting PQA MTF Parameters

    I'm currently using PQA 1.6 and I'm trying to figure out how to programmatically read and set PQA MTF parameters from a configuration file that I made using the PQA 1.6 GUI. The configuration file that I created is for an MTF test with a ROI already