Inactive sessions increasing in database

Hi
Recently i migrated Oracle9i database to oracle10g database 64 bit on windows 2008 server.
After Migration.Inactive sessions are not automatically flushing from database,and these inactive sessions are reaching maximum sessions limits that leads to Database Hang.
How can i solve this inactive sessions problem?
Thanks
With Regards
OH

damorgan wrote:
desc sys.kottd$Interesting table and custom data type.
SQL> set long 9999
SQL> col SQL format a50
SQL>                  
SQL> select           
  2          DBMS_METADATA.get_ddl( 'TABLE', 'KOTTD$', 'SYS')        as SQL
  3  from       dual;                                                     
SQL
  CREATE TABLE "SYS"."KOTTD$" OF "SYS"."KOTTD"
OIDINDEX  ( PCTFREE 10 INITRANS 2 MAXTRANS 255
  STORAGE(INITIAL 65536 NEXT 1048576 MINEX    
TENTS 1 MAXEXTENTS 2147483645                 
  PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFF
ER_POOL DEFAULT)                                 
  TABLESPACE "SYSTEM" )                          
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS
LOGGING                                                 
  STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MA    
XEXTENTS 2147483645                                     
  PCTINCREASE 0 FREELISTS 1 FREELIST GRO                
UPS 1 BUFFER_POOL DEFAULT)                              
  TABLESPACE "SYSTEM"                                   
SQL>
SQL>
SQL> select
  2          DBMS_METADATA.get_ddl( 'TYPE', 'KOTTD', 'SYS')        as SQL
  3  from       dual;                                                   
ERROR:                                                                  
ORA-31603: object "KOTTD" of type TYPE not found in schema "SYS"        
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105                            
ORA-06512: at "SYS.DBMS_METADATA", line 2805                            
ORA-06512: at "SYS.DBMS_METADATA", line 4333                            
ORA-06512: at line 1                                                    
no rows selected
SQL>
SQL> col attr_name format a30
SQL> col attr_type_name format a30
SQL> select                      
  2          attr_no,
  3          attr_name,
  4          attr_type_name
  5  from       dba_type_attrs
  6  where      type_name = 'KOTTD'
  7  and        owner = 'SYS'
  8  order by attr_no;
   ATTR_NO ATTR_NAME                      ATTR_TYPE_NAME
         1 KOTTDKVN                       UNSIGNED BINARY INTEGER(32)
         2 KOTTDSCH                       VARCHAR2
         3 KOTTDNAM                       VARCHAR2
         4 KOTTDUVN                       VARCHAR2
         5 KOTTDTC                        UNSIGNED BINARY INTEGER(16)
         6 KOTTDTDS                       CANONICAL
         7 KOTTDNDS                       CANONICAL
         8 KOTTDFLG                       UNSIGNED BINARY INTEGER(16)
         9 KOTDVSN                        UNSIGNED BINARY INTEGER(16)
        10 KOTTDBDY                       KOTTB
10 rows selected.
SQL> -- not even a varchar2 attr of the data type "accessible"
SQL> select KOTTDNAM from sys.kottd$ where rownum < 11;
select KOTTDNAM from sys.kottd$ where rownum < 11
ERROR at line 1:
ORA-00904: "KOTTDNAM": invalid identifier
SQL> -- Calling the constructor? Oracle no likes..
SQL> select KOTTD( null, 'test','test','test',null,null,null,null,null,null) from dual;
select KOTTD( null, 'test','test','test',null,null,null,null,null,null) from dual
ERROR at line 1:
ORA-00600: internal error code, arguments: [qctcte1], [0], [], [], [], [], [], []
SQL>

