Monitor a session

I have a java application running at the front end.
The user logs into the java application and access the data.
I have user complaining regarding slow response of application(not always but atleast 2 to 3 times in a day while she is working)
Since the user is accessing through JAVA application and the apps server we are using is weblogic,Iam not able to track her session.
We are using ORACLE 9i ,and when I try to monitor the schema through which the data is accessed I see the status INACTIVE, though I asked user to logoff and login .
I have tried monitoring v$session views but it didnt work.I usually have 5 to 6 sessions always in inactive state on my enterprise manager for that particular schema.
Please help me out and give me a way how can I monitor or track that particular user.
Iam new to administartion
tahnk you
Message was edited by:
penn_vik

Assuming that your middle tier is using a connection pool (the norm), the problem is that there is no relationship between a particular user's logical session and a physical database session. Each page the user hits in the application, for example, is potentially going to use a different connection from the connection pool and thus a different database session. And different users may be using the same database session just before and just after your user.
In general, when you have this sort of architecture, you need to have instrumentation built into the middle tier application in order to get anything useful done, at least to the point that the middle tier can enable and disable tracing when it gets a connection from the pool for a particular logical user session. Otherwise, you could enable tracing for the entire database, which is going to be a significant overhead, and try to comb through dozens of trace files to figure out what sessions were related to your particular user, which is at a minimum likely to be a substantial undertaking.
Justin

