Infinite wait for connection using JDBC thin driver.

Hi,
I am using an OracleDataSource and an OracleConnectionCacheManager to manage my connection pool from my stand alone Java application. I am using ojdbc14.jar for my Oracle drivers. The database is Oracle 10g RAC. Java version is 1.5. I am using thin client.
The problem I have experienced is that upon calling the getConnection() method on the OracleDataSource object, my application waits infinitely for a connection. As my application is not checking how long it takes to retrieve a connection, the application effectively hangs.
Has anyone else witnessed this behaviour?? I have observed this behaviour in two seperate stand alone Java applications that are both talking to Oracle RAC databases.
When I create the OracleDataSource, I am considering calling the setLoginTimeout() method to specify a timeout when trying to connect to the database. Does anyone know if this will throw an SQLException if the infinite wait occurs again??
Thanks, Kenny.

OK, I have the JVM stack trace at last!!! Here it is. This actually uses the following code every single time a database connection is required.
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
conn = (OracleConnection)DriverManager.getConnection(url, username, password);Full thread dump Java HotSpot(TM) 64-Bit Server VM (1.5.0_15-b04 mixed mode):
"pool-2-thread-3" prio=10 tid=0x0000000100fd2500 nid=0x68 waiting for monitor entry [0xffffffff1cdfe000..0xffffffff1cdff628]
     at java.sql.DriverManager.registerDriver(DriverManager.java:259)
     - waiting to lock <0xffffffff2045e108> (a java.lang.Class)
     at com.jpm.mra.common.DBUtil.getDBConnection(Unknown Source)
     at com.jpm.mra.bulking.BaseBulker.openConnection(Unknown Source)
     at com.jpm.mra.bulking.GenericBulker.run(Unknown Source)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
     at java.lang.Thread.run(Thread.java:595)
"pool-2-thread-2" prio=10 tid=0x0000000100ecfb00 nid=0x67 waiting for monitor entry [0xffffffff1d0fe000..0xffffffff1d0ff7a8]
     at java.sql.DriverManager.registerDriver(DriverManager.java:259)
     - waiting to lock <0xffffffff2045e108> (a java.lang.Class)
     at com.jpm.mra.common.DBUtil.getDBConnection(Unknown Source)
     at com.jpm.mra.bulking.BaseBulker.openConnection(Unknown Source)
     at com.jpm.mra.bulking.GenericBulker.run(Unknown Source)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
     at java.lang.Thread.run(Thread.java:595)
"pool-1-thread-21" prio=10 tid=0x0000000100fa9180 nid=0x66 waiting for monitor entry [0xffffffff1e4fe000..0xffffffff1e4ff728]
     at java.sql.DriverManager.registerDriver(DriverManager.java:259)
     - waiting to lock <0xffffffff2045e108> (a java.lang.Class)
     at com.jpm.mra.common.DBUtil.getDBConnection(Unknown Source)
     at com.jpm.mra.bulking.BaseBulker.openConnection(Unknown Source)
     at com.jpm.mra.bulking.GenericBulker.run(Unknown Source)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
     at java.lang.Thread.run(Thread.java:595)
"pool-1-thread-20" prio=10 tid=0x0000000100f832b0 nid=0x65 waiting for monitor entry [0xffffffff1e6fe000..0xffffffff1e6ff8a8]
     at java.sql.DriverManager.registerDriver(DriverManager.java:259)
     - waiting to lock <0xffffffff2045e108> (a java.lang.Class)
     at com.jpm.mra.common.DBUtil.getDBConnection(Unknown Source)
     at com.jpm.mra.bulking.BaseBulker.openConnection(Unknown Source)
     at com.jpm.mra.bulking.GenericBulker.run(Unknown Source)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
     at java.lang.Thread.run(Thread.java:595)
"pool-1-thread-19" prio=10 tid=0x0000000100f82240 nid=0x64 runnable [0xffffffff1e8fe000..0xffffffff1e8ff828]
     at java.net.SocketInputStream.socketRead0(Native Method)
     at java.net.SocketInputStream.read(SocketInputStream.java:129)
     at oracle.net.ns.Packet.receive(Unknown Source)
     at oracle.net.ns.NSProtocol.connect(Unknown Source)
     at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:707)
     at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:218)
     at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:343)
     at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:147)
     at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:31)
     at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:545)
     at java.sql.DriverManager.getConnection(DriverManager.java:525)
     - locked <0xffffffff2045e108> (a java.lang.Class)
     at java.sql.DriverManager.getConnection(DriverManager.java:171)
     - locked <0xffffffff2045e108> (a java.lang.Class)
     at com.jpm.mra.common.DBUtil.getDBConnection(Unknown Source)
     at com.jpm.mra.bulking.BaseBulker.openConnection(Unknown Source)
     at com.jpm.mra.bulking.GenericBulker.run(Unknown Source)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
     at java.lang.Thread.run(Thread.java:595)
"pool-1-thread-18" prio=10 tid=0x0000000100f905a0 nid=0x63 waiting for monitor entry [0xffffffff1ebfe000..0xffffffff1ebff9a8]
     at java.sql.DriverManager.registerDriver(DriverManager.java:259)
     - waiting to lock <0xffffffff2045e108> (a java.lang.Class)
     at com.jpm.mra.common.DBUtil.getDBConnection(Unknown Source)
     at com.jpm.mra.bulking.BaseBulker.openConnection(Unknown Source)
     at com.jpm.mra.bulking.GenericBulker.run(Unknown Source)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
     at java.lang.Thread.run(Thread.java:595)
"pool-1-thread-17" prio=10 tid=0x0000000101a531b0 nid=0x62 waiting for monitor entry [0xffffffff1edfe000..0xffffffff1edff928]
     at java.sql.DriverManager.registerDriver(DriverManager.java:259)
     - waiting to lock <0xffffffff2045e108> (a java.lang.Class)
     at com.jpm.mra.common.DBUtil.getDBConnection(Unknown Source)
     at com.jpm.mra.bulking.BaseBulker.openConnection(Unknown Source)
     at com.jpm.mra.bulking.GenericBulker.run(Unknown Source)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
     at java.lang.Thread.run(Thread.java:595)
