ORA-12519 with servlet connect
Hi,
I'm facing a strange behaviour on my tomcat webserver with a servlet. I'm using Oracle 10g as the database and try to access it with my servlet.
The doPost-method throws the following exception while trying to establish the connection to the RDBMS:
"SQLException:
Connecting not possible:
Listener refused the connection with the following error:
ORA-12519, TNS:no appropriate service handler found The Connection descriptor used by the client was: localhost:1521:DBTEN"
After starting my servlet, the connection to the database for other applications blocks with the same error message
for a few minutes. After these few minutes connecting to the database is possible again!!! Restarting the database and the listener also helps...
public void doPost( HttpServletRequest request, HttpServletResponse response ) throws IOException, ServletException {
Connection conn = null;
response.setContentType( "text/html" );
PrintWriter out = response.getWriter();
String connStr = "jdbc:oracle:thin:@localhost:1521:DBTEN";
try{
Class.forName("oracle.jdbc.driver.OracleDriver");
}catch( ClassNotFoundException cnf ){
out.println( "CNFException: "+cnf.getMessage() );
//retrieve Connection
try{
conn = DriverManager.getConnection( connStr, "scott", "tiger" );
}catch( SQLException sqle ){
out.println( "SQLException: <BR> Connecting not possible: <BR> "+sqle.getMessage()+"<BR>" );
When I put that part in a 'normal' main program everything is ok. I can connect to the database and access tables with select statements and everything is ok.
public static void main(String[] args) {
Connection conn = null;
//retrieve Connection
try{
String connStr = "jdbc:oracle:thin:@localhost:1521:DBTEN";
try{
Class.forName("oracle.jdbc.driver.OracleDriver");
}catch(ClassNotFoundException cnf){
System.out.println( "CNFException: "+cnf.getMessage() );
conn = DriverManager.getConnection( connStr, "scott", "tiger" );
}catch( SQLException sqle ){
System.out.println( "SQLException:"+sqle.getMessage() );
Does anyone have an idea what the problem is in this case?
Regards,
Lars
"Note: The use of the DriverManager class to establish a connection to a database is deprecated." --
http://download-uk.oracle.com/docs/cd/B25329_01/doc/appdev.102/b25320/getconn.htm
To open a connection use something like this:
OracleDataSource ods = new OracleDataSource();
ods.setUser("username");
ods.setPassword("password");
ods.setURL("jdbc:oracle:thin:@localhost:1521:XE");
ods.getConnection();
Instead of this:
Class.forName("oracle.jdbc.OracleDriver");
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE", "username", "password");
Similar Messages
-
ORA-12514 with Easy Connect only
Greetings,
On linux with a recent local install of Oracle XE:
$ echo ORACLE_SID
XE
$ sqlplus system...works fine with nothing output to listener.log. I can connect no problem. However if I try:
$ sqlplus system@localhost:1521/XEI get the following in listener.log:
08-SEP-2008 14:03:11 * (CONNECT_DATA=(SERVICE_NAME=XE)(CID=(PROGRAM=sqlplus)(HOST=my.host.local)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=42572)) * establish * XE * 12514
TNS-12514: TNS:listener does not currently know of service requested in connect descriptorTnsping works:
$ tnsping XE
*+...+*
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE)))
OK (0 msec)My tnsnames.ora is:
$ cat /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin/tnsnames.ora
# tnsnames.ora Network Configuration File:
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)I put the listener in trace at the SUPPORT level. I can post that dump as well if it would help?
Without the Easy Connect connection identifier is it that I'm connecting via IPC? This is preventing me from remotely connecting via sqlplus or JDBC over an SSH tunnel of 1521 (the box is firewalled).
Thanks!
Ian
Edited by: ibrandt on Sep 8, 2008 2:29 PM - Fixed unintended wiki markup.
Edited by: ibrandt on Sep 8, 2008 3:19 PM - Formatting.Well, I've gotten it to work by changing 'localhost' to 'myhost.mydomain.local' (name changed to protect the innocent) in tnsnames.ora and listener.ora, adding myhost.mydomain.local to my local DNS server such that it resolves to eth0's external IP, and restarting oracle. After that...
$ lsnrctl status XE
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 09-SEP-2008 12:08:07
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=myhost.mydomain.local)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=XE)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 09-SEP-2008 12:07:29
Uptime 0 days 0 hr. 0 min. 37 sec
Trace Level support
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin/listener.ora
Listener Log File /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/log/listener.log
Listener Trace File /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/trace/listener.trc
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=myhost.mydomain.local)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8081))(Presentation=HTTP)(Session=RAW))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "XE" has 1 instance(s).
Instance "XE", status READY, has 1 handler(s) for this service...
Service "XEXDB" has 1 instance(s).
Instance "XE", status READY, has 1 handler(s) for this service...
Service "XE_XPT" has 1 instance(s).
Instance "XE", status READY, has 1 handler(s) for this service...
The command completed successfully...which is notably different from before. After that I can connect with:
sqlplus system/password@localhost/XEAlso of note, using the external IP directly in tnsnames.ora and listener.ora did not work.
So my new question is, why does Oracle need a HOST=hostname--where hostname resolves to an external IP--to startup correctly? Though I have 1521 firewalled from the outside world it seems like an unnecessary security hole. -
Ora-00164 with generic connectivity
Hello:
I have an Oracle 9iR2 database over linux RHAS 2.1 and try to replicate data to an informix server. For that purpose i have another oracle 9i over windows 2000 (brige) to make the replication using database triggers on tables in the Ora9i windows database. When i make transactions directly on the windows database, the data is replicated without problems to the informix server, but when i make the transactions on the linux database to the tables on the windows database via dblink the ora-00164 fires. I use autonomous-transaction on the triggers over the windows databse to make the replication.
Is there any way to overcome this problem??????
Any other alternative to make the replication work will be helpful.
Thanks
Andrés WongI tried this and get the same error message.
ERROR at line 1:
ORA-28545: error diagnosed by Net8 when connecting to an agent
NCRO: Failed to make RSLV connection
ORA-02063: preceding 2 lines from ALPACWOBF
listener.ora:
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = spruce)(PORT = 1521))
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = alpacwobf)
(ORACLE_HOME = C:\oracle\ora92)
(PROGRAM = hsodbc)
tnsnames.ora
alpacwobf.3LOG.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = SPRUCE)(PORT = 1521))
(CONNECT_DATA =
(SID_NAME = alpacwobf)
(HS=ok)
initalpacwobf.ora:
HS_FDS_CONNECT_INFO = AlpacWOBF
HS_FDS_TRACE_LEVEL = 4
HS_FDS_TRACE_FILE_NAME = alpacwobf.log
ODBC setting is ok. odbc name is alpacwobf, db is access 2000.
restart the listener.
tnsping alpacwobf is ok.
database link creating is ok.
but when query,I got error.
alpac > create database link alpacwobf using 'alpacwobf';
Database link created.
alpac > select count(*) from test@alpacwobf;
select count(*) from test@alpacwobf
ERROR at line 1:
ORA-28545: error diagnosed by Net8 when connecting to an agent
NCRO: Failed to make RSLV connection
ORA-02063: preceding 2 lines from ALPACWOBF
Any help will be appreciated.
Thanks a lot.
Richard -
Frm-40375 and ora-306500 with ODBC connection
Hi experts,
I am getting frm-40375 , ora-306500 when clicking a button on form , the code behind the button is actually connecting to a database other than oracle using the ODBC connection and importing data in variables and than inserting in an oracle table.
The error only appears on other PCs and not on my pc , means there is no problem in the code and is working fine on my pc (importing the desired data when using my pc).
The question is what is missing on other PCs or in other words what is additional component in my PC.
Please tell when and why this ora-306500 occurs.
Hope I defined the problem correctly.
(the following is part of the code
connection_string:='user/pass123@ODBC:abcd123';
connection_id := EXEC_SQL.OPEN_CONNECTION(connection_string);
cursorID := EXEC_SQL.OPEN_CURSOR(connection_id);
Using Oracle 9i Database
and 6i Forms
Thanks in advance
Edited by: zulfffi on Jun 29, 2010 11:08 PMora-306500I seriously doubt this is actual error code.
AFAIK - Oracle errors have not yet reached 6 decimal places.
please use COPY & PASTE in the future -
Problem with servlet connection
Hi guys,
Im gettin an nullpointer exception when connect to a servlet. Some "abstract" code:
public void connect()
servletConnection = servletURL.openConnection();
servletConnection.setDoOutput(true);
servletConnection.setUseCaches(false);
servletConnection.setDefaultUseCaches (false);
servletConnection.setDoInput(true);
servletConnection.connect();
servletInput = new ObjectInputStream(servletConnection.getInputStream());
public codeThatWorks()
while(true)
connect()
usereceivedvalues();
public codeThatDontWorks()
connect()
while(true)
usereceivedvalues();
I dont know why I have to reconnect to the servlet or renew the ObjectInputStream everytime I need to get values from it. Im using a ObjectInputStream to get the values from the servlet.
Some ideas ? Thankss.I think your problem is in servlet. You can try the servlet without midlet in a IExplorer browser.
ps1=con.prepareStatement("SELECT * FROM userLogin where uID=?");
ps1.setString(1,uID);
ResultSet re=ps1.executeQuery(); It is posible that re will be null. -
Exmpl of Servlet connect with ORacle
Hi folks,
Can anyone send me example of Java Servlet connectivity with Oracle.
i m not able to connect servlet with oracle.
u guys can reply me on [email protected]
thanks
dal hitNo.
The code for connecting to Oracle from a Servlet is no different from connecting to Oracle from any other Java application. So tell you what, you show us what you've tried and the error message(s) and we'll help you debug it.
99.999% of the time it's a failure to put the driver Jar file into the classpath, the specifics of which vary from application server to application server. Which one are you using?
u guys can reply me on [email protected]
We can, but we won't. This is not your personal bugfixing service. Pay if you want that kind of help. If you want it for free, do it through the forums or go away.
Probably you'll never read this response, but that's your problem not mine. -
Help with circumvention of ORA-01472: cannot use connect by on view with ..
Hi,
Any help resolving the following would be v. helpful.
The Aim
Produce a hierarchical report of all users and the privileges they have via the various roles they are granted.
The SQL
select lpad(' ', level*2,' ')|| granted_role from (select grantee, granted_role
from dba_role_privs
union
select role, granted_role
from role_role_privs
union
select role, privilege
from role_sys_privs
union
select 'All users', username
from dba_users)
start with grantee='All users'
connect by prior granted_role = grantee;
The error
ORA-0147: cannot use connect by on view with DISTINCT, GROUP BY, etc.
The database
Oracle 8.1.7.4 (Yes I know ....)
The Solution
[Thanks in advance]What if you create a table first
create table role_grants as
select granted_role, grantee
from (select grantee, granted_role
from dba_role_privs
union
select role, granted_role
from role_role_privs
union
select role, privilege
from role_sys_privs
union
select 'All users', username
from dba_users)
Then run the hierarchical report
select lpad(' ', level*2,' ')|| granted_role
from role_grants
start with grantee='All users'
connect by prior granted_role = grantee -
ORA-12519: too many new conenctions
Hello,
with 10.2 XE the number of PROCESSORS is limited to 40, the Problem exists with the Listener that it quickly starts to refuse new connections with ORA-12519, even when the maximum number of connects at the same time is not reached. At least this is the situation as I understand it from metalink 424566.995: the problem is, that the listener counts new connections, but only seldomly gets the number of closed conenctions from the instance.
For my application with connection pools this is not a big issue, however I have a ANT script which installs the application and this unfortunatelly triggers the problem often, because connections are not recycled.
I wonder if it is "legal" and "possible" to increase processrs/sessions or better configure the listner to not reject those connections. It does not look like it is allowing me 50 connections anyway.
Interesting enough lsnctrl (verbose display mode) does not show any rejects (but I see them in the logfile) and I cant see a way to read listeners' concurrency limit?
logfile Looks like:
04-NOV-2005 18:22:01 * service_update * xe * 0
04-NOV-2005 18:22:01 * (CONNECT_DATA=(SID=XE)(CID=(PROGRAM=C:\BISopenXE\runtime\jvm\bin\java.exe)(HOST=ECKENFELS03)(USER=Eckenfel))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=3672)) * establish * XE * 0
04-NOV-2005 18:22:01 * (CONNECT_DATA=(SID=XE)(CID=(PROGRAM=C:\BISopenXE\runtime\jvm\bin\java.exe)(HOST=ECKENFELS03)(USER=Eckenfel))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=3673)) * establish * XE * 0
04-NOV-2005 18:22:01 * (CONNECT_DATA=(SID=XE)(CID=(PROGRAM=C:\BISopenXE\runtime\jvm\bin\java.exe)(HOST=ECKENFELS03)(USER=Eckenfel))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=3674)) * establish * XE * 0
04-NOV-2005 18:22:01 * (CONNECT_DATA=(SID=XE)(CID=(PROGRAM=C:\BISopenXE\runtime\jvm\bin\java.exe)(HOST=ECKENFELS03)(USER=Eckenfel))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=3675)) * establish * XE * 0
04-NOV-2005 18:22:02 * (CONNECT_DATA=(SID=XE)(CID=(PROGRAM=C:\BISopenXE\runtime\jvm\bin\java.exe)(HOST=ECKENFELS03)(USER=Eckenfel))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=3676)) * establish * XE * 0
04-NOV-2005 18:22:02 * (CONNECT_DATA=(SID=XE)(CID=(PROGRAM=C:\BISopenXE\runtime\jvm\bin\java.exe)(HOST=ECKENFELS03)(USER=Eckenfel))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=3677)) * establish * XE * 0
04-NOV-2005 18:22:02 * (CONNECT_DATA=(SID=XE)(CID=(PROGRAM=C:\BISopenXE\runtime\jvm\bin\java.exe)(HOST=ECKENFELS03)(USER=Eckenfel))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=3678)) * establish * XE * 0
04-NOV-2005 18:22:02 * (CONNECT_DATA=(SID=XE)(CID=(PROGRAM=C:\BISopenXE\runtime\jvm\bin\java.exe)(HOST=ECKENFELS03)(USER=Eckenfel))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=3679)) * establish * XE * 0
04-NOV-2005 18:22:02 * (CONNECT_DATA=(SID=XE)(CID=(PROGRAM=C:\BISopenXE\runtime\jvm\bin\java.exe)(HOST=ECKENFELS03)(USER=Eckenfel))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=3680)) * establish * XE * 0
04-NOV-2005 18:22:02 * (CONNECT_DATA=(SID=XE)(CID=(PROGRAM=C:\BISopenXE\runtime\jvm\bin\java.exe)(HOST=ECKENFELS03)(USER=Eckenfel))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=3682)) * establish * XE * 0
04-NOV-2005 18:22:02 * (CONNECT_DATA=(SID=XE)(CID=(PROGRAM=C:\BISopenXE\runtime\jvm\bin\java.exe)(HOST=ECKENFELS03)(USER=Eckenfel))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=3683)) * establish * XE * 0
04-NOV-2005 18:22:02 * (CONNECT_DATA=(SID=XE)(CID=(PROGRAM=C:\BISopenXE\runtime\jvm\bin\java.exe)(HOST=ECKENFELS03)(USER=Eckenfel))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=3684)) * establish * XE * 0
04-NOV-2005 18:22:03 * service_update * CLRExtProc * 0
04-NOV-2005 18:22:03 * (CONNECT_DATA=(SID=XE)(CID=(PROGRAM=C:\BISopenXE\runtime\jvm\bin\java.exe)(HOST=ECKENFELS03)(USER=Eckenfel))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=3685)) * establish * XE * 0
04-NOV-2005 18:22:03 * (CONNECT_DATA=(SID=XE)(CID=(PROGRAM=C:\BISopenXE\runtime\jvm\bin\java.exe)(HOST=ECKENFELS03)(USER=Eckenfel))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=3686)) * establish * XE * 0
04-NOV-2005 18:22:03 * (CONNECT_DATA=(SID=XE)(CID=(PROGRAM=C:\BISopenXE\runtime\jvm\bin\java.exe)(HOST=ECKENFELS03)(USER=Eckenfel))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=3687)) * establish * XE * 0
04-NOV-2005 18:22:03 * (CONNECT_DATA=(SID=XE)(CID=(PROGRAM=C:\BISopenXE\runtime\jvm\bin\java.exe)(HOST=ECKENFELS03)(USER=Eckenfel))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=3688)) * establish * XE * 0
04-NOV-2005 18:22:04 * (CONNECT_DATA=(SID=XE)(CID=(PROGRAM=C:\BISopenXE\runtime\jvm\bin\java.exe)(HOST=ECKENFELS03)(USER=Eckenfel))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=3689)) * establish * XE * 0
04-NOV-2005 18:22:04 * (CONNECT_DATA=(SID=XE)(CID=(PROGRAM=C:\BISopenXE\runtime\jvm\bin\java.exe)(HOST=ECKENFELS03)(USER=Eckenfel))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=3690)) * establish * XE * 12519
TNS-12519: TNS:no appropriate service handler found
04-NOV-2005 18:22:04 * service_update * xe * 0
In this case I have 18 conenctions in 4 seconds where the last one was rejected.
Anybody can help?
BerndThe system does not enforce a limit to the number of processes or sessions. You may change the parameters to meet your needs.
Do note that increasing either parameter will use more memory. The amount will be based on the application requirements so it's not possible to give a blanket answer to "how many before we use up the 1GB RAM limit?"
To determine your current per-process memory use, I recomend reading Tom Kyte's "Expert Oracle Database Architecture ..." (http://www.apress.com/book/bookDisplay.html?bID=10008) which will explain the numbers derived from the simple SQL statements. -
ORA-12519, TNS:no appropriate service handler found on OdiSqlUnload
Hi all,
I'm using OdiSqlUnload in a target code of a procedure, where the output of the source code is the parameter.I'm using the source connection as parameters to the target connections:
OdiSqlUnload "-FILE=#filename" "-DRIVER=<%=odiRef.getInfo("SRC_JAVA_DRIVER")%>" "-URL=<%=odiRef.getInfo("SRC_JAVA_URL")%>" "-USER=<%=odiRef.getInfo("SRC_USER_NAME")%>" "-PASS=<%=odiRef.getInfo("SRC_ENCODED_PASS")%>" -FILE_FORMAT=variable "-FIELD_SEP=," "-ROW_SEP=;" "-DATE_FORMAT=yyyyMMddHHmmss"
It loops ok for a few times but then I get ORA-12519, TNS:no appropriate service handler found error.
Do you have an idea, or do you think the best way to export the data to csv using regular IKMs?
NimrodSource:
SELECT mvno_id, mvno_name
FROM (SELECT DISTINCT mvno_id, mvno_name
FROM <?=snpRef.getObjectName("L", "COS_TO_MVNO", "ODI_USER", "", "D") ?>
WHERE EXISTS
(SELECT 1
FROM <?=snpRef.getObjectName("L", "CDRS_TO_EXPORT", "ODI_USER", "", "D") ?>
WHERE CDRS_TO_EXPORT.mvno_id = COS_TO_MVNO.mvno_id))
Target:
OdiSqlUnload "-FILE=#V_BASE_DIR/#MVNO_NAME/gprs/GPRS_#WHOLESALE_SEQ_NEXTVAL.csv" "-DRIVER=<%=odiRef.getInfo("SRC_JAVA_DRIVER")%>" "-URL=<%=odiRef.getInfo("SRC_JAVA_URL")%>" "-USER=<%=odiRef.getInfo("SRC_USER_NAME")%>" "-PASS=<%=odiRef.getInfo("SRC_ENCODED_PASS")%>" -FILE_FORMAT=variable "-FIELD_SEP=," "-ROW_SEP=;" "-DATE_FORMAT=yyyyMMddHHmmss" "-DATE_FORMAT=yyyyMMddHHmmss"
WITH Samso_NPA_NXX_VH
AS (SELECT HOME_SID, npa, nxx
FROM <?=snpRef.getObjectName("L", "SAMSON_NPA_NXX_VH", "REPORT", "", "D") ?>
WHERE expiration_date IS NULL)
SELECT Event_Parameter1,
#MVNO_ID,
wholesale_seq.NEXTVAL,
event_parameter14,
event_parameter17,
Answer_Time,
Event_Parameter18,
Event_Parameter15,
(SELECT HOME_SID
FROM Samso_NPA_NXX_VH
WHERE NPA || NXX = SUBSTR (Event_Parameter17, 0, 6)),
NULL,
Event_Parameter19,
NULL,
NULL,
Event_Parameter5,
Event_Parameter13,
NULL,
Event_Parameter4,
PRICE_ITEM_ID1,
Event_Parameter5 * Event_Parameter14,
Event_Parameter4,
Event_Parameter23,
Event_Parameter20,
Event_Parameter21,
BILLING_NUMBER,
transaction_time,
Event_Parameter24,
Event_Parameter22
FROM <?=snpRef.getObjectName("L", "CDR_PARTITIONED", "USAGE", "", "D") ?>, <?=snpRef.getObjectName("L", "CDRS_TO_EXPORT", "ODI_USER", "", "D") ?>
WHERE UPPER (Event_Parameter1) = 'DATA'
AND <?=snpRef.getObjectName("L", "CDR_PARTITIONED", "USAGE", "", "D") ?>.transaction_time =
<?=snpRef.getObjectName("L", "CDRS_TO_EXPORT", "ODI_USER", "", "D") ?>.day
AND <?=snpRef.getObjectName("L", "CDR_PARTITIONED", "USAGE", "", "D") ?>.SERVER_ID =
<?=snpRef.getObjectName("L", "CDRS_TO_EXPORT", "ODI_USER", "", "D") ?>.SERVER_ID
AND <?=snpRef.getObjectName("L", "CDR_PARTITIONED", "USAGE", "", "D") ?>.SYS_DR_NUMBER =
<?=snpRef.getObjectName("L", "CDRS_TO_EXPORT", "ODI_USER", "", "D") ?>.sys_dr_number
AND <?=snpRef.getObjectName("L", "CDR_PARTITIONED", "USAGE", "", "D") ?>.parent =
<?=snpRef.getObjectName("L", "CDRS_TO_EXPORT", "ODI_USER", "", "D") ?>.parent
AND <?=snpRef.getObjectName("L", "CDR_PARTITIONED", "USAGE", "", "D") ?>.child_index =
<?=snpRef.getObjectName("L", "CDRS_TO_EXPORT", "ODI_USER", "", "D") ?>.child_index
AND <?=snpRef.getObjectName("L", "CDR_PARTITIONED", "USAGE", "", "D") ?>.BILL_CYCLE_ID =
<?=snpRef.getObjectName("L", "CDRS_TO_EXPORT", "ODI_USER", "", "D") ?>.bill_cycle_id
AND <?=snpRef.getObjectName("L", "CDR_PARTITIONED", "USAGE", "", "D") ?>.LRE_ID =
<?=snpRef.getObjectName("L", "CDRS_TO_EXPORT", "ODI_USER", "", "D") ?>.lre_id
AND <?=snpRef.getObjectName("L", "CDRS_TO_EXPORT", "ODI_USER", "", "D") ?>.mvno_id = #MVNO_ID -
Pool cache exhausted ORA-12519 JDBC Driver configured. Quid for database ?
Hello,
I'm developping a java application (1.5) with threads (500). I'm using ojdbc14.jar to connect to my database (Oracle 10.2).
I'm using a pool (oracle.jdbc.pool.OracleConnectionCacheManager).
InitialLimit is 30.
MaxLimit is 100 for tests but production value isn't defined yet.
After 33 concurrents connections, my pool is exhausted.
OracleDataSource.getConnection() throws an SqlException with error code : ORA-12519: TNS:no appropriate service handler found.
So, I would like to configure database to allow more than 33 actives connections.
I searched inside listener.ora but found nothing. I'm loosing mysel inside data dictionnary and don't find nothing on www.oracle.com, forums.oracle.com or even google.
How can I configure properly database whether it is possible ?
Else what can I do to improve number of maximum connections.
I guess JDBC driver is limited by database configuration.
Thanks a lot.I am also facing a similar problem, can any one let me know how this can be addressed?
TIA,
-Sethu -
hi,
i am getting the following error
ORA-12519, TNS:no appropriate service handler found
The Connection descriptor used by the client was:
192.168.3.23:1521:SCGDB
can anyone help me
Thanks in advance..
Edited by: 944090 on Jul 30, 2012 2:18 AMORA-12519, TNS:no appropriate service handler found
$ oerr ora 12519
12519, 00000, "TNS:no appropriate service handler found"
// *Cause: The listener could not find any available service handlers that
// are appropriate for the client connection.
// *Action: Run "lsnrctl services" to ensure that the instance(s) have
// registered with the listener, and are accepting connections.
$ -
ORA-12519: TNS:no appropriate service handler found tips
i have faced this error when i am insert data by using for loop for 200 rows .
ORA-12519: TNS:no appropriate service handler found tips
i select the this query but how can i solve this problem.
select * from v$resource_limit where resource_name = 'processes';
RESOURCE_NAME CURRENT_UTILIZATION MAX_UTILIZATION LIMIT_VALUE
processes 148 150 150 i mean which value should i update.
regards
Ayham
Edited by: Ayham on Nov 28, 2012 9:57 PMAyham wrote:
i have faced this error when i am insert data by using for loop for 200 rows .What are you trying to do, can you plz post the process which u were trying to run..?
Also why do u want to update oracle parameters instead of solving the base issue.
Oracle docs note this about ORA-12519:
ORA-12519: TNS:no appropriate service handler found
Cause: The listener could not find any available service handlers that are appropriate for the client connection.
Action: Run "lsnrctl services" to ensure that the instance(s) have registered with the listener, and are accepting connections.
This is something about the error. Try the action point there.
Cheers,
Manik. -
Constantly facing JBO-26061, ORA-12519, ORA-12516
Hi,
I am using Jdev 11.1.1.2.0 with ADF 11g.
I am constantly facing JBO-26061, ORA-12519, ORA-12516 errors. I have tried many things like
1. Increasing the connection pool size
2. Defining locking mechanism as 'optimistic'
3. Changed Inactive connection timeout to 180
There is no code of opening a txn, but there is a code where I call getDBTransaction method on a VOImpl, but only where needed.
Many times application suddenly becomes creeping slow.
Can any one help or give clues? Need to get this resolved desparately.I suggest if you're desperate, lodge an SR with Oracle Support. Relying on a public forum for instant help is a recipe for no-progress-anytime-soon.
CM. -
ORA-12519...shared/dedicated
Hi,
I installed oracle 10g express edition. I need to access the database from two machines using different users. However, the second user can not access the database and get the following error:
Caused by: java.sql.SQLException: [tibcosoftwareinc][Oracle JDBC Driver][Oracle]
ORA-12519 The listener could not find any available service handlers that are ap
propriate for the client connection. One possible cause for this error is that t
he server was not configured for the specified server type (shared/dedicated).
I have read the documentation on http://download-uk.oracle.com/docs/cd/B14117_01/server.101/b10739/manproc.htm.
I have tried the following:
1. Change (SERVER = DEDICATED) to (SERVER = SHARED) in tnsnames.ora.
2. Change
dispatchers="(PROTOCOL=TCP) (SERVICE=XE)(DISPATCHERS=50)"
shared_servers=50
in
SPFILE='C:\oraclexe\app\oracle\product\10.2.0\server\dbs/spfileXE.ora' (This line is in initXE.ora).
But I still get the same error. What could be the issue?
Thank you for your help in advance.
ShuwenThis should work with dedicated servers, you don't need to setup shared servers. Check that the XE instance has registered against the listener, and it allows incoming connections. This could be due to another reason different from the connectivity issue. Check the alertXE.log and find out if there are other error messages listed there.
~ Madrid -
ASM instance crash due to error ORA-27506: IPC error connecting to a port
Hi All,
Today the ASM instance goes down.
When i checked the alert log I found the below error.
ORA-27506: IPC error connecting to a port
ORA-27300: OS system dependent operation:sendmsg failed with status: 22
ORA-27301: OS failure message: Invalid argument
ORA-27302: failure occurred at: sskgxpsnd1
Please find the environment details.
OS : RHEL-5
DB: 11.1.0.7 2-node RAC
I want to know the root cause of this issue.
Please suggest.
Thanks and Regards,Hi,
Could you please upload cluster alert log and cssd.log?
regards,
Kishore
Maybe you are looking for
-
ACS 5.3, delete local backup files.
Hello. I'm doing a basic setup of ACS 5.3. For now, I'm configuring backup to a local repository repository Backup url disk:/Backup How can I automatically delete old files? I need to keep only the last seven files. Thanks. Andrea
-
Regarding the performance in report
Hi Abap Gurus, i am working on the report. my requirement is that after executing the report data gets extracting after 11 hours.the required data is comonf perfectly. how to improve the performance. any tips to follow the
-
How do I replace a defective font in CC?
Both Photoshop and Premiere Pro report Trajan Pro and Trajan Pro Bold as defective. I need to find a way to reload them (all other fonts appear okay). Any clue where to go for this? Thanks, Jay
-
How do i manage my music in the cloud that goes to my phone
????
-
It seems that after the 10.2.1.2102 update, new photos are not added to 'pictures'- they are accessible via file manager but without thumbnails. Is there a workaround or must I uninstall the update and if so, how do I do that?