Oracle OCI Driver
Hi all,
We have a setup accessing an Oracle-database (9.0.1 and 9i) from a
java program using an Oracle thin driver like this:
jdbc:oracle:thin:@host:port:sid
This works fine. Now we wanted to try the OCI-driver for speed
comparision (mainly bypassing socket communication).
jdbc:oracle:oci8:@host:port:sid
This didn't work. We use the classes12.zip for Oracle 9.0.1. downloaded
from OTN. The error is:
java.lang.NoSuchFieldError: OCIEnvHandle
at oracle.jdbc.oci8.OCIDBAccess.make_c_state(Native Method)
at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:309)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:287)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:442)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:321)
at java.sql.DriverManager.getConnection(DriverManager.java:517)
at java.sql.DriverManager.getConnection(DriverManager.java:177)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:116)
at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPhysicalConnection(OracleConnectionPoolDataSource.java:98)
at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection(OracleConnectionPoolDataSource.java:77)
at de.otto.noa.standard.database.backend.ConnectionOracle.connect(ConnectionOracle.java:64)
The last line given is the first line in our own code.
The SHLIB_PATH points to the lib32 directories. If we set them to the lib directories
the error changes to :
java.lang.UnsatisfiedLinkError: /opt/oracle/app/oracle/product/9i/lib/libocijdbc9.sl: Exec format error
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:294)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:287)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:442)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:321)
at java.sql.DriverManager.getConnection(DriverManager.java:517)
at java.sql.DriverManager.getConnection(DriverManager.java:177)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:116)
at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPhysicalConnection(OracleConnectionPoolDataSource.java:98)
at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection(OracleConnectionPoolDataSource.java:77)
at de.otto.noa.standard.database.backend.ConnectionOracle.connect(ConnectionOracle.java:64)
Any suggestions on what to check up on?
Also I'd like to know whether it is correct that the Oracle 9 driver uses oci8?
regards,
Frieder Schenke
Hi Elango,
One cannot connect to the database using host:port:sid when using OCI driver. Strange.
It has to be a TNSname or a url .
jdbc:oracle:oci8:@(description=(address=(host=myhost)(protocol=tcp)(port=1521))(connect_data=(sid=orcl)))I tried this (adapted to our database of course) and also (because we have tnsnames.ora setup too):
jdbc:oracle:oci8:@tns_name
With the same effects. ('tnsping tns_name' works)
I think the problem lies somewhere else. The system doesn't even try to actually connect
before it throws that exception. Some driver incompatibility, I guess. But I don't know,
what I did wrong or where to look. Especially that 'Exec format error' is suspicious,
because we'd like to use 64bit if possible.
Also, for when this starts to work, I'd like to know how to make sure there is no socket
connection being used. I vaguely remember something like
jdbc:oracle:oci8:@beqlocal:tns_name
but I don't know the exact syntax. There are several database on that machine, so just
beqlocal wouldn't be enough, unless it also uses the environment-variable
ORACLE_SID
regards,
Frieder Schenke
PS : Peter is my team chef, I'm using his OTN account
Similar Messages
-
Oracle OCI driver stops working after a while of disuse
I am using wl server 8.1, oracle oci driver (oracle 9i client), on solaris.
When i create a connection pool using the oci driver, it connects, and i
test it, and the tests run fine.
The Application works for a few days. Then eventually after disuse, say over
the weekend, I get exceptions in the log (the message is at end of email).
This is because it gives me a sql exception saying it cannot resolve the
service name. The database is up and running, confirmed.
I tried testing the connection pool manually through the console, and it
failed with the service name exception. But it would connect fine when i
used sqlplus to connect to the databse, using the same service name.
Why does this deteriorate over time? Is there a specific test that would
prevent this from happening?
Once i restart the weblogic server, the connection pool connects fine. But
this is not a solution, since I can't be restarting the server all the time.
Any one got any ideas?
-Ayan
------------WEBLOGIC MANAGED SERVER LOG----------
####<Mar 27, 2004 4:20:57 AM EST> <Error> <JDBC><<WLS Kernel>> <>
<BEA-001112> <Test "SELECT 1 FROM DUAL" set up for pool "CRCPool2" failed
with exception: "java.sql.SQLException: ORA-03113: end-of-file on
communication channel
".>
####<Mar 27, 2004 4:20:57 AM EST> <Info> <JDBC> <<WLS Kernel>> <>
<BEA-001128> <Connection for pool "CRCPool2" closed.>
---------- and then eventually this----------
####<Mar 28, 2004 4:33:11 AM EST> <Warning> <JDBC> <<WLS Kernel>> <>
<BEA-001129> <Received exception while creating connection for pool
"CRCPool2": ORA-12154: TNS:could not resolve service name
>Ayan wrote:
I am using wl server 8.1, oracle oci driver (oracle 9i client), on solaris.
When i create a connection pool using the oci driver, it connects, and i
test it, and the tests run fine.
The Application works for a few days. Then eventually after disuse, say over
the weekend, I get exceptions in the log (the message is at end of email).
This is because it gives me a sql exception saying it cannot resolve the
service name. The database is up and running, confirmed.
I tried testing the connection pool manually through the console, and it
failed with the service name exception. But it would connect fine when i
used sqlplus to connect to the databse, using the same service name.
Why does this deteriorate over time? Is there a specific test that would
prevent this from happening?
Once i restart the weblogic server, the connection pool connects fine. But
this is not a solution, since I can't be restarting the server all the time.
Any one got any ideas?
-AyanHi. Is there a firewall between the weblogic server and DBMS? There is
a problem with OCI losing connectivity to the DBMS. OCI may be keeping
a socket open as long as the process (weblogic) is running.
Joe
------------WEBLOGIC MANAGED SERVER LOG----------
####<Mar 27, 2004 4:20:57 AM EST> <Error> <JDBC><<WLS Kernel>> <>
<BEA-001112> <Test "SELECT 1 FROM DUAL" set up for pool "CRCPool2" failed
with exception: "java.sql.SQLException: ORA-03113: end-of-file on
communication channel
".>
####<Mar 27, 2004 4:20:57 AM EST> <Info> <JDBC> <<WLS Kernel>> <>
<BEA-001128> <Connection for pool "CRCPool2" closed.>
---------- and then eventually this----------
####<Mar 28, 2004 4:33:11 AM EST> <Warning> <JDBC> <<WLS Kernel>> <>
<BEA-001129> <Received exception while creating connection for pool
"CRCPool2": ORA-12154: TNS:could not resolve service name -
ORA-01401 error on char column with oracle oci driver
Hello,
We found a potential bug in the kodo.jdbc.sql.OracleDictionary class
shipped as source with Kodo:
In newer Kodo versions (at least in 3.3.4), the method
public void setString (PreparedStatement stmnt, int idx, String
val, Column col)
has the following code block:
// call setFixedCHAR for fixed width character columns to get padding
// semantics
if (col != null && col.getType () == Types.CHAR
&& val != null && val.length () != col.getSize ())
((OraclePreparedStatement) inner).setFixedCHAR (idx, val);
This block seems to be intended for select statements but is called on
inserts/updates also. The latter causes a known problem with the Oracle
oci driver when settings CHAR columns as FixedCHAR, which reports an
ORA-01401 error (inserted value too large for column) when definitely no
column is too long. This does not happen with the thin driver.
We reproduced this with 8.1.7 and 9.2.0 drivers.
For us we solved the problem by subclassing OracleDictionary and removing
the new code block.
Regards,
Rainer Meyer
ELAXY Financial Software & Solutions GmbH & Co. KGRainer-
I read at
re:'ORA-01401 inserted value too large for column' - 9i that:
"This is fixed in Oracle9i Release 2"
Can you try that version of the driver? Also, does it fail in the Oracle
10 OCI driver?
Rainer Meyer wrote:
Hello,
We found a potential bug in the kodo.jdbc.sql.OracleDictionary class
shipped as source with Kodo:
In newer Kodo versions (at least in 3.3.4), the method
public void setString (PreparedStatement stmnt, int idx, String
val, Column col)
has the following code block:
// call setFixedCHAR for fixed width character columns to get padding
// semantics
if (col != null && col.getType () == Types.CHAR
&& val != null && val.length () != col.getSize ())
((OraclePreparedStatement) inner).setFixedCHAR (idx, val);
This block seems to be intended for select statements but is called on
inserts/updates also. The latter causes a known problem with the Oracle
oci driver when settings CHAR columns as FixedCHAR, which reports an
ORA-01401 error (inserted value too large for column) when definitely no
column is too long. This does not happen with the thin driver.
We reproduced this with 8.1.7 and 9.2.0 drivers.
For us we solved the problem by subclassing OracleDictionary and removing
the new code block.
Regards,
Rainer Meyer
ELAXY Financial Software & Solutions GmbH & Co. KG
Marc Prud'hommeaux
SolarMetric Inc. -
Using Oracle OCI Driver 8.1.6 in Compaq Tru64 fastVM
Hi!
I try to using Oracle OCI Driver in Compaq Tru64.
I used fast VM (with -fast option weblogic startup) then the result
during populating Connection Pool, weblogic server down with core dump
I attached core file.
is there anyone in this situation?
[weblogicOCITest.txt]Try using the 8.1.7 Thin Driver (the 8.1.6 Thin driver is buggy).
"jungil, kim" wrote:
Hi!
I try to using Oracle OCI Driver in Compaq Tru64.
I used fast VM (with -fast option weblogic startup) then the result
during populating Connection Pool, weblogic server down with core dump
I attached core file.
is there anyone in this situation?
^A^G^A^E}v^A^C^A^R^_!®.E^?^A@˜B^K!@”K!^W
!°o!ðµ.Ei^A@°R!Ø.E^AX^M^G!@”K!È´.E9i!Iweblogic/common/internal/ResourceAllocato
r_Descriptor.serX^M^G!@”K!.E"i!2/fsweblogic/weblogic/classes/boot/°R!.E[X^M^G!@-
”K!¶.E[^Ai!2/fsweblogic/weblogic/classes/boot/i!f/fsweblogic/weblogic/classes/b
oot/weblogic/common/internal/ResourceAllocator_Descriptor.ser°R!¶.E[i![/fsweblo
gic/weblogic/classes/boot/weblogic/common/internal/ResourceAllocator_Descriptor.
ser^T^O!x$^R!p.E^A^A ¸.Eø¸.E`K^R!¸¸.Eظ.E@X^A!^D@X^A!^D^P^M!ðµ.E^Dp.Ei!^Dread—^
M!ø¸.E0
!ðµ.E^A˜…^H!^A.Eh@¹.E¹.E'^A!^A?@X^A!
H^H!p^H!L !^L !ˆÍ !8 !, !^Pm !` !°í !'^A!/fs
weblogic/weblogic/classes/boot/weblogic/common/internal/ResourceAllocator_Descri
ptor.ser'^A!^Br'^A![/fsweblogic/weblogic/classes/boot/weblogic/common/internal/R
esourceAllocator_Descriptor.ser'^A![/fsweblogic/weblogic/classes/boot/weblogic/c
ommon/internal/ResourceAllocator_Descriptor.ser°R!ø».E[H(^G!^AÀ».Eؤ@л.Eл.Ei!^
A@X^A!^F0f^G!xB^G!`N^G!^P/^G!HZ^G!:^G!i![/fsweblogic/weblogic/classes/boot/weblo
gic/common/internal/ResourceAllocator_Descriptor.ser^C!^A^G^B@0
!H.E^AX^M^G!@”K!p.E[^Ai!1/fsweblogic/weblogic/classes/boot/i!d/fsweblogic/weblog
ic/classes/boot/weblogic/common/internal/ResourceAllocator_Descriptor.ser°R!p.E[
˜…^H!^A¾.Eh@ ¾.E ¾.E'^A!^A?@X^A!
H^H!p^H!L !^L !ˆÍ !8 !, !^Pm !` !°í !'^A!/fs
weblogic/weblogic/classes/boot/weblogic/common/internal/ResourceAllocator_Descri
ptor.ser'^A!^Br'^A![/fsweblogic/weblogic/classes/boot/weblogic/common/internal/R
esourceAllocator_Descriptor.ser°R!p.E; T^M!À.E9^A!]^B^M^C^F^H^N^K^\^A^A^Ll^C
^M^V"^^^V&^OE^A^B^AE^A^C^Z^C'^V\^D^AYY^D^PV^D^D^_V^D^B^R(^D^A'^B
^A^G^A^E}v^A^C^AX^M^G!@”K!^H.EZ^Ai!^]getResource( i!FgetResource( weblogic/commo
n/internal/ResourceAllocator_Descriptor.seri!getResource( weblogic/common/intern
al/ResourceAllocator_Descriptor.ser ) found result null°R!^H.EZX^M^G!@”K!ÈÄ.EX^A
i!-ServerClassFinder.getSource( i!\ServerClassFinder.getSource( weblogic/common/
internal/ResourceAllocator_Descriptor.ser )°R!ÈÄ.EXè³^T!(.EV^Ai!,/fsweblogic/web
logic/license/i!Z/fsweblogic/weblogic/license/weblogic/common/internal/ResourceA
llocator_Descriptor.ser0
!øÆ.E^A°R!^P.EVi!V/fsweblogic/weblogic/license/weblogic/common/internal/Resource
Allocator_Descriptor.ser˜…^H!^AøÇ.Eh@^H.E^H.E'^A!^A?@X^A!
H^H!p^H!L !^L !ˆÍ !8 !, !^Pm !` !°í !'^A!/fs
weblogic/weblogic/license/weblogic/common/internal/ResourceAllocator_Descriptor.
ser'^A!^Br'^A!V/fsweblogic/weblogic/license/weblogic/common/internal/ResourceAll
ocator_Descriptor.ser°R!^P.E6 0
!ØÊ.E^AX^M^G!@”K!^X.EV^Ai!,/fsweblogic/weblogic/classes/i!Z/fsweblogic/weblogic/
classes/weblogic/common/internal/ResourceAllocator_Descriptor.ser°R!^X.EV˜…^H!^A
[email protected]'^A!^A?@X^A!
H^H!p^H!L !^L !ˆÍ !8 !, !^Pm !` !°í !'^A!/fs
weblogic/weblogic/classes/weblogic/common/internal/ResourceAllocator_Descriptor.
ser'^A!^Br'^A!V/fsweblogic/weblogic/classes/weblogic/common/internal/ResourceAll
ocator_Descriptor.ser°R!^X.E6 0
! .E^AX^M^G!@”K!H.E\^Ai!2/fsdev/ver/bc/webapp/serverclasses/i!f/fsdev/ver/bc/web
app/serverclasses/weblogic/common/internal/ResourceAllocator_Descriptor.ser°R!H.
E\˜…^H!^[email protected]'^A!^A?@X^A!
H^H!p^H!L !^L !ˆÍ !8 !, !^Pm !` !°í !'^A!/fs
dev/ver/bc/webapp/serverclasses/weblogic/common/internal/ResourceAllocator_Descr
iptor.ser'^A!^Br'^A!\/fsdev/ver/bc/webapp/serverclasses/weblogic/common/internal
/ResourceAllocator_Descriptor.ser°R!H.E< X^M^G!@”K! .E5^Ai!A[ServerClassFinder]f
ound local classpath source: null°R! .E5i!9weblogic/common/internal/resourceallo
cator_descriptor.ser°R!`.E9i!9weblogic/common/internal/resourceallocator_descrip
tor.serX^M^G!@”K!ØÒ.EZ^Ai!^]getResource( i!FgetResource( weblogic/common/interna
l/ResourceAllocator_Descriptor.seri!getResource( weblogic/common/internal/Resour
ceAllocator_Descriptor.ser ) found source null°R!ØÒ.EZ ^_!H.E0.EX^M^G!@”K!Ô.EI
^Ai!^_Failed to find i!IFailed to find /weblogic/common/internal/ResourceAllocat
or_Descriptor.ser°R!Ô.EI9^A!9\^D^AxY^D^PV^D^D^_V^D^B^R(^D^A'^B
@^B ?6^D^HT8^D^B^Q6^D^Y^G^D^HN^B^D^Mu^B^B^A~^A^B^D:^D^A'
^A^G^A^E}v^A^C^AF*!Áå¼ ^PO.E/^\E!!/^\Eh.E°R!.E*i!*weblogic.common.internal.Resou
rceAllocator¸î!!/^\EøÖ.E°R!^P.E*i!*weblogic.common.internal.ResourceAllocator°R!
ˆ×.E i! weblogic.time.common.ScheduleDef°R!ˆ×.E^T°R!^H.E i! weblogic/time/common
/ScheduleDefp^B!p.Eð×.E9^A!?^V^P^V^Q^F^V, ^V,^W^D$^V+^CE^A^M^NE^A^AP^V+^C^A^E
^A"^B^D ^D^H^B^D^Mu^B^B^A~^A^B^D:^D^A'
^A^G^A^E}v^A^C^AxA^M!pb^[email protected]! weblogic/time/common/ScheduleDef°R!ˆÙ.E i!&weblo
gic/time/common/ScheduleDef.class°R!ðÙ.E&T^M!p.E9^A!N^B^M^C^F^H^N^K^\^A^Zl^E
^M^V,*^V,^W^D$^V+^CE^A^M^NE^A^AP^V+^C^A^E ^A"^B^D ^D^H^B^D^Mu^B^B^A~^A^B^
D:^D^A'
^A^G^A^E}v^A^C^Ap^B!ÐÛ.Ep.E9^A!B^AEl^E ^M^V,*^V,^W^D$^V+^CE^A^M^NE^A^AP^V+^C^A^
E ^A"^B^D ^D^H^B^D^Mu^B^B^A~^A^B^D:^D^A'
!°o!(.Ei^A@°R!`.EX^M^G!@”K!(.E&i!6weblogic/time/common/ScheduleDef.classX^M^G!@-
”K!¸Þ.E"i!2/fsweblogic/weblogic/classes/boot/°R!ðà.EHX^M^G!@”K!.EH^Ai!2/fsweblog
ic/weblogic/classes/boot/i!f/fsweblogic/weblogic/classes/boot/weblogic/time/comm
on/ScheduleDef.class°R!.EHi!H/fsweblogic/weblogic/classes/boot/weblogic/time/com
mon/ScheduleDef.class^T^O!0
!^H.E^AX^M^G!@”K!0.EH^Ai!1/fsweblogic/weblogic/classes/boot/i!d/fsweblogic/weblo
gic/classes/boot/weblogic/time/common/ScheduleDef.class°R!0.EH˜…^H!^AP.Eh@`.E`.E
'^A!^A?@X^A!
H^H!p^H!L !^L !ˆÍ !8 !, !^Pm !` !°í !'^A!/fs
weblogic/weblogic/classes/boot/weblogic/time/common/ScheduleDef.class'^A!^Bs'^A!
H/fsweblogic/weblogic/classes/boot/weblogic/time/common/ScheduleDef.class°R!0.E7
^QT^M!Èä.E9^A!K^B^M^C^F^H^N^K^\^A^Zl^E ^M^V,*^D$^V+^CE^A^M^NE^A^AP^V+^C^A^E
^A"^B^D ^D^H^B^D^Mu^B^B^A~^A^B^D:^D^A'
^A^G^A^E}v^A^C^Ap^B!^X.Ep.E9^A!?^AEl^E ^M^V,*^D$^V+^CE^A^M^NE^A^AP^V+^C^A^E
^A"^B^D ^D^H^B^D^Mu^B^B^A~^A^B^D:^D^A'
^A^G^A^E}v^A^C^AX^M^G!@”K!x.E+^Ai!^XLoading i!2Loading weblogic.time.common.Sche
duleDef...°R!x.E+i! weblogic/time/common/ScheduleDef°R!.E X^M^G!@”K!.E&^Ai!0webl
ogic/time/common/ScheduleDef.class°R!.E&X^M^G!@”K!ˆé.EE^Ai!-ServerClassFinder.ge
tSource( i!\ServerClassFinder.getSource( weblogic/time/common/ScheduleDef.class
)°R!ˆé.EEè³^T!èê.EC^Ai!,/fsweblogic/weblogic/license/i!Z/fsweblogic/weblogic/lic
ense/weblogic/time/common/ScheduleDef.class0
!¸ë.E^A°R!Ðë.ECi!C/fsweblogic/weblogic/license/weblogic/time/common/ScheduleDef.
class˜…^H!^A˜ì.Eh@¨ì.E¨ì.E'^A!^A?@X^A!
H^H!p^H!L !^L !ˆÍ !8 !, !^Pm !` !°í !'^A!/fs
weblogic/weblogic/license/weblogic/time/common/ScheduleDef.class'^A!^Bs'^A!C/fsw
eblogic/weblogic/license/weblogic/time/common/ScheduleDef.class°R!Ðë.E2^Q0
[email protected]^AX^M^G!@”K!.EC^Ai!,/fsweblogic/weblogic/classes/i!Z/fsweblogic/weblogic/cla
sses/weblogic/time/common/ScheduleDef.class°R!.EC˜…^H!^Aˆï.Eh@˜ï.E˜ï.E'^A!^A?@X^
A!
H^H!p^H!L !^L !ˆÍ !8 !, !^Pm !` !°í !'^A!/fs
weblogic/weblogic/classes/weblogic/time/common/ScheduleDef.class'^A!^Bs'^A!C/fsw
eblogic/weblogic/classes/weblogic/time/common/ScheduleDef.class°R!.E2^Q˜í^S!ðí.E
X^M^G!@”K!˜ñ.Et^Ai!A[ServerClassFinder]found local classpath source: i![ServerCl
assFinder]found local classpath source: /fsweblogic/weblogic/classes/weblogic/ti
me/common/ScheduleDef.class°R!˜ñ.EtX^M^G!@”K!0.E2^Ai!"Found local class i!FFound
local class weblogic.time.common.ScheduleDef°R!0.E2˜…^H!^A^P.Eh@ .E .E'^A!^A?@X
^A!
H^H!p^H!L !^L !ˆÍ !8 !, !^Pm !` !°í !'^A!/fs
weblogic/weblogic/classes/weblogic/time/common/ScheduleDef.class'^A!^Bs'^A!C/fsw
eblogic/weblogic/classes/weblogic/time/common/ScheduleDef.class'^A!^AÊþº¾^C-^T^G
^S^G^O^G^M^G^N^A^MConstantValue^A"(Lweblogic/common/T3ServicesDef;)V^A
Exceptions^A^LscheduleInit^A^OLineNumberTable^A
SourceFile^A^NLocalVariables^A^DCode^A weblogic/time/common/ScheduleDef^A weblog
ic/time/common/Schedulable^A^Pjava/lang/Object^A^](Lweblogic/common/ParamSet;)V^
A^PScheduleDef.java^A^KsetServices^A!weblogic/common/ParamSetException^B^A^C^B^A
^D^B^D^A^R^F^D^A^H^P^A^G^D^A^A^A
^B^Q(!^D!øÜ^CA@^^.E^Y/Eèß^G!˜…^H!^AP.Eh@`.E`.E'^A!^A?@X^A!
H^H!p^H!L !^L !ˆÍ !8 !, !^Pm !` !°í !'^A!/fs
weblogic/weblogic/classes/weblogic/time/common/ScheduleDef.class'^A!^Bs'^A!C/fsw
eblogic/weblogic/classes/weblogic/time/common/ScheduleDef.class°R!ˆ×.E^TE^A!X^M^
G!@”K!.Ep^Ai!^WLoaded i!0Loaded weblogic.time.common.ScheduleDef from i!pLoaded
weblogic.time.common.ScheduleDef from /fsweblogic/weblogic/classes/weblogic/time
/common/ScheduleDef.class°R!.Ep°R! ú.E^_i!^_weblogic.time.common.TriggerDef°R! ú
.E^T°R! .E^_i!^_weblogic/time/common/TriggerDefp^B!ˆû.E^H.E9^A!?^V^P^V^Q^F^V, ^V
,^W^D$^V+^CE^A^M^NE^A^AP^V+^C^A^F^D^A"'^D ^D^H^B^D^Mu^B^B^A~^A^B^D:^D^A'
^A^G^A^E}v^A^C^AxA^M!pb^A@ˆú.Ei!^_weblogic/time/common/TriggerDef°R! ü.E^_i!%web
logic/time/common/TriggerDef.class°R!^H.E%T^M!ˆý.E9^A!N^B^M^C^F^H^N^K^\^A^Zl^E
^M^V,*^V,^W^D$^V+^CE^A^M^NE^A^AP^V+^C^A^F^D^A"'^D ^D^H^B^D^Mu^B^B^A~^A^B^
D:^D^A'
^A^G^A^E}v^A^C^Ap^B!èþ.Eˆú.E9^A!B^AEl^E ^M^V,*^V,^W^D$^V+^CE^A^M^NE^A^AP^V+^C^A^
F^D^A"'^D ^D^H^B^D^Mu^B^B^A~^A^B^D:^D^A'
^A^G^A^E}v^A^C^AxA^M!^?^A@ˆú.Ei!^_weblogic/time/common/TriggerDef°R!^P/E^_i!%web
logic/time/common/TriggerDef.class°R!x/E%˜B^K!@”K!^W
!°o!@^B/Ei^A@°R!x/EX^M^G!@”K!@^A/E%i!5weblogic/time/common/TriggerDef.classX^M^G
!@”K!^A/E"i!2/fsweblogic/weblogic/classes/boot/°R!^C/EGX^M^G!@”K!^B/EG^Ai!2/fswe
blogic/weblogic/classes/boot/i!f/fsweblogic/weblogic/classes/boot/weblogic/time/
common/TriggerDef.class°R!^B/EGi!G/fsweblogic/weblogic/classes/boot/weblogic/tim
e/common/TriggerDef.class^T^O!0
!^E/E^AX^M^G!@”K!^P^E/EG^Ai!1/fsweblogic/weblogic/classes/boot/i!d/fsweblogic/we
blogic/classes/boot/weblogic/time/common/TriggerDef.class°R!^P^E/EG˜…^H!^A0^F/Eh
@@^F/E@^F/E'^A!^A?@X^A!
!^E/E^AX^M^G!@”K!^P^E/EG^Ai!1/fsweblogic/weblogic/classes/boot/i!d/fsweblogic/we
blogic/classes/boot/weblogic/time/common/TriggerDef.class°R!^P^E/EG˜…^H!^A0^F/Eh
@@^F/E@^F/E'^A!^A?@X^A!
H^H!p^H!L !^L !ˆÍ !8 !, !^Pm !` !°í !'^A!/fs
weblogic/weblogic/classes/boot/weblogic/time/common/TriggerDef.class'^A!^Bs'^A!G
/fsweblogic/weblogic/classes/boot/weblogic/time/common/TriggerDef.class°R!^P^E/E
7^PT^M!^G/E9^A!K^B^M^C^F^H^N^K^\^A^Zl^E ^M^V,*^D$^V+^CE^A^M^NE^A^AP^V+^C^A^F^D^A
"'^D ^D^H^B^D^Mu^B^B^A~^A^B^D:^D^A'
^A^G^A^E}v^A^C^Ap^B!^H/Eˆú.E9^A!?^AEl^E ^M^V,*^D$^V+^CE^A^M^NE^A^AP^V+^C^A^F^D^A
"'^D ^D^H^B^D^Mu^B^B^A~^A^B^D:^D^A'
^A^G^A^E}v^A^C^AX^M^G!@”K!X
/E*^Ai!^XLoadingi!2Loading weblogic.time.common.TriggerDef...°R!X
/E*i!^_weblogic/time/common/TriggerDef°R!
/E^_X^M^G!@”K!`^K/E%^Ai!/weblogic/time/common/TriggerDef.class°R!`^K/E%X^M^G!@”K
!h^L/ED^Ai!-ServerClassFinder.getSource( i!\ServerClassFinder.getSource( weblogi
c/time/common/TriggerDef.class )°R!h^L/EDè³^T!^M/EB^Ai!,/fsweblogic/weblogic/lic
ense/i!Z/fsweblogic/weblogic/license/weblogic/time/common/TriggerDef.class0
!^N/E^A°R!^N/EBi!B/fsweblogic/weblogic/license/weblogic/time/common/TriggerDef.c
lass˜…^H!^Ap^O/Eh@^O/E^O/E'^A!^A?@X^A!
H^H!p^H!L !^L !ˆÍ !8 !, !^Pm !` !°í !'^A!/fs
weblogic/weblogic/license/weblogic/time/common/TriggerDef.class'^A!^Bs'^A!B/fswe
blogic/weblogic/license/weblogic/time/common/TriggerDef.class°R!^N/E2^P0
!^N/E^A°R!^N/EBi!B/fsweblogic/weblogic/license/weblogic/time/common/TriggerDef.c
lass˜…^H!^Ap^O/Eh@^O/E^O/E'^A!^A?@X^A!
H^H!p^H!L !^L !ˆÍ !8 !, !^Pm !` !°í !'^A!/fs
weblogic/weblogic/license/weblogic/time/common/TriggerDef.class'^A!^Bs'^A!B/fswe
blogic/weblogic/license/weblogic/time/common/TriggerDef.class°R!^N/E2^P0
!^P^R/E^AX^M^G!@”K!P^Q/EB^Ai!,/fsweblogic/weblogic/classes/i!Z/fsweblogic/weblog
ic/classes/weblogic/time/common/TriggerDef.class°R!P^Q/EB˜…^H!^AX^R/Eh@h^R/Eh^R/
E'^A!^A?@X^A!
H^H!p^H!L !^L !ˆÍ !8 !, !^Pm !` !°í !'^A!/fs
weblogic/weblogic/classes/weblogic/time/common/TriggerDef.class'^A!^Bs'^A!B/fswe
blogic/weblogic/classes/weblogic/time/common/TriggerDef.class°R!P^Q/E2^P˜í^S!^P/
EX^M^G!@”K!`^T/Es^Ai!A[ServerClassFinder]found local classpath source: i![Server
ClassFinder]found local classpath source: /fsweblogic/weblogic/classes/weblogic/
time/common/TriggerDef.class°R!`^T/EsX^M^G!@”K!^U/E1^Ai!"Found local class i!FFo
und local class weblogic.time.common.TriggerDef°R!^U/E1˜…^H!^A^V/Eh@^V/E^V/E'^A!
^A?@X^A!
H^H!p^H!L !^L !ˆÍ !8 !, !^Pm !` !°í !'^A!/fs
weblogic/weblogic/classes/weblogic/time/common/TriggerDef.class'^A!^Bs'^A!B/fswe
blogic/weblogic/classes/weblogic/time/common/TriggerDef.class'^A!^AÊþº¾^C-^T^G^S
^G^O^G^F^G^P^A^MConstantValue^A^_weblogic/time/common/TriggerDef^A^KtriggerInit^
A"(Lweblogic/common/T3ServicesDef;)V^A
Exceptions^A^OLineNumberTable^A
ClassFinder]found local classpath source: /fsweblogic/weblogic/classes/weblogic/
time/common/TriggerDef.class°R!`^T/EsX^M^G!@”K!^U/E1^Ai!"Found local class i!FFo
und local class weblogic.time.common.TriggerDef°R!^U/E1˜…^H!^A^V/Eh@^V/E^V/E'^A!
^A?@X^A!
H^H!p^H!L !^L !ˆÍ !8 !, !^Pm !` !°í !'^A!/fs
weblogic/weblogic/classes/weblogic/time/common/TriggerDef.class'^A!^Bs'^A!B/fswe
blogic/weblogic/classes/weblogic/time/common/TriggerDef.class'^A!^AÊþº¾^C-^T^G^S
^G^O^G^F^G^P^A^MConstantValue^A^_weblogic/time/common/TriggerDef^A^KtriggerInit^
A"(Lweblogic/common/T3ServicesDef;)V^A
Exceptions^A^OLineNumberTable^A
SourceFile^A^NLocalVariables^A^DCode^A^OTriggerDef.java^A^Pjava/lang/Object^A we
blogic/time/common/Triggerable^A^](Lweblogic/common/ParamSet;)V^A^KsetServices^A
!weblogic/common/ParamSetException^B^A^C^B^A^D^B^D^A^R^H^D^A^G^Q^A ^D^A^A^A
^K^B^N(!^D!^H^CA@ðö.Eèß^G!˜…^H!^A^H^Z/Eh@^X^Z/E^X^Z/E'^A!^A?@X^A!
H^H!p^H!L !^L !ˆÍ !8 !, !^Pm !` !°í !'^A!/fs
weblogic/weblogic/classes/weblogic/time/common/TriggerDef.class'^A!^Bs'^A!B/fswe
blogic/weblogic/classes/weblogic/time/common/TriggerDef.class°R! ú.E^TE^A!X^M^G!
@”K!0^\/En^Ai!^WLoaded i!0Loaded weblogic.time.common.TriggerDef from i!nLoaded
weblogic.time.common.TriggerDef from /fsweblogic/weblogic/classes/weblogic/time/
common/TriggerDef.class°R!0^\/En(B!CDh(/^\EhüëD/^\E^D^H˜âDX^M^G!@”K!^]/E
^Ai!^A+°R!^]/E^Ai!^Q+HncbPool°R!^]/E ^P#!^P^YE^]/E/^\E8R^E!;ˆØ^]/E^]/EX^M^G!@
”K!^^/E,^Ai!^XHncbPool created with 1i!^L01°R!^^/E^Ai!^A1i!2HncbPool created wit
h 1 initial connections.°R!^^/E,^H4^E!@”K! /EK@?^^E!eøÑ6!^_/E /E^H4^E!@”K!!/EK@?
^^E!eøÑ6!!/E!/E -
Problem in executing a SP in Java using Oracle OCI Driver...
Hi,
I have a installed the Oracle OCI driver on iPlanet Web Server 4.1. The application has been designed using the Jakarta Struts framework where the dom classes act as an interface between the database and the application(action classes). The dom classes execute stored procedures stored in an SP packages (eg. DDTS_PACK.setContact(..)). Now here's the problem. When a new record is being inserted, the dom executes the 'setContact' stored procedure using a java.sql.CallableStatement. The execution of this stored procedure is successful at times and fails at times. What could be the reason?? Could it be something to do with connection pooling. The default connection pooling class from oracle, oracle.jdbc.pool.OracleConnectionCacheImpl() is being used to get the connection. The funny thing is that the stored procedure gets executed both the time (success/failure) and returns a return status as 'N' when it fails and 'Y' when it is successful.
I would be greatful to anybody who could give a solution to the above problem. Thanks and have a great day.
Regards,
AnandSince the pipe '|' is interpreted by the shell then you need the shell to invoke your command
String[] command = {"sh","-c","find /tmp/reports1 -name " + "\"" + "*" + "\"" + " -mtime +" + strdaysback + " -print|xargs rm -r"};
final Process process = Runtime.getRuntime().exec(command);
You should also read http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html at least twice and implement the recommendation regarding stdout and stderr.
P.S. Why are you not using Java to find and delete these files?
Message was edited by:
sabre150 -
Can I create connection pool by oracle oci driver?
Can I create connection pool by oracle oci driver?My weblogic's version is 6.1 sp2 and oracle is 9.0.1.2.
I have some trouble with connection pool created by weblogic jDriver.
I try to read Timestamp from table and I always get the exception.It told me that ORA-00932: inconsistent datatypes.
So I created another pool by oracle thin driver and everything was right.Then I created other pool by oracle oci driver,but something were wrong. 'Could not create pool connection. The DBMS driver exception was:java.sql.SQLException: ORA-06401: NETCMN:Invalid driver designator'
The oci pool's parameters are below lines.
url: jdbc:oracle:oci:@COCO
Driver Classname: oracle.jdbc.driver.OracleDriver
Properties: user=scott;password=tiger;protocol=oci
If I get connection directly,don't use connection pool,I can get right connection.But why didn't I create pool by oci driver?Maybe weblogic7 or weblogic8 will work good?Venkat Amirineni wrote:
Hi Joe,
I am also trying to create a connection pool using Oracle Oci XA. Weblogic
type 2 oci threads hanging on native calls and suggested to go for thin drivers.
But we want to try with Oracle Oci drivers.. Can you please tell us how to
create a conn pool using Oracle Oci.. Just the driverclass and url is enough
or need any classpath settings etc..
Thanks in advance for your quick reply.Hi. As far as driver properties, just use what Oracle says to. Any pool properties
that we recommend for XA would still apply. Note that Oracle themselves recommends
the thin driver over their OCI one:
http://download-west.oracle.com/docs/cd/B14117_01/java.101/b10979.pdf
Joe -
Error in configuring Oracle OCI Driver in WLS
My application uses Oracle OCI driver for making JDBC connection from the server application.I have installed Oracle client in the machine.Added the Oracle Bin directory to System Path.But when i try to create the connection Pool Weblogic throws the error saying DLL file is not found in System.Library.Path.Can you help in solving this problem,Config detailsOS - Windows 2000 ProfessionalWeblogic 5.1 serverOracle 8.1.7 clientDriver used Oracle OCI driver...Expecting a reply
You need to set your path to point to the <wls-install-home>/bin/oci8xx_x/
folder as well. I dont think 5.1 supports 817 type 2 driver, you may have to
use the thin driver from oracle instead.
sree
"Varadharajan" <[email protected]> wrote in message
news:3b8f070f$[email protected]..
My application uses Oracle OCI driver for making JDBC connection from theserver application.I have installed Oracle client in the machine.Added the
Oracle Bin directory to System Path.But when i try to create the connection
Pool Weblogic throws the error saying DLL file is not found in
System.Library.Path.Can you help in solving this problem,Config detailsOS -
Windows 2000 ProfessionalWeblogic 5.1 serverOracle 8.1.7 clientDriver used
Oracle OCI driver...Expecting a reply -
WL5.1 with Oracle OCI driver 8.1.6 and 8.1.7
We have seen different behaviors when using WL5.1 with Oracle's OCI driver
version 8.1.6 and 8.1.7
Our application calls the same set of stored procedures, which creates in
total of 10 reference cursors
in the database (8.1.7). We close the reference cursor everytime the SP is
called.
After running the application for a while, we have the following situation:
1) Using the 8.1.6. driver, we always have (at any given time) one
reference cursor opened in the database
for each connection in the connection pool.
2) Using the 8.1.7 driver, we always have one reference cursor for each
stored procedure for each connection in the connection pool(i.e. 10 open
ref-cursor per connection).
It seems that between 8.1.6 and 8.1.7, the driver caches ref-cursor
differently. The 8.1.7 drive doesn't seem to be scalable. Has anyone
notice the change?
Is this behavior correct or configurable?
Thanks.
-ChuanWe have seen different behaviors when using WL5.1 with Oracle's OCI driver
version 8.1.6 and 8.1.7
Our application calls the same set of stored procedures, which creates in
total of 10 reference cursors
in the database (8.1.7). We close the reference cursor everytime the SP is
called.
After running the application for a while, we have the following situation:
1) Using the 8.1.6. driver, we always have (at any given time) one
reference cursor opened in the database
for each connection in the connection pool.
2) Using the 8.1.7 driver, we always have one reference cursor for each
stored procedure for each connection in the connection pool(i.e. 10 open
ref-cursor per connection).
It seems that between 8.1.6 and 8.1.7, the driver caches ref-cursor
differently. The 8.1.7 drive doesn't seem to be scalable. Has anyone
notice the change?
Is this behavior correct or configurable?
Thanks.
-Chuan -
Memory leakage with oracle oci driver
I have developed a Solaris8 client/server application using the JAVA IDL CORBA implementation. The client sends requests to the server to update the database (database is Oracle 8.1.7 and I connect to it using oci oracle drivers). Requests are sent one at a time. No concurrent connections. I have a static connection that I establish with database once I start the server. If that connection is lost for any reason (timeout or database faliure) the application tries automatically to reconnect to database. I have noticed that if the new connection to database fails and an sql exception is thrown, memory used by the application process increases. This memory is not garbage collected so application hangs. I tried similar behaviour with the oracle thin driver and things went fine. There was no memory leakage.
I would really appreciate, if you can help me in this since I can't use the thin driver because of failover limitations.I have noticed
that if the new connection to database fails and an
sql exception is thrown, memory used by the
application process increases.
How have you noticed this?I noticed this using the command pmap under solaris it operating system
every time I test reconnecting to database I go and check the memory used by the application before after attepmting to reconnect:
/usr/proc/bin/pmap [myapp pid] | tail -1
If I'm using normal connection then the memory will be increased by 100KB. If I'm using the OraclePooledConnection class then the increase will be something like 500KB. Again this is if still there is a problem connecting to database. If connection to database is okay then no memory increase at all.
This memory is not
garbage collected so application hangs.
Then it isn't a java problem. When java runs out of memory it throws a out of memory exception.Well I'm not saying it is a java problem for sure. I suspect that it might be oracle oci8 driver problem. I would appreciate if anyone can help in specifying teh source of the error.
I tried
similar behaviour with the oracle thin driver and
things went fine. There was no memory leakage.
I would really appreciate, if you can help me in this
since I can't use the thin driver because of failover
limitations.
I don't understand that last sentence at all.What I mean here is that instead of using the oci8 driver to connect to database I used the thin driver and kept everything else the same. I simulated the faliure to reconnect to database and based on the pmap command observations there was no memory leakage.
I want to know what is needed to be done in order to get a normal behavior once using the oci8 drivers. -
How to setup Oracle OCI Driver with Kerberos Authentication in Eclipse
Hello I am trying to setup a connection to Oracle Server with kerberos authentication.
I am able to connect using SQL Developer but it seems impossible to do the same through the eclipse plugin any pointers?Currently there is no support for Kerberos authentication on OEPE DB support. I'll open an enhancement request.
-
Error to connect to oracle 10.2.0.4 using oci driver in solaris
Urgent Please help me.
This is the error i am getting when connecting to oracle10.2.0.4 version using oracle oci driver.
09/10/05 13:52:47 java.lang.UnsatisfiedLinkError: t2cGetCharSet
09/10/05 13:52:47 at oracle.jdbc.driver.T2CConnection.t2cGetCharSet(Native Method)
09/10/05 13:52:47 at oracle.jdbc.driver.T2CConnection.getCharSetIds(T2CConnection.java:2954)
09/10/05 13:52:47 at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:318)
09/10/05 13:52:47 at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:433)
09/10/05 13:52:47 at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:141)
09/10/05 13:52:47 at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:78)
09/10/05 13:52:47 at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:571)
09/10/05 13:52:47 at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:217)
09/10/05 13:52:47 at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPhysicalConnection(OracleConnectionPoolDataSource.java:108)
09/10/05 13:52:47 at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection(OracleConnectionPoolDataSource.java:76)
09/10/05 13:52:47 at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection(OracleConnectionPoolDataSource.java:58)
09/10/05 13:52:47 at com.evermind.sql.OrionPooledDataSource.getPooledConnection(OrionPooledDataSource.java:542)
09/10/05 13:52:47 at com.evermind.sql.PooledConnectionUsage.getPooledConnection(PooledConnectionUsage.java:39)
09/10/05 13:52:47 at com.evermind.sql.OrionPooledDataSource.checkAndGetMinConnections(OrionPooledDataSource.java:376)
09/10/05 13:52:47 at com.evermind.sql.OrionPooledDataSource.getTheConnection(OrionPooledDataSource.java:251)
09/10/05 13:52:47 at com.evermind.sql.OrionPooledDataSource.getTheConnection(OrionPooledDataSource.java:345)
09/10/05 13:52:47 at com.evermind.sql.OrionPooledDataSource.getConnection(OrionPooledDataSource.java:339)
09/10/05 13:52:47 at uk.gov.fsa.elms.persistence.base.BaseDataAccess.getValidConnection(BaseDataAccess.java:67)
09/10/05 13:52:47 at uk.gov.fsa.elms.persistence.base.BaseDataAccess.getConnection(BaseDataAccess.java:125)
09/10/05 13:52:47 at uk.gov.fsa.elms.persistence.base.dao.BaseDAOImpl.getConnection(BaseDAOImpl.java:76)
09/10/05 13:52:47 at uk.gov.fsa.elms.processes.batch.ProcessHandler.getProcessId(ProcessHandler.java:48)
09/10/05 13:52:47 at uk.gov.fsa.elms.processes.batch.ProcessHandler.startProcess(ProcessHandler.java:87)
09/10/05 13:52:47 at uk.gov.fsa.elms.processes.batch.ProcessManager.startProcess(ProcessManager.java:43)
09/10/05 13:52:47 at uk.gov.fsa.elms.processes.batch.EventDispatcherServlet$JMSRunner.handleMessage(EventDispatcherServlet.java:306)
09/10/05 13:52:47 at uk.gov.fsa.elms.processes.batch.EventDispatcherServlet$JMSRunner.run(EventDispatcherServlet.java:355)
09/10/05 13:52:47 at java.lang.Thread.run(Thread.java:534)# This file is actually generated by netca. But if customers choose to
# install "Software Only", this file wont exist and without the native
# authentication, they will not be able to connect to the database on NT.
#SQLNET.AUTHENTICATION_SERVICES = (NTS)I have configured the listener by using NETCA.
However the TNS connection failed with SQLNET.AUTHENTICATION_SERVICES = (NTS)
, so I had to disable this parameter -
Hi All
I need to use XA compliant driver, does oracle OCI driver have an XA version.
I know weblogic has one and there is also one for oracle thin client.
If i have to use oracle XA driver then i should always use thin driver ???
SijuI use OCI Driver and the same driver in "XA version"
It's the same, only you mjust change the configuration parameters..
J.Carlos
"Siju" <[email protected]> escribió en el mensaje
news:3e2f6aa9$[email protected]..
>
Hi All
I need to use XA compliant driver, does oracle OCI driver have an XAversion.
I know weblogic has one and there is also one for oracle thin client.
If i have to use oracle XA driver then i should always use thin driver ???
Siju -
Problem with default oci driver with database ORACLE 8.1.7
Presently our application is using weblogic 5.1 with oracle 8.1.6 database. Our
application uses OCI driver to connect OraclePool. We used weblogic/lib/solaris/oci815_8/libweblogicoci36.so
libraary to connect to dataabse.
We upgraded our Database from 8.1.6 to 8.1.7. After upgradation of database from
8.1.6 to 8.1.7. By using above shared library we are getting following error.
In the weblogic connoction pool, we specied minimum as 4 connections. When it
is creating connections while startup first connection is successfully connecting
and second onwards it is giving following error.
url=jdbc:oracle:thin:@169.165.38.162:1570:PBGSUP, props=user=SUPPORT;password=
SUPPORT;, allowShrinking=true, driver=oracle.jdbc.driver.OracleDriver, aclName=w
eblogic.jdbc.connectionPool.oraclePool, # testTable=dual, capacityIncremen
t=2, initialCapacity=5, url=jdbc:oracle:oci8:@PBGSUP, shrinkPeriodMins=5}
Delaying 1 seconds before making a oraclePool pool connection.
Thu Nov 22 09:38:58 CST 2001:<I> <JDBC Pool> Connection for pool "oraclePool"
cr
eated.
Delaying 1 seconds before making a oraclePool pool connection.
java.sql.SQLException: ORA-01017: invalid username/password; logon denied
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:114)
at oracle.jdbc.oci8.OCIDBAccess.check_error(Compiled Code)
at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:310)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:200)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
va:251)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:224)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Con
nectionEnvFactory.java:149)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Con
nectionEnvFactory.java:109)
at weblogic.common.internal.ResourceAllocator.makeResources(Compiled Cod
e)
at weblogic.common.internal.ResourceAllocator.<init>(Compiled Code)
at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.j
ava:330)
at weblogic.jdbc.common.internal.JdbcInfo.initPools(Compiled Code)
at weblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:200)
at weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
at weblogic.t3.srvr.StartupThread.doWork(Compiled Code)
at weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java
:62)
Thu Nov 22 09:39:00 CST 2001:<I> <JDBC Pool> Sleeping in createResource()
Thu Nov 22 09:39:01 CST 2001:<E> <JDBC Pool> Failed to create connection pool
"oraclePool"
For Oracle 8.1.7 do we need to any other library other than oci815_8. If so can
you send those detailsLooks like you are using Oracle OCI driver and not WebLogic OCI driver so
you really dont need the libweblogicoci36.so file in your
LD_LIBRARY_PATH/PATH. Also your properties below show that you are using
thin driver url and then also oci8 url, check you connection pool setting
properly and may be try getting the latest oracle drivers.
If you are trying to use weblogic jDrivers make sure your pool properties
are set right.
hth
sree
"Subba Rao.S..G" <[email protected]> wrote in message
news:[email protected]...
Presently our application is using weblogic 5.1 with oracle 8.1.6 database.
Our
application uses OCI driver to connect OraclePool. We used
weblogic/lib/solaris/oci815_8/libweblogicoci36.so
libraary to connect to dataabse.
We upgraded our Database from 8.1.6 to 8.1.7. After upgradation of database
from
8.1.6 to 8.1.7. By using above shared library we are getting following
error.
In the weblogic connoction pool, we specied minimum as 4 connections. When
it
is creating connections while startup first connection is successfully
connecting
and second onwards it is giving following error.
url=jdbc:oracle:thin:@169.165.38.162:1570:PBGSUP,
props=user=SUPPORT;password=
SUPPORT;, allowShrinking=true, driver=oracle.jdbc.driver.OracleDriver,
aclName=w
eblogic.jdbc.connectionPool.oraclePool, # testTable=dual,
capacityIncremen
t=2, initialCapacity=5, url=jdbc:oracle:oci8:@PBGSUP, shrinkPeriodMins=5}
Delaying 1 seconds before making a oraclePool pool connection.
Thu Nov 22 09:38:58 CST 2001:<I> <JDBC Pool> Connection for pool
"oraclePool"
cr
eated.
Delaying 1 seconds before making a oraclePool pool connection.
java.sql.SQLException: ORA-01017: invalid username/password; logon denied
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:114)
at oracle.jdbc.oci8.OCIDBAccess.check_error(Compiled Code)
at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:310)
at
oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:200)
at
oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
va:251)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:224)
at
weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Con
nectionEnvFactory.java:149)
at
weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Con
nectionEnvFactory.java:109)
at weblogic.common.internal.ResourceAllocator.makeResources(Compiled
Cod
e)
at weblogic.common.internal.ResourceAllocator.<init>(Compiled Code)
at
weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.j
ava:330)
at weblogic.jdbc.common.internal.JdbcInfo.initPools(Compiled Code)
at weblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:200)
at
weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
at weblogic.t3.srvr.StartupThread.doWork(Compiled Code)
at
weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java
:62)
Thu Nov 22 09:39:00 CST 2001:<I> <JDBC Pool> Sleeping in createResource()
Thu Nov 22 09:39:01 CST 2001:<E> <JDBC Pool> Failed to create connection
pool
"oraclePool"
For Oracle 8.1.7 do we need to any other library other than oci815_8. If so
can
you send those details -
OS authentication in Oracle 10g via jdbc:oracle:oci
I'm very much a newbie to Java / JDBC and I am trying, but failing, to connect with the database using OS authentication via jdbc, and hoping someone may help.
My questions are:
1. Is OS authentication supported for jdbc:oracle:oci with Oracle 10g ? I couldn't find a general statement of whether it works or not.
(NB.The only information I managed to find, on another forum, is that it should be supported but there is a bug and so it does not work, but the author did not post all of his/her platform details, so the bug may only affect his/her situation. )
2. If it is supported and works, could some one suggest what is wrong with my syntax . I could not find an example in any Oracle 10g/JDBC documentation.
The details are as follows: -
Database : - Oracle 10g Enterprise Edition 10.2.0.2.0 running on Solaris.
Development platform : - NetBeans 6.1, JDK 1.6.
Runtime environment: - JRE1.6 on Windows XP professional.
OPS$ authentication : - the OPS$ accounts have been set-up and we use these successfully for PL/SQL and SQL Plus access.
JDBC : - I can connect to the database with both jdbc:oracle:thin ( linking in ojdbc14.jar) and jdbc:oracle:oci by using username and password, so I know my JDBC library linkage is OK, eg. this works fine :
final String url = new String("jdbc:oracle:oci:" + uname + "/" + pword + "@" + environment);
where environment is the SID
I have trawled the Oracle documentation which tells me that OS authentication is not supported for Oracle 10g for the jdbc:oracle:thin driver, so I have tried to connect with jdbc:oracle:oci driver using the following code :
final String url = new String("jdbc:oracle:oci:/@" + environment);
final Driver driver = new oracle.jdbc.OracleDriver();
DriverManager.registerDriver(driver);
final Properties props = new Properties();
conn = DriverManager.getConnection(url);
but this gives the following error :
java.sql.SQLException: ORA-01017: invalid username/password; logon denied
Other info: - The tnsnames.ora file contains nothing but there are entries in the ldap.ora and sqlnet.ora files.
My questions are:
1. Is OS authentication supported for jdbc:oracle:oci with Oracle 10g ? I couldn't find a general statement of whether it works or not.
(NB.The only information I managed to find, on another forum, is that it should be supported but there is a bug and so it does not work, but the author did not post all of his/her platform details, so the bug may only affect his/her situation. )
2. If it is supported and works, could some one suggest what is wrong with my syntax . I could not find an example in any Oracle 10g/JDBC documentation.If you specify the SID/service_name in the url, you are attempting to connect via SQL*NET and REMOTE_OS_AUTHENT must be set to true in the database. If you are connecting from the same host the database runs on, then just leave the SID off and make sure the ORACLE_SID environment variable is set.
You can reproduce the same error you get in java with
sqlplus /@SID
SQL*Plus: Release 10.2.0.2.0 - Production on Fri Nov 7 12:14:08 2008
Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
ERROR:
ORA-01017: invalid username/password; logon deniedSample Code:
import oracle.jdbc.pool.OracleDataSource;
import java.sql.Connection;
import java.sql.SQLException;
public class conn {
public static void main(String[] args) throws SQLException {
OracleDataSource ods = new OracleDataSource();
ods.setURL("jdbc:oracle:oci:/@");
Connection conn = ods.getConnection();
conn.close();
} -
Hello,
I'm trying to connect my WebLogic 8.15 server to Oracle 10gR2 via the Oracle OCI driver (thick client). I have tried this on both Windows XP Pro sp2 and Windows 2003 platforms. I have installed Oracle 10.2.0 and inserted the ORACLE_HOME environment variable into my startweblogic.cmd script. When I test the connection pool, I get an error. Please, does anyone know how to fix this?
Here's the error:
Error 500--Internal Server Error
java.lang.UnsatisfiedLinkError: t2cGetCharSet
at oracle.jdbc.driver.T2CConnection.t2cGetCharSet([CI[CI[CI[CII[SLoracle/jdbc/driver/GetCharSetError;)S(T2CConnection.java:???)
at oracle.jdbc.driver.T2CConnection.getCharSetIds(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I[SLjava/util/Properties;)S(T2CConnection.java:2907)
at oracle.jdbc.driver.T2CConnection.logon()V(T2CConnection.java:316)
at oracle.jdbc.driver.PhysicalConnection.(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Properties;Loracle/jdbc/driver/OracleDriverExtension;)V(PhysicalConnection.java:348)
at oracle.jdbc.driver.T2CConnection.(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Properties;Loracle/jdbc/driver/OracleDriverExtension;)V(T2CConnection.java:139)
at oracle.jdbc.driver.T2CDriverExtension.getConnection(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Properties;)Ljava/sql/Connection;(T2CDriverExtension.java:79)
at oracle.jdbc.driver.OracleDriver.connect(Ljava/lang/String;Ljava/util/Properties;)Ljava/sql/Connection;(OracleDriver.java:563)
at weblogic.management.console.utils.JDBC.testConnection(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Properties;)Ljava/lang/String;(JDBC.java:143)
at weblogic.management.console.actions.mbean.JDBCConnectionPoolTestAction.prePerform(Lweblogic/management/console/actions/ActionContext;Lweblogic/management/console/actions/RequestableAction;)Lweblogic/management/console/actions/RequestableAction;(JDBCConnectionPoolTestAction.java:122)
at weblogic.management.console.actions.mbean.DoMBeanWizardAction.perform(Lweblogic/management/console/actions/ActionContext;)Lweblogic/management/console/actions/Action;(DoMBeanWizardAction.java:215)
at weblogic.management.console.actions.internal.ActionServlet.doAction(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(ActionServlet.java:182)
at weblogic.management.console.actions.internal.ActionServlet.doPost(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(ActionServlet.java:86)
at javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava/lang/Object;(ServletStubImpl.java:1072)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lweblogic/servlet/internal/FilterChainImpl;)V(ServletStubImpl.java:465)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(ServletStubImpl.java:348)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava/lang/Object;(WebAppServletContext.java:6981)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic/security/subject/AbstractSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Lweblogic/security/acl/internal/AuthenticatedSubject;Lweblogic/security/acl/internal/AuthenticatedSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic/servlet/internal/ServletRequestImpl;Lweblogic/servlet/internal/ServletResponseImpl;)V(WebAppServletContext.java:3892)
at weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic/kernel/ExecuteThread;)V(ServletRequestImpl.java:2766)
at weblogic.kernel.ExecuteThread.execute(Lweblogic/kernel/ExecuteRequest;)V(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:183)
at java.lang.Thread.startThreadFromVM(Ljava/lang/Thread;)V(Unknown Source)MEANT TO SAY Oracle OCI Driver
Maybe you are looking for
-
Keyboard and Mouse - System Prefs. Not working after 10.5.2
Like the title says, i've got nothing on my keyboard and mouse configuration on the system preferences panel. Has anyone else got this problem? ScreenShot: http://img229.imageshack.us/img229/1226/imagem3iu3.png
-
Hi All, I am planning to upgrade java version on EBS instance.Windows clients want to upgrade java to 7. EBS - 12.1.3 DB - 11.2.0.3 OS - RHEL 5 64bit Please find the out put "TXK Technology Inven
-
Transfer photos and videos from iOS Messages app to Mac
Hi! I have an iPad 4 16 GB with iOS 7. There's no secret that I need 5 GB of free space to update to iOS 8. But I don't have such amount of megabytes to install new iOS due to small size of my iPad's storage. However I noticed that Messages app took
-
Finding Older Quicktime Versions using Vista
I am trying to add the iTunes software to my new laptop using the Vista Home Premium operating system. Everytime I go to load the software it comes up with the message "The older version of Quicktime could not be removed." I have searched everywhere
-
Master slider/headphones problem in Audigy 2 ZS -HE
Hi there, So I got an Audigy 2 ZS for my PC and I encounter the following problem: I accidentaly unplugged the AD link 2 socket(the small one) from the back of my tower. I put it back in but from that point on master slider stopped controlling volume