Random ORA-24327 errors
Enviornment:
SPARC, SunOS 5.8
Weblogic 5.1.0 Service Pack 6
Oracle 8.1.6.1 (installed in another Sun box)
driver=weblogic.jdbc20.oci.Driver
url=jdbc20:weblogic:oracle
We created 30 Initial Connections during startup which was successful. During Load test, there are many ORA-24327 errors started coming and we havenot reached the MaxCapacity (99). We did similar test couple of weeks back and not seen this error.
Oracle is not of much help since we are using WebLogic OCI driver and not their drivers (thats what told). I read many papers and not found any info.
Again, the application works and its able to make connections (NO problem with TNSNAMES.ORA file) and no error coming during startup.
Oracle is almost never helpful.
For stability and performance you should configure the pool
to make all the connections you need at startup. Set initial capacity = max capacity.
If the server boots fine, and creates all your connections, you should be OK, and
run faster too. If it doesn't make all the connections, you are either over your
Oracle license limit, or out of file descriptors in the OS process running the
JVM. Oracle's OCI library is very wasteful of file descriptors (3 per connection)
Ravy Srinivasan wrote:
>
Enviornment:
SPARC, SunOS 5.8
Weblogic 5.1.0 Service Pack 6
Oracle 8.1.6.1 (installed in another Sun box)
driver=weblogic.jdbc20.oci.Driver
url=jdbc20:weblogic:oracle
We created 30 Initial Connections during startup which was successful. During Load test, there are many ORA-24327 errors started coming and we havenot reached the MaxCapacity (99). We did similar test couple of weeks back and not seen this error.
Oracle is not of much help since we are using WebLogic OCI driver and not their drivers (thats what told). I read many papers and not found any info.
Again, the application works and its able to make connections (NO problem with TNSNAMES.ORA file) and no error coming during startup.
Similar Messages
-
When I try to install and configure the Oracle JDriver v.2.0 to work with Commerce
Server 3.5 SP1 and WebLogic Server 6.0 SP2, on starting up the commerce server,
I get the exceptions that follow this message. I cannot run the dbping utility
because it says it cannot find the BEA license file to verify that JDriver is
licensed for use. I looked over previous discussion threads on this particular
Oracle error, and the problem in the previous cases appears to have been use of
the wrong TNS name. I am referencing the same TNS name that is in my server's
tnsnames.ora file. I can connect to the database using SQLNet and the same connection
parameters that I have set up in weblogic. My Oracle home directory is set to
the directory just above the client install. I am trying to configure Commerce
Server on a Sun SPARC system running Solaris 8. Any help would be greatly appreciated.
Thanks,
Jon Morgan
---------- LOGIN ERROR CODE: 24327
java.sql.SQLException: Error while trying to retrieve text for error ORA-24327
(WEBLOGIC/********@ARBR.intelixinc)
at weblogic.db.oci.OciConnection.getLDAException(OciConnection.java:161)
at weblogic.jdbcbase.oci.Driver.connect(Driver.java:92)
at com.beasys.commerce.axiom.contact.security.RDBMSDelegate.init(RDBMSDe
legate.java:194)
at com.beasys.commerce.axiom.contact.security.RDBMSDelegate.<init>(RDBMS
Delegate.java:139)
at com.beasys.commerce.axiom.contact.security.RDBMSDelegate$DFactory.get
Instance(RDBMSDelegate.java:975)
at com.beasys.commerce.util.Pool.<init>(Pool.java:37)
at com.beasys.commerce.axiom.contact.security.RDBMSRealm.<init>(RDBMSRea
lm.java:127)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at weblogic.security.acl.Realm.getRealm(Realm.java:84)
at weblogic.security.acl.Realm.getRealm(Realm.java:62)
at weblogic.security.SecurityService.initializeRealm(SecurityService.jav
a:265)
at weblogic.security.SecurityService.initialize(SecurityService.java:123
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:343)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:169)
at weblogic.Server.main(Server.java:35)
<Aug 7, 2001 11:50:29 AM EDT> <Emergency> <Server> <Unable to initialize the ser
ver: 'Fatal initialization exception
Throwable: java.lang.IllegalAccessError: com.beasys.commerce.axiom.contact.secur
ity.RDBMSException: realm initialization failed, action 'Driver.connect', - wit
h nested exception:
[java.sql.SQLException: Error while trying to retrieve text for error ORA-24327
- (WEBLOGIC/********@ARBR.intelixinc)]
java.lang.IllegalAccessError: com.beasys.commerce.axiom.contact.security.RDBMSEx
ception: realm initialization failed, action 'Driver.connect', - with nested
ex
ception:
[java.sql.SQLException: Error while trying to retrieve text for error ORA-24327
- (WEBLOGIC/********@ARBR.intelixinc)]
at weblogic.security.acl.Realm.getRealm(Realm.java:91)
at weblogic.security.acl.Realm.getRealm(Realm.java:62)
at weblogic.security.SecurityService.initializeRealm(SecurityService.jav
a:265)
at weblogic.security.SecurityService.initialize(SecurityService.java:123
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:343)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:169)
at weblogic.Server.main(Server.java:35)
'>
The WebLogic Server did not start up properly.
Exception raised: java.lang.IllegalAccessError: com.beasys.commerce.axiom.contac
t.security.RDBMSException: realm initialization failed, action 'Driver.connect',
- with nested exception:
[java.sql.SQLException: Error while trying to retrieve text for error ORA-24327
- (WEBLOGIC/********@ARBR.intelixinc)]
java.lang.IllegalAccessError: com.beasys.commerce.axiom.contact.security.RDBMSEx
ception: realm initialization failed, action 'Driver.connect', - with nested
ex
ception:
[java.sql.SQLException: Error while trying to retrieve text for error ORA-24327
- (WEBLOGIC/********@ARBR.intelixinc)]
at weblogic.security.acl.Realm.getRealm(Realm.java:91)
at weblogic.security.acl.Realm.getRealm(Realm.java:62)
at weblogic.security.SecurityService.initializeRealm(SecurityService.jav
a:265)
at weblogic.security.SecurityService.initialize(SecurityService.java:123
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:343)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:169)
at weblogic.Server.main(Server.java:35)
Reason: Fatal initialization exceptionWrong Forum, you want the APEX LISTENER support forum, this is the APEX support forum..
Thank you,
Tony Miller
LuvMuffin Software -
Weblogic6.1-------ORACLE9I-----ORA-24327
when creating Connection Pool it report ORA-24327 error;
I use the 6.1 sp3, ORACLE 9i
username=sysman; the database is running
when using dbping it report license error
can somebody tell me why?Check you license file and make sure it is not expired. Make sure you
have license file path in you classpath and then try dbping utility
before starting weblogic server to make sure your environment is set.
Thanks,
Mitesh
zzwzyz wrote:
when creating Connection Pool it report ORA-24327 error;
I use the 6.1 sp3, ORACLE 9i
username=sysman; the database is running
when using dbping it report license error
can somebody tell me why? -
Error while trying to retrieve text for error ORA-24327
Hi,
I'm using Weblogic OCI driver to connect to Oracle 9.2.0.3 DB. WLS version
is 7.0 SP3. I'm encountering an error when I try to start the WLS " Error while
trying to retrieve text for error ORA-24327".
I've set the LD_LIBRARY_PATH to $ORACLE_HOME/lib32:$ORACLE_HOME/lib in addition
to $WL_HOME/lib/solaris/oci_920_8 as I read in other newsgroup.
Thanks in advance.
Cheers,
Kanda.VHi Mitesh,
Thanks for your suggestion. Looks like ORACLE_HOME and ORACLE_BASE need to
set in the $CLASSPATH variable. It's working now. Thanks once again.
Cheers,
Kanda.
Mitesh Patel <[email protected]> wrote:
Hi Kanda!
Also, use lib32 directory instead of $ORACLE_HOME/lib32:$ORACLE_HOME/lib
in
your environment for 920 jDdriver.
Then try java utils.dbping oracle user passwd databasename to see if
it is
successful meaning your environment is set for weblogic 920 jDriver.
Also,
make sure you have entry in your tnsnames.ora file for the database.
Thanks,
Mitesh
Kanda wrote:
Actually I've set it to oci920_8 which is correct isn't ?
Please advise.
Thanks.
Kanda.V
Mitesh Patel <[email protected]> wrote:
$WL_HOME/lib/solaris/oci_920_8 as I read in other newsgroup.
This should be oci920_8.
thanks,
Mitesh
Kanda wrote:
Hi,
I'm using Weblogic OCI driver to connect to Oracle 9.2.0.3 DB.
WLS
version
is 7.0 SP3. I'm encountering an error when I try to start the WLS
Error while
trying to retrieve text for error ORA-24327".
I've set the LD_LIBRARY_PATH to $ORACLE_HOME/lib32:$ORACLE_HOME/libin addition
to $WL_HOME/lib/solaris/oci_920_8 as I read in other newsgroup.
Thanks in advance.
Cheers,
Kanda.V -
Random JBO-27122 and ORA-01890 errors
hi All,
I am randomly getting this error. In Toad this query works always fine, but in web application raises this error from time to time (seldom). What can be a reason.
Thanks,
SNikiforov
JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (SELECT WfsSignIn.SSN, BhsSatLoc.LOC_DESC SAT_LOC, WFS.PK_WFS_SIGNOUT.sf_pft_check(WfsSignIn.SSN, WfsSignIn.EXAM_DATE ) PftY, WFS.PK_WFS_SIGNOUT.sf_h_check(WfsSignIn.SSN, WfsSignIn.EXAM_DATE ) HearingY, WFS.PK_WFS_SIGNOUT.sf_vis_check(WfsSignIn.SSN, WfsSignIn.EXAM_DATE ) VisionY, WFS.PK_WFS_SIGNOUT.sf_v_check(WfsSignIn.SSN, WfsSignIn.EXAM_DATE ) VitalY, WFS.PK_WFS_SIGNOUT.sf_f_check(WfsSignIn.SSN, WfsSignIn.EXAM_DATE ) FitnesslY, WFS.PK_WFS_SIGNOUT.sf_MM_check(WfsSignIn.SSN, WfsSignIn.EXAM_DATE ) MentorY, WFS.PK_WFS_SIGNOUT.sf_Consent_check(WfsSignIn.SSN, WfsSignIn.EXAM_DATE) Consent, WFS.PK_WFS_SIGNOUT.sf_D_check(WfsSignIn.SSN, WfsSignIn.EXAM_DATE ) DISY, WFS.PK_WFS_SIGNOUT.sf_B_check(WfsSignIn.SSN, WfsSignIn.EXAM_DATE ) BloodY, WFS.PK_WFS_SIGNOUT.sf_SA_check(WfsSignIn.SSN, WfsSignIn.EXAM_DATE ) SAMHY, FDNY_APP_DATE -TO_DATE('25-JUL-02', 'DD-MON-RR') wtc, trunc(:P_DATE) today, :P_DOC doc, substr(WfsSignIn.SSN,6,4) SSN4, WfsSignIn.EXAM_DATE, WfsSignIn.SIGN_IN_ID, WfsSignIn.USERID, WfsSignIn.FNAME, WfsSignIn.LNAME, ComFdemp.GENDER, WfsSignIn.RANK_CODE, WfsSignIn.UNIT_CODE, ComFdemp.WORK_LOCATION, WfsSignIn.WALK_IN, ComFdemp.BIRTH_DATE, PK_WFS_SIGNOUT.sf_sign_out(WfsSignIn.SSN) Can_Sign_Out, trunc(nvl(sf_empall_age(WfsSignIn.ssn),0)) Age, case when WfsSignIn.PHYSICIAN_CHECK ='Y' then 'Yes' else 'No' end PHYSICIAN_CHECK, sf_Emp_Cand_Name (WfsSignIn.ssn) Fullname, sf_get_title_wfs (WfsSignIn.ssn) title, WfsSignIn.SIGN_OUT, WfsSignIn.ANNUAL_YR ANNUALYR, 'Y' SIGNED_IN, pk_wfs.SF_GET_STATUS(WfsSignIn.ssn) Duty, rownum FROM HRIS.WFS_SIGN_IN WfsSignIn,EMP_CAND_V ComFdemp,bhs_sat_loc BhsSatLoc WHERE (WfsSignIn.SAT_LOC=:P_SAT_LOC or :P_SAT_LOC ='AA') and WfsSignIn.SAT_LOC = BhsSatLoc.SAT_LOC_CODE(+) and ComFdemp.Ssn=WfsSignIn.Ssn and not (nvl((WfsSignIn.SIGN_OUT),'N') in (decode(:P_Table,'Signed In','Y','N'),decode(:P_Table,'Signed In','A','N'))) and ( ( ((:P_FIELD is null or :P_FIELD='SSN') and WfsSignIn.SSN like '%'||:P_PARAM)and (ComFdemp.LNAME) like '%'||UPPER(:P_FNAME) ||'%') or (:P_FIELD='Name' and (ComFdemp.FNAME) like '%'||UPPER(:P_FNAME) ||'%' ) ) and WfsSignIn.EXAM_DATE=trunc(TO_DATE(:P_DATE)) and (:P_Table='Signed In' or :P_Table='Signed Out') union select ComFdemp.SSN, '00' SAT_LOC, 'No' PftY, 'No' HearingY, 'No' VisionY, 'No' VitalY, 'No' FitnessY, 'No' MentorY, 'No' Consent, 'No' DISY, 'No' BloodY, 'No' SAMHY, FDNY_APP_DATE -TO_DATE('25-JUL-02', 'DD-MON-RR') wtc, trunc(:P_DATE) today, :P_DOC doc, substr(ComFdemp.SSN,6,4) SSN4, trunc(TO_DATE(:P_DATE)) EXAM_DATE, 0 SIGN_IN_ID, to_char(null) USERID, ComFdemp.FNAME, ComFdemp.LNAME, ComFdemp.GENDER, ComFdemp.RANK_CODE, ComFdemp.UNIT_CODE, ComFdemp.WORK_LOCATION, 'No' WALK_IN, ComFdemp.BIRTH_DATE, null Can_Sign_Out, ROUND(nvl(sf_empall_age(ComFdemp.ssn),0)) Age, 'No' PHYSICIAN_CHECK, sf_Emp_Cand_Name (ComFdemp.ssn) Fullname, sf_get_title_wfs (ComFdemp.ssn) title, 'Z' SIGN_OUT, to_number(substr(to_char(TO_DATE(:P_DATE),'MM/DD/YYYY'),7,4)) ANNUALYR, decode((select count(*) from HRIS.WFS_SIGN_IN where ssn=ComFdemp.ssn and EXAM_DATE>=trunc(TO_DATE(:P_DATE))),0,'N','Y') SIGNED_IN, pk_wfs.SF_GET_STATUS(ComFdemp.ssn) Duty, rownum from EMP_CAND_V ComFdemp WHERE (((ComFdemp.SSN like '%'||:P_PARAM and (ComFdemp.LNAME) like '%'||UPPER(:P_FNAME) ||'%') ) ) and (:P_Table<>'Signed In' and :P_Table<>'Signed Out')) QRSLT ORDER BY SAT_LOC DESC
ORA-01890: NLS error detected
THIS IS THE VO
SELECT WfsSignIn.SSN,
BhsSatLoc.LOC_DESC SAT_LOC,
WFS.PK_WFS_SIGNOUT.sf_pft_check(WfsSignIn.SSN, WfsSignIn.EXAM_DATE ) PftY,
WFS.PK_WFS_SIGNOUT.sf_h_check(WfsSignIn.SSN, WfsSignIn.EXAM_DATE ) HearingY,
WFS.PK_WFS_SIGNOUT.sf_vis_check(WfsSignIn.SSN, WfsSignIn.EXAM_DATE ) VisionY,
WFS.PK_WFS_SIGNOUT.sf_v_check(WfsSignIn.SSN, WfsSignIn.EXAM_DATE ) VitalY,
WFS.PK_WFS_SIGNOUT.sf_f_check(WfsSignIn.SSN, WfsSignIn.EXAM_DATE ) FitnesslY,
WFS.PK_WFS_SIGNOUT.sf_MM_check(WfsSignIn.SSN, WfsSignIn.EXAM_DATE ) MentorY,
WFS.PK_WFS_SIGNOUT.sf_Consent_check(WfsSignIn.SSN, WfsSignIn.EXAM_DATE) Consent,
WFS.PK_WFS_SIGNOUT.sf_D_check(WfsSignIn.SSN, WfsSignIn.EXAM_DATE ) DISY,
WFS.PK_WFS_SIGNOUT.sf_B_check(WfsSignIn.SSN, WfsSignIn.EXAM_DATE ) BloodY,
WFS.PK_WFS_SIGNOUT.sf_SA_check(WfsSignIn.SSN, WfsSignIn.EXAM_DATE ) SAMHY,
FDNY_APP_DATE -TO_DATE('25-JUL-02', 'DD-MON-RR') wtc,
trunc(:P_DATE) today,
:P_DOC doc,
substr(WfsSignIn.SSN,6,4) SSN4,
WfsSignIn.EXAM_DATE,
WfsSignIn.SIGN_IN_ID,
WfsSignIn.USERID,
WfsSignIn.FNAME,
WfsSignIn.LNAME,
ComFdemp.GENDER,
WfsSignIn.RANK_CODE,
WfsSignIn.UNIT_CODE,
ComFdemp.WORK_LOCATION,
WfsSignIn.WALK_IN,
ComFdemp.BIRTH_DATE,
PK_WFS_SIGNOUT.sf_sign_out(WfsSignIn.SSN) Can_Sign_Out,
trunc(nvl(sf_empall_age(WfsSignIn.ssn),0)) Age,
case when WfsSignIn.PHYSICIAN_CHECK ='Y' then 'Yes'
else 'No' end PHYSICIAN_CHECK,
sf_Emp_Cand_Name (WfsSignIn.ssn) Fullname,
sf_get_title_wfs (WfsSignIn.ssn) title,
WfsSignIn.SIGN_OUT,
WfsSignIn.ANNUAL_YR ANNUALYR,
'Y' SIGNED_IN,
pk_wfs.SF_GET_STATUS(WfsSignIn.ssn) Duty,
rownum
FROM HRIS.WFS_SIGN_IN WfsSignIn,EMP_CAND_V ComFdemp,bhs_sat_loc BhsSatLoc
WHERE (WfsSignIn.SAT_LOC=:P_SAT_LOC or :P_SAT_LOC ='AA') and WfsSignIn.SAT_LOC = BhsSatLoc.SAT_LOC_CODE(+) and ComFdemp.Ssn=WfsSignIn.Ssn and not (nvl((WfsSignIn.SIGN_OUT),'N') in (decode(:P_Table,'Signed In','Y','N'),decode(:P_Table,'Signed In','A','N'))) and
((:P_FIELD is null or :P_FIELD='SSN') and WfsSignIn.SSN like '%'||:P_PARAM)and (ComFdemp.LNAME) like '%'||UPPER(:P_FNAME) ||'%') or
(:P_FIELD='Name' and (ComFdemp.FNAME) like '%'||UPPER(:P_FNAME) ||'%' )
and
WfsSignIn.EXAM_DATE=trunc(TO_DATE(:P_DATE)) and (:P_Table='Signed In' or :P_Table='Signed Out')
union
select
ComFdemp.SSN,
'00' SAT_LOC,
'No' PftY,
'No' HearingY,
'No' VisionY,
'No' VitalY,
'No' FitnessY,
'No' MentorY,
'No' Consent,
'No' DISY,
'No' BloodY,
'No' SAMHY,
FDNY_APP_DATE -TO_DATE('25-JUL-02', 'DD-MON-RR') wtc,
trunc(:P_DATE) today,
:P_DOC doc,
substr(ComFdemp.SSN,6,4) SSN4,
trunc(TO_DATE(:P_DATE)) EXAM_DATE,
0 SIGN_IN_ID,
to_char(null) USERID,
ComFdemp.FNAME,
ComFdemp.LNAME,
ComFdemp.GENDER,
ComFdemp.RANK_CODE,
ComFdemp.UNIT_CODE,
ComFdemp.WORK_LOCATION,
'No' WALK_IN,
ComFdemp.BIRTH_DATE,
null Can_Sign_Out,
ROUND(nvl(sf_empall_age(ComFdemp.ssn),0)) Age,
'No' PHYSICIAN_CHECK,
sf_Emp_Cand_Name (ComFdemp.ssn) Fullname,
sf_get_title_wfs (ComFdemp.ssn) title,
'Z' SIGN_OUT,
to_number(substr(to_char(TO_DATE(:P_DATE),'MM/DD/YYYY'),7,4)) ANNUALYR,
decode((select count(*) from HRIS.WFS_SIGN_IN where ssn=ComFdemp.ssn and EXAM_DATE>=trunc(TO_DATE(:P_DATE))),0,'N','Y') SIGNED_IN,
pk_wfs.SF_GET_STATUS(ComFdemp.ssn) Duty,
rownum
from EMP_CAND_V ComFdemp
WHERE (((ComFdemp.SSN like '%'||:P_PARAM and (ComFdemp.LNAME) like '%'||UPPER(:P_FNAME) ||'%') )
) and
(:P_Table<>'Signed In' and :P_Table<>'Signed Out')Hi,
how likely is it that your database is version 9.0 or older ? If so, the bug is fixed in 9.0.1. If my guess didn't hit bulls eye then you may need to provide more information about your environment. Also, a reproducible pattern would be good.
Frank -
Random ORA-12570: TNS:packet reader failure errors
We are seeing random ORA-12570: TNS:packet reader failure errors. Trace files regularly show the following entries:
2012-09-06 14:45:01.974959 : nttrd:entry
2012-09-06 14:45:23.327987 : ntt2err:entry
2012-09-06 14:45:23.328093 : ntt2err:soc 844 error - operation=5, ntresnt[0]=530, ntresnt[1]=53, ntresnt[2]=0
2012-09-06 14:45:23.328112 : ntt2err:exit
2012-09-06 14:45:23.328127 : nttrd:exit
2012-09-06 14:45:23.328177 : nserror:nsres: id=0, op=68, ns=12570, ns2=12560; nt[0]=530, nt[1]=53, nt[2]=0; ora[0]=0, ora[1]=0, ora[2]=0
Oracle Client is Server 2008 R2 on VMWare.Hi;
Please also review:
ORA-12570 ON CONNECTION ATTEMPT IN SERVER MANAGER WITH NO NETWORK CONNECTION [ID 91210.1]
But As mention here rise SR please
PS:Please dont forget to change thread status to answered if it possible when u belive your thread has been answered, it pretend to lose time of other forums user while they are searching open question which is not answered,thanks for understanding
Regard
Helios -
We are using weblogic 6.1, oracle 9i and solaris. We get login error message;
---------- LOGIN ERROR CODE: 24327
Here the Exception block in createConnection()
java.sql.SQLException: Error while trying to retrieve text for error ORA-24327 - (apps/********@apps1)
at weblogic.db.oci.OciConnection.getLDAException(OciConnection.java:164)
at weblogic.jdbc.oci.Driver.connect(Driver.java:112)
at PooledConnection.createConnection(ConnectionPool.java:116)
Any help would be much appreciated.
Thank you in advance.
-Saleh-Hi Saleh,
1. Set ORACLE_HOME properly
2. set LD_LIBRARY_PATH to properly point to the $ORACLE_HOME/lib32 folder.
hth
sree
"Saleh" <[email protected]> wrote in message
news:3d607885$[email protected]..
We are using weblogic 6.1, oracle 9i and solaris. We get login errormessage;
---------- LOGIN ERROR CODE: 24327
Here the Exception block in createConnection()
java.sql.SQLException: Error while trying to retrieve text for errorORA-24327 - (apps/********@apps1)
atweblogic.db.oci.OciConnection.getLDAException(OciConnection.java:164)
at weblogic.jdbc.oci.Driver.connect(Driver.java:112)
at PooledConnection.createConnection(ConnectionPool.java:116)
Any help would be much appreciated.
Thank you in advance.
-Saleh- -
ORA-12535 error but TNSPing Works and listener logs connection
We recently migrated our firewall and then started seeing this problem for users outside of our own subnet. However, although the user gets this error when launching the application, the workstation is able to TNSPing the server successfully and listener.log does log the connection.
I was hoping someone might have some ideas or suggestions as to what might be causing the error despite the apparent connectivity to the database.
Thanks in advance.Thanks so much for the suggestions.
1. telnet <host> 1521 connects
2. sqlplus <username>/<pwd>@<instance> returns the ORA-12535 error
Finally, the sqlnet.log on the client side doesn't log anything when launching the application so I have no information as to what exactly is occurring at that point. However, the sqlplus command above logged the following:
VERSION INFORMATION:
TNS for 32-bit Windows: Version 9.2.0.1.0 - Production
Windows NT TCP/IP NT Protocol Adapter for 32-bit Windows: Version 9.2.0.1.0 - Production
Time: 26-JAN-2007 08:43:41
Tracing not turned on.
Tns error struct:
nr err code: 0
ns main err code: 12535
TNS-12535: TNS:operation timed out
ns secondary err code: 12560
nt main err code: 505
TNS-00505: Operation timed out
nt secondary err code: 60
nt OS err code: 0
I've been doing more research on this -- please note that I'm not an Oracle dba so I am just getting familiar with lots of things -- and have learned that user connect requests come in through 1521 but are then randomly redirected to other ports. Given the new firewall, I'm wondering if it's an issue that the random ports being selected aren't open for the users outside of our subnet. Does this sound like a plausible explanation? If so, how do administrators generally handle this -- by opening the necessary ports on the firewall? Is there some other standard approach?
Again, thanks so much for any assistance you can provide. -
Random Connection Closed Errors using UCP
Hey All;
I am trying to figure out why we are seeing quite a few random connection closed errors in our applications that are using Oracle UCP ver 11.2.0.1.0 connection pooling.
The errors happen at arbitrary jdbc usage source code locations (e.g.: spots that check a connection's auto commit mode, spots that spool through a result set, spots that do yada..) that consume a connection, and are not affiliated with what is being done with the connection (SQL being ran).
The architecture is Tomcat 7, hitting Oracle 10g Enterprise Edition Release 10.2.0.4.0 (RAC). The structure of the code (it's a web app) is such that we have a servlet filter that assigns a http request thread a connection from the pool on an incoming request, then that same connection is closed at the completion of that request's handling. No code uses connections other than code related to handling an http request. And, no threads are spawned off of that request handling thread. And, no code whatsoever (other than the servlet filter's finally block) ever closes a DB connection.
Also, the number of connections in the pool is quite adequate for the usage of the pool. That is, the ceiling is likely never hit. Even if it were---- having an outstanding connection suddenly 'closed out' wouldn't be the proper behavior there.
What are the things that can cause a connection to be 'closed out from under you' ? Meaning, the connection is valid when taken from the pool, but arbitrarily in the middle of usage--- it gets closed.
I am pretty stumped at this point.
Any ideas?
Thanks--Here are a few sample stacks. Keep in mind that the line of code where the exception actually happens is arbitrary. We see the exception happen at ANY line that is a consumer of a connection. For example... it could happen that it blows up on the 'Nth' iteration while trucking through a result set. Suddenly at say... iteration 143 the connection is suddenly closed out from under the connection's handle.
As far as threads are concerned, each http request that creates a controller servlet instance is assigned it's own connection to use through the handling of that request. That connection instance is assigned as a ThreadLocal instance. Any DB usage that thread has is via that connection. The servlet filter ensures the handle is assigned when the request comes in, then is cleaned up as that request is completely handled in the same filter's finally block (this is a pattern that dozens of web apps we have have been using for going on 10 years now). This is not an ejb app. Straight Tomcat 7 web app using MVC pattern where C is a servlet.
The curious thing here in my mind is that we only have two apps in our collection that are using this new UCP pooling driver (most other are using a tomcat pool). And, only those two are seeing this behavior.
I am not balking at the threads concern--- it's just hard to square that with how we handle threading in such a 'single thread per http request' manner.
And, if it were the case that the pool is handing out the same connection handle to more than one thread because of having multiple entrant threads to the pool accessor method---- it's difficult to buy that it's that common for us to have multiple entrant threads at the same moment in those very short time span it takes for a pool to hand out a connection (given the traffic usage pattern for the app).
Here are the 'known deltas' I am aware of between the two apps that have this behavior, and the couple of dozen we have that do not:
1) these two apps are on Tomcat 7 (most others are Tom 5, Resin, or JBoss)
2) these two apps are using the Ora UCP pool. (most others use Tomcat pool)
~~~~~~~~~ Stack 1 ~~~~~~~~~~~~~~~~~~
01-Dec-2010 12:34:13.479 [ERROR] JDBCExceptionReporter: The connection is closed: The connection is closed
01-Dec-2010 12:34:13.479 [ERROR] PartsGroupingPanel: getDealersInventoryRow() pvid FO03348
org.hibernate.exception.GenericJDBCException: could not inspect JDBC autocommit mode
at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:91)
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:79)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
at org.hibernate.jdbc.JDBCContext.afterNontransactionalQuery(JDBCContext.java:228)
at org.hibernate.impl.SessionImpl.afterOperation(SessionImpl.java:437)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1134)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
at com.dmotorworks.partinventory.dao.ClientParametersDAO.getAllDealers(ClientParametersDAO.java:20)
~~~~~~~~~ Stack 2 ~~~~~~~~~~~~~~~~~~
01-Dec-2010 11:23:54.889 [ERROR] PartsSearchDAO: getDealerInventoryLineItemsNofN()
java.sql.SQLException: The connection is closed: The connection is closed
at oracle.ucp.util.UCPErrorHandler.newSQLException(UCPErrorHandler.java:526)
at oracle.ucp.util.UCPErrorHandler.newSQLException(UCPErrorHandler.java:510)
at oracle.ucp.jdbc.proxy.JDBCConnectionProxyFactory.invoke(JDBCConnectionProxyFactory.java:245)
at $Proxy0.prepareStatement(Unknown Source)
at com.dmotorworks.partinventory.dao.PartsSearchDAO.getDealerInventoryLineItemsNofN(PartsSearchDAO.java:246) -
I have a stored procedure that executes a query through a dblink to another database. The remote database is Oracle 8.1.7, the local database is Oracle 10.2.0. After making a minor change to the stored procedure, the procedure will not compile, issuing an ORA-00904 error for columns on the remote table being queried. Running the query outside the stored procedure works just fine. Compiling the procedure from our test server (also running Oracle 10.2.0) works fine. Attempts to return to previous code (without the minor change) also gets the same ORA-00904 error.
Anyone have any ideas regarding the cause of this error?I'm going to answer my own question:
Apparently, links to databases older than 9i can sometimes (perhaps at random) have the local cache in the shared pool get corrupted. The Oracle notes I saw do not describe exactly how the cache gets corrupted. This appears to be a longstanding bug without a solution - only a work around.
The work around is to flush the cache:
alter system flush shared pool;
The most relevant Metalink document I found was
Note:397658.1
https://metalink.oracle.com/metalink/plsql/f?p=130:14:1002445788225491569::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,397658.1,1,1,1,helvetica -
Ora-00604 error and ora 01000 error while report generation.
hi all,
I am trying to generate the multiple reports of same template through a program.
While this job is running, i get the following error at the BIP console and the reports don't get generated.
[101711_044115578][][EXCEPTION] java.sql.SQLException: ORA-00604: error occurred
at recursive SQL level 1
ORA-01000: maximum open cursors exceeded
ORA-00604: error occurred at recursive SQL level 1
ORA-01000: maximum open cursors exceeded
ORA-01000: maximum open cursors exceeded
Kindly help.
Thanks.Lots of resources with a simple search to see what this is about, for example:
http://www.orafaq.com/wiki/ORA-01000
ORA-01000: maximum open cursors exceeded
Cause: A host language program attempted to open too many cursors. The initialization parameter OPEN_CURSORS determines the maximum number of cursors per user.
Action: Modify the program to use fewer cursors. If this error occurs often, shut down Oracle, increase the value of OPEN_CURSORS, and then restart Oracle.
open_cursors parameter
http://download.oracle.com/docs/cd/E11882_01/server.112/e25513/initparams160.htm#REFRN10137
Oracle support note:
OERR: ORA-1000 maximum open cursors exceeded (Doc ID 18591.1) -
Ora-00604,ora-01422 error while dropping the table
Hi gurus,
I am using Oracle 10g R2 on windows 2000 platform,while dropping the table the following error occured.
ORA-00604 : error occurred at recursive sql level 1.
ORA-01422: exact fetch returns more than requested number of rows.
Need urgent help.
Thanks in advanceIs there an AFTER EVENT trigger defined on this database? Can you check that?
Secondly, was this database migrated from earlier version? I remember having seen this problem on 9i (it was 9.2.0.1 or 9.2.0.2; I can't recall exactly). -
Ora 600 error Arguments [25012] [11]
hi,
i've an ORA-00600: error Arguments [25012], [2], [11], [], [], [], [], [] by DELETE FROM table WHERE filed = :b1
ther are only 8 file in database. (not 11)
Can anybody help, or give me an information about Bug number: 742709
OS NT 4 / SP6 ORACLE RDBMS Version: 8.0.5.2.1.
Thank in advice
JFATrace File Contents:
============================================================================================
[oracle@oem trace]$ more /d01/app/guest/diag/rdbms/db11g/db11g/incident/incdir_191809/db11g_smon_4198_i191809.trc
Dump file /d01/app/guest/diag/rdbms/db11g/db11g/incident/incdir_191809/db11g_smon_4198_i191809.trc
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORACLE_HOME = /d01/app/guest/product/11.2.0/dbhome_1
System name: Linux
Node name: oem.tap.com
Release: 2.6.18-164.el5xen
Version: #1 SMP Thu Sep 3 02:41:56 EDT 2009
Machine: i686
Instance name: db11g
Redo thread mounted by this instance: 1
Oracle process number: 13
Unix process pid: 4198, image: [email protected] (SMON)
*** 2010-10-15 12:05:24.395
*** SESSION ID:(16.1) 2010-10-15 12:05:24.395
*** CLIENT ID:() 2010-10-15 12:05:24.395
*** SERVICE NAME:(SYS$BACKGROUND) 2010-10-15 12:05:24.395
*** MODULE NAME:() 2010-10-15 12:05:24.395
*** ACTION NAME:() 2010-10-15 12:05:24.395
Dump continued from file: /d01/app/guest/diag/rdbms/db11g/db11g/trace/db11g_smon_4198.trc
ORA-00600: internal error code, arguments: [13013], [5001], [267], [8444108], [2], [8444108], [17], [], [], [], [], []
========= Dump for incident 191809 (ORA 600 [13013]) ========
*** 2010-10-15 12:05:24.399
dbkedDefDump(): Starting incident default dumps (flags=0x2, level=3, mask=0x0)
----- Current SQL Statement for this session (sql_id=dma0vxbwh325p) -----
update smon_scn_time set time_mp=:1, time_dp=:2, scn=:3, scn_wrp=:4, scn_bas=:5, num_mappings=:6, tim_scn_map=:7 where scn = (sele
ct min(scn) from smon_scn_time)
========================================================================================== -
Ora-01008 error with bind variable
Hi,
We have a test program which have one bind variable on a column which is varchar2(20), in the test program we've passed a 20 character string to the variable. The program returns error in one of the databases but all others are successful. We've checked the column is same in all of them.
Exception in thread "main" java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1
ORA-01008: not all variables bound
Could you please advise how to troubleshoot this issue?
RegardsWe aren't going to be able to help you if you won't post the database code that is giving the error.
And now we need the Java code that is constructing the query that you are using.
Your error is saying there is a second variable that you are not providing a value for.
And you said
>
We have a test program which have one bind variable on a column which is varchar2(20), in the test program we've passed a 20 character string to the variable.
>
But you are using a string that is 23 characters long
"a3g34-b13fd-efaie-f83fk"How does 23 go into 20? -
Getting error-ORA-24381: error(s) in array DML
Hi i have written the following code to bulk insert into a database table.
I am getting an error while returning the result of the bulk insert query into the collection
I have tried to track it by using sql%bulk_exceptions.error_code.
But the error code that it is showing is just 1.
I trapped it using sqlerrm.
and that is showing-error(s) in array DML
What do i do?
DECLARE
CURSOR temp_rec_tap_cur
IS
SELECT *
FROM temp_records_tap;
TYPE temp_rec_tab IS TABLE OF temp_rec_tap_cur%ROWTYPE;
v_test_tab temp_rec_tab;
v_rec_num num_tab;
v_filename temp_records_tap.file_name%TYPE;
v_error_code tap_reject.error_code%type;
v_rej_value tap_reject.field_rej%type;
v_errors number;
BEGIN
SELECT file_name
INTO v_filename
FROM table1
WHERE ROWNUM<2;
OPEN temp_rec_tap_cur;
LOOP
BEGIN
FETCH temp_rec_tap_cur
BULK COLLECT INTO v_test_tab LIMIT 1000;
FORALL i IN v_test_tab.FIRST .. v_test_tab.LAST SAVE EXCEPTIONS
INSERT INTO tapdetail_tapin
VALUES v_test_tab (i)
RETURNING record_num
BULK COLLECT INTO v_rec_num;
EXCEPTION
WHEN DUP_VAL_ON_INDEX
THEN
NULL;
WHEN OTHERS
THEN
v_errors:=sql%bulk_exceptions.count;
for i in 1..v_errors
loop
dbms_output.put_line(sql%bulk_exceptions(i).error_code);
p3_errorlog ('TAPINDETAWARE', SQLERRM, v_filename);
end loop;
END;
--RAISE;
EXIT WHEN temp_rec_tap_cur%NOTFOUND;
END LOOP;
INSERT INTO table2
SELECT file_id, file_name, sender_pmn, recipient_pmn, call_date,
call_date_only, call_type, call_number, FIRST_RECORD,
service_type, service_code, home_bid, serve_bid,
chargeable_subs_type, imsi_min, msisdn_mdn, air_charges,
air_charges_sdr, air_time, national_call_charges,
national_call_charges_sdr, national_call_time,
international_call_charges, international_call_charges_sdr,
international_call_time, dir_assist_charges,
dir_assist_charges_sdr, dir_assist_time, other_charges,
other_charges_sdr, other_time, volume_charges,
volume_charges_sdr, volume_units, tot_charges, tot_charges_sdr,
tot_duration, state_tax, state_tax_sdr, local_tax,
local_tax_sdr, state_and_use_tax, state_and_use_tax_sdr, va_tax,
va_tax_sdr, other_tax, other_tax_sdr, charge_refund_indicator,
advised_charge_currency, advised_charge, advised_charge_sdr,
advised_charge_commission, advised_charge_commission_sdr,
exchange_rate, mcc, mnc, process_date, chargeable_units,
record_num, mscid,null,null,decode(call_type,0,'250',1,'251',5,'255'),null,'Duplicate Call'
from temp_records_tap
where record_num not in (select column_value from table(v_rec_num)) ;
EXCEPTION
WHEN OTHERS THEN
p3_errorlog ('TAP', SQLERRM, v_filename);
END;Edited by: user8731258 on Sep 14, 2010 2:58 AM
Edited by: user8731258 on Sep 14, 2010 3:01 AMWhat is the type declaration of num_tab and how is record_num defined?
ORA-24381: error(s) in array DML
Cause: One or more rows failed in the DML.indicates that you fail on the insert itself. Are the table definitions the same? Same primary/unique keys?
Edited by: MBr on 14-Sep-2010 03:16
Maybe you are looking for
-
Safari crashes when trying to restore windows after Lion update.
I just got the OS X 10.7 Lion update, which I must say, is awesome. However, whenever I open Safari, it attempts to restore my previously opened windows, and freezes. After about 30 seconds, it closes and shows the crash report. When I start it up ag
-
System Landscape in Solution Manager
Hi, I wonder if in Solution Manager, one can produce a single report/transaction containing all the SAP System configured in SolMan and also the details of System Datas. For example. Client in each system, Hardware info and Support Packages installed
-
How could I check the deatails of my eos camera by the serial number?
I have bought a 60d camera , now I want to check the details of that. I have got the serial number, where could I use it? thanks.
-
need to get this xquartz stuff off as it turned out to be pointless thinking i would get inkscape to work on mtlion
-
Trying to figure out how to get my Windows 7 PC to map a drive to my new time capsule. It's not magically finding the disk. Any suggestions?