Similar Messages

  • Monitoring Users session with specific profiles

    Hi,
    I created a specific profile that terminates a session with idle time 4 minutes. I would like to know how to monitoring which sessions are been disconnected by Oracle.
    Thanks in advance,

    enable auditing by using
    alter system set audit_trail = db scope=spfile
    and bounce
    Then issue audit connect
    The dba_audit_session view will have the reason why the process was disconnected.
    Sybrand Bakker
    Senior Oracle DBA

  • Monitoring Oracle session with SQL_ID

    Hi All,
    How can I know a SQL_ID belonging to a user/schema in Oracle. Can anyone post me the query to find the SQL QUERY/SQL_ID belonging to a user session. I have googled but dint get what i expected. Hope I get it here. We dont have OEM configured to monitor the session.
    Oracle DB version : 10.2.0.5
    OS version : IBM - AIX
    Regards,
    Imran Khan

    imran khan wrote:
    Hi All,
    How can I know a SQL_ID belonging to a user/schema in Oracle. Can anyone post me the query to find the SQL QUERY/SQL_ID belonging to a user session. I have googled but dint get what i expected. Hope I get it here. We dont have OEM configured to monitor the session.
    Oracle DB version : 10.2.0.5
    OS version : IBM - AIX
    Regards,
    Imran Khanlook for SQL_ID below
    SQL> desc v$session
    Name                                      Null?    Type
    SADDR                                              RAW(4)
    SID                                                NUMBER
    SERIAL#                                            NUMBER
    AUDSID                                             NUMBER
    PADDR                                              RAW(4)
    USER#                                              NUMBER
    USERNAME                                           VARCHAR2(30)
    COMMAND                                            NUMBER
    OWNERID                                            NUMBER
    TADDR                                              VARCHAR2(8)
    LOCKWAIT                                           VARCHAR2(8)
    STATUS                                             VARCHAR2(8)
    SERVER                                             VARCHAR2(9)
    SCHEMA#                                            NUMBER
    SCHEMANAME                                         VARCHAR2(30)
    OSUSER                                             VARCHAR2(30)
    PROCESS                                            VARCHAR2(24)
    MACHINE                                            VARCHAR2(64)
    PORT                                               NUMBER
    TERMINAL                                           VARCHAR2(30)
    PROGRAM                                            VARCHAR2(48)
    TYPE                                               VARCHAR2(10)
    SQL_ADDRESS                                        RAW(4)
    SQL_HASH_VALUE                                     NUMBER
    SQL_ID                                             VARCHAR2(13)
    SQL_CHILD_NUMBER                                   NUMBER
    SQL_EXEC_START                                     DATE
    SQL_EXEC_ID                                        NUMBER
    PREV_SQL_ADDR                                      RAW(4)
    PREV_HASH_VALUE                                    NUMBER
    PREV_SQL_ID                                        VARCHAR2(13)
    PREV_CHILD_NUMBER                                  NUMBER
    PREV_EXEC_START                                    DATE
    PREV_EXEC_ID                                       NUMBER
    PLSQL_ENTRY_OBJECT_ID                              NUMBER
    PLSQL_ENTRY_SUBPROGRAM_ID                          NUMBER
    PLSQL_OBJECT_ID                                    NUMBER
    PLSQL_SUBPROGRAM_ID                                NUMBER
    MODULE                                             VARCHAR2(64)
    MODULE_HASH                                        NUMBER
    ACTION                                             VARCHAR2(64)
    ACTION_HASH                                        NUMBER
    CLIENT_INFO                                        VARCHAR2(64)
    FIXED_TABLE_SEQUENCE                               NUMBER
    ROW_WAIT_OBJ#                                      NUMBER
    ROW_WAIT_FILE#                                     NUMBER
    ROW_WAIT_BLOCK#                                    NUMBER
    ROW_WAIT_ROW#                                      NUMBER
    TOP_LEVEL_CALL#                                    NUMBER
    LOGON_TIME                                         DATE
    LAST_CALL_ET                                       NUMBER
    PDML_ENABLED                                       VARCHAR2(3)
    FAILOVER_TYPE                                      VARCHAR2(13)
    FAILOVER_METHOD                                    VARCHAR2(10)
    FAILED_OVER                                        VARCHAR2(3)
    RESOURCE_CONSUMER_GROUP                            VARCHAR2(32)
    PDML_STATUS                                        VARCHAR2(8)
    PDDL_STATUS                                        VARCHAR2(8)
    PQ_STATUS                                          VARCHAR2(8)
    CURRENT_QUEUE_DURATION                             NUMBER
    CLIENT_IDENTIFIER                                  VARCHAR2(64)
    BLOCKING_SESSION_STATUS                            VARCHAR2(11)
    BLOCKING_INSTANCE                                  NUMBER
    BLOCKING_SESSION                                   NUMBER
    FINAL_BLOCKING_SESSION_STATUS                      VARCHAR2(11)
    FINAL_BLOCKING_INSTANCE                            NUMBER
    FINAL_BLOCKING_SESSION                             NUMBER
    SEQ#                                               NUMBER
    EVENT#                                             NUMBER
    EVENT                                              VARCHAR2(64)
    P1TEXT                                             VARCHAR2(64)
    P1                                                 NUMBER
    P1RAW                                              RAW(8)
    P2TEXT                                             VARCHAR2(64)
    P2                                                 NUMBER
    P2RAW                                              RAW(8)
    P3TEXT                                             VARCHAR2(64)
    P3                                                 NUMBER
    P3RAW                                              RAW(8)
    WAIT_CLASS_ID                                      NUMBER
    WAIT_CLASS#                                        NUMBER
    WAIT_CLASS                                         VARCHAR2(64)
    WAIT_TIME                                          NUMBER
    SECONDS_IN_WAIT                                    NUMBER
    STATE                                              VARCHAR2(19)
    WAIT_TIME_MICRO                                    NUMBER
    TIME_REMAINING_MICRO                               NUMBER
    TIME_SINCE_LAST_WAIT_MICRO                         NUMBER
    SERVICE_NAME                                       VARCHAR2(64)
    SQL_TRACE                                          VARCHAR2(8)
    SQL_TRACE_WAITS                                    VARCHAR2(5)
    SQL_TRACE_BINDS                                    VARCHAR2(5)
    SQL_TRACE_PLAN_STATS                               VARCHAR2(10)
    SESSION_EDITION_ID                                 NUMBER
    CREATOR_ADDR                                       RAW(4)
    CREATOR_SERIAL#                                    NUMBER
    ECID                                               VARCHAR2(64)

  • Script to monitor oracle sessions

    Hi i am looking for a script to monitor oracle sessions......which should find idle sessions which are idle for more than 25 mins and it should be killed...
    is that possible.
    Thanks

    user11278505 wrote:
    Hi i am looking for a script to monitor oracle sessions......which should find idle sessions which are idle for more than 25 mins and it should be killed...
    is that possible.
    ThanksYes it is, use Resource Manager to manage your users,
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28310/dbrm.htm#ADMIN027
    HTH
    Aman....

  • Monitor PeopleSoft sessions with Oracle Coherence

    Hello,
    I installed Oracle coherence ( one Cache Server ) and two managed servers ( PIA1 and PIA2 ---weblogic 10.3.4).When trying to monitor peoplesoft sessions thru weblogic admin console ( Deployments - Peoplesoft - / - Monitoring - Sessions tab ) nothing displays or no session info . I have parameters ( monitoring - id and session-monitor-enabled = true ) included in weblogic.xml file. Can anyone please guide me here on what I missing ?

    Yes I installed C*Web for weblogic session management when I login to Admin console under monitoring tab I can see the coherence servers under coherence tab but under sessions tab it display empty info ( ex it doesn't show who the user logged into the peoplesoft app) and I am not sure how to check the users logged info in the cache server.Can you please let me know if any parameters that needs to be checked wither in web.xml or weblogic.xml files.
    thanks NJ for your response...

  • Monitoring orphan sessions on db tier

    Hi,
    Is there a way to monitor orphan sessions on db tier? does any body have script to monitor and kill orphan sessions? appreciate your replies.

    user738145 wrote:
    Is there a way to monitor orphan sessions on db tier? does any body have script to monitor and kill orphan sessions? appreciate your replies.This is not really an Oracle problem. If the client does not say bye-bye to Oracle via the OCI (as a well behaved client should), the next layer deeper down needs to tell Oracle that.
    That means that the network layer (on the client side) needs to send a TCP packet to tear down the client-server network connection (done by setting the FIN/RSET bit in the packet header).
    Now if that network layer does not do that, the Oracle server process will not know the client is gone - and patiently sits idle waiting for the client to send instructions to the server to execute.
    The Oracle server process will only discover that the client is no longer there when it attempts to use the network connection to the client, from its side. A network connection that is deemed to be still valid by the protocol stack in the kernel of that server platform.
    There is a method called DCD (Dead Connection Detection) that can be configured in SQL*Net on the server - that instructs the server process to every now and then check the network link to the client and to determine if the connection is still valid and whether the client is still there and responding. See the SQLNET.EXPIRE_TIME SQL*NET parameter.

  • How to monitor active sessions in a cluster

    Hi all,
    we currently test failover of our WLS 11g cluster.
    How can I see in the Console to which managed server a client is connected?
    Thank you in advance
    Regards
    Rolf

    today i found a way to get the name of the server in a cluster which handles the active session, using a managed bean in my application.
    There i added a getter method
    public String getServerName() {
    return System.getProperty("weblogic.Name");
    and then I used an af:outputText with
    #{<mybean>.serverName}
    See this blog entry http://theblasfrompas.blogspot.com/2009/05/adf-failover-within-weblogic-103.html
    Is there realy no way to get something like client-ip:<managed server> using WLS console?
    I only found the number of requests (which is incrementing after reloading the console) in Deployments-> <application> -> Monitoring - Workload
    Regards Rolf
    Best Regards

  • Monitor historical session resources with sql statements

    Hi,
    I would like to write some queries to retrieve the following data from my database:
    For a certain day, give me the total
    physical read total bytes
    physical write total bytes
    cpu usage?
    from my sessions in the database. I have specific groups I want to monitor, certain logon users that run the same batch program.
    I guess the above stats are waits although I 'm not sure about cpu usage.
    Can I monitor this with dba_hist_active_sess_history? How do I translate the waits named above to the dba_hist_active_sess_history columns? I know this view only holds data for about 7 days, but that is fine.
    Kind regards,
    Nico

    I am almost there now. But this only works on Oracle 10.2
    On my Oracle 10.1 databases the wait_class and session state fields do not seem to be defined in:
    - v$active_session_history
    - dba_hist_active_sess_history
    Any ideas where I could find these in 10.1?
    regards
    SELECT * FROM (
    select
    --ash.session_id,
    u.username,
    ash.program,
    ash.MODULE,
    ash.session_state,
    Nvl(ash.wait_class,'Other') wait_class,
    sum(decode(ash.session_state,'ON CPU',1,0)) "CPU",
    sum(decode(ash.session_state,'WAITING',1,0)) -
    sum(decode(ash.session_state,'WAITING',
    decode(ash.wait_class,'User I/O',1, 0 ), 0)) "WAITING" ,
    sum(decode(ash.session_state,'WAITING',
    decode(ash.wait_class,'User I/O',1, 0 ), 0)) "IO"
    from v$active_session_history ash,
    --dba_hist_active_sess_history ash,
    dba_users u
    WHERE u.user_id = ash.user_id
    group by username,program,MODULE,session_state,wait_class
    order by cpu DESC

  • Monitor HTTP Sessions

    Hi,
    I want to monitor all http sessions on the SAP Portal. For this I know two possibilities
    - In the Visual Administrator -> Security Provider you can access the login sessions, but these are only the sessions of the authenticated users
    - In the NetWeaver Administrator -> System Monitoring, but there you can only see the amount of currenthttpsessions on the different servers
    I hope you can tell me where I'm able to see all current http sessions (anonymous and authenticated), and not only the amount.
    Bye,
    Timo

    Dear Timo,
    maybe Actiivty report can help on your case.
    http://help.sap.com/saphelp_nw04/helpdata/en/58/728ea01cf64fff996b827f2a06f9b1/content.htm
    http://wiki.sdn.sap.com/wiki/display/EP/CreatingaPortalActivityReportIviewformonitoringPageandIview+activities
    Please remember to evaluate the replays, this incentive the SDN to keep growing,
    regards,
    Fabio

  • Monitoring SSL sessions/sec on CSS

    Hello,
    I have been trying to find the right parameter via CLI or SNMP to monitor the number of SSL sessions/sec. We are using CSS 11503 with a SSL module supporting in theory 800 to 1000 SSL sessions/sec and I'd like to know what the current load is. I am graphing already the flows/sec but this too generic.
    Any help is appreciated.
    Thanks,
    Fabrice

    Fabrice,
    there might not be an exact counter for connection per seconds, but what most people do [with CSS or other devices] is capture the total number of connections every X seconds, make the difference and divide by X to get the average connection per seconds.
    You could use one or combination of the following counters
    CSS11503-2(debug)# sho ssl statistics | grep conn
    0 Handshake started for incoming SSL connections
    0 Handshake completed for incoming SSL connections
    0 Handshake started for outgoing SSL connections
    0 Handshake completed for outgoing SSL connections
    0 TCP connections failed
    0 TCP connections established
    0 TCP connections originated
    0 TCP connections terminated
    Gilles.

  • Monitoring HTTP sessions

    Hi all,
    I'm just testing monitoring on a j2ee 6.20 pl35 and want some information on the http sessions.
    All documentation I can get hold of states that after PL27 there is a HTTP_SESSIONS shell command that adds this information to monitor data.
    However, as of PL35 I always get the command response: can't find command HTTP_SESSIONS, although I added the command group.
    Anyone who had the same problem and got it fixed?
    Regards,
    Walter

    Hi Walter,
    I believe this is an error in the documentation. There is no HTTP_SESSIONS shell command. Instead, the only command that deals with HTTP sessions is the HTTPSESSIONS one in the SERVLET_JSP command group (as you already found out yourself). However, this command is not supposed to add http sessions to monitored data, but just prints info about the active sessions on the server.
    If you need to add sessions to the monitored data, I guess you should use the INCLUDENODES shell command in the Monitor Server. The command is described in Administration Manual -> Configuration Tasks -> Using the Log System and Monitoring -> Monitoring -> Monitor Server Shell Commands section.
    Regards,
    Ivo
    P.S. I'll now make sure your feedback about the wrong shell command gets to the right people and the documentation is updated.

  • Monitoring conferencing sessions in CUCM ( How many ports used for conferencing)

    Hi
    How is it possible to see how many conferencing session or conferencing party is used in CUCM 9.1 system.  We are using conference bridges on call manager resources. But I 'm not sure, how many conferencing capacity we have?
    Is there any clue to see it?

    Hi there!
    Please find in RTMT the Performance section. Then choose needed cucm server and proceed to Cisco SW Conference Bridge Device.
    You can monitor this things:
    RosourceActive - shows how many parties connected
    RosourceAvailable - remained capacity
    RosourceTotal - total sw bridge capacity
    SWConferenceActive - shows how many conferences are active on sw brigde
    and other.

  • Monitoring one session

    Is there any way to monitor already completed session in 11g database. We had a job wich normaly runs quite fast and for the last one week its very slow. I have checked v$session_wait when this job is running and i can see "db file scattered read", "log buffer space", "direct path read temp" changing but how do i find out over all wait for this purticular session ? i have the session id and serial .. how do we find out the root cause of this issue .. please advice
    Thanks
    Nishant

    Finally i got where my session has waited, is this wait ( messege from dblink $ log buffer space) is normal ?
    EVENT                                                              TTL_WAIT_TIME
    SQL*Net message from dblink                                          11471750473
                                                                           481014162
    log buffer space                                                       330292956
    db file sequential read                                                217575499
    db file scattered read                                                 152598869
    direct path write temp                                                  40703302
    enq: RO - fast object reuse                                             14818263
    direct path read                                                         5309259
    log file switch completion                                               3340576
    direct path read temp                                                    2735300
    log file sync                                                            1437738
    local write wait                                                          207675
    control file sequential read                                               39282
    null event                                                                     9
    14 rows selected.
    SQL>

  • Monitoring VPN Sessions

    Hi,
    I have configured Remote Access IPSEC VPNS on my Cisco 5510 Security plus firewall now i need to monitor all remote access VPN session records and activities of VPN users as its need.
    Kindly suggest the best solution.
    Regards,
    Arshad Ahmed

    Arshad,
    Just to add my two cents, to Collin´s post (5 stars).
    ASA/PIX: Pass-through Traffic Accounting for VPN Clients Using ACS Configuration Example
    Managing Accounting in NPS
    HTH.
    Portu.
    Please rate any helpful posts and mark this question as answered if you do not have any further questions.

  • Monitor BGP sessions on VRFs with XR 4.2 using SNMP

    Hello,
    I have an ASR 9006 running IOS XR 4.2 and I want to monitor some BGP sessions under VRFs using SNMP. However, when I poll the device using the OID 1.3.6.1.2.1.15.3.1.2 I only get the BGP sessions on the global VRF. I have read that I have to create 'SNMP contexts' in order to poll information about VRFs but I am not sure how to create them on XR 4.2. Do you know how to do it?
    Thanks in advance.
    David

    Hello,
    thanks to the collaboration of the engineers of Dimension Data I have managed to get it working. In case you are interested in the solution. This would be the configuration on the ASR:
    ; We create the snmp context
    snmp-server context test-ctxt
    ; We associate the context with the VRF
    snmp-server vrf vrfTest
    context test-ctxt
    ; We create the community
    snmp-server community test-com RO 1500
    ; We map the community with the context
    snmp-server community-map test-com context test-ctxt
    Now, when we poll the community associated with the context the peering sessions for that context are returned:
    $ snmpwalk -v2c -c test-com 192.168.0.1 1.3.6.1.4.1.9.9.187.1.2.5.1.3
    SNMPv2-SMI::enterprises.9.9.187.1.2.5.1.3.1.4.10.10.0.1 = INTEGER: 1
    On the ASR:
    #show bgp vrf vrfTest sum | b Neigh
    Wed Jun  5 08:05:26.286 UTC
    Neighbor        Spk    AS MsgRcvd MsgSent   TblVer  InQ OutQ  Up/Down  St/PfxRcd
    10.10.0.1         1 65001       0       0        0    0    0 00:00:00 Idle
    Regards

Maybe you are looking for

  • Can I buy a factory unlocked Iphone 5 at an Apple Retail Store if I am not from the US. but visiting, will they still sell it to me?

    I am from Trinidad and Tobago however, I want the iphone 5 but i can't pay for it online since the billing address must be Amrican. Can I buy a factory unlocked Iphone 5 at an Apple Retail Store so I can just pop in my nano sim card?

  • Page Viewer to have links open a different page

    I have a custom HTML page i have created that has links to site pages. I have a page viewer web part on my home page that points to this custom HTML page. I want it so when you click on a link on this html page, it doesn't just take you to the page w

  • New Laptop CS6

    I am currently looking at purchasing a new laptop and I have been reading through different threads to try and make sense of what I need. I am a current user of CS6 Photoshop, Lightroom and Premier Pro. I use these programs with my footage Captured f

  • Oracle Reports 6.0 for windows

    I tried to download oracle reports 6.0 from OTN but the message was "couldn't login FTP server, user FTP access denied". Am I doing something wrong? Thanks

  • 10.5 crashes repeatedly - where do I start?

    Since upgrading to 10.5 iTunes crashes consistently shortly after launching (withng around 15 seconds).  This happens with no devices connected and Genius off. iTunes has encountered a problem and needs to close.  We are sorry for the inconvenience.