TRACE SESSION X TRACE USER (11gr2)

Hi,
We are facing performance isues on a Windows 2008 Oracle database (11.2.0.2) SAP BI Loads. There is a huge chain of jobs that are started and runs on the database with talkes a long time to execute. Let's supose that in this chain there are 500 jobs inside and takes more ou less than 15 to 20 hours. But, sometimes, this time increases and takes 30, 35, 40 hours.
So, we need to understand in which steps of the chain it takes more time, and one of the activities that we are planing is to trace all the execution and identify the waits.
The problem is:
. If there is a "father" process that call's the others, it would be easy since we could set the trace in this session.
Now,
How can we guarantee to trace all the chain since each step is one session opened on the database? Anybody know the usage or viability to trace the user at all? Any other options that could help us in this issue?
Doubt: Even that we set a trace on a "father" session, and this session calls/opens other sessions, this trace would contain all the instructions for all the sessions ou just the father? The trace sees a relation and traces all that are started in parallel?
Please disconsider tracing all the database. Not useful for this situation.
I aprreciate any Help

Hi,
this does not seem to be a security related issue. While the scheduler may know the notion of 'chains' the sql_trace facility
has no understanding of inheritance, so to gather trace info build it into the jobs so they can set event 10046 in their
respective job sessions. Also if you generate an AWR report for the duration of the jobs, you may be able to pinpoint
certain sql statements using more resources, compare with AWR report for the 'normal' situation,
greetings,
Harm ten Napel