"pool-1-thread-16" prio=10 tid=0x000000010171ced0 nid=0x61 waiting for monitor entry [0xffffffff1f0fe000..0xffffffff1f0ff6a8]
     at java.sql.DriverManager.registerDriver(DriverManager.java:259)
     - waiting to lock <0xffffffff2045e108> (a java.lang.Class)
     at com.jpm.mra.common.DBUtil.getDBConnection(Unknown Source)
     at com.jpm.mra.bulking.BaseBulker.openConnection(Unknown Source)
     at com.jpm.mra.bulking.GenericBulker.run(Unknown Source)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
     at java.lang.Thread.run(Thread.java:595)
"pool-1-thread-15" prio=10 tid=0x0000000100ea6a70 nid=0x60 waiting for monitor entry [0xffffffff1f2fe000..0xffffffff1f2ff628]
     at java.sql.DriverManager.registerDriver(DriverManager.java:259)
     - waiting to lock <0xffffffff2045e108> (a java.lang.Class)
     at com.jpm.mra.common.DBUtil.getDBConnection(Unknown Source)
     at com.jpm.mra.bulking.BaseBulker.openConnection(Unknown Source)
     at com.jpm.mra.bulking.GenericBulker.run(Unknown Source)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
     at java.lang.Thread.run(Thread.java:595)
"pool-1-thread-14" prio=10 tid=0x0000000101a520b0 nid=0x5f waiting for monitor entry [0xffffffff1f4fe000..0xffffffff1f4ff7a8]
     at java.sql.DriverManager.registerDriver(DriverManager.java:259)
     - waiting to lock <0xffffffff2045e108> (a java.lang.Class)
     at com.jpm.mra.common.DBUtil.getDBConnection(Unknown Source)
     at com.jpm.mra.bulking.BaseBulker.openConnection(Unknown Source)
     at com.jpm.mra.bulking.GenericBulker.run(Unknown Source)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
     at java.lang.Thread.run(Thread.java:595)
"pool-1-thread-13" prio=10 tid=0x0000000100e7a870 nid=0x5e waiting for monitor entry [0xffffffff1f6fe000..0xffffffff1f6ff728]
     at java.sql.DriverManager.registerDriver(DriverManager.java:259)
     - waiting to lock <0xffffffff2045e108> (a java.lang.Class)
     at com.jpm.mra.common.DBUtil.getDBConnection(Unknown Source)
     at com.jpm.mra.bulking.BaseBulker.openConnection(Unknown Source)
     at com.jpm.mra.bulking.GenericBulker.run(Unknown Source)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
     at java.lang.Thread.run(Thread.java:595)
"pool-1-thread-12" prio=10 tid=0x0000000100ea7430 nid=0x5d waiting for monitor entry [0xffffffff1f8fe000..0xffffffff1f8ff8a8]
     at java.sql.DriverManager.registerDriver(DriverManager.java:259)
     - waiting to lock <0xffffffff2045e108> (a java.lang.Class)
     at com.jpm.mra.common.DBUtil.getDBConnection(Unknown Source)
     at com.jpm.mra.bulking.BaseBulker.openConnection(Unknown Source)
     at com.jpm.mra.bulking.GenericBulker.run(Unknown Source)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
     at java.lang.Thread.run(Thread.java:595)
"pool-1-thread-11" prio=10 tid=0x0000000101262330 nid=0x5c waiting for monitor entry [0xffffffff1fafe000..0xffffffff1faff828]
     at java.sql.DriverManager.registerDriver(DriverManager.java:259)
     - waiting to lock <0xffffffff2045e108> (a java.lang.Class)
     at com.jpm.mra.common.DBUtil.getDBConnection(Unknown Source)
     at com.jpm.mra.bulking.BaseBulker.openConnection(Unknown Source)
     at com.jpm.mra.bulking.GenericBulker.run(Unknown Source)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
     at java.lang.Thread.run(Thread.java:595)
"pool-1-thread-10" prio=10 tid=0x0000000100b66160 nid=0x5b waiting for monitor entry [0xffffffff1fcfe000..0xffffffff1fcff9a8]
     at java.sql.DriverManager.registerDriver(DriverManager.java:259)
     - waiting to lock <0xffffffff2045e108> (a java.lang.Class)
     at com.jpm.mra.common.DBUtil.getDBConnection(Unknown Source)
     at com.jpm.mra.bulking.BaseBulker.openConnection(Unknown Source)
     at com.jpm.mra.bulking.GenericBulker.run(Unknown Source)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
     at java.lang.Thread.run(Thread.java:595)
"pool-1-thread-9" prio=10 tid=0x0000000100b47ff0 nid=0x5a waiting for monitor entry [0xffffffff1fefe000..0xffffffff1feff928]
     at java.sql.DriverManager.registerDriver(DriverManager.java:259)
     - waiting to lock <0xffffffff2045e108> (a java.lang.Class)
     at com.jpm.mra.common.DBUtil.getDBConnection(Unknown Source)
     at com.jpm.mra.bulking.BaseBulker.openConnection(Unknown Source)
     at com.jpm.mra.bulking.GenericBulker.run(Unknown Source)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
     at java.lang.Thread.run(Thread.java:595)
"pool-1-thread-8" prio=10 tid=0x0000000101a7ac70 nid=0x59 waiting for monitor entry [0xffffffff65afe000..0xffffffff65aff6a8]
     at java.sql.DriverManager.registerDriver(DriverManager.java:259)
     - waiting to lock <0xffffffff2045e108> (a java.lang.Class)
     at com.jpm.mra.common.DBUtil.getDBConnection(Unknown Source)
     at com.jpm.mra.bulking.BaseBulker.openConnection(Unknown Source)
     at com.jpm.mra.bulking.GenericBulker.run(Unknown Source)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
     at java.lang.Thread.run(Thread.java:595)