Similar Messages

  • Inactive sessions increasing database

    Hi
    We are using oracle11.5.10.2 on windows 2000 server and database version 10.2.0.3
    we are facing problem with inactive sessions,grdually inactive sessions increasing and thats leads database crash.
    Temporary i increased processes parameter value tp 400 prviously it was 200
    Most of inactive session from apps user only
    How can i fix this problem?
    Thanks
    With Regards
    OH

    Hi,
    Please see these threads.
    how to kill inactive sessions????????
    how to kill inactive sessions????????
    Inactive sessions in Database
    Re: Inactive sessions in Database
    Regards,
    Hussein

  • DAC has 19 inactive sessions in Repository Database

    Is this normal for the DAC to leave open 19 inactive sessions in the Repository Database when it is not running? Some of the last statements it ran were: SELECT SYSDATE FROM DUAL, etc
    Shouldn't it close some of these sessions when not running? I understand that it should leave open at least 1 so that it can fulfill it's 'Heartbeat Interval' requirements.
    Any insight into this issue would help greatly.
    Thanks,
    Andy

    can you upload a screenshot of DAC to explain your question?

  • Inactive sessions increasing over time

    But, the number of open connectios(ie.,other than SYSTEM active session,
    i could see only inactive sessions ) is not staying constant.
    Rather,it grows over time.
    [NOTE:
    I dont know why the application user sessions are always in inactive state.
    If they didn't use that session at all (or) if the session is not doing any operation means , why unnecssarily the have to open these many inactive sessions.]
    Can you please give me a solution to overcome the application's connection leak?

    This appears to be a duplicate of the post I replied to in When we go for shared Server environment?
    Justin

  • Inactive sessions in Database

    Hi,
    Lot inactive sessions are in database, Before we bounce database ----> max process got reached, For that we have changed max process and bounced the database but i can see still 75 inactive sessions in database,
    SQL> show parameter process
    NAME TYPE VALUE
    aq_tm_processes integer 1
    db_writer_processes integer 1
    gcs_server_processes integer 0
    job_queue_processes integer 2
    log_archive_max_processes integer 2
    processes integer 200
    SQL> show parameter spfile
    NAME TYPE VALUE
    spfile string
    Then i changed processes to 300
    SQL> show parameter process
    NAME TYPE VALUE
    aq_tm_processes integer 1
    db_writer_processes integer 1
    gcs_server_processes integer 0
    job_queue_processes integer 2
    log_archive_max_processes integer 2
    processes integer 300
    even after bouncing still 75 inactive sessions in database

    Hi,
    What are the events/programs of those sessions?
    Have you started the application or not yet?
    Go through the following documents and see if it helps.
    Note: 427759.1 - How To Prevent Inactive JDBC Connections In Oracle Applications
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=427759.1
    Note: 261791.1 - 11i JDBC Thin client connections remain active, MAX PROCESSES REACHED
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=261791.1
    Regards,
    Hussein

  • Inactive sessions

    Iam in need of a script to kill all the inactive sessions in the database and the same script should kill all the pid related in the OS also.
    can anyone send me a scripts or any input on this will be of great help ?
    Kai

    KaiS,
    See both functions and wrap around in your unix script, this should magic for you I suppose :) and you should replace sqlplus "/as sysdba" by sqlplus '/as sysdba'
    *function readSqlstmt {*
    typeset stmt=$1
    echo "
    set feedback off
    set verify off
    set heading off
    set pagesize 0
    whenever sqlerror exit 1
    whenever oserror exit 2
    *$stmt;*
    exit
    *" | sqlplus -S "/as sysdba" &gt;&gt; test.log*
    function killpid {
    killpidsql=killpid.sql
    sqlplus -s "/as sysdba" << ENDOFSQL >> test.log
    whenever sqlerror exit 1
    whenever oserror exit 2
    SET pagesize 0
    SET verify off
    SET feedback off
    SPOOL ${killpidsql}
    SELECT 'ALTER system kill session ''' || s.sid || ',' || s.serial# || ''';'
    FROM v\$session s, v\$process p
    WHERE s.paddr = p.addr AND s.status = 'INACTIVE';
    SPOOL OFF
    @${killpidsql}
    ENDOFSQL
    Example: How to use above readSqlstmt function, to kill unix process id and call "killpid" to kill sessions from oracle.
    *readSqlstmt "SELECT p.spid FROM v\$session s, v\$process p WHERE s.paddr = p.addr AND s.status = 'INACTIVE'" | while read u*
    *do*
    * #echo "kill -9" $u &gt;&gt; test.log*
    * echo $u*
    *done*
    *Regards*
    Edited by: OrionNet on Dec 10, 2008 10:52 PM
    Edited by: OrionNet on Dec 10, 2008 10:54 PM

  • OracleConnectionPoolDataSource creates inactive sessions

    Hi,
    My customer uses OracleConnectionPoolDataSource and finds that the pooled connection had created a huge number of inactive sessions on the database side.
    Any idea why this happens?
    Thanks in advance.
    Regards,
    Sindhiya V.

    Hi Hamdy,
    The inactivity timeout was configured through the Oracle Enterprise Manager.
    We created a Data Source and specified the following attributes on the page.
    JNDI Locations
    Location: jdbc/USPSTFPDADefaultDS
    XA Location: jdbc/xa/USPSTFPDAXADS
    EJB Location: jdbc/USPSTFPDADS
    Connection Attributes
    Connection Retry Interval: 5
    Max Connection Attempts: 3
    Cached Connection Inactivity Timeout: 300
    Maximum Open Connections: 10
    Minimum Open Connections: 1
    Wait For Free Connection Timeout: 5
    Hope you could help me in resolving this issue.
    Thanks & Regards,
    Sindhiya V.

  • DI 11.5.3 created inactive repository sessions on the database server

    The cusotmer complaint that many inactive sessions have been created on their DI repository database. As a result, the database has to be bounced every 3 or 4 days to clean those sessions. They use DI 11.5.3 on HP-UX. The database is Oracle 10g. What would cause this issue? The improper close of the Desinger window? Or something wrong with the job design?
    Thanks,
    Larry

    what is the process or application to which these sessions belong, Designer is not the only application which will open repo connection. WebAdmin also open connection to repository, it actually opens multiple connection
    I think you can get the application and process which have opened session to the database from v$sessions table

  • Database Status Inactive Sessions

    On OAM Applications Dashboard > Navigate to "DATABASE STATUS" > Sessions "#"
    I see alot of inactive sessions. Is it okay to terminate all of the inactive sessions? does it affect system performance? THanks!
    Message was edited by:
    chaseeem

    Oracle will clean them up for you. In addition, you could terminate a session that's simply idle.

  • Inactive Sessions Getting Automatically Generated in Database

    I am facing a strange problem of getting huge number of inactive sessions getting generated th the database server which leads to it's connection closure.
    The Error reads as "Failed to check out an Application due to connection failure of Application Module."
    This happens each time I execute the following code:
    String amDefName = "amendprgo.model.CSDInvFRCAmendPrgoServices";
    String configName = "CSDInvFRCAmendPrgoServicesLocal";
    ApplicationModule app1 = Configuration.createRootApplicationModule(amDefName,configName) ;
    String voInstanceName="prgoHdrRO";
    ViewObject prgoHdrROVO =app1.createViewObjectFromQueryStmt(voInstanceName,"select * from INV_PRGO_HDR");
    prgoHdrROVO.setWhereClause("PRGO_ID="+tempRow.getAttribute("PrgoId")+" and DEPOT_CD = '0' and ITEM_CAT = 'I3' ");
    prgoHdrROVO.executeQuery();
    if(prgoHdrROVO.getEstimatedRowCount()>0){
    return true;
    I know there is a process of creating connection and View Object in Model part in JDeveloper, but I want to know why this problem happens.

    ApplicationModule app1 = Configuration.createRootApplicationModule(amDefName,configName) ;is your problem as it causes at least one (sometimes more) connections to open. As you don't free the resource after using it the connection remains open even if you can't access it anymore.
    You should call Configuration.releaseApplicationModule(...), with the application module you created before returning.
    On the other side you shoulnd not even call createRootApplicationModule in the first place (as it causes trouble if you don't deeply know what the framework do with a root application module).
    Can you tell us the use case which make you call createRootApplicationModule()? We might find a better solution.
    Timo
    Edited by: Timo Hahn on 19.05.2011 13:45
    PS: something to read http://blogs.oracle.com/jdevotnharvest/entry/when_to_use_createrootapplicationmodule_in_oracle_adf and http://radio-weblogs.com/0118231/2009/08/20.html#a959

  • So many INACTIVE sessions in Database

    Hi,
    Actually PMON will clears all inactive sessions from database.
    But i can see there are sessions like more then 3,4 days old.
    Why PMON is not clearing them. ?
    On which intervals will PMON do inactive sessions cleaning.
    thanks in Advance.

    >
    But i can see there are sessions like more then 3,4 days old.
    >
    Heed the advice of the other responders.
    But for idle sessions that you want cleared immediately you can use
    ALTER SYSTEM DISCONNECT SESSION . . . IMMEDIATENOTE - this acts differently than the 'KILL SESSION' syntax typically used.
    See 'DISCONNECT SESSION' clause in the SQL Language reference section for ALTER SYSTEM
    http://docs.oracle.com/cd/B28359_01/server.111/b28286/statements_2013.htm
    >
    Use the DISCONNECT SESSION clause to disconnect the current session by destroying the dedicated server process (or virtual circuit if the connection was made by way of a Shared Sever).
    The IMMEDIATE setting disconnects the session and recovers the entire session state immediately, without waiting for ongoing transactions to complete.
    >
    Then contrast that with the text for KILL SESSION

  • OC4J inactive sessions

    I have OC4j server running on one box and the oracle database
    is on different server. We connect through JDBC.
    It looks like the application server does not close inactive sessions.
    Because of this temporary tablespace on database server gets filled
    up. I tried increasing it 4g but the problem looks like
    of inactive sessions.
    How do I specify timeout period for inactivity?
    I am using Oracle 9iAS Containers for J2ee (1.0.2.2.1)
    How do I clean up inactive sessions/processes.
    Satish Juware

    Yes,
    I am talking about inactive data connections. My application does not
    have any ejb module.It does have web module with servlets and JSPs.
    We do not use JNDI or data-sources.xml file for specifying
    username, SID, host:port to specify where database is.
    Insted we code thise values iside a servlet called DBconnection.
    IN that case should I still Specify inactivity timeout period
    in data-sources.xml.
    In the application code how do I make sure that connection is
    closed.
    Thanks !
    Satish Juware
    Hi Satish,
    I assume the "session" you are referring to is what I refer to as
    a database "connection".
    If the OC4J debug messages are accurate and reliable, then OC4J does,
    most definitely, close inactive database connections, after a certain
    "timeout" period. You configure this in your "data-sources.xml" file.
    Unfortunately I am not at work now, so I can't show you what mine
    looks like, but I suggest you do a search for information regarding
    the "data-sources.xml" file. I recommend searching the following URLs:
    http://www.orionserver.com
    http://www.orionsupport.com
    http://www.atlassian.com
    http://www.elephantwalker.com
    Hope this helps you.
    Good Luck,
    Avi.

  • Inactive sessions in v$session.  True problem

    Hi,
    I am working in an Oracle 9i/Weblogic/J2EE platform. And when i look for session info in v$session view, i see that there are many sessions that have a status "Inactive". I already figured out what it means- the session is ACTIVE when it is doing an SQL query at the time and the session is INACTIVE when it is not doing an SQL query at that particular moment.
    But i have questions:
    1) If a client logs in to my webapplication and does a SQL query- then the sessions status is ACTIVE. After that, when the client just leaves (logs out just closes the browser) then Oracle marks that connection as 'INACTIVE'- Oracle does not KILL that session.
    Ok let that be, but can another client then log in to my webapplication (from different computer) and get that same INACTIVE connection and start to use it?? If not, then these "abandoned" connection are truly useless, because they still use ORACLE resources (memory).
    2)Another thing is that there are many INACTIVE sessions in v$session that have a name "plsqldev.exe" in PROGRAM column. That is a database client that i use to connect directly to my DB. But basicly i have only one PL/SQL program with one SQL query window open (this session is marked ACTIVE in v$session). So are these other 10 INACTIVE "plsqldev.exe" sessions meant for new plsql clients that may start to use the database or can only that particular user for whom the session was created at first place use that session?
    And finally- sessions that are INACTIVE and have "plsqldev.exe" as a PROGRAM in v$session - is there any chance that a client logs in to webapplication and then gets that INACTIVE session?
    If not, then these 10 INACTIVE plsqldev sessions (allthough the user has maybe shut down the program) are wasteless for webapplication users and they just starve the database.
    Also a screenshot for illustration.
    Waiting for your comments,
    Thanks!

    If connection pooling is in use then yes a different end-user can reuse the "inactive" session. Remember that ACTIVE and INACTIVE really only refers to if the session is executing SQL at the exact moment you query v$session.
    In the case of a dedicated user connection using a product like Oracle Forms where the user spends much of the time reading and filling in screen fields the Oracle background session can show INACTIVE almost constantly because the queries being ran by the user are very fast.
    Take a look at the last_call_et column. This is the time in seconds from when the last SQL statement was issued (not completed). If this value is resetting then the queries are being done.
    If the time is large and the status is INACTIVE then you could have a 'dead' or 'runaway' background process which is a background process without a front-end process. Those can and should be terminated. For that matter sessions that are idle for long periods of time should probably also be killed. If nothing else runaway and idle sessions may make it appear you are using all your licensed connections even if you really are not.
    Most connection pools wil automatically restart a terminated connection so if you clean-up process terminates an idle pooled connection it should not be a problem.
    HTH -- Mark D Powell --

  • DBA Reports large number of inactive sessions with 11.1.1.1

    All,
    We have installed System 11.1.1.1 on some 32 bit windows test machines running Windows Server 2003. Everything seems to be working fine, but recently the DBA is reporting that there are a large number of inactive sessions throwing alarms that we are reaching our Max Allowed Process on the Oracle Database server. We are running Oracle 10.2.0.4 on AIX.
    We also have some System 9.3.1 Development servers that point at separate schemas in this environment and we don't see the same high number of inactive connections?
    Most of the inactive connections are coming from Shared Services and Workspace. Anyone else see this or have any ideas?
    Thanks for any responses.
    Keith
    Just a quick update. Originally I said this was only with 11.1.1.1 but we see the same high number of inactive sessions in 9.3. Anyone else see a large number of inactive sessions. They show up in Oracle as JDBC_Connect_Client. Does Shared Service, Planning Workspace etc utilize persistent connections or does it just abandon sessions when the windows service associated with an application is shutdown? Any information or thoughts are appreciated.
    Edited by: Keith A on Oct 6, 2009 9:06 AM

    Hi,
    Not the answer you are looking for but have you logged it with Oracle as you might not get many answers to this question on here.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Timing out inactive sessions

    Is there a way to set inactive sessions to timeout after a certain period of time?

    You may consider to use SQLNET.EXPIRE_TIME
    REFERENCE: http://download.oracle.com/docs/cd/B12037_01/network.101/b10776/sqlnet.htm
    ============================================================
    SQLNET.EXPIRE_TIME
    Purpose
    Use parameter SQLNET.EXPIRE_TIME to specify a the time interval, in minutes, to send a probe to verify that client/server connections are active. Setting a value greater than 0 ensures that connections are not left open indefinitely, due to an abnormal client termination. If the probe finds a terminated connection, or a connection that is no longer in use, it returns an error, causing the server process to exit. This parameter is primarily intended for the database server, which typically handles multiple connections at any one time.
    Limitations on using this terminated connection detection feature are:
    * It is not allowed on bequeathed connections.
    * Though very small, a probe packet generates additional traffic that may downgrade network performance.
    * Depending on which operating system is in use, the server may need to perform additional processing to distinguish the
    connection probing event from other events that occur. This can also result in degraded network performance.
    Default 0
    Minimum Value 0
    Recommended Value 10
    Example
    SQLNET.EXPIRE_TIME=10

Maybe you are looking for

  • HT4623 Ios7 download setup froze my Mac  mini on "Choose a Wi-Fi network"!

    Help! I clicked   Ios7 download, the bar went across the page, and it seemed to be loaded. But then it asked me to select a wireless network, when I entered the name of my network, it froze up, greyed out all but the name I typed and just sat there.

  • Lack of support for rented movies

    Last night I rented a movie from the AppleTV. It appeared to download okay. But when I tried to play it, all I got was a white screen. I immediately tried to call Apple support. After a few minutes with the voice response system, it told me they were

  • Errors in Analytics Dashboards (Peoplesoft and SQL Server)

    Hi All, We are facing a problem implementing BI APPs 7.9.6.3 for Peoplesoft Fin 9.1 (and using MS SQL Server 2008). We loaded the Warehouse without problems but when We try to see the reports in FIN and Procurement & Spend Dashboards we get the follo

  • Update Delivery qty via user exits

    Hello all, I need to replace the delivery qty that is copied from sales order with another qty during delivery creation (or) at the time of saving the delivery. I have tried replacing the field LIPS-LFIMG in various user exits. But none had updated t

  • Trying to download updates Please help

    I have been trying to update some apps but the I'd is incorrect, I have checked the default I'd and that is right. Any ideas how to change the one for the apps. Everything else has the right I'd.