Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: After 256 connections : ORA-12154

RE: After 256 connections : ORA-12154

From: Sami <saminathans_at_myrealbox.com>
Date: Tue, 16 Dec 2003 17:39:24 -0800
Message-ID: <F001.005DA1E0.20031216173924@fatcity.com>


Brad, Thanks for your response.
<<
If you are trying to open that many connections from a single client you should start to look at connection manager to pool these connections of at least recode your app to share connections.
>>

We are getting this error when the application is trying initialize the connection pool.

-----Original Message-----
Odland, Brad
Sent: Tuesday, December 16, 2003 2:59 PM To: Multiple recipients of list ORACLE-L

Anytime you see a number like 256 it is likely you are hitting some limit.

My guess is you are running out of memory in your application on that client.

If you are trying to open that many connections from a single client you should start to look at connection manager to pool these connections of at least recode your app to share connections.

Brad

-----Original Message-----
Sent: Tuesday, December 16, 2003 1:39 PM To: Multiple recipients of list ORACLE-L

Dear Gurus,

We are getting the following error if we try to create more than 256 connections from the same client. The problem is easily reproducible bt writing simple java program and keep creating connections(do not close it).

Did anyone encounter this kind of issue and how did you solve it?

Exception in thread "main" java.sql.SQLException: ORA-12154: TNS:could not resolve service name

        at java.lang.Throwable.fillInStackTrace(Native Method)
        at java.lang.Throwable.fillInStackTrace(Compiled Code)
        at java.lang.Throwable.<init>(Compiled Code)
        at java.lang.Exception.<init>(Compiled Code)
        at java.sql.SQLException.<init>(SQLException.java:43)
        at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
        at oracle.jdbc.oci8.OCIDBAccess.check_error(Compiled Code)
        at oracle.jdbc.oci8.OCIDBAccess.logon(Compiled Code)
        at oracle.jdbc.driver.OracleConnection.<init>(Compiled Code)
        at oracle.jdbc.driver.OracleDriver.getConnectionInstance(Compiled
Code)
        at oracle.jdbc.driver.OracleDriver.connect(Compiled Code)
        at java.sql.DriverManager.getConnection(Compiled Code)
        at java.sql.DriverManager.getConnection(Compiled Code)
        at j1.main(Compiled Code)

Thanks in advance

--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author:
  INET: jaysingh1_at_optonline.net

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Odland, Brad
  INET: Brad.Odland_at_qtiworld.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Sami
  INET: saminathans_at_myrealbox.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Tue Dec 16 2003 - 19:39:24 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US