"pool-1-thread-7" prio=10 tid=0x0000000101212460 nid=0x58 waiting for monitor entry [0xffffffff65cfe000..0xffffffff65cff628]
     at java.sql.DriverManager.registerDriver(DriverManager.java:259)
     - waiting to lock <0xffffffff2045e108> (a java.lang.Class)
     at com.jpm.mra.common.DBUtil.getDBConnection(Unknown Source)
     at com.jpm.mra.bulking.BaseBulker.openConnection(Unknown Source)
     at com.jpm.mra.bulking.GenericBulker.run(Unknown Source)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
     at java.lang.Thread.run(Thread.java:595)
"pool-1-thread-6" prio=10 tid=0x0000000100f8f6f0 nid=0x57 waiting for monitor entry [0xffffffff65efe000..0xffffffff65eff7a8]
     at java.sql.DriverManager.registerDriver(DriverManager.java:259)
     - waiting to lock <0xffffffff2045e108> (a java.lang.Class)
     at com.jpm.mra.common.DBUtil.getDBConnection(Unknown Source)
     at com.jpm.mra.bulking.BaseBulker.openConnection(Unknown Source)
     at com.jpm.mra.bulking.GenericBulker.run(Unknown Source)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
     at java.lang.Thread.run(Thread.java:595)
"pool-1-thread-5" prio=10 tid=0x0000000100c7c420 nid=0x56 waiting for monitor entry [0xffffffff660fe000..0xffffffff660ff728]
     at java.sql.DriverManager.registerDriver(DriverManager.java:259)
     - waiting to lock <0xffffffff2045e108> (a java.lang.Class)
     at com.jpm.mra.common.DBUtil.getDBConnection(Unknown Source)
     at com.jpm.mra.bulking.BaseBulker.openConnection(Unknown Source)
     at com.jpm.mra.bulking.GenericBulker.run(Unknown Source)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
     at java.lang.Thread.run(Thread.java:595)
"pool-2-thread-1" prio=10 tid=0x0000000101a41370 nid=0x55 waiting for monitor entry [0xffffffff662fe000..0xffffffff662ff8a8]
     at java.sql.DriverManager.registerDriver(DriverManager.java:259)
     - waiting to lock <0xffffffff2045e108> (a java.lang.Class)
     at com.jpm.mra.common.DBUtil.getDBConnection(Unknown Source)
     at com.jpm.mra.bulking.BaseBulker.openConnection(Unknown Source)
     at com.jpm.mra.bulking.GenericBulker.run(Unknown Source)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
     at java.lang.Thread.run(Thread.java:595)
"pool-1-thread-4" prio=10 tid=0x0000000101a28ef0 nid=0x54 waiting for monitor entry [0xffffffff664fe000..0xffffffff664ff828]
     at java.sql.DriverManager.registerDriver(DriverManager.java:259)
     - waiting to lock <0xffffffff2045e108> (a java.lang.Class)
     at com.jpm.mra.common.DBUtil.getDBConnection(Unknown Source)
     at com.jpm.mra.bulking.BaseBulker.openConnection(Unknown Source)
     at com.jpm.mra.bulking.GenericBulker.run(Unknown Source)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
     at java.lang.Thread.run(Thread.java:595)
"pool-1-thread-3" prio=10 tid=0x00000001009a1850 nid=0x53 waiting for monitor entry [0xffffffff666fe000..0xffffffff666ff9a8]
     at java.sql.DriverManager.registerDriver(DriverManager.java:259)
     - waiting to lock <0xffffffff2045e108> (a java.lang.Class)
     at com.jpm.mra.common.DBUtil.getDBConnection(Unknown Source)
     at com.jpm.mra.bulking.BaseBulker.openConnection(Unknown Source)
     at com.jpm.mra.bulking.GenericBulker.run(Unknown Source)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
     at java.lang.Thread.run(Thread.java:595)
"pool-1-thread-2" prio=10 tid=0x0000000100f8e980 nid=0x52 waiting for monitor entry [0xffffffff668fe000..0xffffffff668ff928]
     at java.sql.DriverManager.registerDriver(DriverManager.java:259)
     - waiting to lock <0xffffffff2045e108> (a java.lang.Class)
     at com.jpm.mra.common.DBUtil.getDBConnection(Unknown Source)
     at com.jpm.mra.bulking.BaseBulker.openConnection(Unknown Source)
     at com.jpm.mra.bulking.GenericBulker.run(Unknown Source)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
     at java.lang.Thread.run(Thread.java:595)
"pool-1-thread-1" prio=10 tid=0x0000000100bd86f0 nid=0x51 waiting for monitor entry [0xffffffff67afe000..0xffffffff67aff6a8]
     at java.sql.DriverManager.registerDriver(DriverManager.java:259)
     - waiting to lock <0xffffffff2045e108> (a java.lang.Class)
     at com.jpm.mra.common.DBUtil.getDBConnection(Unknown Source)
     at com.jpm.mra.bulking.BaseBulker.openConnection(Unknown Source)
     at com.jpm.mra.bulking.GenericBulker.run(Unknown Source)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
     at java.lang.Thread.run(Thread.java:595)
"Thread-5" prio=10 tid=0x0000000100b66b90 nid=0x50 waiting on condition [0xffffffff67cff000..0xffffffff67cff628]
     at java.lang.Thread.sleep(Native Method)
     at com.jpm.mra.bulking.IntervalBulker.run(Unknown Source)
     at java.lang.Thread.run(Thread.java:595)
"Thread-3" prio=10 tid=0x0000000100f36860 nid=0x4f waiting on condition [0xffffffff67eff000..0xffffffff67eff7a8]
     at java.lang.Thread.sleep(Native Method)
     at com.jpm.mra.bulking.ClockBulker.run(Unknown Source)
     at java.lang.Thread.run(Thread.java:595)
