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)

Similar Messages

  • Old Oracle Session with Tomcat is not kiiling automatically

    Hi,
    I am facing a problem of increasing inactive oracle sessions with tomcat, Old Oracle sessions with tomcat are visible with new one.
    if somebaody did not restarted tomcat gracefully, then does Oracle keep the session connected or is there any way that whenever any one restarted tomcat abnormally, Oracle session can be killed.
    I had restart the database to kill session.

    Could you please tell me that where do i set this parameter in parameter file or sql net file and what is the recommended value, do you have any document on this.
    Another thing tomcat is in other server machine and my database is in different server machine, killing process in tomcat server machine manually may not kill linux process on oracle database machine and therefore oracle sessions are still there.
    Is it possible?
    Edited by: user605066 on 28-Aug-2008 04:59

  • How to monitor Oracle Glassfish with Grid Control 11g

    Hi,
    Could someone tell me how can i monitor Oracle Glassfish with Grid Control 11g ?? i think i need a plug-in but i don't know where could i download it
    I guess the information i can monitor depends on the plug-in :)
    Regards
    Carlos

    Hi Carlos,
    We do have partners that routinely write plug-ins to extend OEM. If you take a look at the EM Extensibility Exchange below, you will find various extensions that partners such as Blue Medora have written:
    http://apex.oracle.com/pls/apex/f?p=34841:1:26399399216901:::::
    Please keep in mind though that between SLM and JVM diagnostics, you would have a significant amount of visibility even without the Glassfish target.
    Cheers,
    Glen

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

  • Multiple oracle session with one select

    Hi,
    When i run simple select statment oracle OPENS 5 different sessions and each session run same select .
    any body know what is wrong with it ,is there any parameter problem.
    HERE is a programe :
    ORACLE.EXE (P000)
    ORACLE.EXE (P001)
    ORACLE.EXE (P002)
    ORACLE.EXE (P003)
    ORACLE.EXE (P004)

    Basically my problem is that i am running an INSERT statement based on a SELECT statement on different tables.
    Now the problem is at times Oracle stops responding and my application hangs.
    I cannot find any other clue than the parrallel execution of INSERT statement by ORACLE.
    The reason i am considering this as an issue is when i check the status of my table on which i am running INSERT statement, they are locked.
    Below is sample peusdocode of my task.
    For each file
    begin
    open oracle connection
    read data from file using sql loader;
    insert into my tables based on select; ///// here after reading 1 or 2 files oracle hangs
    close oracle connection;
    end

  • Monitoring Oracle Databases with VMware vCops

    As part of VMware’s efforts to expand the ecosystem around vC Ops, VMware partnered with Blue Medora to take over the two existing vC Ops Adapters for IBM and Oracle… read more…

    Hi,
    I think, if you can built DR in oracle then you just need to check that all of them are in sinc if not then find out what is the error n work on that.

  • Monitoring Oracle Glassfish or Generic URL with Oracle Grid Control

    How are people monitoring Oracle Glassfish with Oracle Grid Control?
    I really just need to monitor the URL right now, is the only method to setup a system and monitor a generic web test with a beacon?

    I would think this is indeed the only way to monitor the URL.
    Perhaps you could try a solution in creating your own plug-in.
    Check http://www.oracle.com/technetwork/oem/extensions/index.html for this.
    Regards
    Rob
    http://oemgc.wordpress.com

  • You cannot shadow a session with multiple monitors enabled in Windows Server 2008 R2

    Searching through the forums (and according to KB2484290) it appears that there is no solution to this problem.  We are rolling out thin clients that are using dual monitors exclusively and we were very surprised to find out that we couldn't shadow
    sessions with dual monitors (which to us means that we can't shadow ANY sessions).  This now completely changes our approach to managing these devices. 
    We are running Windows Server 2008 R2 SP1 with Remote Desktop Services installed.  The thin clients are running Windows Embedded Standard 7 with the latest updates / RDP client. All steps have been followed to ensure that the apropriate settings and
    permissions have been set up to allow access into the session. 
    We tested by unchecking the RDP setting “use all my monitors for the remote session”, with that setting disabled shadowing worked
    Questions:
    1. KB2484290 is from Dec 2010 - It's now April 2012, is there a workaround / hotfix for this issue that will allow us to shadow sessions using the native Microsoft tools?
    2. Are there any recommended alternatives (software)?  Free/Paid - doesn't matter we just need something that will work.  I'm sure there are a few options out there but I am looking for suggestions for what people have used in the past that worked
    best for them to help us narrow down the choices.

    Hi,
    In my experience, so far, the workaround is Remote Assistance, Remote Assistance supports multiple monitors, and is the presently recommended solution if you need this functionality. Remote Assistance is a Windows Server Feature that must be explicitly installed
    on Windows Server 2008 R2; it is already installed with the client versions of the operating system.
    More information:
    Remote Assistance Overview
    http://technet.microsoft.com/en-us/library/cc753881.aspx
    Remote Assistance and Resulting Internet Communication in Windows Server 2008
    http://technet.microsoft.com/en-us/library/cc770456(v=ws.10).aspx
    As far as I know, there are some third-party tools can be used as the solution, such as Teamviewer, ISL Online, etc.
    Please Note: The third-party products discussed here are manufactured by companies that are independent of Microsoft. We make no warranty, implied or otherwise, regarding
    these products' performance or reliability.
    Regards,
    Dollar Wang
    Forum Support
    TechNet Subscriber Support
    If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback
    here.
    Technology changes life……

  • Too many time to open a session with oracle odbc

    I have to migrate an internet site in Sql Server to Oracle.
    When I connect Oracle Database with Oracle ODBC, it takes 2 or 3 seconds.
    So if i have 8 or 10 recordset to open, it takes 20 s.
    But when sessions are open, they live about 1 m and during this time i don't have problem to connect to the database.When i don't use the site during more than 1 m, all sessions are closed and so i have to wait.
    How can i connect to the database quickly the first time?

    Are you using connection pooling? Are you pre-allocating connections on startup?
    Justin

  • Inactive sessions with sql_address=00

    hi gurus,
    db: oracle 11g
    application: weblogic
    i could see lots of invalid sessions with sql_address=00 and blank sql_id appearing intermittently and causing connection issues.
    prev_sql_id of majority of the rows are the same and the sql_text is "select count(*) from dual" !!!
    what could be the reason for these invalid sessions? not able to understand the prev sql_text also
    please help,
    charles

    The sessions are not invalid. They are just doing nothing.
    Also this does not cause connection problems.
    Applications like weblogic have several 'features'
    - They frequently execute dummy sql to check database availabilty, like select count(*) from dual
    - They don't have persistent connections
    This is addressed by setting up shared server and enabling connection pooling.
    Sybrand Bakker
    Senior Oracle DBA

  • Unit Testing and Oracle Sessions

    We have an issue regarding Oracle session and SQL Developer Unit Testing.
    Every time we run a Unit Test in SQLDeveloper a new Oracle session is created. When closing that Unit Test, the session, however, is not disconnected.
    And the only way to close that "Unit Test" session is to close SQLDeveloper.
    This is causing problems with the no. of sessions available to developers.
    Any help would be much appreciated.
    Subboss

    The focus of this forum is report design. The actual testing of reports would be subject to your own internal policies and procedures.
    Jason

  • How do I create a session with the datasource set in code not sessions.xml

    I want to create a session where I specify the J2EE datasource name dynamically in code. Normally, I would hard-code a J2EE datasource name in sessions.xml e.g.
    <login>
    <datasource>jdbc/MyApplicationDS</datasource>
    <platform-class>oracle.toplink.platform.database.oracle.Oracle10Platform</platform-class>
    <uses-external-connection-pool>true</uses-external-connection-pool>
    <uses-external-transaction-controller>true</uses-external-transaction-controller>
    </login>
    However, we don't want to use a hard-coded string "jdbc/MyApplicationDS". We want to be able to set this at runtime.
    I found this in the App Developer's Guide:
    Configuring an External Connection Pool in Java
    To configure the use of an external connection pool in Java:
    1. Configure the DataSource on the server.
    2. Configure the Login to specify a DataSource and the use of an external connection pool:
    login.setConnector(
    new JNDIConnector(new InitialContext(), "jdbc/MyApplicationDS"));
    login.setUsesExternalConnectionPooling(true);
    and this:
    Configuring Sessions with the sessions.xml File
    OracleAS TopLink provides two ways to preconfigure your sessions: you can export and compile Java source code from the OracleAS TopLink Mapping Workbench, or use the OracleAS TopLink Sessions Editor to build a session configuration file, the sessions.xml file.
    It seems like I should export and compile Java code that calls login.setConnector(), but I can't find out any information on how to do this. I looked at the MW user guide and I didn't see anything on this.
    I also found this by searching this discussion forum:
    To create a server session completely from code given a project you can use,
    project.getLogin().setConnector(new JNDIConnector(new InitialContext(), "your-datasource-url"));
    project.getLogin().setUserName("");
    project.getLogin().setPassword("");
    Server server = project.createServerSession();
    server.login();
    However, I don't know how to get the project.
    Thanks,
    Vicki

    If you are using a sessions.xml file, you can get your project from your session. Ensure that when you access your session from the SessionManager, that you do not have it login.
    Session session = SessionManager.getManager().getSession("my-session", false);
    session.getProject().setConnector(...);
    session.login();
    If not using a sessions.xml, you can either read your Project from the XMLProjectReader, or instantiate your Project class directly.

  • LIBOVD ERROR  - "validateContextToken: workflow session was not found for given context. Create a new workflow session with token"

    Hello everyone,
    I have the following scenario:
    We're using "Oracle SOA Suite 11g 11.1.1.7.0" (Patched w/ 17893896) mainly for a BPM/Human workflow composite. Former, we were having the error bellow:
    <Mar 16, 2015 1:13:03 PM BRT> <Error> <oracle.soa.services.workflow.query> <BEA-000000> <<.> Verification Service cannot resolve user identity. User weblogic cannot be found in the identity repository. Workflow Context token cannot be null in request.
    ORABPEL-30511
    When that error ocurred, no one was able to use the system (BPM/Human Workflow).
    I opened an SR, and after some analysis from the support, it recommended me to set up "virtualize=true" in EM, and restarting the domain. Then it started logging the following:
    connection to ldap://[10.200.10.57]:7001 as cn=Admin.
    javax.naming.NamingException: No LDAP connection available to process request for DN: cn=Admin.
    Looking up on support KB, I found this note Doc ID 1545680.1 and increased from Max size of Connection Pool 10 to 200. That did work successfully! Problem now is that the <SERVER>_diagnostic.log is being filled up with the following error:
    [2015-03-31T16:03:46.421-03:00] [soa_server2] [ERROR] [] [oracle.soa.services.workflow.verification] [tid: [ACTIVE].ExecuteThread: '19' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: e0194e38aa6c9a2f:39fc1ff9:14c5def5247:-8000-00000000000a5653,0] [APP: soa-infra] <.>    validateContextToken: workflow session was not found for given context. Create a new workflow session with token=51490173-e3d0-41dd-ae99-983915aa8454;;G;;Z+P7Oe9ABnoTUQD9ECryEW2l0/8yRcqPDyZsOWBCuzMmRgA3Qsj601TxmWQ87z2MjuwW5AH+KzgjIwkPmhJFdpc1FrE6Y/MrN1bxIDHJWu2/zP3iSNwKD07hRrh/U37Ea0TvaQyuaHJIog9y3Ptmzw==
    One important point is that we're using only the embedded WLS ldap. So I am not 100% sure if we should be using the virtualize flag=true, once all docs I read point out that this should be done when using multi-ldap providers.
    Also, I only got this error in the "diagnostic.log".
    Although, no user has complained about using the system, I really want to work it out. Anyone has any suggestions?
    Thanks in advance!

    I have moved your thread from Certification to SOA Suite to get proper assistance.
    Thanks,
    Lisa

Maybe you are looking for

  • ABAP Proxy To XI

    Hi All, I hope i can get an answer to lingering problem that we have currently. We manage to configure to have XI --> ECC 5.0 (through Proxy / XI Adapter) We have another scenario where we are using ECC 5.0 through ABAP proxy to send messages to XI.

  • How do I save photos that have been synced to my Ipad2, so that they do not get deleted when I sync with a different photo file on my computer.

    How do I save photos that have been synced to my Ipad2, so that they do not get deleted when I sync with a different photo foder on my computer (Pc win7).

  • Character Value To be displayed in ROWS

    hello Experts, i am working on BW 3.5 i have a requirement that i need to show characterstic in report after key figure i have a report which is as material  ,net quantity, net value ,gross sales and than Characterstic Whose value is constant as C an

  • How to extract a subsstring in a shell script

    Hi, I need to extract a substring from a string in a shell script. Ideally using a regular expression, but a certain position (character n through n+4) would work in this case, too. I am fairly familiar with regular expressions, I just don't know the

  • Managed or Referenced?

    1St time user of Aperture here, coming from a Windows environment. I am a bit lost at the moment wit Aperture and how it works and why it does certain things. Firstly, managed or referenced. Which is best? I want to import my camera pics and keep the