Similar Messages

  • How to trace user activity

    Dear guru
    Please guide me, how to trace user activities in SAP. We are using ECC 6.0 version.

    No interview questions.
    Search before posting.
    Read the "Rules of Engagement"
    Theres plenty of information and threads about it.
    Regards
    Juan

  • How to trace users across different Application Servers?

    Hi,
    We trace users using ST01. But how do we trace users logged in to different application servers? Please help.
    Regards
    MK

    Hi Ahmed,
    SM51 or AL08 shows in which Application server the user is logged in. But ST01 does not allow us to select or to specify the application server while tracing a user. Can you be a little more vivid. How do you specify the application server in ST01?
    Please help.
    Regards
    MK

  • How to trace users

    HI,
    Did any body know : how to trace users who are logging into sap system i.e ( I want to see 10 days before i.e on 17th day of january.. I want to see users who are logged in sap system.
    Thanks
    Jhony

    Hi,
    So, I was supposed to guess that you are using SAP R/3 4.0b ?
    Please, think about the needed information that you need to provide with your questions...
    Sorry, but I don't have anymore access to such an old release of R/3 and don't remember where you get the info.
    Regards,
    Olivier

  • How to protect my PDF file using Adobe Acrobat Pro that i can trace user's IP adress?

    How to protect my PDF file using Adobe Acrobat Pro that i can trace user's IP adress?

    Used to be able. Considered a security bug. Fixed.

  • How to set session timeout per user

    Hi,
    Ho do I set the session timeout per User in the
    Application.cfm File??
    I tried using
    <cfif SESSION.UID EQ 1>
    <CFAPPLICATION NAME="appControl" SESSIONMANAGEMENT="Yes"
    sessiontimeout="#CreateTimeSpan(0,0,20,0)#">
    </cfelse>
    <CFAPPLICATION NAME="appControl" SESSIONMANAGEMENT="Yes"
    sessiontimeout="#CreateTimeSpan(1,0,0,0)#">
    </cfif>
    But this didnt work because the cfapplication seems to have
    to be at the top before I call the variable SESSION.UID which
    I set on my login page..
    Someone know how to do this??
    Regards
    Martin

    Martin,
    Your code example cannot work because the "session" scope
    doesn't exist until your application scope is defined. So you have
    to handle this manually. Here's how you can get it done. First,
    define your application to the maximum sessiontimeout you want to
    have.
    <CFAPPLICATION NAME="appControl" SESSIONMANAGEMENT="Yes"
    SESSIONTIMEOUT="#CreateTimeSpan(1,0,0,0)#">
    Then, I don't know how you are doing your login
    authentication but when you have authenticated the user, you need
    to define the userid and the most recent activity in the session.
    Also determine your timeout value based on the userid. See example:
    <CFIF IS_AUTHENTICATED>
    <CFSET session.user.uid = form.userid>
    <CFSET session.user.most_recent_activity = now()>
    <CFIF session.user.id eq 1>
    <CFSET session.user.timeout_mins = 20>
    <CFELSE>
    <CFSET session.user.timeout_mins = 1440>
    </CFIF>
    </CFIF>
    Now, all you have to do is check whether the user has been
    idle for too long and kill the session by purging all session
    variables. For example:
    <!--- if user id is defined, this means user is logged in
    --->
    <CFIF structKeyExists(session, "user") and
    structKeyExists(session.user, "id")>
    <!--- check if timeout has expired --->
    <CFIF datediff("n", session.user.most_recent_activity,
    now()) gt session.user.timeout_mins>
    <!--- timeout has expired, kill the session and log the
    user out --->
    <CFSET StructClear(session)>
    <!--- insert your logout code here --->
    <CFELSE>
    <!--- user hasn't timed out, so reset the most recent
    activity to now --->
    <CFSET session.user.most_recent_activity = now()>
    </CFIF>
    </CFIF>

  • Session Error - Cannot call getObject on :display.session on a user form

    On an end user form I have a manager label.
    The manager attribute in the user object holds the unique identifier but I must display the full name.
    <br><br>
    So I have the following code to go get the fullname:
    <br><br>
    <block>
    <invoke name='getAttribute'>
    <invoke name='getObject'>
    <ref>:display.session</ref>
    <s>User</s>
    <ref>accounts[Lighthouse].sponsor</ref>
    </invoke>
    <s>fullname</s>
    </invoke>
    </block>
    <br><br>
    Now it does go ahead and display the fullname but at the same time throws the following error on the page:
    <br><br>
    ERROR:XPRESS exception ==> com.waveset.util.WavesetException: Can't call method getObject on class com.waveset.session.LocalSession ==> com.waveset.util.InternalError: ID not passed to ObjectCache.getObject
    <br><br>
    Since it is not a workflow I think I need to use the :display.session reference.
    <br><br>
    Is there another approach I could try? Do you have any suggestions?

    You could also use the following for your session:
    <br><br>
    <invoke name='getCache'>
                      <new class='com.waveset.session.InternalSession'/>
    </invoke><br><br>
    But the biggest problem I see is the string value User. I think it needs the following:
    <br><br>
    <invoke name='findType' class='com.waveset.object.Type'>
                        <st>User</st>
    </invoke><br><br>
    Note: I used st instead of s to avoid a strikethrough.
    <br><br>
    If I'm not mistaken, your code could then look like this:
    <br><br>
    <block>
    <invoke name='getAttribute'>
      <invoke name='getObject'>
          <invoke name='getCache'>
                      <new class='com.waveset.session.InternalSession'/>
          </invoke>
          <invoke name='findType' class='com.waveset.object.Type'>
                        <st>User</st>
          </invoke>
           <ref>accounts[Lighthouse].sponsor</ref>
      </invoke>
      <st>fullname </st>
    </invoke>
    </block> <br><br>
    Best,
    <br><br>
    Andy
    <br><br>
    <b>AegisUSA</b>
    <br>
    Denver, Co
    <br>
    "We are the Identity Company"

  • How to open multiple sessions for one user?

    Sorry for the silly question but I couldn't find it googling or searching through this forum, so I started wondering whether it's possible in SQL Developer to open multiple sessions for one user. I'm fairly new to SQL Developer and databases in general.
    When I open SQL Developer and connect to a schema, a worksheet opens named MYSCHEMA. If I disconnect then connect, another worksheet opens, named MYSCHEMA~1. I assumed these were different sessions, but if I enter into one worksheet:
    select col1 from my_table where row_id = 1
    -- shows result is 1
    update my_table set col1 = 0 where row_id = 1
    select col1 from my_table where row_id = 1
    -- shows result is 0and then enter into the second worksheet:
    select col1 from my_table where row_id = 1
    -- shows result is 0I would have expected the second worksheet to report 1 because the first worksheet did not issue a COMMIT. Thus, I'd guess both worksheets are the same session? Is that right? If so, how do I have two sessions open simultaneously (opened by same user)?
    I'm trying to implement the code at the bottom of this post, for which testing requires at least two sessions:
    Re: Help with Procedure
    Edited by: tem on Apr 18, 2012 6:44 AM

    Thanks Jim,
    Ctrl-Shift-N doesn't do anything for me. I'm on a mac -- by experimenting it looks like command-N does what you're looking for. This appears to be the same as left-clicking on the "New" icon in the top left corner of SQL Developer, or selecting from the pull-down menu, File > New.
    This opens "Create a New" window that appears to be a wizard. What would I select at this point? Options are: Database Connection, Table, View, Package, ...
    I don't see an option for "Worksheet".
    UPDATE:
    OK, I found that if I select "SQL File", a worksheet becomes available. Perhaps this is what you intended. However, when I issue the command
    select col1 from my_table where row_id = 1;it still returns 0 instead of 1. Hmm, maybe my initial assumption was wrong -- if this is a second (e.g. different) session, should I expect the changes made in the first session in SQL Developer (the UPDATE command) WITHOUT a commit, to be observed in this second session? I thought that changes made in one session were not viewable in a different session until these changes are committed in the first session? If so, how to show this in SQL Developer? I must be missing something basic here.
    Or, is SQL Developer issuing some sort of "auto-commit" without my knowledge?
    Edited by: tem on Apr 18, 2012 8:00 AM

  • RAR 5.3 - kill session of another user

    how can RAR admin kill session of another user?

    Hi Partha,
    There is no way out to kill a user's session in RAR, nor in UME. The only place you can kill a user's session is in backend (R/3 side of a particular system) in T-code: SM04->select a particular session of any user-> end session.
    Regards,
    Gurugobinda

  • Where the session begin when user login

    Hi all,
    Just want a detail understanding of where the session starts when user login in ATG application (handle login), and where the session ends (handlelogout)
    thanks and regards
    333

    Session management is completely application server related.
    ATG do not play any role in session management.
    Refer this doc to under how session is created and managed.
    http://docs.oracle.com/cd/E19644-01/817-5451/dwsessn.html
    Peace
    Shaik

  • Reserving the sessions for a user in Oracle database

    Hi,
    Suppose the Oracle database is running in dedicated mode.
    I want sys or abc user to have some sessions reserved for them.
    This is because if there is heavy load on the system and all the sessions are used up then we can not connect to database to see what is happening inside.
    However, if we have got some policy on the number of reserved sessions for a user then we can always log in as that user and see what is happening inside the database.
    Consider any version of database, if you can get what I am asking then try answering it, else I can elaborate it further.
    Please note that I do not want to change the server mode from Dedicated to Shared.
    Any help will be appreciated.
    Thank you.
    --Harvey.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi Guys,
    There has to be some way to achieve this. But your sugestions are correct to have a user connected always if we are going to face an issue.
    Any ways if there is no other way to achive this then we can not do any thing, else Oracle come up with something.
    --Harvey                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to invalidate old sessions when new user access appl  on same machine

    hi all,
    I am using Mozilla browser to access my web application.User one access my application using his credentials .but i left that browser open.after that I am opening the another Mozilla window and accessing my application using different credentials ex:user2 credentials .user 2 also can access my application.but when i open the first browser ..am automatically getting second user session.how can we avoid this problem.
    Application is using session identifier(jSessionID) as the URL parameter for session management.
    is it possible to invalidate the old session when new user access on same machine.
    thanks,
    Vishnu

    VishnuReddy wrote:
    hi all,
    I am using Mozilla browser to access my web application.User one access my application using his credentials .but i left that browser open.after that I am opening the another Mozilla window and accessing my application using different credentials ex:user2 credentials .user 2 also can access my application.but when i open the first browser ..am automatically getting second user session.how can we avoid this problem.That shouldn't occur. Either you explained it the wrong way (or I interpreted it the wrong way), or there's huge bug in your login/logout logic. After opening another window inside the same session, you should still be logged in as the first user.

  • How to kill the session after the user exit the ADF application

    Dear all
    I have a problem
    The problem is the session still exist after the user close the application and the browser. I want to kill all sessions that is not active.
    This is my test scenario:
    1- I open IE and run my ADF application that is deployed on weblogic. http://192.168.100.17:7001/myapp/faces/login
    2- At the same time I issue this SQL command to view the sessions for user 'ADFUSER' - the "ADFUSER" is the schema user.
    SELECT USERNAME,STATUS FROM v$session
    WHERE USERNAME = 'ADFUSER';QUERY RESULT IS
    USERNAME                       MODULE                                           STATUS
    ADFUSER                         JDBC Thin Client                                 INACTIVE3- Now the user close the browser
    4- Run the SQL again and I notice that the session still exist
    SELECT USERNAME,STATUS FROM v$session
    WHERE USERNAME = 'ADFUSER'RESULT:
    USERNAME                       MODULE                                           STATUS
    ADFUSER                        JDBC Thin Client                                 INACTIVE5- now the user open the URL again http://192.168.100.17:7001/myapp/faces/login
    6-Run the SQL again , and I notice that the old session still exists and a new session created too.
    SELECT USERNAME,STATUS FROM v$session
    WHERE USERNAME = 'ADFUSER'RESULT:
    USERNAME                       MODULE                                           STATUS
    ADFUSER                        JDBC Thin Client                                 INACTIVE
    ADFUSER                        JDBC Thin Client                                 INACTIVE
    2 rows selected.and every time I login to the application , a new session is open and the old session still exist
    I do not know why this happens
    I want to kill old session when the user close the application.
    These sessions are cleared only when i restart the weblogic domain.
    here is some information about my development environment:
    Jdeveloper 11.1.2.3
    WebLogic Server Version: 10.3.5.0
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    thanks in advance

    Hi,
    for performance reasons you should not use dedicated user connections to the database. Instead you use JDBC data sources (default in JDeveloper for ADF BC) that you can configure the database connection pooling for. This means that your v$session will always show a set of active session, which however are shared among users. Assuming you use ADF BC, this is what happens
    - A user requests a data bound page
    - The ADF BC checks out an AM and connects to the database using one of the database connections in the pool
    ... user work here ...
    - user exits application
    - ADF BC returns AM to pool and passivates pending user state (if application is left with dirty transaction)
    - Database connection is available in pool as soon as AM released
    This also happens between requests. Long story cut short: v$session doesn't give you a true picture
    Frank

  • Allow only one session per registered user

    Hi,
    we plan to implement a security module in our application that will display at login time if the user has other sessions still open and to give him the possibility to proceed and then to automatically purge all the other sessions he has, or to stop as maybe he has the other session just in another browser / another computer.
    The APEX_WORKSPACE_SESSIONS view shows very useful information in this matter, but beside the fields in it, it would be very useful to have also the last access/activity time for that session. How is best to get this? Join with the APEX_WORKSPACE_ACTIVITY_LOG view like this?
    SELECT q1.apex_session_id, q1.user_name, q1.session_created, q2.application_id, q2.first_access, q2.last_access, q2.requests
    FROM
      (SELECT * FROM APEX_WORKSPACE_SESSIONS WHERE user_name != 'nobody') q1,
      (SELECT apex_session_id, application_id, MAX(view_date) last_access, MIN(view_date) first_access, count(*) requests
          FROM APEX_WORKSPACE_ACTIVITY_LOG
          WHERE apex_user != 'nobody'
          GROUP BY apex_session_id, application_id
      ) q2
    WHERE q1.apex_session_id =q2.apex_session_id
    ORDER BY 3 DESC;And now my second question: Is it possible to purge the previous sessions, when the user accept this option? For example the sessions that remained open, when the user just closed the browser, or IE/Windows crashed :). How can this be done?(not the IE/Windows crash as that is simple :) ) Or at least to invalidate all objects in those sessions.
    Thanks in advance,
    Florin

    I have an SR opened with Oracle support and here is what they say:
    It looks like we are hitting
    Bug 7587013 - INSERTING AND DELETING WWV_FLOW_DATA CAUSES DEADLOCK, which is also related to
    Bug 6618662 - APEX APPEARS TO BE CAUSING DEADLOCK - CASE COLLECTION.
    To further clarify the issue, these DML statements from the APEX engine are used when rendering classic reports (and in the computation of the pagination set).
    There is no fix yet for the issue, however the frequency of the issue decreases dramatically in the last version (which you currently have).
    The issue should be fixed in Apex release 4.1
    It appears that the only way this deadlock can occur is if two requests for the same APEX session are made concurrently.
    This can be due to a user getting impatient and hitting their refresh button in their browser, or a user opening up a new tab in their browser and concurrently running the same page with the same report.
    Not really helpful IMHO, suggesting to wait for a version that will not be release soon :(. If any of the APEX team engineers / PM is interested I can dig deeper into the issue and isolate the whole chain of requests from an user that hits this error, which unfortunately appears more and more often lately :(. I need to find at least an workaround if not a fix as now I get daily at least 7 such ORA-60 Deadlock detected issues.
    Just last week I was able to produce a nice testcase for a bug in APEX_MAIL, and prod dev made the patch in less than a day, with all the timezone difference issues. I was pretty impressed when getting that quick the patch 9414444 (thanks Joel :) ).
    Florin

  • Open GUI session of another user

    Hi,
    I would like to know, how to open a session in different user from another user using ABAP.? I would like to run a TCODE on another user session of same system.
    Pls help.

    Hi Partha,
    There is no way out to kill a user's session in RAR, nor in UME. The only place you can kill a user's session is in backend (R/3 side of a particular system) in T-code: SM04->select a particular session of any user-> end session.
    Regards,
    Gurugobinda

Maybe you are looking for

  • Recommendations please: external hard drive to use as Aiport Disc

    I recently have been having performance problems with my mid-2009 13" Macbook Pro. I traced this to two things. One is running low on RAM (little free, lots of page outs and swaps) and that my 350GB harddrive only has about 10GB of free space. Most o

  • Down Payment with Tax Juristiction

    Hi All, We are working on a process where the client(US & CA) needs the Juristiction Tax to be calculated on the Down Payments. Is anyone worked on this scenerio and please guide us how to do this? Thanks in Advance Vinu Nanjan

  • I can't get the movie to play right, it keeps pausing and skipping

    I bought a movie on itunes a when i try to watch it keeps pausing and skipping. how do i fix this, so i can watch it

  • Debugging incoming SQL

    I am trying to capture SQL query being submitted to the Oracle Server (8i) being sent by a C++ program. Any ideas on how to get the information from Oracle? Any hint will be appreciated. null

  • Dimension  and project auto Updates for Balancesheet GL

    Dear All, I have implemented SAP B1 in our company. In company it has 2 manufacturing units and 3 Trading units, apart from that it also having branches. I have mapped branches through dimension as it requires for revenue generation and to identify b