"Thread-1" prio=10 tid=0x0000000100a4b300 nid=0x4e waiting on condition [0xffffffff680ff000..0xffffffff680ff728]
     at java.lang.Thread.sleep(Native Method)
     at com.jpm.mra.bulking.DepthBulker.run(Unknown Source)
     at java.lang.Thread.run(Thread.java:595)
"Thread-4" prio=10 tid=0x0000000100a4c380 nid=0x4d waiting on condition [0xffffffff682ff000..0xffffffff682ff8a8]
     at java.lang.Thread.sleep(Native Method)
     at com.jpm.mra.bulking.IntervalBulkerStaticDataPoller.run(Unknown Source)
     at java.lang.Thread.run(Thread.java:595)
"Thread-2" prio=10 tid=0x0000000100bcf260 nid=0x4c waiting on condition [0xffffffff684ff000..0xffffffff684ff828]
     at java.lang.Thread.sleep(Native Method)
     at com.jpm.mra.bulking.ClockBulkerStaticDataPoller.run(Unknown Source)
     at java.lang.Thread.run(Thread.java:595)
"Thread-0" prio=10 tid=0x0000000100a1b2d0 nid=0x4b waiting on condition [0xffffffff689ff000..0xffffffff689ff9a8]
     at java.lang.Thread.sleep(Native Method)
     at com.jpm.mra.bulking.MRABulking.run(Unknown Source)
     at java.lang.Thread.run(Thread.java:595)
"Low Memory Detector" daemon prio=10 tid=0x00000001006db880 nid=0x49 runnable [0x0000000000000000..0x0000000000000000]
"CompilerThread1" daemon prio=10 tid=0x00000001006da9e0 nid=0x48 waiting on condition [0x0000000000000000..0xffffffff6b6fdcc8]
"CompilerThread0" daemon prio=10 tid=0x00000001006d72a0 nid=0x47 waiting on condition [0x0000000000000000..0xffffffff6b8fde58]
"AdapterThread" daemon prio=10 tid=0x00000001006d6370 nid=0x46 waiting on condition [0x0000000000000000..0x0000000000000000]
"Signal Dispatcher" daemon prio=10 tid=0x00000001006d5440 nid=0x45 waiting on condition [0x0000000000000000..0x0000000000000000]
"Finalizer" daemon prio=10 tid=0x00000001006bf6b0 nid=0x44 in Object.wait() [0xffffffff6beff000..0xffffffff6beff828]
     at java.lang.Object.wait(Native Method)
     - waiting on <0xffffffff2544e010> (a java.lang.ref.ReferenceQueue$Lock)
     at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:120)
     - locked <0xffffffff2544e010> (a java.lang.ref.ReferenceQueue$Lock)
     at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:136)
     at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)
"Reference Handler" daemon prio=10 tid=0x00000001006bd500 nid=0x43 in Object.wait() [0xffffffff6c0ff000..0xffffffff6c0ff9a8]
     at java.lang.Object.wait(Native Method)
     - waiting on <0xffffffff2544e000> (a java.lang.ref.Reference$Lock)
     at java.lang.Object.wait(Object.java:474)
     at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
     - locked <0xffffffff2544e000> (a java.lang.ref.Reference$Lock)
"main" prio=10 tid=0x000000010011ed20 nid=0x1 in Object.wait() [0xffffffff7fff5000..0xffffffff7fff56e0]
     at java.lang.Object.wait(Native Method)
     - waiting on <0xffffffff25456218> (a java.lang.Thread)
     at java.lang.Thread.join(Thread.java:1095)
     - locked <0xffffffff25456218> (a java.lang.Thread)
     at java.lang.Thread.join(Thread.java:1148)
     at com.jpm.mra.bulking.MRABulking.main(Unknown Source)
