Oracle idle sessions

Hi Gurus,
I need to learn more about Oracle idle sessions, why/how they are created and why some of the idle sessions does not terminate easily.
Is there any ways to determine which SQLs are responsible for idle sessions. Also SQL way to identify and destroy idle sessions.
Does this make sense.
Thanks
Amitava.

First, why do you believe that idle sessions are a problem?
A session is IDLE if it is not, at the instant you query the data dictionary, executing a SQL statement. Most sessions will be idle most of the time because most of the time your applications are waiting on humans to do something or spending time processing data in the application. Just because a session is idle now is no reason to believe that it won't be ACTIVE shortly.
A modern three-tier application will generally create a pool of connections to the database on each middle tier server. Generally, those pools will be sized for at least reasonably busy conditions. If you happen to look at the database when the application isn't particularly busy, you're likely to see a bunch of idle sessions. That's not a problem. While you could force the application server admins to decrease the size of their connection pools, that may negatively affect the performance of the applications and introduce extra load on the database server for no real benefit.
Justin

Similar Messages

  • Oracle idle sessions & SQL responsible

    Hi Gurus,
    I am using the following SQL to identify the idle sessions:
    select status "st", sid "sid", username "user", program "prg"
    from v$session
    where username is not null
    and audsid <> userenv('SESSIONID')
    order by status;
    I need to identify the SQLs responsible or might be responsible to generate idle sessions. Is there any SQL to do that.
    Thanks
    Amitava.

    amitavachatterjee1975 wrote:
    Hi Gurus,
    I am using the following SQL to identify the idle sessions:
    select status "st", sid "sid", username "user", program "prg"
    from v$session
    where username is not null
    and audsid <> userenv('SESSIONID')
    order by status;
    I need to identify the SQLs responsible or might be responsible to generate idle sessions. Is there any SQL to do that.
    Thanks
    Amitava.if/when session is actually IDLE, then it is NOT executing any SQL!

  • Oracle Forms and Report Services kill idle sessions

    In our Oracle Forms and Report Server many user open session and stay idle, i want to drop such sessions after 10 minutes to free resources.
    Please help how to proceed

    Default settings for forms session timeout is 15 Minutes. But heartbeat parameter (default 2 minutes) doesn't allow AS to close idle sessions. So define heartbeat=20 in your formsweb.cfg file.
    As far as reports are concerned set engineResponseTimeout="15" in your report server configuration file. This setting will not allow any report to remain in the queue for more than 15 minutes.
    Regards
    Mohsin Iqbal

  • Oracle State Session Store throws an Unhandled Exception with Xml

    I wish to use the Oracle.Net Session Store to store a value to session. The value or object if you prefer is marked as serializable in order to be placed within the store.
    Unfortunately, when running the code I get an unhandled exception error being displayed to the screen. The code itself does not fail at any point in debug. The actual error message in full is "An unhandled exception occurred 'Type 'System.Xml.XmlDocument' in Assembley 'System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' is not marked as serializable"
    Now, we have xml fields in our classes, and we have tried all sorts things, but I would like to know whether there is a far simpler way of saving xml documents to session when using Oracle.Net Session Store. We have also tried saving sessions using the ASP.Net State Server and hit exactly the same error.
    Does anyone have any good ideas/solutions?

    Hi Muthuraja,
    The warning in error log is caused by the error you mentioned above. Based on my search, the error message can be caused by various reasons.
    To troubleshooting the issue, please refer to the following steps:
    Check the "Idle Time-out" option of the application pool, if its value is not zero, set it to a larger integer value such as 120.
    Check the "Virtual Memory Limit" option of the application tool, if its value is not zero, set it to 0 instead.
    Set the "Maximum Worker Processes" option of the application tool to 1.
    In the web.config of the Web Application, set the “cookieless” to “true” like below:
    <sessionState mode="InProc" cookieless="true" timeout="120"/>
    Modify the httpRuntime settings like below:
    <httpRuntime maxRequestLength="20000" executionTimeout="600"/>
    Reference:
    sessionState Element
    httpRuntime Element
    AspNetSessionExpiredException
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    If you have any feedback on our support, please click
    here.

  • Idle session and active session

    how can I clear/remove the session user in oracle 10g express, via asp.net (1.1), is it possible?
    is idle session can affect the number of concurrent users? or only active session...

    coz right we're having a problem. first of all, i would like to say that I'm a oracle novice.
    this is the scenario, we have 1 server (p4 2.2ghz w/ 2gig of memory), oracle 10g express install and our application front end (asp.net 1.1 is also install). while running of application and reached 5 or more that users have connected tru asp.net, the connection to the oracle is refuse.
    can you help me regarding our problem.
    thanks in advance

  • Idle session

    hello, what is the different between idle session and active session in oracle?
    is idle session is treated as an 1 user who is currently connected? or user who is not connected to the db.
    because on my session monitor, there's a lot of idle

    HI,
    idle session
    User connected to database but doing nothing then there session is called idle session.
    You can limit the idle time for a session. If the time between Oracle calls for a session reaches the idle time limit, then the current transaction is rolled back, the session is aborted, and the resources of the session are returned to the system. The next call receives an error that indicates the user is no longer connected to the instance. This limit is set as a number of elapsed minutes.
    active session
    user connected to database and doing there session is active.
    active and inactive session
    A session is ACTIVE when it is making a SQL call to Oracle Database. A session is INACTIVE if it is not making a SQL call to the database.

  • Kill idle session automatically

    dear experts
    How to kill idle/inactive session automatically, based on its idle time?
    Which parameter should change?
    what is the relation between session, process ,thread.
    plz reply

    To kill idle session automatically, create a profile with idle_time parameter and assign it to the involved user accounts:
    http://www.psoug.org/reference/OLD/profiles.html?PHPSESSID=d47ba8ea1ed4aa759bea200eb397609c
    From Concepts Guide http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/process.htm#sthref1475
    A session is a specific connection of a user to an Oracle instance through a user process
    Edited by: P. Forstmann on May 27, 2009 10:01 AM

  • DB Trigger firing issue in case of oracle forms session crash

    Hi All,
    Oracle DB version: Oracle Database 10g Release 10.2.0.2.0 - Production
    Oracle Forms version: (Oracle Developer Suite 10g) 10.1.2.0.2 Production
    I am entering some data in the oracle forms and committed the data to database. This form is still open.
    By some reasons i get a error as "FRM-92101: There is error during forms server startup" and the forms session gets crashed.
    When this event happens i wanted to update the records which are inserted before this error occurred. For this purpose i created a BEFORE LOGOFF ON DATABASE trigger (in SYS user) and declared that transaction as autonomous and performed update and then commit.
    But when i get this error in forms runtime session, this trigger doesn't fire and also the records don't get updated.
    If i query to v$session view, the session entry is gone because the forms session is crashed.
    Can anyone please tell me why this trigger don't get fire when oracle forms session gets crashed? Or is there is any other way to run update statement as soon as the forms session gets crashes?
    Thanks.

    Hi,
    please check java runtime console for more issue information.
    Windows:
    SystemControl->Java Plugin Ver XXXX -> Standard -> Check "Show Java Console"
    In Systray, check the console for information about errors in java after the form error.
    Attackwave

  • ORACLE server session terminated by fatal error

    Hi,
    When i try to startup my database(10g), i am getting this error after database monted.
    ORA-00603: ORACLE server session terminated by fatal error.
    (Startup nomount is ok)
    conn /as sysdba
    Total System Global Area 1048576000 bytes
    Fixed Size 1223392 bytes
    Variable Size 343934240 bytes
    Database Buffers 700448768 bytes
    Redo Buffers 2969600 bytes
    Database mounted.
    ORA-00603: ORACLE server session terminated by fatal error
    Alert.log:
    Errors in file /u01/app/oracle/product/10.2.0/db_1/admin/db/udump/db_ora_9917.trc:
    ORA-00603: ORACLE server session terminated by fatal error
    ORA-00600: internal error code, arguments: [4194], [24], [14], [], [], [], [], []
    ORA-00600: internal error code, arguments: [4194], [24], [14], [], [], [], [], []
    The trace file is 1,6GB(!)
    Trace file:
    ----- Redo read statistics for thread 1 -----
    Read rate (ASYNC): 26Kb in 0.78s => 0.03 Mb/sec
    Total physical reads: 4096Kb
    Longest record: 0Kb, moves: 0/62 (0%)
    Change moves: 35/122 (28%), moved: 0Mb
    Longest LWN: 14Kb, moves: 0/13 (0%), moved: 0Mb
    Last redo scn: 0x0000.31539752 (827561810)
    NO VALID LOG MEMBER FOR SEQ# 20884 OF THREAD 1!
    NO VALID LOG MEMBER FOR SEQ# 20883 OF THREAD 1!
    *** 2011-01-06 06:18:51.782
    ksedmp: internal or fatal error
    ORA-00600: internal error code, arguments: [4194], [56], [49], [], [], [], [], []
    Current SQL statement for this session:
    update service$ set name = :1, name_hash = :2, network_name = :3, creation_date = :4, creation_date_hash = :5, deletion_date = null, goal = :6, flags = :
    ----- Call Stack Trace -----
    Thanks

    Hello,
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1: '/u01/app/oracle/product/10.2.0/oradata/db/system01.dbf'The system01.dbf which belongs to the Tablespace SYSTEM is still inconsistent.
    So, I think you'll need to start from a Backup and apply all the Archived Redo logs before the ORA-600 occured.
    More over, try to open a Service Request to My Oracle Support and, send them all the Traces Files and Alert Log so that they can follow all the actions which has occured on this Database. You may need their help.
    Best regards,
    Jean-Valentin

  • Oracle Forms Session Tracking mechanism

    Hi,
    In this doc http://www.oracle.com/technology/products/forms/pdf/10g/troubleshooting_fls.pdf we can read the following:
    The JsessionID, which uniquely identifies a Forms session. The Forms Listener Servlet uses two session tracking mechanisms:
    - Cookies, where the Servlet container sends a cookie to the client.
    The client returns the cookie to the server upon each HTTP
    request, thereby associating the session with the cookie.
    - URL rewriting, where the Servlet container appends a session ID
    to the URL path, for example:
    http://host[:port]/forms90/l90servlet;jsessionid=a23445bcde89
    Does this means that forms uses one of those, or uses both mechanisms simultaneous?
    anyone?
    Regards
    Ricardo
    Edited by: user12015527 on Mar 10, 2010 2:39 PM

    duplicate post: Oracle forms session crashes.

  • Oracle Idle Time errors

    Any suggestions on how I can avoid "ORA-02396: exceeded maximum idle time, please connect again" errors?
    Getting rid of the idle time restriction on the database is not an option, so I was looking for a parameter to tweak so Pages recovers better from Oracle idle timeouts.
    What's happening are javascript errors and other errors in the logs when there is a timeout.

    You may have issues that are not linked to timeout. Please check your database instance alert log:
    $ oerr ora 3113
    03113, 00000, "end-of-file on communication channel"
    // *Cause: The connection between Client and Server process was broken.
    // *Action: There was a communication error that requires further investigation.
    //          First, check for network problems and review the SQL*Net setup.
    //          Also, look in the alert.log file for any errors. Finally, test to
    //          see whether the server process is dead and whether a trace file
    //          was generated at failure time.

  • Idle Session in Crystal Report

    We have an environment where Crystal Report is talking to Universe. Report is published using BO XI3 Publisher. Issue is when Crystal Report is running for a report let us say for 10 minutes then for each query it executes;  one session is opened and data is fetched, but the session is kept idle session even though query has completed fetching data.
    If the report is run for 10 minutes till the report execution is completed those many idle sessions it creates and is removed only when the report completes execution.
    Is there anyway we can close those sessions which is complete fetching data from database, instead of waiting complete report execution.

    Hello,
    So repost to the Businessobject forum. This one is for Crystal reports only and no one in this forum will help you.
    10 minutes is the default timeout for some of the BOE servers, you can change this setting in the CMC servers area.
    Thank you
    Closing again

  • Using oracle.toplink.sessions.Connector issues

    Hi,
    Since we are integrating with others,should use database connections from other app's connection pool.I use one class to implement oracle.toplink.sessions.Connector,in connect method,get connection from other app's connection pool.It works well.But I want to free connection to connection pool when one API is finished.How can I do this?I checked there is no such API.please help

    The issue is with your select method.
    When you read against the session in TopLink you are reading the object directly from the shared object cache. These objects must be treated as read-only, if you modify them you are modifying what TopLink considers to be the committed state of the object, so when you register it and update it, TopLink does not detect any changes and does not make any updates as you already changed the original cached version of the object. If you wish to modify an object you first need to register or read it through a UnitOfWork, or clone/serialize the object yourself if you wish to edit detached objects and then merge them back.
    Example: (if you used a unit of work in your select it would clone the object)
    public Employees select(int Employee) {
    Session session = server.acquireClientSession();
    UnitOfWork uow = session.acquireUnitOfWork();
    return read(uow, Employee);
    Note, that if you then modified the object locally in the same transaction/unit of work, you would just be able to call commit on that same unit of work, and not require an update method.

  • Where oracle.rdbms.Session ?

    I used PL2Java to compile PLSQL Package to java but I can not run it as the Java code import this package oracle.rdbms.Session
    I tried to find it in any .zip or .jar files that came with JDeveloper or OAS but I failded.......

    May be a simple question...
    Where is the session stored? In the web server? Or in
    the client machine like cookies?
    If the session is stored in the client machine, is it
    possible to modify the values? (For example, if I
    store the authority profile in session, is it possible
    to be modified?)
    If the session is stored on the server, how will it
    respond if the client machine is rebooted and
    reconnect just before the session expire? Can it
    retrieve values the previous session?
    Thanks,
    GabrielHttpSession objects are stored on the server. The session id, which is unique to each user, is stored in one of two places: on the URL as a parameter ( ?sessionID=123456 ) or in a cookie. If it is in a cookie, the value only persists while the browser is open. If the client closes his/her browser, the sessionID reference is gone but the data is not. The session object will continue to persist, but there will be no way of retrieving it from the SessionContext. If you want to retrieve values from a previous session, your WebServer will need to support persistent sessions, which most likely requires a back end database for storage. This might slow things down because it will write sessions to the database when you would normally lose them. You can track when the session object is removed by having your data that you store in the session implement HttpSessionBindingListener. It lets you know, via method calls, when you object is put and removed from session objects, which could be helpful to store out persistant data.

  • Append Hint causing ORA-00603: ORACLE server session terminated by fatal er

    Hi All,
    I am facing Service Terminated by Fatal Error when using APPEND hint in my Insert statement.
    We are executing the below commands in Oracle 9ir2.
    This is the scenario which I am facing.
    SQL> insert into VALIDTRANSACTIONLINE select * from TRANSACTIONONLINE;
    1910534 rows created. --works fine
    SQL> rollback;
    Rollback complete.
    SQL> insert /*+ append */ into VALIDTRANSACTIONLINE select * from TRANSACTIONONLINE;
    ERROR at line 1:
    ORA-00603: ORACLE server session terminated by fatal error
    FYI: The table is having LOGGING-NO and the tablespace for this table is having more than 5GB of free space and undotablespace is also around 650 MB and the total size of insertion will be less than 50MB records.
    Has anyone faced this kind of issue.
    Appreciate your response.
    Thanks,
    Madhu K.

    Hi,
    FYI:
    I can see the undotablespace is having 0MB free space.
    it is a very strage issue.
    With Undotablespace Zero, I was able to insert the data having APPEND Hint but no indexes on the table.
    But when I create an Index on the Table and the Index is also in NOLOGGING mode, the Insertion is again failed with FATAL Error.
    Ex: No Index on the table.
    SQL> INSERT +append
    2 INTO credit
    3 SELECT /*+ driving_site(t1) */ * FROM tru_cmp.credit@EPSARCDV_TO_EPSDEV1.DIRECTV.COM t1 WHERE PERIODSEQ =300;
    1999401 rows created.
    CREATE UNIQUE INDEX TRU_CMP.CREDIT_PK_IND ON TRU_CMP.CREDIT
    (CREDITSEQ)
    NOLOGGING
    TABLESPACE TALLYINDEX
    NOPARALLEL
    INSERT +append
    INTO credit
    SELECT /*+ driving_site(t1) */ * FROM tru_cmp.credit@EPSARCDV_TO_EPSDEV1.DIRECTV.COM t1 WHERE PERIODSEQ =300;
    ERROR at line 3:
    ORA-00603: ORACLE server session terminated by fatal error
    Can you let me is this related to the Data File issue, so that I can ask the DBA to look into this as I dont have access to those alert log files.
    Thanks,
    Madhu K.

Maybe you are looking for

  • Replication of Business partner and the Sales document from CRM to R/3

    HI All ,     I am completely new to this CRM technical , I need some technical document on how can I replicate BP and sales documents from CRM  to R/3 through CRM middleware . Please help me out in this regard . Regards Debasri Sarkar

  • Stolen iPhone

    My mothers iPhone just got stolen. She has the Find iPhone app on her phone. Is it possible to find it from my iPhone or iPad?

  • How to do batch printing in BI 7.0?

    Hi, can any one explain me how to do batch printing with BI 7.0 ? Regards blusky

  • JCO clientPool connection refused

    Hello fellow JCO Programmers, I am stuck with a problem concerning the clientPool facility of JCO. Using the code below: JCO.Pool clientPool = JCO.getClientPoolManager().getPool(CLIENT_POOL_NAME);         if (null == clientPool) {             JCO.add

  • Tns ping pointing to old server in windows

    HI, I am facing issue while trying to access server from oracle client after changing database server name. I have configured tns file from netca and its showing connection successfull but stll when i do tnsping it points to old server and gives belo