Oc4j connection pool: too much INACTIVE connections

I am publishing an application - developed using Eclipse and previously published in Tomcat (where it works perfectly for a long time) - within corporate servers using Oc4j version 10.1.3. The database server is Oracle 9g.
After the deployment operation, the application seems to work, but that happens during the work by users, there are still many connections whith status "INACTIVE", until to complete all the available connections.
The datasource is set as follows:
<connection-pool name="ConnectionPoolRichiestaPubblicazione">
<connection-factory factory-class="oracle.jdbc.pool.OracleDataSource"
user="REDAZIONE"
password="password"
url="jdbc:oracle:thin:@(DESCRIPTION=(FAILOVER=ON)
     (ADDRESS_LIST=(LOAD_BALANCE=ON)
     (ADDRESS=(PROTOCOL=TCP)
     (HOST=10.146.2.86)(PORT=1521))
     (ADDRESS=(PROTOCOL=TCP)(HOST=10.146.2.86)(PORT=1521)))
     (CONNECT_DATA=
(SERVER=DEDICATED)
(SERVICE_NAME=XE)
(FAILOVER_MODE=(TYPE=SELECT)(METHOD=BASIC)(RETRIES=180)(DELAY=5))))">
</connection-factory>
</connection-pool>
<managed-data-source
jndi-name="jdbc/RichiestaPubblicazioneDS"
name="RichiestaPubblicazioneDS"
connection-pool-name="ConnectionPoolRichiestaPubblicazione" />
The java code to establish a connection is as follows:
private Connection creaConnessioneDataSource(String nomedatasource) throws ConnessioneException{
          LOGGER.debug("START");
          try {
               InitialContext context = new InitialContext();
               DataSource ds = (DataSource)context.lookup(nomedatasource);
               LOGGER.debug("URL DATASOURCE : " + ds.getConnection().getMetaData().getURL());
               LOGGER.debug("USERNAME : " + ds.getConnection().getMetaData().getUserName());
               this.conn = ds.getConnection();
          catch( Exception e ) {
               LOGGER.error("Errore nella connessione tramite datasource : " + StringUtils.getCustomStackTrace(e));
          LOGGER.debug("END");
          return this.conn;
Connections and statements are closed using the following methods:
     public boolean chiudi(Connection conn){
          LOGGER.debug("START");
          boolean esito = false;
          if (conn != null){
               try {
                    conn.close();
                    esito = true;
                    LOGGER.debug("Connessione chiusa");
               catch (SQLException e) {
                    LOGGER.error("Eccezione nella chiusura della connessione : " + e);
          LOGGER.debug("END");
          return esito;
     public boolean chiudi(Statement stmt){
          LOGGER.debug("START");
          boolean esito = false;
          if (stmt != null){
               try {
                    stmt.close();
                    esito = true;
                    LOGGER.debug("Statement chiuso");
               } catch (SQLException e) {
                    LOGGER.error("Eccezione nella chiusura dello statement : " + e);
                    e.printStackTrace();
          LOGGER.debug("END");
          return esito;
Here are a couple of examples of code that interact with the database:
     public List<StatoRichiestaSintesi> getElencoStatiRichieste() throws ConnessioneException{
          LOGGER.debug("START");
          List<StatoRichiestaSintesi> listaStati=new LinkedList<StatoRichiestaSintesi>();
          LOGGER.debug("Apriamo connessione e statement");
          Connection conn = databaseManager.creaConnessioneDataSource(datasource);
          Statement stmt = databaseManager.creaStatement(conn, false);
          String sql="SELECT * FROM STATORICHIESTA";
          try {
               ResultSet rs = stmt.executeQuery(sql);
               while(rs.next()){
                    StatoRichiestaSintesi temp=new StatoRichiestaSintesi();
                    temp.setIdStato(rs.getString(1));
                    temp.setDescrizioneStato(rs.getString(2));
                    listaStati.add(temp);
               LOGGER.debug("Numero record trovati : " + listaStati.size());
          } catch (SQLException e) {
               LOGGER.error("Eccezione di tipo SQL : " + StringUtils.getCustomStackTrace(e));
          finally{
               LOGGER.debug("Chiusura di statement e connessione");
               databaseManager.chiudi(stmt);
               databaseManager.chiudi(conn);
          LOGGER.debug("END");
          return listaStati;
Below is another example using PreparedStatement:
     private synchronized void aggiungiIndicazioneProgetto(String idprogetto, String idrichiesta) {
          LOGGER.debug("START");
          LOGGER.debug("Creo un oggetto di tipo connessione");
          Connection conn = databaseManager.creaConnessioneDataSource(datasource);
          LOGGER.debug("Definisco una query sql");
          String sql = "INSERT INTO RICHIESTAPROGETTO (IDRICHIESTA,IDPROGETTO) VALUES (?,?)";
          LOGGER.debug("Dichiaro un oggetto di tipo preparedstatement");
          PreparedStatement stmt = null;
          try {
               LOGGER.debug("Istanzio l'oggetto statement");
               stmt = conn.prepareStatement(sql);
               LOGGER.debug("Imposto i segnalibri della query");
               stmt.setString(1, idrichiesta);
               stmt.setString(2, idprogetto);
               LOGGER.debug("Eseguo la query di inserimento del progetto");
               stmt.executeUpdate();
          } catch (SQLException e) {
               LOGGER.error("Eccezione di tipo SQL : " + StringUtils.getCustomStackTrace(e));
          finally {
               LOGGER.debug("Chiusura di statement e connessione");
               databaseManager.chiudi(stmt);
               databaseManager.chiudi(conn);
          LOGGER.debug("END");
     Which may be the cause for the described behavior?
     I hope someone help me..

My problem is the following.
If I deploy my application with the illustred datasource in my local OC4J (10.1.3 in a Standalone Environment) all work fine.
The application creates a reasonable number of connections (in ORACLE - 10g Enterprise Edition Release 10.2.0.4.0 - db I run the query verification "select count(*) from v$session where username='MYAPPLICATION'"), and overall performance is very good.
If, however, to deploy on the production machine of corporate (always 10.1.3, but obviously in Oracle Application Server Environment) the
number of connections (status 'INACTIVE') grows massively, and this is saturated in a short time.
The exception that at the end from the application is that:
java.sql.SQLException: ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)
oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:277)
oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:272)
oracle.jdbc.driver.T4CTTIoauthenticate.receiveOsesskey(T4CTTIoauthenticate.java:243)
oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:304)
oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:430)
oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:151)
oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:608)
oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:218)
oracle.jdbc.pool.OracleConnectionPoolDataSource.getPhysicalConnection(OracleConnectionPoolDataSource.java:114)
oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection(OracleConnectionPoolDataSource.java:77)
oracle.jdbc.pool.OracleImplicitConnectionCache.makeCacheConnection(OracleImplicitConnectionCache.java:1361)
oracle.jdbc.pool.OracleImplicitConnectionCache.getCacheConnection(OracleImplicitConnectionCache.java:441)
oracle.jdbc.pool.OracleImplicitConnectionCache.getConnection(OracleImplicitConnectionCache.java:336)
oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:286)
oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:179)
oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:159)
oracle.oc4j.sql.DataSourceConnectionPoolDataSource.getPooledConnection(DataSourceConnectionPoolDataSource.java:57)
oracle.oc4j.sql.xa.EmulatedXADataSource.getXAConnection(EmulatedXADataSource.java:92)
oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl.createXAConnection(ManagedConnectionFactoryImpl.java:211)
oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl.createManagedConnection(ManagedConnectionFactoryImpl.java:170)
com.evermind.server.connector.ApplicationConnectionManager.createManagedConnection(ApplicationConnectionManager.java:1377)
oracle.j2ee.connector.ConnectionPoolImpl.createManagedConnectionFromFactory(ConnectionPoolImpl.java:327)
oracle.j2ee.connector.ConnectionPoolImpl.access$800(ConnectionPoolImpl.java:98)
also I add the other attributes of Connection Pool of the Datasource:
Connections:
Initial size of Connection Cache = 0     
Minimum Number of Connections = 0
Maximum Number of Connections = -1
Connection Retry Interval (seconds) = 1
Maximum Connection Attempts = 3
Maximum Number of Statements Cached = 0     
Lower Threshold Limit On Pool (%)= 20     
Validate Connection = False
What I can do?
many thanks..

Similar Messages

  • Oracle 11G + Database Connection taking too much Time

    Hi ,
    I am using Oracle 11G . When i try to connect to oracle database
    sqlplus system/impetus@database
    it takes too much time ( more than 1 min )
    I am not getting why this is happening ?
    Before some day it was working fine but suddenly the problem occurred.. Is this issue is related to log files generated by oracle or memory related issue ( sga and pga)..
    Any Help please ?

    Darn! /tmp/capture.log does not contain what I expected it to contain.
    So a different approach is needed.
    issue the following command:
    script /tmp/capture.log
    #now you are in a new shell & issue the next 3 lines
    strace sqlplus system/impetus@database
    exit
    Ctrl-d (Control D)
    now issue the following commands.
    ls -l /tmp/capture.log
    wc -l /tmp/capture.log
    Post the results from 2 commands above back here

  • Connection Pool - unable to establish connection for one or more OC4J inst.

    Hi.
    I'm using Oracle JDeveloper 10.1.3.1 to develop some app. Database is Oracle XE 10.2.0. Application server is Oracle Aplication Server 10.1.3.1
    After create a needed code, I' v tried establish Connection Pool. When I' v tested connection, next errors was occurred:
    Unable to establish connection for one or more OC4J instances<<
    Home on admin.FRIEND-6843859F - Failed due to error: "Exception occurred testing connection. Exception: java.sql.SQLException: invalid arguments in call."<<"FRIEND-6843859F " is Computer name where Application server is installed.
    --Database is started.
    --App.server processes are started.
    How can I solve this problem?
    Thanx

    If you are using ADF "BC" Jdev will not support more than one connection
    I've tryied and always gives a errors.

  • Wrvs4400n file transfer connection trouble "Too Much Data"

    Hi when connecting trying to do file transfers over IRC in mirc, when some people try to send me files, they get a "Too much data recieved" Error, only happens with this router (i have a wag200g and that works perfect)
    this is while trying to establish connection and only seems to effect one port (443) thou i only have 3 ports to test, the other 2 work fine
    any ideas?
    Message Edited by Nirces on 08-09-2007 10:00 AM

    try reducing MTU to 1365 on the router, also try reflashing the firmware...check whether it makes any difference or not.

  • "Closed Connection" occurs too much After deployment on WebSphere

    "oracle.adf.controller.faces.lifecycle.Utils buildFacesMessage ADF: Adding the following JSF error message: Closed Connection
    java.sql.SQLRecoverableException: Closed Connection"
    "Closed Connection" message appears to the user too much after deploying on Websphere. How to disable this message.

    FYI, I followed the steps listed in Administrator's Guide for Oracle Application Development Framework
    at http://docs.oracle.com/cd/E35521_01/admin.111230/e16179/monitor.htm#CHDEGIAH
    and that resolved my Closed Connection issue.
    3.8.1 How to Configure WebSphere to Allow Reuse of Query Result Sets
    WebSphere Application Server closes shared database connections between application generated requests. You need to set two properties in WebSphere to allow reuse of result sets.
    Use the WebSphere Application Server administrative console to set the non-transactional datasource and DisableMultiThreadedServletConnectionMgmt properties.
    To set properties in WebSphere to reuse results sets:
    Start WebSphere Application Server administrative console.
    Navigate to Data sources > DB2 Universal JDBC Driver XA DataSource > WebSphere Application Server data source properties and set Non-transactional data source to enabled.
    Save the configuration.
    Navigate to Application servers > server_name > Web Container > Custom Properties and set DisableMultiThreadedServletConnectionMgmt to true.
    Save the configuration.
    Restart WebSphere Application Server.
    Setting these two properties will enable your deployed application to reuse result sets across requests.

  • Connection pooling is not really connection pooling? Right?

    Here's what I don't understand, I'm trying to pool connections but everywhere I look I see the following code:
    Connection con = null;
    try {
    con = dataSource.getConnection("username", "password");
    } catch (Exception ex}
    finally {
    con.close();
    Why is the connection closed? Isn't it supposed to be "pooled"? I have read that connections need to be closed to be reused, then what's the point of "pooling connections"? I mean, I have closely followed MySQL server connections and appears that connections are indeed closed, apparently, what "connection pooling" does is save some connection information (which is what apparently is the only thing that is "pooled") which is used to establish connections instead of reusing them.
    When I start my Java application, DataSource.getConnection() creates a connection and MySQL Administrator shows a new connection in a list of connections to MySQL. I get com.mysql.jdbc.Connection@13e6657 for that connection. After con.close() is called, that connection is removed from the list of connections and when DataSource.getConnection() is called again, I get com.mysql.jdbc.Connection34o3422 and a new connection shows up in MySQL Administrator.
    So what's the point in calling this "connection pooling"? I mean, this isn't really pooling connection but rather saving some data in the memory that is used to create connections, not saving them.

    ^ The fact that a connection is pooled is usually abstracted away from the client, such that a call to the Connection's close() method doesn't actually close the connection, but instead returns it to the pool. The example you cited above says as much. The code that @OP posted could very easily be pooled behind the scenes.
    Message was edited by:
    bckrispi

  • Connection pool not re-establishing connections, throwing exception instead

    Hello,
    I've just set up a connection pool on the sun java system application server 8 for a MySQL database using the official mysql-connector/j 5.0. Everything is working great, except when the connections timeout (or i kill them all manually from the database server) and then request a page that needs to use the DataSource object, the following exception is thrown:
    Exception thrown: com.mysql.jdbc.CommunicationsException -- Communications link failure due to underlying exception:
    ** BEGIN NESTED EXCEPTION **
    java.io.EOFException
    STACKTRACE:
    java.io.EOFException
         at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1913)
         at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2304)
         at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2803)
         at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1573)
         at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1665)
         at com.mysql.jdbc.Connection.execSQL(Connection.java:3118)
         at com.mysql.jdbc.Connection.execSQL(Connection.java:3047)
         at com.mysql.jdbc.Statement.executeQuery(Statement.java:1166)
         at com.mysql.jdbc.jdbc2.optional.StatementWrapper.executeQuery(StatementWrapper.java:705)
         at beans.MySessionBean.businessMethod(MySessionBean.java:73)
         at org.apache.jsp.index_jsp._jspService(index_jsp.java:70)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:251)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         at sun.reflect.GeneratedMethodAccessor98.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:185)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:653)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:534)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.java:403)
         at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)
    ** END NESTED EXCEPTION **
    Last packet sent to the server was 16 ms ago.What could be wrong?
    Thank you.

    The code is here:
        public String businessMethod() {
            //TODO implement businessMethod
            try
                InitialContext ic = new InitialContext();
                Object obj = ic.lookup("jdbc/MyDS");
                System.out.println("Object is: " + obj + " | Class is: " + obj.getClass().getName());
                DataSource ds = (DataSource)obj;
                Connection conn = ds.getConnection();
                Statement stmt = conn.createStatement();
                ResultSet rs = stmt.executeQuery("SELECT a,b FROM test");
                String ret = "";
                while(rs.next())
                    ret += rs.getString(1) + " - " + rs.getString(2) + "<br/>";
                conn.close();
                return ret;
            catch(Exception e)
                return "Exception thrown: " + e.getClass().getName() + " -- " + e.getMessage();
        }On the server, it is set up as XADataSource. I don't really have a big need for distributed transactions, but does it hurt badly to use it anyways? Could it be causing this problem?

  • Struts and Connection pooling my servlet DB connections ...

    I have done extensive work using the MVC approach to application development and i am ready to move on to the nextlevel. THis next level, for me, is the STRUTS frame work of web application design. For the model portion of STRUTS, is there connection pooling contained with in the class structure or do we have to add this connection pooling ourselves. I have already develpoed DB / servlet connection pooling classes and i am looking to incorporate them into the STRUTS frame work, do i need to or is there some thing there already?

    Well, to be J2EE you could use an implementation of javax.sql.DataSource which also implements connection pooling.
    I use the one that's packaged in tomcat : exolab's tyrex. http://tyrex.exolab.org

  • Connection Pooling: how many active connections?

    Hi, everybody.
    I have a very simple question about connection pooling...
    How many active connections should a database see once a connection pool has been opened?
    I mean, it should see only one connection (the pool itself) at any time, or the number of "logical" active connections in that moment?
    Thanks for any answer.

    Sorry...
    This is the wrong forum, I posted again my question in the JDBC Forum...

  • How to purge connection pool on stale on connections

    Hello
    Our problem is when we are required to reboot the database then we have to reboot all application servers.
    Is there a way we can avoid app servers reboot.
    app server code is in VB 6.0 and .NET 1.1 (using odp.net for .net)
    in a sample application what we found that the ADO (using OraOLEDB) returns a connection where the connection state is open even after database reboot, but when try to use the connection object it throws an exception like end-of-line etc.
    so is there a way to clean up the connection pool or reset ole db connection manger.
    Any help will be greatly appreciated
    Thanks

    You're using both ODP and OLEDB then?
    ODP has a ClearPool method on a connection you can call, useful for just this situation.
    OLEDB connection pooling is done by the OLEDB framework provided by Microsoft, not by the provider itself. I dont know of any way to clear out the pool apart from restarting the application.
    Hope it helps, corrections/comments welcome
    Greg

  • Connection pool running out of connections

    Hi all,
    I am using Oracle's connection pool implementation:
    OracleConnectionPoolDataSource dbConnection;
    OracleConnectionCacheImpl connectionPool;
    and tomcat 3 and 4. Sometimes on Tomcat 4 (Linux) I see that the connections are not being reutilized and therefore I run out of free connections. The same application runs fine on NT and Tomcat 3 and 4. I checked all my methods and all have a close(connection) in my finally{} and besides this the problem only happens once in a while and the program is using the same methods all the time. Anybody has a clue about what could the issue be?
    Thanks,
    A.

    have u tried setCacheScheme?

  • Too Much Inactive RAM, Too Little Free RAM

    I used to have a 2007 iMac running Snow Leopard, and I switched to a 2011 iMac running Mountain Lion. On both of my computers, I kept running out of free RAM after a while, and my inactive RAM kept taking up all my free RAM. It still does it. I end up with around 30MB of free RAM, a reasonable amount of active RAM, and a massive amount of inactive RAM after a few days, then my computer slows down a lot.
    I have to keep flushing the inactive RAM with a memory cleaning tool or else my computer slows to a crawl. Repairing the permissions is supposed to clean out the inactive RAM (thanks, Tuttle), but alarmingly, this doesn't work for me. There must be something causing this problem, and I want to find it. How do I do this? Can processes currently running be using inactive RAM, or is that only possible if they have just been closed? Is there a tool that can check how much inactive RAM is allocated to each process?
    P.S. To make it clear: I know that I'm not supposed to worry about inactive RAM and let the system do its own optimization, but it must not be doing it right because it's causing extremely noticeable slowdowns. The computer is like a Geo Metro pulling a whale if I don't flush the inactive RAM periodically.

    Since you are so concerned, take your iMac to your local AS or an AASP for a FREE diagnostic test.  At least you will have piece of mind when you get a confirmation of what is really going on.

  • Connection pooling unable to close connection on Oracle 9i 64bit

    Hi there,
    We have a Oracle 9i 64 bit server housed on a Solaris 64bit box. Earlier we had a 8i on a solaris 32 bit and things were fine. But after having migrated to 9i, we have been facing a peculiar issue where in the connections being opened by the application do not close/expire. We never had this problem on the 8i box.
    System spec:
    Solaris 64bit ver 8
    JDK 1.4 JDBC thin drivers(ojdbc14.jar)
    JDBC 2.0
    Oracle 9.2.0.8 (64bit)
    The application is housed on a 32 bit Solarix box and runs on Tomcat4.1.
    Has anyone seen such probs before?? ...any ideas(quick ones) will be appreciated!
    Anybody

    Hi,
    I did a oracle trace of the issue and this is what i get from the trace
    DRVR OPER OracleConnection.setAutoCommit(autoCommit): return
    DRVR OPER OracleConnection.setReadOnly(readOnly=false)
    DRVR SQLS SQL: "SET TRANSACTION READ WRITE"
    DRVR OPER OracleConnection.getDefaultFixedString() returning false
    DRVR OPER ResultSetUtil.needIdentifier(typeCode=1): return: false
    DRVR OPER OraclePreparedStatement.execute()
    DRVR OPER OraclePreparedStatement.executeUpdate()
    DRVR SQLS Input SQL: "SET TRANSACTION READ WRITE"
    DRVR OPER OracleConnection.getAutoCommit() returned true
    DRVR OPER OracleStatement.cleanupForBatching()
    DRVR OPER OraclePreparedStatement.sendBatch()
    DRVR SQLS SQL: "{call PKG_REASSIGN.I01_REASSIGN(?,?,?,?,?,?)}"
    DRVR OPER OracleConnection.getDefaultFixedString() returning false
    DRVR OPER ResultSetUtil.needIdentifier(typeCode=1): return: false
    DRVR SQLS sql=<{call PKG_REASSIGN.I01_REASSIGN(?,?,?,?,?,?)}>
    DRVR SQLS Input SQL: "{call PKG_REASSIGN.I01_REASSIGN(?,?,?,?,?,?)}"
    DRVR SQLS sql=<{call PKG_REASSIGN.I01_REASSIGN(?,?,?,?,?,?)}>
    DRVR OPER OraclePreparedStatement.setBigDecimal(paramIndex=1, x=790846)
    DRVR OPER OraclePreparedStatement.setString(paramIndex=2, x=FBGJ)
    DRVR OPER OraclePreparedStatement.setString(paramIndex=3, x=BALMKR01)
    DRVR OPER OraclePreparedStatement.setString(paramIndex=4, x=IMRVER71)
    DRVR OPER OraclePreparedStatement.setString(paramIndex=5, x=10.128.28.245)
    DRVR OPER OracleCallableStatement.registerOutParameter(paramIndex=6, sqlType=2, scale=0, maxLength=-1)
    DRVR OPER OracleCallableStatement.registerOutParameterBytes(paramIndex=6, sqlType=2, scale=0, maxLength=-1)
    DRVR OPER OracleConnection.setAutoCommit(autoCommit=false)
    DRVR OPER OracleConnection.setAutoCommit(autoCommit): return
    DRVR OPER OraclePreparedStatement.execute()
    DRVR OPER OraclePreparedStatement.executeUpdate()
    DRVR OPER OracleConnection.getAutoCommit() returned false
    DRVR OPER OracleStatement.cleanupForBatching()
    DRVR OPER OracleCallableStatement.sendBatch()
    Performing a pooledConnection.notifyListener() in ConnectionImpl.class
    Doing a getConnection() in Jdbc2PoolDataSource
    DRVR OPER OracleConnection.setAutoCommit(autoCommit=true)
    DRVR OPER OracleConnection.setAutoCommit(autoCommit): return
    DRVR OPER OracleConnection.setReadOnly(readOnly=false)
    DRVR SQLS SQL: "SET TRANSACTION READ WRITE"
    DRVR OPER OracleConnection.getDefaultFixedString() returning false
    DRVR OPER ResultSetUtil.needIdentifier(typeCode=1): return: false
    DRVR OPER OraclePreparedStatement.execute()
    DRVR OPER OraclePreparedStatement.executeUpdate()
    DRVR SQLS Input SQL: "SET TRANSACTION READ WRITE"
    DRVR OPER OracleConnection.getAutoCommit() returned true
    DRVR OPER OracleStatement.cleanupForBatching()
    DRVR OPER OraclePreparedStatement.sendBatch()
    com.*********.common.serviceexecutor.ServiceExecutorException: com.*********.common.exception.SCBBaseException: SQL Exception occured while getting connection from ConnectionPool in SQLMassRetrieveExecutor
    at com.*********.common.serviceexecutor.Service.executeMethodsInOrder(Unknown Source)
    at com.*********.common.serviceexecutor.Service.execute(Unknown Source)
    at com.*********.common.serviceexecutor.ServiceDefinition.executeServices(Unknown Source)
    at com.*********.common.serviceexecutor.StatelessServiceExecutorImpl.executeServiceDefinition(Unknown Source)
    at com.*********.common.sessionutil.PageManager.executeServiceExecutor(Unknown Source)
    at com.*********.common.sessionutil.PageManager.executeMethod(Unknown Source)
    at com.*********.common.sessionutil.PageManager.getFirstPage(Unknown Source)
    at com.*********.common.sessionutil.PageManager.getPages(Unknown Source)
    at com.*********.sci.view.action.VerifyQueueListAction.perform(VerifyQueueListAction.java:124)
    at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1787)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
    at org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1759)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at com.*********.sci.appservice.commonservices.FilterNew.doFilter(FilterNew.java:23)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:457)
    at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:576)
    at java.lang.Thread.run(Thread.java:536)
    Caused by: com.*********.common.exception.SCBBaseException: SQL Exception occured while getting connection from ConnectionPool in SQLMassRetrieveExecutor
    at com.*********.common.dbexecutor.SQLMassRetrieveExecutor.<init>(Unknown Source)
    at com.*********.common.dbexecutor.ConnectionRetriever.getInstance(Unknown Source)
    at com.*********.sci.appservice.queue.VerifyQueueListService.getDatabaseRowSetConnection(VerifyQueueListService.java:96)
    at com.*********.sci.appservice.queue.VerifyQueueListService.getVerifyQueueList(VerifyQueueListService.java:157)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    ... 51 more
    Caused by: java.sql.SQLException: ORA-01453: SET TRANSACTION must be first statement of transaction
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
    at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
    at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:590)
    at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1973)
    at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1119)
    at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2191)
    at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:2064)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2989)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:658)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:736)
    at oracle.jdbc.driver.OracleConnection.setReadOnly(OracleConnection.java:1631)
    at com.*********.common.connectionpool.adapter.ConnectionImpl.setReadOnly(ConnectionImpl.java:203)
    at com.*********.common.connectionpool.newp.Jdbc2PoolDataSource.getConnection(Jdbc2PoolDataSource.java:645)
    at com.*********.common.connectionpool.newp.Jdbc2PoolDataSource.getConnection(Jdbc2PoolDataSource.java:534)
    ... 59 more
    Is oracle missing a COMMIT before it is passing the SET TRANSACTION statement??. and is there any relation between the AutoCommit and the Isolation level?

  • Too Much Inactive Memory Useage

    Hi,
    I have a 2010 iMac running Mac OS X version 10.7.5.
    I have upgraded to 16GB Ram but still have serious issues with the computer running slow sometimes are almost stopping because the memory usage seems to be too high.
    I run quiet a few applications (mainly web browsers with multiple tabs). The main issue I see is the Inactive Memory is over 5GB. Is there a reason why this is so high? Is there a way to reduce the Inactive Memory?
    Restarting the machine is a short term solution.
    Thanks

    Hi,
    I have a 2010 iMac running Mac OS X version 10.7.5.
    I have upgraded to 16GB Ram but still have serious issues with the computer running slow sometimes are almost stopping because the memory usage seems to be too high.
    I run quiet a few applications (mainly web browsers with multiple tabs). The main issue I see is the Inactive Memory is over 5GB. Is there a reason why this is so high? Is there a way to reduce the Inactive Memory?
    Restarting the machine is a short term solution.
    Thanks

  • Too much inactive RAM + EtreCheck results

    Hi, I noticed that my macbook pro is getting slower and slower, even though I close applications that are not being used.
    Right now my RAM is the following, with only two applications open, chrome and email.
    Out of 8Gb RAM laptop:
    Wired: 1.17Gb
    Active 1.8Gb
    Inactive 4.62Gb
    Free 409Mb
    Etrecheck report:
    EtreCheck version: 2.1.8 (121)
    Report generated 19 March 2015 12:58:07 PM AEDT
    Download EtreCheck from http://etresoft.com/etrecheck
    Click the [Click for support] links for help with non-Apple products.
    Click the [Click for details] links for more information about that line.
    Hardware Information: ℹ️
        MacBook Pro (13-inch, Late 2011) (Technical Specifications)
        MacBook Pro - model: MacBookPro8,1
        1 2.8 GHz Intel Core i7 CPU: 2-core
        8 GB RAM
            BANK 0/DIMM0
                4 GB DDR3 1333 MHz ok
            BANK 1/DIMM0
                4 GB DDR3 1333 MHz ok
        Bluetooth: Old - Handoff/Airdrop2 not supported
        Wireless:  en1: 802.11 a/b/g/n
        Battery Health: Normal - Cycle count 775
    Video Information: ℹ️
        Intel HD Graphics 3000 - VRAM: 512 MB
            Color LCD 1280 x 800
    System Software: ℹ️
        Mac OS X 10.7.5 (11G63) - Time since boot: 1:44:36
    Disk Information: ℹ️
        APPLE HDD HTS547575A9E384 disk0 : (750.16 GB)
            disk0s1 (disk0s1) <not mounted> : 210 MB
            Macintosh HD (disk0s2) / : 749.30 GB (101.31 GB free)
            Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
        MATSHITADVD-R   UJ-8A8
    USB Information: ℹ️
        Apple Inc. BRCM2070 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple Inc. Apple Internal Keyboard / Trackpad
        Apple Inc. FaceTime HD Camera (Built-in)
        Apple Computer, Inc. IR Receiver
    Thunderbolt Information: ℹ️
        Apple, Inc. MacBook Pro
    Configuration files: ℹ️
        /etc/hosts - Count: 1
    Kernel Extensions: ℹ️
            /System/Library/Extensions
        [loaded]    com.Cycling74.driver.Soundflower (1.5.2) [Click for support]
        [not loaded]    com.LaCie.driver.PXHCD (1.0.11 - SDK 10.6) [Click for support]
        [not loaded]    com.ZTE.driver.ZTEUSBCDCACMData (1.3.12) [Click for support]
        [not loaded]    com.ZTE.driver.ZTEUSBMassStorageFilter (1.3.12) [Click for support]
        [not loaded]    com.devguru.driver.SamsungComposite (1.4.18 - SDK 10.6) [Click for support]
        [not loaded]    com.sierrawireless.driver.SierraDIPSupport (1.0.0) [Click for support]
        [not loaded]    com.sierrawireless.driver.SierraFSRSupport (3.0.0) [Click for support]
        [not loaded]    com.sierrawireless.driver.SierraHSRSupport (3.0.0) [Click for support]
        [not loaded]    com.sierrawireless.driver.SierraIPDirect (1.1.5) [Click for support]
            /System/Library/Extensions/ssuddrv.kext/Contents/PlugIns
        [not loaded]    com.devguru.driver.SamsungACMControl (1.4.18 - SDK 10.6) [Click for support]
        [not loaded]    com.devguru.driver.SamsungACMData (1.4.18 - SDK 10.6) [Click for support]
        [not loaded]    com.devguru.driver.SamsungMTP (1.4.18 - SDK 10.5) [Click for support]
        [not loaded]    com.devguru.driver.SamsungSerial (1.4.18 - SDK 10.6) [Click for support]
    Launch Agents: ℹ️
        [not loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
        [loaded]    com.adobe.CS4ServiceManager.plist [Click for support]
        [running]    com.bjango.istatmenusagent.plist [Click for support]
        [loaded]    com.google.keystone.agent.plist [Click for support]
        [unknown]    com.oracle.java.Java-Updater.plist [Click for support]
        [running]    com.sierrawireless.SwitchTool.plist [Click for support]
    Launch Daemons: ℹ️
        [loaded]    com.adobe.fpsaud.plist [Click for support]
        [loaded]    com.adobe.SwitchBoard.plist [Click for support]
        [running]    com.bjango.istatmenusdaemon.plist [Click for support]
        [loaded]    com.google.keystone.daemon.plist [Click for support]
        [unknown]    com.oracle.java.Helper-Tool.plist [Click for support]
    User Launch Agents: ℹ️
        [loaded]    com.adobe.ARM.[...].plist [Click for support]
        [loaded]    com.facebook.videochat.[redacted].plist [Click for support]
        [loaded]    com.google.GoogleContactSyncAgent.plist [Click for support]
        [failed]    com.wondershare.mobilegodaemon.plist [Click for support] [Click for details]
    User Login Items: ℹ️
        iTunesHelper    Application  (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
    Internet Plug-ins: ℹ️
        JavaAppletPlugin: Version: 14.9.0 - SDK 10.7 Check version
        o1dbrowserplugin: Version: 5.40.2.0 - SDK 10.8 [Click for support]
        Unity Web Player: Version: UnityPlayer version 5.0.0f4 - SDK 10.6 [Click for support]
        Flip4Mac WMV Plugin: Version: 2.4.2.4 [Click for support]
        AdobePDFViewerNPAPI: Version: 11.0.10 - SDK 10.6 [Click for support]
        FlashPlayer-10.6: Version: 16.0.0.305 - SDK 10.6 [Click for support]
        Silverlight: Version: 4.0.60531.0 [Click for support]
        QuickTime Plugin: Version: 7.7.1
        Flash Player: Version: 16.0.0.305 - SDK 10.6 Outdated! Update
        googletalkbrowserplugin: Version: 5.40.2.0 - SDK 10.8 [Click for support]
        AdobePDFViewer: Version: 11.0.10 - SDK 10.6 [Click for support]
        DirectorShockwave: Version: 12.0.7r148 - SDK 10.6 [Click for support]
    User internet Plug-ins: ℹ️
        npNASAEyes: Version: Unknown
        Google Earth Web Plug-in: Version: 7.1 [Click for support]
    Audio Plug-ins: ℹ️
        DVCPROHDAudio: Version: 1.3.2
    3rd Party Preference Panes: ℹ️
        Flash Player  [Click for support]
        Flip4Mac WMV  [Click for support]
        Perian  [Click for support]
        Tuxera NTFS  [Click for support]
    Time Machine: ℹ️
        Time Machine not configured!
    Top Processes by CPU: ℹ️
             7%    Google Chrome
             4%    WindowServer
             1%    hidd
             0%    SystemUIServer
             0%    AppleSpell
    Top Processes by Memory: ℹ️
        215 MB    Google Chrome Helper
        172 MB    Google Chrome
        120 MB    Mail
        94 MB    SystemUIServer
        94 MB    Finder
    Virtual Memory Information: ℹ️
        63 MB    Free RAM
        2.17 GB    Active RAM
        5.04 GB    Inactive RAM
        1.31 GB    Wired RAM
        1.17 GB    Page-ins
        14 MB    Page-outs
    Diagnostics Information: ℹ️
        Mar 19, 2015, 11:12:02 AM    Self test - passed
        Mar 17, 2015, 01:32:57 PM    /Library/Logs/DiagnosticReports/Kernel_2015-03-17-133257_[redacted].panic [Click for details]

    None of the usual problems are present.
    Activity Monitor – Monitor Performance Problems  
    Performance Guide
    Why is my computer slow
    Why your Mac runs slower than it should
    Things you can do to resolve slowdowns  see post by Kappy

Maybe you are looking for