"VM Thread" prio=10 tid=0x00000001006b9790 nid=0x42 runnable
"GC task thread#0 (ParallelGC)" prio=10 tid=0x00000001001d47d0 nid=0x2 runnable
"GC task thread#1 (ParallelGC)" prio=10 tid=0x00000001001d5270 nid=0x3 runnable
"GC task thread#2 (ParallelGC)" prio=10 tid=0x00000001001d5d70 nid=0x4 runnable
"GC task thread#3 (ParallelGC)" prio=10 tid=0x00000001001d6870 nid=0x5 runnable
"GC task thread#4 (ParallelGC)" prio=10 tid=0x00000001001d7370 nid=0x6 runnable
"GC task thread#5 (ParallelGC)" prio=10 tid=0x00000001001d7e70 nid=0x7 runnable
"GC task thread#6 (ParallelGC)" prio=10 tid=0x00000001001d8970 nid=0x8 runnable
"GC task thread#7 (ParallelGC)" prio=10 tid=0x00000001001d9470 nid=0x9 runnable
"GC task thread#8 (ParallelGC)" prio=10 tid=0x00000001001d9f70 nid=0xa runnable
"GC task thread#9 (ParallelGC)" prio=10 tid=0x00000001001daa70 nid=0xb runnable
"GC task thread#10 (ParallelGC)" prio=10 tid=0x00000001001db570 nid=0xc runnable
"GC task thread#11 (ParallelGC)" prio=10 tid=0x00000001001dc070 nid=0xd runnable
"GC task thread#12 (ParallelGC)" prio=10 tid=0x00000001001dcb70 nid=0xe runnable
"GC task thread#13 (ParallelGC)" prio=10 tid=0x00000001001dd670 nid=0xf runnable
"GC task thread#14 (ParallelGC)" prio=10 tid=0x00000001001de170 nid=0x10 runnable
"GC task thread#15 (ParallelGC)" prio=10 tid=0x00000001001dec70 nid=0x11 runnable
"GC task thread#16 (ParallelGC)" prio=10 tid=0x00000001001df7b0 nid=0x12 runnable
"GC task thread#17 (ParallelGC)" prio=10 tid=0x00000001001e02b0 nid=0x13 runnable
"GC task thread#18 (ParallelGC)" prio=10 tid=0x00000001001e0db0 nid=0x14 runnable
"GC task thread#19 (ParallelGC)" prio=10 tid=0x00000001001e18b0 nid=0x15 runnable
"GC task thread#20 (ParallelGC)" prio=10 tid=0x00000001001e23b0 nid=0x16 runnable
"GC task thread#21 (ParallelGC)" prio=10 tid=0x00000001001e2eb0 nid=0x17 runnable
"GC task thread#22 (ParallelGC)" prio=10 tid=0x00000001001e39b0 nid=0x18 runnable
"GC task thread#23 (ParallelGC)" prio=10 tid=0x00000001001e44b0 nid=0x19 runnable
"GC task thread#24 (ParallelGC)" prio=10 tid=0x00000001001e4fb0 nid=0x1a runnable
"GC task thread#25 (ParallelGC)" prio=10 tid=0x00000001001e5ab0 nid=0x1b runnable
"GC task thread#26 (ParallelGC)" prio=10 tid=0x00000001001e65b0 nid=0x1c runnable
"GC task thread#27 (ParallelGC)" prio=10 tid=0x00000001001e70b0 nid=0x1d runnable
"GC task thread#28 (ParallelGC)" prio=10 tid=0x00000001001e7bb0 nid=0x1e runnable
"GC task thread#29 (ParallelGC)" prio=10 tid=0x00000001001e86b0 nid=0x1f runnable
"GC task thread#30 (ParallelGC)" prio=10 tid=0x00000001001e91b0 nid=0x20 runnable
"GC task thread#31 (ParallelGC)" prio=10 tid=0x00000001001e9cb0 nid=0x21 runnable
"GC task thread#32 (ParallelGC)" prio=10 tid=0x00000001001ea7b0 nid=0x22 runnable
"GC task thread#33 (ParallelGC)" prio=10 tid=0x00000001001eb2b0 nid=0x23 runnable
"GC task thread#34 (ParallelGC)" prio=10 tid=0x00000001001ebdb0 nid=0x24 runnable
"GC task thread#35 (ParallelGC)" prio=10 tid=0x00000001001ec8b0 nid=0x25 runnable
"GC task thread#36 (ParallelGC)" prio=10 tid=0x00000001001ed3b0 nid=0x26 runnable
"GC task thread#37 (ParallelGC)" prio=10 tid=0x00000001001edeb0 nid=0x27 runnable
"GC task thread#38 (ParallelGC)" prio=10 tid=0x00000001001f09c0 nid=0x28 runnable
"GC task thread#39 (ParallelGC)" prio=10 tid=0x00000001001f14c0 nid=0x29 runnable
"GC task thread#40 (ParallelGC)" prio=10 tid=0x00000001001f1fc0 nid=0x2a runnable
"GC task thread#41 (ParallelGC)" prio=10 tid=0x00000001001f2ac0 nid=0x2b runnable
"GC task thread#42 (ParallelGC)" prio=10 tid=0x00000001001f35c0 nid=0x2c runnable
"GC task thread#43 (ParallelGC)" prio=10 tid=0x00000001001f40c0 nid=0x2d runnable
"GC task thread#44 (ParallelGC)" prio=10 tid=0x00000001001f4bc0 nid=0x2e runnable
"GC task thread#45 (ParallelGC)" prio=10 tid=0x00000001001f56c0 nid=0x2f runnable
"GC task thread#46 (ParallelGC)" prio=10 tid=0x00000001001f61c0 nid=0x30 runnable
"GC task thread#47 (ParallelGC)" prio=10 tid=0x00000001001f6cc0 nid=0x31 runnable
"GC task thread#48 (ParallelGC)" prio=10 tid=0x00000001001f7810 nid=0x32 runnable
"GC task thread#49 (ParallelGC)" prio=10 tid=0x00000001001f8310 nid=0x33 runnable
"GC task thread#50 (ParallelGC)" prio=10 tid=0x00000001001f8e10 nid=0x34 runnable
"GC task thread#51 (ParallelGC)" prio=10 tid=0x00000001001f9910 nid=0x35 runnable
"GC task thread#52 (ParallelGC)" prio=10 tid=0x00000001001fa410 nid=0x36 runnable
"GC task thread#53 (ParallelGC)" prio=10 tid=0x00000001001faf10 nid=0x37 runnable
"GC task thread#54 (ParallelGC)" prio=10 tid=0x00000001001fba10 nid=0x38 runnable
"GC task thread#55 (ParallelGC)" prio=10 tid=0x00000001001fc510 nid=0x39 runnable
"GC task thread#56 (ParallelGC)" prio=10 tid=0x00000001001fd010 nid=0x3a runnable
"GC task thread#57 (ParallelGC)" prio=10 tid=0x00000001001fdb10 nid=0x3b runnable
"GC task thread#58 (ParallelGC)" prio=10 tid=0x00000001001fe610 nid=0x3c runnable
"GC task thread#59 (ParallelGC)" prio=10 tid=0x00000001001ff110 nid=0x3d runnable
"GC task thread#60 (ParallelGC)" prio=10 tid=0x00000001001ffc10 nid=0x3e runnable
"GC task thread#61 (ParallelGC)" prio=10 tid=0x0000000100200710 nid=0x3f runnable
"GC task thread#62 (ParallelGC)" prio=10 tid=0x0000000100201210 nid=0x40 runnable
"GC task thread#63 (ParallelGC)" prio=10 tid=0x0000000100201d10 nid=0x41 runnable
"VM Periodic Task Thread" prio=10 tid=0x00000001001c93f0 nid=0x4a waiting on condition
Edited by: krodman on 08-Jan-2010 04:03

