Jdbc:oracle:oci?
I am not sure if this is the correct forum.
Can anyone tell me what the current status is regarding
the JDBC 'oci' client?
Last time I tried using it version 9i, I had problems with memory leaks.
I have since began using version 10g 'thin' client.
You will have to do it in the client side.
For more info
http://myjdbc.tripod.com/basic/jdbcoci.html
http://myjdbc.tripod.com/basic/src/JDBCOCITest.html
Regards
Elango.
Similar Messages
-
Trying to Install RMS application 13.2.2 and I get past the pre-installation checks and when I get to the Data Source details and enter the data source details with the check box checked to validate the schema/Test Data Source I get the following error:
Error Connecting to database URL jdbc:oracle:oci:@rmsdbtst as user rms13 java.lang.Exception:UnsatisfiedLinkError encountered when using the Oracle driver. Please check that the library path is set up properly or switch to the JDBC thin client oracle/jdbc/driver/T2CConnection.getLibraryVersioNumber()
Checks performed:
RMS Application code location and directory contents:
[oracle@test-rms-app application]$ pwd
/binary_files/STAGING_DIR/rms/application
[oracle@test-rms-app application]$ ls -ltr
total 144
-rw-r--r-- 1 oracle oinstall 272 Dec 7 2010 version.properties
-rw-r--r-- 1 oracle oinstall 405 Jan 16 2011 expected-object-counts.properties
-rw-r--r-- 1 oracle oinstall 892 May 13 2011 ant.install.properties.sample
-rw-r--r-- 1 oracle oinstall 64004 Jun 6 2011 build.xml
drwxr-xr-x 9 oracle oinstall 4096 Jun 16 2011 rms13
drwxr-xr-x 3 oracle oinstall 4096 Jun 16 2011 installer-resources
drwxr-xr-x 3 oracle oinstall 4096 Jun 16 2011 antinstall
drwxr-xr-x 2 oracle oinstall 4096 Jun 16 2011 ant-ext
drwxr-xr-x 5 oracle oinstall 4096 Jun 16 2011 ant
-rw-r--r-- 1 oracle oinstall 11324 Dec 18 09:18 antinstall-config.xml.ORIG
-rwxr-xr-x 1 oracle oinstall 4249 Dec 18 10:01 install.sh
drwxr-xr-x 4 oracle oinstall 4096 Dec 18 10:06 common
-rw-r--r-- 1 oracle oinstall 16244 Dec 19 10:37 antinstall-config.xml
-rw-r--r-- 1 oracle oinstall 689 Dec 19 10:37 ant.install.log
[oracle@test-rms-app application]$
Application installation:
[oracle@test-rms-app application]$ ./install.sh
THIS IS the driver directory
Verified $ORACLE_SID.
Verified SQL*Plus exists.
Verified write permissions.
Verified formsweb.cfg read permissions.
Verified Registry.dat read permissions.
Verified Java version 1.4.2.x or greater. Java version - 1.6.0
Verified Tk2Motif.rgb settings.
Verified frmcmp_batch.sh status.
WARNING: Oracle Enterprise Linux not detected. Some components may not install properly.
Verified $DISPLAY - 172.16.129.82:0.0.
This installer will ask for your "My Oracle Support" credentials.
Preparing installer. This may take a few moments.
Your internet connection type is: NONE
Integrating My Oracle Support into the product installer workflow...
[move] Moving 1 file to /binary_files/STAGING_DIR/rms/application
Installer preparation complete.
MW_HOME=/u01/app/oracle/Middleware/NewMiddleware1034
ORACLE_HOME=/u01/app/oracle/Middleware/NewMiddleware1034/as_1
ORACLE_INSTANCE=/u01/app/oracle/Middleware/NewMiddleware1034/asinst_1
DOMAIN_HOME=/u01/app/oracle/Middleware/NewMiddleware1034/user_projects/domains/rmsClassDomain
WLS_INSTANCE=WLS_FORMS
ORACLE_SID=rmsdbtst
JAVA_HOME=/u01/app/oracle/jrockit-jdk1.6.0_45-R28.2.7-4.1.0
Launching installer...
To make sure I have connectivity from the app server to the database (on a database server) here are the steps followed:
[oracle@test-rms-app application]$ tnsping rmsdbtst
TNS Ping Utility for Linux: Version 11.1.0.7.0 - Production on 19-DEC-2013 10:41:40
Copyright (c) 1997, 2008, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = test-rms-db.vonmaur.vmc)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SID = rmsdbtst)))
OK (0 msec)
[oracle@test-rms-app application]$
[oracle@test-rms-app application]$ sqlplus rms13@rmsdbtst
SQL*Plus: Release 11.1.0.7.0 - Production on Thu Dec 19 10:46:18 2013
Copyright (c) 1982, 2008, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@test-rms-app application]$
[oracle@test-rms-app application]$ ping test-rms-db
PING test-rms-db.vonmaur.vmc (192.168.1.140) 56(84) bytes of data.
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=1 ttl=64 time=0.599 ms
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=2 ttl=64 time=0.168 ms
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=3 ttl=64 time=0.132 ms
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=4 ttl=64 time=0.158 ms
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=5 ttl=64 time=0.135 ms
--- test-rms-db.vonmaur.vmc ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4001ms
rtt min/avg/max/mdev = 0.132/0.238/0.599/0.181 ms
[oracle@test-rms-app application]$
[oracle@test-rms-app application]$ uname -a
Linux test-rms-app.vonmaur.vmc 2.6.18-128.el5 #1 SMP Wed Jan 21 08:45:05 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
[oracle@test-rms-app application]$
[oracle@test-rms-app application]$ cat /etc/*-release
Enterprise Linux Enterprise Linux Server release 5.3 (Carthage)
Red Hat Enterprise Linux Server release 5.3 (Tikanga)
[oracle@test-rms-app application]$
The database is created and all the batch file scripts have been successfully deployed. Now working on the application server. The Weblogic server is installed and 11g forms and reports are installed successfully.
Any help would be helpful.
Thanks,
Ram.Please check MOS Notes:
FAQ: RWMS 13.2 Installation and Configuration (Doc ID 1307639.1) -
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();
} -
Significance of jdbc:oracle:oci:/@
what happens if we use "jdbc:oracle:oci:/@" to get conneted to oracle
what happens if we use "jdbc:oracle:oci:/@" to get
conneted to oracleYou will be using the Oracle OCI driver with that connection URL which is a type 2 driver. The driver requires a client installation on the machine it is executing (since it uses some native libraries). -
Oracle JDBC thick (OCI) driver
Hi!
Can someone point me where I can download oracle JDBC thick (OCI) driver. Thick JDBC is not installed by default in 10g. In the OTN download site I can find JDBC thin drivers to download.
Thanks
Rad.Rad,
Allow me to elaborate on Mark's answer. Let's say you download the "ojdbc14.jar" file from the OTN Web site. Both the "thick" and "thin" drivers are in that one file. You indicate which driver you wish to use in your java code -- via the database connection URL, for example:
jdbc:oracle:thin:@//myhost:1521/orclThe above indicates you wish to use the "thin" driver, whereas
jdbc:oracle:oci:@myhost:1521:orclindicates you wish to use the "thick" driver.
[Notice the difference?]
You can find more details from the JDBC FAQ.
Good Luck,
Avi. -
Hi All,
We have jave code, that resides in the same server as the Oracle DB( HP-Ux). It uses OCI driver to connect to the server.
jdbc.url=jdbc:oracle:oci8:@
jdbc.username=
jdbc.password=
These are the properties that had been set. The code was working fine in Oracle 9.i. On migrating the server to 10g we get an error saying that
java.java.sql.SQLException: SimpleDataSource:connect - java.sql.SQLException: ORA-01017: invalid username/password; logon denied.
OfCourse the basic idea would be that userid/pwd is not being passed. But we have not been setting the user id and pwd in 9i and it is working there, but not in 10g. So does OCI driver use the os userid/pwd or something for connecting.
Thanks in Advance,
VigneshNo, we have no such file. In fact i just wrote a simple connection class. The code is as below.
import java.sql.Connection;
import java.sql.*;
class SimpleCon {
public static void main(String args[]){
getConnection();
public static void getConnection() {
try {
Connection con = connect();
System.out.println("Connected");
} catch(SQLException ex) {
ex.printStackTrace();
public static Connection connect() throws SQLException
final String methodSig = "SimpleDataSource:connect";
String jdbcUrl = "jdbc:oracle:oci:@" ;
String jdbcUsername = "" ;
String jdbcPassword = "";
Connection conn = null;
try
Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
conn = DriverManager.getConnection
(jdbcUrl, jdbcUsername, jdbcPassword);
DatabaseMetaData dbm = conn.getMetaData();
System.out.println(dbm.getUserName());
System.out.println(dbm.getDriverName());
System.out.println(dbm.getDriverVersion());
//setConnectionProperties(conn);
return conn;
catch (SQLException e) {
e.printStackTrace();
System.err.println("SQL error: " + e.getErrorCode());
System.err.println("SQL state: " + e.getSQLState());
throw(e);
}catch(Exception ie){
ie.printStackTrace();
return null;
This particular code works in HP-UX - Oracle 9.i . If we do not pass userid/pwd it usually connects in as OS user, and Oracle has a User id Setup corresponding to the os user.
But the same code does not work in Oracle 10g, even though we have the Oracle User corresponding to the OS user set up. If we pass that particular user id and pwd, it works fine.
Does it throw and light.
Thanks
Vignesh -
Could you please help me?
When I try to access Oracle using TopLink and OCI this error occurred
# An unexpected error has been detected by Java Runtime Environment:
# EXCEPTION_IN_PAGE_ERROR (0xc0000006) at pc=0x10007774, pid=3504, tid=3716
# Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode)
# Problematic frame:
# C [OCI.dll+0x7774]
# An error report file with more information is saved as hs_err_pid3504.log
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
[error occurred during error reporting, step 270, id 0xc0000006]
I have used these libraries
- ojdbc14.jar
- toplink-essentials.jar
- toplink-essentials-agent.jar
Also I used netbeans v6
and Apache Tomcat 6.0.14
The following code shows my persistence.xml
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
<persistence-unit name="RtsModelPU" transaction-type="RESOURCE_LOCAL">
<provider>oracle.toplink.essentials.PersistenceProvider</provider>
<class>com.xxx.rts.model.Responsibility</class>
<class>com.xxx.rts.model.Person</class>
<class>com.xxx.rts.model.WeeklyTask</class>
<properties>
<property name="toplink.jdbc.user" value="XXX"/>
<property name="toplink.jdbc.password" value="XXX"/>
<property name="toplink.jdbc.url" value="jdbc:oracle:oci:@XXX"/>
<property name="toplink.jdbc.driver" value="oracle.jdbc.driver.OracleDriver"/>
</properties>
</persistence-unit>
</persistence>This is the server log file
# An unexpected error has been detected by Java Runtime Environment:
# EXCEPTION_IN_PAGE_ERROR (0xc0000006) at pc=0x10007774, pid=3504, tid=3716
# Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode)
# Problematic frame:
# C [OCI.dll+0x7774]
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
--------------- T H R E A D ---------------
Current thread (0x0aaaa000): JavaThread "Finalizer" daemon [_thread_in_native, id=3716]
siginfo: ExceptionCode=0xc0000006, ExceptionInformation=0x00000000 0x10007774 0xc000020c
Registers:
EAX=0x00000003, EBX=0x00000000, ECX=0x0b837070, EDX=0x00000001
ESP=0x0ac1f54c, EBP=0x0ac1f564, ESI=0x0b3cbc00, EDI=0x0b3cbc00
EIP=0x10007774, EFLAGS=0x00010202
Top of Stack: (sp=0x0ac1f54c)
0x0ac1f54c: 0c6504d7 0b88ea34 0b88eae8 00000000
0x0ac1f55c: 0b837070 00000000 0ac1f580 0c65d331
0x0ac1f56c: 0b3cbc00 00000001 0b3cbc00 00000000
0x0ac1f57c: 00000000 0ac1f5a0 0c644647 0b3cbc00
0x0ac1f58c: 00000000 0b3cbc00 00000000 0b3cbc00
0x0ac1f59c: 07c1b6b8 0ac1f5c4 0c6444d1 0b3cbc00
0x0ac1f5ac: 00000000 0b3cbc00 00000000 00000000
0x0ac1f5bc: 0c4f1348 0c4f1f38 0ac1f5e8 74327ed4
Instructions: (pc=0x10007774)
0x10007764:
[error occurred during error reporting, step 100, id 0xc0000006]
Stack: [0x0abd0000,0x0ac20000), sp=0x0ac1f54c, free space=317k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [OCI.dll+0x7774]
C [SQORA32.DLL+0x1d331]
C [SQORA32.DLL+0x4647]
C [SQORA32.DLL+0x44d1]
C [ODBC32.dll+0x7ed4]
C [JdbcOdbc.dll+0x4d8b]
j sun.jdbc.odbc.JdbcOdbc.SQLDisconnect(J)V+132
j sun.jdbc.odbc.JdbcOdbcDriver.disconnect(J)V+4
j sun.jdbc.odbc.JdbcOdbcConnection.close()V+42
j oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.closeDatasourceConnection()V+4
j oracle.toplink.essentials.internal.databaseaccess.DatasourceAccessor.disconnect(Loracle/toplink/essentials/internal/sessions/AbstractSession;)V+35
j oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.disconnect(Loracle/toplink/essentials/internal/sessions/AbstractSession;)V+7
j oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.disconnect()V+14
j oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.logout()V+25
j oracle.toplink.essentials.threetier.ServerSession.logout()V+1
j oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.removeSessionFromGlobalSessionManager()V+21
j oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.undeploy()V+159
j oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.close()V+13
j oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.finalize()V+8
v ~StubRoutines::call_stub
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j sun.jdbc.odbc.JdbcOdbc.disconnect(J[B)V+0
j sun.jdbc.odbc.JdbcOdbc.SQLDisconnect(J)V+132
j sun.jdbc.odbc.JdbcOdbcDriver.disconnect(J)V+4
j sun.jdbc.odbc.JdbcOdbcConnection.close()V+42
j oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.closeDatasourceConnection()V+4
j oracle.toplink.essentials.internal.databaseaccess.DatasourceAccessor.disconnect(Loracle/toplink/essentials/internal/sessions/AbstractSession;)V+35
j oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.disconnect(Loracle/toplink/essentials/internal/sessions/AbstractSession;)V+7
j oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.disconnect()V+14
j oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.logout()V+25
j oracle.toplink.essentials.threetier.ServerSession.logout()V+1
j oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.removeSessionFromGlobalSessionManager()V+21
j oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.undeploy()V+159
j oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.close()V+13
j oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.finalize()V+8
v ~StubRoutines::call_stub
j java.lang.ref.Finalizer.invokeFinalizeMethod(Ljava/lang/Object;)V+0
j java.lang.ref.Finalizer.runFinalizer()V+45
j java.lang.ref.Finalizer.access$100(Ljava/lang/ref/Finalizer;)V+1
j java.lang.ref.Finalizer$FinalizerThread.run()V+11
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x0b0b0c00 JavaThread "JDWP Transport Listener: dt_shmem" daemon [_thread_in_native, id=5896]
0x0b3d3400 JavaThread "http-8084-4" daemon [_thread_blocked, id=464]
0x0af5a000 JavaThread "http-8084-3" daemon [_thread_blocked, id=5312]
0x0b22d000 JavaThread "TP-Monitor" daemon [_thread_blocked, id=6060]
0x0b36b000 JavaThread "TP-Processor4" daemon [_thread_in_native, id=5300]
0x0b33ec00 JavaThread "TP-Processor3" daemon [_thread_blocked, id=636]
0x0b33e400 JavaThread "TP-Processor2" daemon [_thread_blocked, id=2364]
0x0b127000 JavaThread "TP-Processor1" daemon [_thread_blocked, id=4616]
0x0b264000 JavaThread "http-8084-2" daemon [_thread_blocked, id=2092]
0x0b32b000 JavaThread "http-8084-1" daemon [_thread_in_native, id=784]
0x0b097800 JavaThread "http-8084-Acceptor-0" daemon [_thread_in_native, id=4424]
0x0b200800 JavaThread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon [_thread_blocked, id=3832]
0x0aada000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=4072]
0x0aad8800 JavaThread "CompilerThread0" daemon [_thread_blocked, id=5492]
0x0aacd800 JavaThread "JDWP Event Helper Thread" daemon [_thread_blocked, id=5060]
0x0aabcc00 JavaThread "Attach Listener" daemon [_thread_blocked, id=5980]
0x0aabc000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=6100]
=>0x0aaaa000 JavaThread "Finalizer" daemon [_thread_in_native, id=3716]
0x0aaa5800 JavaThread "Reference Handler" daemon [_thread_blocked, id=3636]
0x00299400 JavaThread "main" [_thread_in_native, id=876]
Other Threads:
0x0aaa2800 VMThread [id=5072]
0x0aadb800 WatcherThread [id=4248]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 1280K, used 25K [0x02990000, 0x02af0000, 0x02e70000)
eden space 1152K, 2% used [0x02990000, 0x02996470, 0x02ab0000)
from space 128K, 0% used [0x02ab0000, 0x02ab0000, 0x02ad0000)
to space 128K, 0% used [0x02ad0000, 0x02ad0000, 0x02af0000)
tenured generation total 16728K, used 11763K [0x02e70000, 0x03ec6000, 0x06990000)
the space 16728K, 70% used [0x02e70000, 0x039ecd70, 0x039ece00, 0x03ec6000)
compacting perm gen total 36352K, used 36190K [0x06990000, 0x08d10000, 0x0a990000)
the space 36352K, 99% used [0x06990000, 0x08ce7be8, 0x08ce7c00, 0x08d10000)
No shared spaces configured.
Dynamic libraries:
0x00400000 - 0x00423000 C:\Program Files\Java\jdk1.6.0_03\bin\java.exe
0x7c900000 - 0x7c9b0000 C:\WINNT\system32\ntdll.dll
0x7c800000 - 0x7c8f5000 C:\WINNT\system32\kernel32.dll
0x77dd0000 - 0x77e6b000 C:\WINNT\system32\ADVAPI32.dll
0x77e70000 - 0x77f02000 C:\WINNT\system32\RPCRT4.dll
0x77fe0000 - 0x77ff1000 C:\WINNT\system32\Secur32.dll
0x7c340000 - 0x7c396000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\msvcr71.dll
0x6d870000 - 0x6daba000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\client\jvm.dll
0x7e410000 - 0x7e4a0000 C:\WINNT\system32\USER32.dll
0x77f10000 - 0x77f57000 C:\WINNT\system32\GDI32.dll
0x76b40000 - 0x76b6d000 C:\WINNT\system32\WINMM.dll
0x629c0000 - 0x629c9000 C:\WINNT\system32\LPK.DLL
0x74d90000 - 0x74dfb000 C:\WINNT\system32\USP10.dll
0x77c10000 - 0x77c68000 C:\WINNT\system32\msvcrt.dll
0x6d3c0000 - 0x6d3c8000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\hpi.dll
0x76bf0000 - 0x76bfb000 C:\WINNT\system32\PSAPI.DLL
0x6d4b0000 - 0x6d4d9000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\jdwp.dll
0x6d770000 - 0x6d776000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\npt.dll
0x6d820000 - 0x6d82c000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\verify.dll
0x6d460000 - 0x6d47f000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\java.dll
0x6d860000 - 0x6d86f000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\zip.dll
0x6d320000 - 0x6d328000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\dt_shmem.dll
0x6d620000 - 0x6d633000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\net.dll
0x71ab0000 - 0x71ac7000 C:\WINNT\system32\WS2_32.dll
0x71aa0000 - 0x71aa8000 C:\WINNT\system32\WS2HELP.dll
0x71a50000 - 0x71a8f000 C:\WINNT\system32\mswsock.dll
0x662b0000 - 0x66308000 C:\WINNT\system32\hnetcfg.dll
0x71a90000 - 0x71a98000 C:\WINNT\System32\wshtcpip.dll
0x62f00000 - 0x62f13000 ...\Ora10gClient\BIN\ocijdbc10.dll
0x10000000 - 0x10057000 ...\ora10gClient\bin\OCI.dll
0x61c20000 - 0x61e72000 ...\ora10gClient\bin\OraClient10.Dll
0x60870000 - 0x60953000 ...\ora10gClient\bin\oracore10.dll
0x60a80000 - 0x60b44000 ...\ora10gClient\bin\oranls10.dll
0x63690000 - 0x636a8000 ...\ora10gClient\bin\oraunls10.dll
0x60eb0000 - 0x60eb7000 ...\ora10gClient\bin\orauts.dll
0x774e0000 - 0x7761d000 C:\WINNT\system32\ole32.dll
0x636b0000 - 0x636b6000 ...\ora10gClient\bin\oravsn10.dll
0x60fa0000 - 0x61092000 ...\ora10gClient\bin\oracommon10.dll
0x60300000 - 0x60857000 ...\ora10gClient\bin\orageneric10.dll
0x63430000 - 0x63457000 ...\ora10gClient\bin\orasnls10.dll
0x0c000000 - 0x0c160000 ...\ora10gClient\bin\oraxml10.dll
0x0c160000 - 0x0c171000 C:\WINNT\system32\MSVCIRT.dll
0x60960000 - 0x60a6d000 ...\ora10gClient\bin\oran10.dll
0x62740000 - 0x6277d000 ...\ora10gClient\bin\oranl10.dll
0x62790000 - 0x627a7000 ...\ora10gClient\bin\oranldap10.dll
0x627f0000 - 0x628f9000 ...\ora10gClient\bin\orannzsbb10.dll
0x62530000 - 0x62583000 ...\ora10gClient\bin\oraldapclnt10.dll
0x62670000 - 0x6268b000 ...\ora10gClient\bin\orancrypt10.dll
0x71ad0000 - 0x71ad9000 C:\WINNT\system32\WSOCK32.dll
0x77120000 - 0x771ab000 C:\WINNT\system32\OLEAUT32.dll
0x62920000 - 0x6296c000 ...\ora10gClient\bin\oranro10.dll
0x626b0000 - 0x626b7000 ...\ora10gClient\bin\oranhost10.dll
0x62660000 - 0x62666000 ...\ora10gClient\bin\orancds10.dll
0x0acc0000 - 0x0acc8000 ...\ora10gClient\bin\orantns10.dll
0x60b50000 - 0x60ea8000 ...\ora10gClient\bin\orapls10.dll
0x0c180000 - 0x0c189000 ...\ora10gClient\bin\oraslax10.dll
0x63080000 - 0x63284000 ...\ora10gClient\bin\oraplp10.dll
0x61ed0000 - 0x61f5b000 ...\ora10gClient\bin\orahasgen10.dll
0x62ab0000 - 0x62b1a000 ...\ora10gClient\bin\oraocr10.dll
0x62b20000 - 0x62b60000 ...\ora10gClient\bin\oraocrb10.dll
0x5b860000 - 0x5b8b4000 C:\WINNT\system32\NETAPI32.dll
0x62980000 - 0x62990000 ...\ora10gClient\bin\orantcp10.dll
0x0c190000 - 0x0c22a000 ...\ora10gClient\bin\orasql10.dll
0x76f20000 - 0x76f47000 C:\WINNT\system32\DNSAPI.dll
0x76fb0000 - 0x76fb8000 C:\WINNT\System32\winrnr.dll
0x76f60000 - 0x76f8c000 C:\WINNT\system32\WLDAP32.dll
0x76fc0000 - 0x76fc6000 C:\WINNT\system32\rasadhlp.dll
0x5ad70000 - 0x5ada8000 C:\WINNT\system32\uxtheme.dll
0x0c400000 - 0x0c407000 C:\Program Files\Logitech\MouseWare\System\LgWndHk.dll
0x74720000 - 0x7476b000 C:\WINNT\system32\MSCTF.dll
0x6d4a0000 - 0x6d4ad000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\JdbcOdbc.dll
0x74320000 - 0x7435d000 C:\WINNT\system32\ODBC32.dll
0x5d090000 - 0x5d12a000 C:\WINNT\system32\COMCTL32.dll
0x7c9c0000 - 0x7d1d6000 C:\WINNT\system32\SHELL32.dll
0x77f60000 - 0x77fd6000 C:\WINNT\system32\SHLWAPI.dll
0x763b0000 - 0x763f9000 C:\WINNT\system32\comdlg32.dll
0x773d0000 - 0x774d3000 C:\WINNT\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\comctl32.dll
0x20000000 - 0x20017000 C:\WINNT\system32\odbcint.dll
0x5fe80000 - 0x5fe9b000 C:\WINNT\system32\odbccp32.dll
0x77c00000 - 0x77c08000 C:\WINNT\system32\VERSION.dll
0x0c640000 - 0x0c6bd000 ...\Ora10gClient\BIN\SQORA32.DLL
0x0c6c0000 - 0x0c6c9000 ...\ORA10GCLIENT\BIN\sqresUS.dll
0x7c140000 - 0x7c245000 C:\WINNT\system32\MFC71.DLL
0x5d360000 - 0x5d36e000 C:\WINNT\system32\MFC71ENU.DLL
VM Arguments:
jvm_args: -Dhttp.proxyHost= -Dhttp.proxyPort=80 -Dhttp.nonProxyHosts= -Dhttps.proxyHost= -Dhttps.proxyPort=80 -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=C:\Documents and Settings\...\.netbeans\6.0\apache-tomcat-6.0.14_base\conf\logging.properties -Xdebug -Xrunjdwp:transport=dt_shmem,address=tomcat_shared_memory_id,server=y,suspend=n -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.14\endorsed -Dcatalina.base=C:\Documents and Settings\XXX\.netbeans\6.0\apache-tomcat-6.0.14_base -Dcatalina.home=C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.14 -Djava.io.tmpdir=C:\Documents and Settings\...\.netbeans\6.0\apache-tomcat-6.0.14_base\temp
java_command: org.apache.catalina.startup.Bootstrap start
Launcher Type: SUN_STANDARD
Environment Variables:
JAVA_HOME=C:\Program Files\Java\jdk1.6.0_03
JRE_HOME=C:\Program Files\Java\jdk1.6.0_03
CLASSPATH=C:\Program Files\Java\jdk1.6.0_03\lib\tools.jar;C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.14\bin\bootstrap.jar
PATH=...\ora10gClient\bin;...\ora9i\bin;...\orant\ora8i\bin;...\orant\bin;C:\Program Files\Java\jre1.5.0_06\bin;C:\Program Files\Java\jre1.5.0_06\bin;C:\Program Files\Documentum\Shared;p:\pvcs813\vm\win32\bin;p:\pvcs813\vm\common\bin\win32;P:\PVCS81\vm\win32\bin;P:\PVCS81\vm\common\bin\win32;C:\Program Files\Common Files\Business Objects\3.0\bin\NOTES\;C:\Program Files\Common Files\Business Objects\3.0\bin\NOTES\DATA\;C:\WINNT\system32;C:\WINNT;C:\WINNT\system32\wbem;C:\Program Files\QuickTime\QTSystem";;C:\Program Files\QuickTime\QTSystem;C:\Borland\JBuilder2005\jdk1.4\bin;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Documentum\Shared;C:\WINNT;C:\WINNT\system32
USERNAME=XXX
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 15 Model 3 Stepping 4, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows XP Build 2600 Service Pack 2
CPU:total 1 (1 cores per cpu, 1 threads per core) family 15 model 3 stepping 4, cmov, cx8, fxsr, mmx, sse, sse2, sse3
Memory: 4k page, physical 1047536k(145972k free), swap 2996004k(1885868k free)
vm_info: Java HotSpot(TM) Client VM (1.6.0_03-b05) for windows-x86, built on Sep 24 2007 22:24:33 by "java_re" with unknown MS VC++:1310
Please if have a solution to this problem let me know,
Please don't say use thin driver because OCI is required on my envirnomentAre you sure you are using the Oracle OCI JDBC driver? From you stack trace you are not, you are using the JDBC-ODBC bridge.
>>
sun.jdbc.odbc.JdbcOdbc.SQLDisconnect(J)V+132
j sun.jdbc.odbc.JdbcOdbcDriver.disconnect(J)V+4
j sun.jdbc.odbc.JdbcOdbcConnection.close()V+42
j oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.closeDatasourceConnection()V+4
Ensure you set your database url and driver class in your persistence XML (or DataSource config) to be the Oracle JDBC driver and the Oracle OCI url.
i.e.
toplink.jdbc.driver - oracle.jdbc.OracleDriver
toplink.jdbc.url - jdbc:oracle:oci:@instance
-- James : http://www.eclipselink.org -
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 -
Create Oracle OCI JDBCConnectionPool via silent script
Hi there,
I'm currently trying to create a JDBCConnectionPool via silent script that uses the Oracle OCI thick driver. My silent script looks like this:
create JDBCConnectionPool "MyPool" as jdbcpool;
set jdbcpool.DbmsHost "myhost";
set jdbcpool.DbmsPort "1521";
set jdbcpool.Password "user";
set jdbcpool.URL "jdbc:oracle:oci:@//myhost:1521/mysid";
set jdbcpool.DriverName "oracle.jdbc.pool.OracleDataSource";
set jdbcpool.Properties "user=user;portNumber=1521;SID=mysid;serverName=myhost;dll=ocijdbc9;protocol=oci";
The log of the silent script says everything was set successfully. Unfortunately when I take a look at the "Connection Pools" at the GUI admin console, the URL for the jdbcpool has been changed to "jdbc:bea:oracle:///myhost:1521" !
I'm using WebLogic 8.1SP3 with Oracle 9.2.0.5!
Can anyone help me with this? Any hint/help is appreciated!
- razeHi Joe,
I've done a demo script that produces the described "error". Would be great if you (or anybody else) could check if the same behaviour occurs.
[... start script ...]
read template from "/opt/bea/8.1.SP3/user_home/common/templates/domains/wls.jar";
create Cluster "MyCluster" as c1;
set c1.ClusterAddress "127.0.0.1:59251";
set c1.MulticastAddress "237.0.0.1";
set c1.MulticastPort "59251";
find Server "myserver" as s1;
set s1.Name "AdminServer";
set s1.ListenAddress "";
set s1.ListenPort "59261";
set s1.HostnameVerificationIgnored "true";
set s1.SSL.Enabled "true";
set s1.SSL.ListenPort "59262";
create Server "ManagedServer" as n1;
set n1.ListenAddress "";
set n1.ListenPort "59251";
set n1.Cluster "MyCluster";
set n1.HostnameVerificationIgnored "true";
set n1.Machine "MyMachine";
set n1.SSL.Enabled "false";
create UnixMachine "MyMachine" as machine1;
set machine1.NodeManager.ListenPort "59255";
set machine1.NodeManager.Name "MyMachine";
create JDBCConnectionPool "MyPool" as jdbcpool;
set jdbcpool.DbmsName "user";
set jdbcpool.Password "user";
set jdbcpool.Properties "user=user;portNumber=1521;SID=db-sid;serverName=db-host;dll=ocijdbc9;protocol=oci";
set jdbcpool.URL "jdbc:oracle:oci:@//db-host:1521/db-sid";
set jdbcpool.DriverName "oracle.jdbc.pool.OracleDataSource";
assign JDBCConnectionPool "*" to target "MyCluster";
find User "weblogic" as u1;
set u1.password "weblogic";
set OverwriteDomain "true";
write domain to "/home/user/BeaDomain";
close template;
[... end script ...]
Setting the URL succeeds as the log says:
[runScript] com.bea.plateng.domain.script.ScriptExecutor - set jdbcpool attribute URL to "jdbc:oracle:oci:@//db-host:1521/db-sid"
[runScript] com.bea.plateng.domain.script.ScriptExecutor - succeed: set jdbcpool attribute URL to "jdbc:oracle:oci:@//db-host:1521/db-sid"
But nevertheless the "config.xml" of the created domain contains the following entry:
<JDBCConnectionPool Name="MyPool" Targets="MyCluster"
DriverName="oracle.jdbc.pool.OracleDataSource"
Password="{3DES}Zlf46kqr6QE=" Properties="" URL="jdbc:bea:oracle:///db-host:1521"/>
Thus I assume when writing the domain, the URL gets changed for some reason. I also tried to increase the log level by executing the script with the options "-log_priority=debug -silent_priority=debug", but that did not help to find out why the URL got changed.
Is there maybe someone already using the Oracle OCI thick driver successfully and could post/email me the used silent script?
Greetings,
raze -
Error while creating a report that uses Oracle OCI JDBC connectivity
Please let me know why my CR and LF characters are removed from my forum posting *****
Hi,
I was trying to create a report that uses Oracle OCI JDBC connectivity. I am using Eclipse3.4 download from "cr4e-all-in-one-win_2.0.2.zip". I have successfully created a JDBC OCI connection.
The connection parameters are given below:
URL: jdbc:oracle:oci8:@xe
Database: xe
username: <userName>
password: <password>
I have tested the above connection in Data source Explorer and it works fine!!!
But I am getting the following error when I drag-and-drop a table from the list of tables. Not sure what I am missing here? Any help is highly appreciated.
com.businessobjects.reports.jdbinterface.common.DBException: InvalidURLOrClassName
at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCConnection.Open(Unknown Source)
at com.crystaldecisions.reports.queryengine.JDBConnectionWrapper.Open(SourceFile:123)
at com.crystaldecisions.reports.queryengine.Connection.br(SourceFile:1771)
at com.crystaldecisions.reports.queryengine.Connection.bs(SourceFile:491)
at com.crystaldecisions.reports.queryengine.Connection.t1(SourceFile:2979)
at com.crystaldecisions.reports.queryengine.Table.u7(SourceFile:2408)
at com.crystaldecisions.reports.dataengine.datafoundation.AddDatabaseTableCommand.new(SourceFile:529)
at com.crystaldecisions.reports.common.CommandManager.a(SourceFile:71)
at com.crystaldecisions.reports.common.Document.a(SourceFile:203)
at com.businessobjects.reports.sdk.requesthandler.f.a(SourceFile:175)
at com.businessobjects.reports.sdk.requesthandler.DatabaseRequestHandler.byte(SourceFile:1079)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1163)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:657)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:163)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:525)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:523)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at com.businessobjects.crystalreports.designer.core.util.thread.ExecutorWithIdleProcessing$3.doWork(ExecutorWithIdleProcessing.java:182)
at com.businessobjects.crystalreports.designer.core.util.thread.AbstractCancellableRunnable.run(AbstractCancellableRunnable.java:69)
at com.businessobjects.crystalreports.designer.core.util.thread.PriorityTask.run(PriorityTask.java:75)
at com.businessobjects.crystalreports.designer.core.util.thread.PriorityCompoundCancellableRunnable.runSubtask(PriorityCompoundCancellableRunnable.java:187)
at com.businessobjects.crystalreports.designer.core.util.thread.PriorityProgressAwareRunnable.runSubtask(PriorityProgressAwareRunnable.java:90)
at com.businessobjects.crystalreports.designer.core.util.thread.PriorityCompoundCancellableRunnable.doWork(PriorityCompoundCancellableRunnable.java:144)
at com.businessobjects.crystalreports.designer.core.util.thread.AbstractCancellableRunnable.run(AbstractCancellableRunnable.java:69)
at com.businessobjects.crystalreports.designer.core.util.thread.ExecutorWithIdleProcessing$IdleTask.run(ExecutorWithIdleProcessing.java:320)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Thanks
Karthik
Edited by: KARTHIK1 on Oct 14, 2009 9:38 PMHi Ted,
Thanks for the feedback. I was able to create a report in Creystal Reports Designer 2008 using OCI. It is not allowing only in the Eclipse plugin. In our environment we are not allowed to user Oracle thin connections and ONLY OCI is allowed.
1) Can you please let me know if there is a way to do this?
2) Will it allow data sources using native database driver?
3) If so, can I use JRC to create these reports from a desktop java program?
Thanks & Regards
Karthik
Edited by: KARTHIK1 on Oct 15, 2009 4:38 PM -
I am running small SQLJ in a JSP to get the hang of it.
I am running on 920, and have downloaded the new runtime classes for 920 and tested per the instructions.
Using JDev 903, here is the private method for running a query ( It is from an article I found by Julie Basu at Oracle; I have played around with the empno/emp_no variable to convert it to an int):
<%! private String runQuery(String emp_no) throws java.sql.SQLException {
DefaultContext dctx =null;
String ename = null; double sal = 0.0; String hireDate=null;
StringBuffer sb = new StringBuffer();
//int emp_no = Integer.parseInt(emp_no);
try {
dctx =Oracle.getConnection("jdbc:oracle:oci8:@olap","scott","tiger");
#sql [dctx] { SELECT ename, sal, TO_CHAR(hiredate,'DD-MON-YYYY')
INTO :ename,:sal,:hireDate
FROM scott.emp WHERE empno=:emp_no
sb.append("<BLOCKQUOTE><BIG><B><PRE>\n");
sb.append("Name :"+ename+ "\n");
sb.append("Salary :"+sal+ "\n");
sb.append("Date hired :"+hireDate);
sb.append("</PRE></B>></BIG></BLOCKQUOTE>");
} catch (java.sql.SQLException e){
sb.append("<P> SQL Error: <pre> "+e+" </pre> </p>\n");
} finally {
if (dctx!=null) dctx.close();
return sb.toString();
%>
I keep getting the following error:
java.lang.NoSuchFieldError: oracle.jdbc.oci8.OCIEnv.envCharSetId
int oracle.jdbc.oci8.OCIEnv.get_env_handle()
native code
long oracle.jdbc.oci8.OCIEnv.getEnvHandle()
OCIEnv.java:70
oracle.jdbc.dbaccess.DBConversion oracle.jdbc.oci8.OCIDBAccess.logon(java.lang.String, java.lang.String, java.lang.String, java.util.Properties)
OCIDBAccess.java:390
void oracle.jdbc.driver.OracleConnection.<init>(oracle.jdbc.dbaccess.DBAccess, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Properties)
OracleConnection.java:361
java.sql.Connection oracle.jdbc.driver.OracleDriver.getConnectionInstance(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Properties)
OracleDriver.java:485
java.sql.Connection oracle.jdbc.driver.OracleDriver.connect(java.lang.String, java.util.Properties)
OracleDriver.java:337
java.sql.Connection java.sql.DriverManager.getConnection(java.lang.String, java.util.Properties, java.lang.ClassLoader)
DriverManager.java:517
java.sql.Connection java.sql.DriverManager.getConnection(java.lang.String, java.lang.String, java.lang.String)
DriverManager.java:177
void sqlj.runtime.ref.ConnectionContextImpl.<init>(sqlj.runtime.ref.ProfileGroup, java.lang.String, java.lang.String, java.lang.String, boolean)
ConnectionContextImpl.java:346
void sqlj.runtime.ref.DefaultContext.<init>(java.lang.String, java.lang.String, java.lang.String, boolean)
DefaultContext.java:172
sqlj.runtime.ref.DefaultContext oracle.sqlj.runtime.Oracle.getConnection(java.lang.String, java.lang.String, java.lang.String, boolean)
Oracle.java:580
sqlj.runtime.ref.DefaultContext oracle.sqlj.runtime.Oracle.getConnection(java.lang.String, java.lang.String, java.lang.String)
Oracle.java:609
java.lang.String _SQLJ.runQuery(java.lang.String)
[SQLJ.jsp]
SQLJ.jsp:42
void SQLJ.jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
[SQLJ.jsp]
SQLJ.jsp:20
void com.orionserver[Oracle9iAS (9.0.3.0.0) Containers for J2EE].http.OrionHttpJspPage.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
OrionHttpJspPage.java:56
[SRC:/SQLJ.jsp]
void oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
JspPageTable.java:317
void oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
JspServlet.java:465
void oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
JspServlet.java:379
void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
HttpServlet.java:853
void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
ServletRequestDispatcher.java:721
void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
ServletRequestDispatcher.java:306
boolean com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.ApplicationServerThread, com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.EvermindHttpServletRequest, com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
HttpRequestHandler.java:767
void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(java.lang.Thread)
HttpRequestHandler.java:259
void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run()
HttpRequestHandler.java:106
void EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run()
PooledExecutor.java:803
void java.lang.Thread.run()
Thread.java:484
When I run it using just JDBC with the thin Driver, I have no problems.
What could be the issue?
Thanks,
Scott RappoportFail to make OCI connection Using JDeveloper
-
Unable to find Oracle OCI libraries on Centos 6.3
Hello,
I am having an issue with configuring an application(Zabbix) to use OCI on clean image of CentOS 6.3.
checking for Oracle OCI headers in /usr/include/oracle/11.1/client/... yes
checking if Oracle OCI version is >= 10.0... yes
checking for Oracle version >= 11.x to use -lnnz11 flag... yes
checking for Oracle OCI libraries in /usr/lib/oracle/11.1/client/lib/... not found
checking if Oracle support is enabled... no
I try to perform configuration of the source like this:
$ ./configure with-oracle with-oracle-include=/usr/include/oracle/11.1/client with-oracle-lib=/usr/lib/oracle/11.1/client/lib enable-server enable-agent enable-java
config.log has this:
configure:7084: result: no
configure:7089: checking for architecture
configure:7128: result: linux (linux-gnu)
configure:7132: checking for the linux kernel version
configure:7139: result: 2.6 family (2.6.32-279.el6.x86_64)
configure:7810: checking for Oracle OCI headers in /usr/include/oracle/11.1/client
configure:7837: gcc -c -g -O2 -I/usr/include/oracle/11.1/client conftest.c >&5
configure:7837: $? = 0
configure:7846: result: yes
configure:7878: checking if Oracle OCI version is >= 10.0
configure:7895: result: yes
configure:7913: checking for Oracle version >= 11.x to use -lnnz11 flag
configure:7919: result: yes
configure:7941: checking for Oracle OCI libraries in /usr/lib/oracle/11.1/client/lib
configure:7961: gcc -o conftest -g -O2 -I/usr/include/oracle/11.1/client -rdynamic -L/usr/lib/oracle/11.1/client/lib conftest.c -lm -lrt -lresolv -lclntsh -lnnz11 >&5
/usr/bin/ld: skipping incompatible /usr/lib/oracle/11.1/client/lib/libclntsh.so when searching for -lclntsh
/usr/bin/ld: cannot find -lclntsh
collect2: ld returned 1 exit status
configure:7961: $? = 1
configure: failed program was:
| /* confdefs.h */
result of *'rpm -qa | grep oracle'* is:
oracle-instantclient11.1-odbc-11.1.0.7.0-1.i386
oracle-instantclient11.1-basic-11.1.0.7.0-1.i386
oracle-instantclient11.1-sqlplus-11.1.0.7.0-1.i386
oracle-instantclient11.1-devel-11.1.0.7.0-1.i386
oracle-instantclient11.1-tools-11.1.0.7.0-1.i386
oracle-instantclient11.1-jdbc-11.1.0.7.0-1.i386
result of *'ls -l /usr/lib/oracle/11.1/client/lib'* is:
total 136808
-rw-r--r--. 1 root root 342 Oct 26 2008 glogin.sql
lrwxrwxrwx. 1 root root 17 Feb 28 16:43 libclntsh.so -> libclntsh.so.11.1
-rw-r--r--. 1 root root 37174788 Oct 26 2008 libclntsh.so.11.1
-rw-r--r--. 1 root root 11159 Oct 26 2008 libheteroxa11.so
-rw-r--r--. 1 root root 5974910 Oct 26 2008 libnnz11.so
lrwxrwxrwx. 1 root root 15 Feb 28 16:43 libocci.so -> libocci.so.11.1
-rw-r--r--. 1 root root 2333632 Oct 26 2008 libocci.so.11.1
-rw-r--r--. 1 root root 85112897 Oct 26 2008 libociei.so
-rw-r--r--. 1 root root 129297 Oct 26 2008 libocijdbc11.so
-rw-r--r--. 1 root root 1510045 Oct 26 2008 libsqlplusic.so
-rw-r--r--. 1 root root 1122713 Oct 26 2008 libsqlplus.so
-rw-r--r--. 1 root root 771229 Oct 26 2008 libsqora.so.11.1
-rw-r--r--. 1 root root 1890499 Oct 26 2008 ojdbc5.jar
-rw-r--r--. 1 root root 1988051 Oct 26 2008 ojdbc6.jar
-rw-r--r--. 1 root root 1656243 Oct 26 2008 orai18n.jar
-rw-r--r--. 1 root root 82979 Oct 26 2008 orai18n-mapping.jar
-rw-r--r--. 1 root root 299638 Oct 26 2008 ottclasses.zip
result of *'uname -a'* is:
Linux localhost.localdomain 2.6.32-279.el6.x86_64 #1 SMP Fri Jun 22 12:19:21 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
Any help would be appreciated.Oracle is NOT certified on Centos
V11.1 Oracle is NOT certified on V6 kernel
so You're On Your Own (YOYO)! -
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 SchenkeHi 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 -
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.
Maybe you are looking for
-
ORA-30951: ...exceeds maximum length
Oracle Database 10g Release 10.2.0.1.0 - Production I am new to XML and having a problem importing data using the XML Repository. I have annotated the schema and validated it using XML Spy. I am able to register the schema w/o errors. I am now workin
-
Recording to another track - from source track through effects
I am trying to record from track 6 to track 7. I am processing a pitch-fix through the Antares 5 pitch correction plugin that is on track 6. I added Antares 5 insert to track 6 as an insert. Next I chose the BUS 1 send from track 6 so that I can send
-
Next school year I plan to live my school life (i.e. notes) on my PowerBook G4. I want to have all my school files and such separate from my personal files, so I created a new profile strictly for school work and such. I want to know if there is a wa
-
Cursor - dynamic select statement?
Hello! I am passing a string into a function, and my string is a sql select statement. Is it possible to create a cursor using the string that is passed to the function? Ex: create or replace function "GETCOUNT" (sqlstring in VARCHAR2) return NUMBER
-
Hellanzb: cannot import name _NO_FILE after pacman -Suy [solved]
hellanzb.py /usr/lib/python2.6/site-packages/twisted/internet/default.py:15: DeprecationWarning: twisted.internet.default is deprecated. Use posixbase or selectreactor instead. warnings.warn("twisted.internet.default is deprecated. Use posixbase or