Similar Messages

  • Jdbc connection using oracle thin driver( using jdk1.4 and oracle8 )

    hello ..
    while i was tring to connection using oracle thin driver and jdk1.4 am getting the below error message. i have set the class path for the driver also. am using oracle8 personal edition and jdk1.4.
    [java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
            at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
            at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
            at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:333)
            at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:404)
            at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va:468)
            at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
            at java.sql.DriverManager.getConnection(DriverManager.java:512)
            at java.sql.DriverManager.getConnection(DriverManager.java:171)
            at Connexa.main(Connexa.java:18)[/b]
    Press any key to continue...
    my program is....
    import java.sql.*;                                          
    import java.io.*;
    import java.util.*;
    import oracle.jdbc.driver.*;
    // needed for new BFILE class
    import oracle.sql.*;
       public class Connexa {
      public static void main (String args []) throws Exception {
            Statement stmt=null; 
      try{
        // Load the Oracle JDBC driver                            
        //DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Class.forName("oracle.jdbc.driver.OracleDriver");
        // Connect to the database
        // You can put a database name after the @ sign in the connection URL.
    Connection conn =
    DriverManager.getConnection("jdbc:oracle:thin:@127.0.0.1:1521:orcl","scott","tiger");
        //Connection conn =
        //  DriverManager.getConnection ("jdbc:odbc:datasource", "system", "manager");
        stmt = conn.createStatement ();
    catch (SQLException e)
          e.printStackTrace();

    The code itself is fine; the problem is with one of:
    1) the connection URL
    2) intermediate networking
    3) the database itself
    1) your connection URL is "jdbc:oracle:thin:@127.0.0.1:1521:orcl"
    - is Oracle really running on the default port, 1521
    - is the installation SID really "orcl"
    2) lots of possibilities, but only a couple are likely
    - is TCP/IP configured and running on your host
    - is there a persoanl firewall rpduct running? perhaps it's blocking the connection
    3) Is Oracle running?
    Is the listener running?

  • OS Authentication using JDBC Thin driver

    Hi
    I have a problem while connecting to Oracle database using JDBC Thin Driver, Basically I am trying to connect using OS Authentication. The following explains clearly what I am trying to do.
    String connectionURL = "jdbc:oracle:thin:@localhost:1521:XYZ";
    String userName = "/";
    String password = "";
    java.util.Properties info = new java.util.Properties();
    info.setProperty("user",userName);
    info.setProperty("password",password);
    conn = DriverManager.getConnection(connectionURL,info);
    When executing the code I am getting an exception as follows.
    java.sql.SQLException: Null user or password not supported in THIN driver
    When i searched in the Oracle site i got the below information
    Note:
    By default, the JDBC driver retrieves the OS username from the user.name system property, which is set by the JVM. If the JDBC driver is unable to retrieve this system property or if you want to override the value of this system property, then you can use the OracleConnection.CONNECTION_PROPERTY_THIN_VSESSION_OSUSER connection property. For more information, see Oracle Javadoc.
    I want to know how to set the OracleConnection.CONNECTION_PROPERTY_THIN_VSESSION_OSUSER connection property.
    Advance Thanks

    Based on your code, when you try to connect your username is null and the password is "/". You are not going to be able to get the OS password using Java.

  • How can I see KSC5602 character set using JDBC thin driver

    After I change character set from USASCII7 to KO16KSC5601, I
    cannot see korean from the clients
    using JDBC thin driver.
    But, I can see korean clearly using sqlplus at serer, or
    application using SQLNet.
    I use Oracle Enterprise Server 8.0.4.1.0, jdbc thin driver
    8.0.4.0.6 on Windows 98. I read that all bugs realated
    to multibyte language are fixed in Oracle8. What can I do to
    solve this problem?
    PS.server: Oracle 8.0.4.1 on Digital Unix 4.0b, client: jdk1.1.8
    on Windows98. I used the command.
    null

    The easiest thing to do is download it as an archive with your applet.
    Otherwise, you have to have the files on every client machine.
    For netscape, put the classes111.jar in the java classes folder typically:
    c:\ProgramFiles\Netscape\Communicator\Program\java\classes.
    I'd expect that IE would be setup in a similar way.

  • Connection error to 9i database using JDBC thin driver

    When trying to connect to a new 9i database using the JDBC thin driver, I received the following error:
    java.sql.SQLException: ORA-00600: internal error code, arguments: [ttcgcshnd-1], [0], [], [], [], [], [], []
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java)
    at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java)
    at oracle.jdbc.ttc7.Oall7.receive(Oall7.java)
    at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java)
    at oracle.jdbc.ttc7.TTC7Protocol.fetch(TTC7Protocol.java)
    at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java)
    at oracle.jdbc.driver.OracleStatement.doExecute(OracleStatement.java)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java)
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java)
    at oracle.jdbc.driver.OracleDatabaseMetaData.getTables(OracleDatabaseMetaData.java)
    I have no problem with my code connecting to an Oracle 8 database, just 9i.
    I'm trying to debug in Visual Cafe (JDK 1.1.7) and have both the classes111.zip and the nls_charset11.zip in my CLASSPATH.
    Any suggestions would be appreciated. Thanks

    If you're using 8i 8.1.7.1 or 8i 8.1.7.0 thin JDBC drivers on NT, then you can get them to connect to 9i by applying the 8i 8.1.7.1 Patch available at:
    http://technet.oracle.com/software/tech/java/sqlj_jdbc/htdocs/solsoft.html
    You might have to register/login first.
    Basically, it's just a case of replacing a class already in your classes111.zip or classes12.zip with the class in the patch.
    Took me a while to find this, but it worked first time after patching. Hope this helps.

  • SSL connection with JDBC thin driver

    I am attempting to connect to an instance of Oracle 10.2 using the JDBC thin driver with SSL. I want to use the encryption feature of SSL only, but I can not perform the getConnection on the DataSource without running into an exception. According the JDBC docs, the SSL encryption feature is new for the 10.2 release of the JDBC thin driver, but I have seen no working examples. See http://download.oracle.com/docs/cd/B19306_01/java.102/b14355/overvw.htm#CHDIHFBD
    I am using ojdbc14.jar on Java 5.0 using a standalone application, and it fails with an IOException (The network adapter could not establish the connection) (Error code 17002). I even enabled tracing using the ojdbc-g.jar to try to figure out what the REAL problem is, but it was not helpful at determining a root cause. I changed the driver type from "thin" to "oci" (and installed Oracle Instant client for my test machine) and the connection works just fine using the same tnsnames file, the same wallet, and the same cipher suite. From the Java perspective the only thing that changed was four characters -> "thin" became "oci". I am still using password based authentication as I understand that the authentication part of SSL is not supported in the thin driver on 10.2
    Can anyone verify that the SSL encryption works with JDBC thin as advertised? (not the Oracle Net encryption, but rather the one described in Chapter 11 of the JDBC Developer's Guide. See http://download.oracle.com/docs/cd/B19306_01/java.102/b14355/sslthin.htm#CHDFEICG
    I really would prefer to avoid using the OCI driver because of its dependencies on the native platform. Is there something special with how the users are created or how the JDBC API should be used? I am setting what I think to be appropriate parameters (oracle.net.wallet_location, oracle.net.cipher_suites) all to no avail. Does anyone have a working example they can provide?

    1) I would suggest posting this question over in the JDBC forum. The folks over there are far more likely to be able to help you.
    2) When you do post this question over there, I would strongly suggest posting some sample code/ configuration scripts so that folks can reproduce your problem on their local machines. That tends to make it far easier to debug the problem and/or to notice if you've missed a step.
    Justin

  • Problem using JDBC Thin driver with Oracle 8i Personal Edition

    Hi all, I have an issue I have been unable to figure out. In order to make my code as portable as possible I am using the JDBC thin driver to access my database. I have been able to connect to an instance of Oracle 8i on a Sun box by hardcoding the following string into getConnection() call:
    conn = DriverManager.getConnection("jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(COMMUNITY=tcp.world)(PROTOCOL=TCP)(Host=<myhostname>)(Port=1521))(ADDRESS=(COMMUNITY=tcp.w orld)(PROTOCOL=TCP)(Host = <myhostname>)(Port = 1526)))(CONNECT_DATA = (SID = <mysidname>)))", <myuser>, <mypassword>);
    My problem is that I cannot figure out what string to use to connect to my local instance of Oracle 8i Personal. I used the following string (the sid I got from the looking at the init.ora file):
    conn = DriverManager.getConnection("jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(COMMUNITY=tcp.world)(PROTOCOL=TCP)(Host=localhost)(Port=1521))(ADDRESS=(COMMUNITY=tcp.world)(PRO TOCOL=TCP)(Host = localhost)(Port = 1526)))(CONNECT_DATA = (SID = orcl)))", "scott", "tiger");
    That didn't work, so I took the only entry found in my tnsnames.ora file in as:
    conn = DriverManager.getConnection("jdbc:oracle:thin:@(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0)))(CONNECT_DATA = (SID = PLSExtProc)(PRESENTATION = RO)))", "scott", "tiger");
    I am not knowing what is wrong, but that didn't work neither. Any suggestions would be highly appreciated.
    Thanks....
    null

    try this:
    conn = DriverManager.getConnection("jdbc:oracle:thin:scott/tiger:@hostname:1521:sid");
    or use system/manager as username/passward
    null

  • Using JDBC-thin driver

    Hello,
    I am using CMSDK on a propretary software, after the upgrade to version 9.0.3, it seems that the API uses by default the OCI driver and it looks for the db url from the domain url when starting the IFS service.
    The problem with that is the JDBC-OCI driver character encoding of utf-8 charaters in C which transforms the characters in an unwanted form (I use arabic characters in input and get garbage stored in the database).
    Is there a way to make CMSDK uses the jdbc-thin driver instead of jdbc-oci driver?
    I hope so, and I would like to know how to do it.
    Thanks in advance.
    Amin AZZI
    AAcom Algérie.
    Algiers/Algeria

    Hello everybody,
    I could finally use the JDBC-THIN driver by directly changing the IFS.SERVICE.JDBC.DriverType property in the database repository to thin (by default it is oci8).
    Since there are three different services configurations someone must change the correct one.
    Amine.

  • OS_USER not correct when connecting using JDBC Thin Client on 10G

    Hi Folks,
    We are migrating an application from a 9i database to 10g and have a problem that someone might have come across before.
    The application is a Java applet based application that connects to the database using JDBC Thin client. on 9i the OS_USER comes up as the user running the applet but in 10G it is coming up as the user account that installed 10G on the DB server.
    We tried using a 9i client to identify if it was a client or DB issue but its the same problem with the 9i client connecting to the 10G DB.
    If anyone can help it would be much appreciated.
    Thanks,
    John.

    What is the return of this command?
    SELECT sys_context ('USERENV', 'OS_USER') FROM dual;
    Is it the DB user or the OS user?

  • Alphanumeric sort & comparation using JDBC thin driver

    I'm executing this query from java through a JDBC thin driver
    SELECT COD
    FROM TABLE
    ORDER BY COD
    and the result is 'A','B','C','D','1','2','3'
    If I execute the query
    SELECT COD
    FROM TABLE
    WHERE COD > '1'
    ORDER BY COD
    the result is 'A','B','C','D','2','3' when the result expected is '2','3'
    I think the problem is in the value of NLS_SORT AND NLS_COMP but I don't know the solution. Could you help me?
    Thank you

    The easiest thing to do is download it as an archive with your applet.
    Otherwise, you have to have the files on every client machine.
    For netscape, put the classes111.jar in the java classes folder typically:
    c:\ProgramFiles\Netscape\Communicator\Program\java\classes.
    I'd expect that IE would be setup in a similar way.

  • Memory Leak when TOMCAT connects to Oracle 10g RAC using JDBC Thin driver.

    We had experienced Memory leak when a Oracle 10g (10.2.0.3) RAC node was evicted. TOMCAT app server is connecting to the Oracle 10g RAC database instances using JDBC 10.2.0.3 thin driver.
    Anyone had similar experience?
    Any ideas? Any bugs reported/fixed?
    Thanks,
    Raj

    If you're doing XA, we absolutely do not support
    driver-level load-balancing OR failover. Use neither.
    For non-XA, you can use driver-level failover. For
    non-XA, you could set load-balancing, but it won't
    help because we get connections from the driver,
    and keep them indefinitely, so the driver never gets
    the chance to affect which connections the pool
    uses after that.

  • Retrieving XMLType using JDBC(THIN DRIVER)

    Oracle Database: 10g R2
    Java version: 1.4+
    Hi All,
    I have a column of type XMLType in a database table . I have to retrieve it using Oracle XDK APIs as an instance of oracle.xdb.XMLType. How to go about this using thin driver?
    Thanks

    Hello,
    Download the oracle xdk for your platform and copy the jars xdb.jar and xmlparserv2.jar from it to your classpath. Then download the latest ojdbc14.jar driver and add it to your classpath.
    Then use the following example code snippet to extract the xml from the xml-column in the resultset:
    import javax.xml.transform.OutputKeys;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    import oracle.xdb.XMLType;
    import org.w3c.dom.Document;
    Object     object = resultSet.getObject("xmlcolumnname");
    if (object instanceof XMLType) {
         Document          document = ((XMLType)object).getDOM();
         Transformer          transformer = TransformerFactory.newInstance().newTransformer();
         transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION,"yes");
         transformer.setOutputProperty(OutputKeys.INDENT,"no");
         transformer.transform(new DOMSource(document),new StreamResult(System.out));
    } else {
    In your query that produces the resultset, it's important to add the procedure ".createNonSchemaBasedXML()" to your xml-value so there is no schema attached to it.
    For example: select myxmlcolumn.createNonSchemaBasedXML() as myxml from mytable;
    or select extract(myxmlcolumn,'//somexpath').createNonSchemaBasedXML() as myxml from mytable;
    Regards, Micha

  • ClassNotFoundException using jdbc thin driver & JDK 1.2.2

    Hi
    I have written an applet to connect to an Oracle 8.0 Data Base
    using the OracleDriver.class, and compiled it using JDK1.1.8.
    However, when I switched to the later JDK1.2.2 (to use the swing
    libraries) I found that I could no longer use the Oracle
    Driver. I get an error:
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    I know that my ClassPath is set correctly, so can anyone suggest
    the cause?
    Regards,
    Rich
    null

    Rich (guest) wrote:
    : Hi
    : I have written an applet to connect to an Oracle 8.0 Data Base
    : using the OracleDriver.class, and compiled it using JDK1.1.8.
    : However, when I switched to the later JDK1.2.2 (to use the
    swing
    : libraries) I found that I could no longer use the Oracle
    : Driver. I get an error:
    : java.lang.ClassNotFoundException:
    oracle.jdbc.driver.OracleDriver
    : I know that my ClassPath is set correctly, so can anyone
    suggest
    : the cause?
    : Regards,
    : Rich
    I had to unzip the file and then it worked.
    null

  • Connect to oracle 8i using jdbc thin driver

    Hi developers....
    I am a new for java. jdk1.5.1,oracle 8i these are installed in my system.those are working well.Now i want to connect oracle database using Thindriver.I have no idea to write a code.Any one give an example for me.
    My system name:developer
    java :jdk1.5.1
    oracle :8i
    Thank u
    with reguards
    sure....:)

    http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/index.html
    http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.html

  • JDBC CONNECTION TO ORACLE9i DB USING JDBC THIN DRIVER 9.2.0

    Hi everyone,
    I have have set my classpath:
    set classpath=.;c:/oracle/ora92/jdbc/lib/ojdbc14.jar;c:/oracle/ora92/jdbc/lib/nls_charset11.zip;c:/oracle/ora92/jdbc/lib/nls_charset12.zip
    i have also specified the jdbc url:
    String url = "jdbc:oracle:thin:@//chuksnb/javanb;
    where chuksnb is the oracle server host and javanb is my oracle service name
    somewhere in the code i have specified the driver class:
    class.forName("ojdbc14.jar")
    please what are the things that i have not done correctly because when i compile my program, i get 31 errors.
    thanks

    "I have have set my classpath:
    set classpath=.;c:/oracle/ora92/jdbc/lib/ojdbc14.jar;c:/oracle/ora92/jdbc/lib/nls_charset11.zip;c:/oracle/ora92/jdbc/lib/nls_charset12.zip"
    This is probably wrong or not going to help you one bit. This isn't the best way to deal with CLASSPATH.
    I don't have an environment variable named CLASSPATH on any machine that I work on. It's not the way to do things, IMO.
    %

Maybe you are looking for

  • Problem with Essbase add-in 9.2.1 and office 2010.

    Hi all, we have a problem with Essbase add in 9.2.1 and office 2010. Every time when a user opens Excel a new (additionally) euntry in the ad-on menue appears. Indeed what happens is, that the add-in is loaded n-times. At the first start of excel one

  • IPhone 4 error9 in recovery mode iOS 4.3.3 vesion

    i am so worried because i cant use my iphone 4 anymore because of this error 9. my version is too high so i was hoping if theres any solution i could do to fix the problem or should i wait for software like recBoot to be release at the moment??---SOS

  • 64-bit compilation problem on Solaris/Intel: 7th argument not initialized

    I have a problem when compiling a program on a 64-bit Solaris Intel server. The problem is that when calling a function, if the 7th or next arguments are long arguments and I pass uncasted small integers values to it, the first 32-bit of my values ar

  • Message in background job

    Hi All, I have a report program which is executed in background. I am calling that from a FM. The report program after successful execution exports the reuslt back to the FM. In the report , I have a validation which goes like if itab is inlitial. me

  • ORACLE 10G IZO 042 ADMIN 1 PRACTICE EXAMS

    I'm in seach of practice exams for IZO 042 exam. Can anybody help me out. My e-mail. [email protected]