Oracle oci8 driver problem

Hello !
I work with Weblogic 701, oracle 9.2.0.1 database, oracle 9.2.0.2 client, and
oracle jdbc drivers classes12.zip
When I connect with the oci8 (not the thin) driver and try to execute the application,
I get this error :
java.lang.UnsatisfiedLinkError: Native Library D:\oracle\ora92\bin\orageneric9.dll
already loaded in another classloader
I have to shutdown weblogic and start it again. If I redeploy my application,
I get the same error and I have to shutdown again ...
and when I connect with the thin driver and try to execute the extract method
on a XMLType object, I always have a sqlException.
I see on the web that the extract method can only be applied with the oci8 driver.
How can I do ???
Thx

Hi. Go to oracle's site and download the very latest appropriate thin
driver for your DBMS, and put the driver ahead of all weblogic stuff in the
classpath the server is going to use.
Joe
Partyboy wrote:
Hello !
I work with Weblogic 701, oracle 9.2.0.1 database, oracle 9.2.0.2 client, and
oracle jdbc drivers classes12.zip
When I connect with the oci8 (not the thin) driver and try to execute the application,
I get this error :
java.lang.UnsatisfiedLinkError: Native Library D:\oracle\ora92\bin\orageneric9.dll
already loaded in another classloader
I have to shutdown weblogic and start it again. If I redeploy my application,
I get the same error and I have to shutdown again ...
and when I connect with the thin driver and try to execute the extract method
on a XMLType object, I always have a sqlException.
I see on the web that the extract method can only be applied with the oci8 driver.
How can I do ???
Thx

Similar Messages

  • How to set the oracle oci8 driver?

    hello all:
    I've set up the oracle thin driver and it works. but when I change to
    oci8.it don't work
    below is config and errors:
    <JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
    InitialCapacity="5" LoginDelaySeconds="5" MaxCapacity="15"
    Name="ocipool"
    Properties="user=yanji;password=yanji"
    Targets="myserver" URL="jdbc:oracle:oci8:@pg01"/>
    Could not load 'oracle.jdbc.driver.OracleDriver
    If this is a type-4 JDBC driver, it could occur if the JDBC
    driver is not in the system CLASSPATH.
    If this is a type-2 JDBC driver, it may also indicate that
    the Driver native layers(DBMS client lib or driver DLL)
    have not been installed properly on your system
    or in your PATH environment variable.
    This is most likely caused by one of the following:
    1. The native layer SO, SL, or DLL could not be found.
    2. The file permissions on the native layer SO, SL, or DLL
    have not been set properly.
    3. The native layer SO, SL, or DLL exists, but is either
    invalid or corrupted.
    For more information, read the installation documentation
    for your JDBC Driver, available from:
    http://e-docs.bea.com
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection
    ectionEnvFactory.java:208)
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource
    ectionEnvFactory.java:131)
    at weblogic.common.internal.ResourceAllocator.makeResources(Resource
    ator.java:698)
    at weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocat
    va:282)
    best regards

    Hello, Jenny I am glad you found your resolution. I too am having problems isung
    the oracle 0CI8 driver. My connection pool is creating fine, but my server is
    crashing with JVM errors.
    Here are my configurations.
    DBase=Oracle 8.1.7,OS=Win2000, running 6.1 with Portal 4.0
    pool config =
    <JDBCConnectionPool CapacityIncrement="0"
    DriverName="oracle.jdbc.driver.OracleDriver" InitialCapacity="5"
    MaxCapacity="5" Name="ccConPool"
    Properties="jdbc.url=jdbc:oracle:oci8:@servername:1521:orcl;user=XXXXX;password=XXXXXX;dll=ocijdbc8;server=orcl;protocol=oci8;dll=ocijdbc8;protocol=oci8"
    RefreshMinutes="0" Targets="portalServer"
    TestTableName="WIP_TABLE" URL="jdbc:oracle:oci8:@servername"/>
    My classpath sets my classes12.zip file first. My path sets %WEBLOGIC_HOME%\bin\oci817_8
    and %WLCS_ORACLE_HOME%\bin.
    Am I setting the right dll and protocol in my .dll? Where can I find documentation
    on these properties definitions?
    "jenny" <[email protected]> wrote:
    hello all:
    I've got the answer. those all because weblogic.jar. this jar include
    the
    class "oracle.jdbc.driver.OracleDriver".
    although I put the classes12.zip into the CLASSPATH.but the weblogic.jar
    in
    front of classes12.zip.so classloader
    load the class from weblogic.jar. so I can use thin driver(weblogic
    implements this function with class,but not for oci8 )
    ..this is really a big pitfall !
    put the classes12.zip in front of weblogic.jar .all perfect!
    "jenny" <[email protected]> wrote in message
    news:[email protected]...
    hello all:
    below is some chapters of my config.xml and startWeblogic.cmd
    the oci8 :
    <JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
    InitialCapacity="5" LoginDelaySeconds="5" MaxCapacity="15"
    Name="ocipool" Password="{3DES}J3XuQd6cvvw="
    Properties="user=yanji;password=yanji;dll=ocijdbc8;protocol=oci8"
    Targets="myserver" TestTableName="test"
    URL="jdbc:oracle:oci8:@pg01"/>
    the thin :
    <JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
    InitialCapacity="5" LoginDelaySeconds="5" MaxCapacity="15"
    Name="citcpool" Password="{3DES}J3XuQd6cvvw="
    Properties="user=yanji;password=yanji"
    SupportsLocalTransaction="true" Targets="myserver"
    URL="jdbc:oracle:thin:@sune250:1521:pg01"/>
    :runWebLogic
    echo on
    set ORACLE_HOME=e:\oracle
    set PATH=./bin;%ORACLE_HOME%\bin;%ORACLE_HOME%\lib;%PATH%
    set
    CLASSPATH=.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar;.\lib\dom.jar;.\lib\xml
    4j.jar;.\lib\jecf.jar;%ORACLE_HOME%\jdbc\lib\classes12.zip
    echo off
    the thin driver is ok,but the oci driver can not work!
    if I've set the wrong CLASSPATH or PATH , the thin driver and oci8driver
    must have not worked. I confused!
    "Sree Bodapati" <[email protected]> wrote in message
    news:[email protected]...
    "Sree Bodapati" <[email protected]> wrote in message
    news:[email protected]...
    Its not CLASS_PATH it should be CLASSPATH.
    when you say oracle\bin and oracle\lib , on what driver is the oracle
    folder?I meant to say 'on what drive' not 'on what driver'
    you have to specify the full path.
    post your startup script here.
    sree
    "jenny" <[email protected]> wrote in message
    news:[email protected]...
    hello all:
    I've set the ORACLE_HOME,and CLASS_PATH,but nothing changed. I will
    go
    to
    crazy!!!
    when startup the weblogic,I've seen the oracle\bin and oracle\libin th
    "path" and classes12.zip in the CLASS_PATH.but the errors stillappears!!
    "Sree Bodapati" <[email protected]> wrote in message
    news:[email protected]...
    1. Dont copy this file oci8jdbc.dll, to bin folder. Make sure
    you
    place
    <oracle_home>\lib in your PATH before starting the server. Make
    sure
    your
    ORACLE_HOME environment varable is set to <oracle_home> folder.
    eg. set ORACLE_HOME=c:\ora816 before starting the server.
    so you must have done something like
    set ORACLE_HOME=c:\ora816
    set PATH=%ORACLE_HOME%\bin;%ORACLE_HOME%\lib;%PATH%
    2. double check if you set your CLASSPATH something like this,
    CLASSPATH=%ORACLE_HOME%\jdbc\lib\classes12.zip;%CLASSPATH%
    in the server startup script just before starting the server.
    3. start the server the connection pool should work.
    hth
    sree
    "jenny" <[email protected]> wrote in message
    news:[email protected]...
    hello All:
    I've edited the StartWeblogic.cmd, set the classes.zip into CLASSPATH,and
    copied the oci8jdbc.dll to the bea\wlserver6.1\bin. errors stillappears!
    my weblogic version is 6.1 and oracle is 8.1.6 .
    why the thin driver is ok but the oci driver can not work?
    I logined in the oracle website and look for the jdbc.but I find
    that
    jdbc
    all provide for jdk1.2 or jdk1.1. because the weblogic6.1 based
    jdk1.3.
    I
    think i can not use those drivers.
    I think my oracle driver is ok,because i installed the jboss and
    bas4.5
    in
    my computer. they all can use oci8 driver properly.and they all
    based
    jdk1.3.
    by the way. I 've tryed added the oracle\bin path inStartWeblogic.cmd,
    nothing changed !
    again below is my config : I want to know whether my config right?
    (the property DLL and Protocal auto added by the weblogic)
    <JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
    InitialCapacity="5" LoginDelaySeconds="5" MaxCapacity="15"
    Name="ocipool"
    Properties="user=yanji;password=yanji;dll=ocijdbc8;protocol=oci8"
    Targets="myserver" URL="jdbc:oracle:oci8:@pg01"/>
    best regards
    ----- Original Message -----
    From: "Mitesh Patel" <[email protected]>
    Newsgroups: weblogic.developer.interest.jdbc
    Sent: Thursday, December 13, 2001 4:00 AM
    Subject: Re: how to set the oracle oci8 driver?
    To use oracle oci8 driver:
    You should have classes12.zip in weblogic classpath.
    You should have ocijdbc8.dll in your weblogic path..
    You can download ocijdbc8.dll from oracle website.
    Mitesh Patel
    jenny wrote:
    hello all:
    I've set up the oracle thin driver and it works. but when I
    change
    to
    oci8.it don't work
    below is config and errors:
    <JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
    InitialCapacity="5" LoginDelaySeconds="5" MaxCapacity="15"
    Name="ocipool"
    Properties="user=yanji;password=yanji"
    Targets="myserver" URL="jdbc:oracle:oci8:@pg01"/>
    Could not load 'oracle.jdbc.driver.OracleDriver
    If this is a type-4 JDBC driver, it could occur if the JDBC
    driver is not in the system CLASSPATH.
    If this is a type-2 JDBC driver, it may also indicate that
    the Driver native layers(DBMS client lib or driver DLL)
    have not been installed properly on your system
    or in your PATH environment variable.
    This is most likely caused by one of the following:
    1. The native layer SO, SL, or DLL could not be found.
    2. The file permissions on the native layer SO, SL, or DLL
    have not been set properly.
    3. The native layer SO, SL, or DLL exists, but is either
    invalid or corrupted.
    For more information, read the installation documentation
    for your JDBC Driver, available from:
    http://e-docs.bea.com
    atweblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection
    ectionEnvFactory.java:208)
    atweblogic.jdbc.common.internal.ConnectionEnvFactory.createResource
    ectionEnvFactory.java:131)
    atweblogic.common.internal.ResourceAllocator.makeResources(Resource
    ator.java:698)
    atweblogic.common.internal.ResourceAllocator.<init>(ResourceAllocat
    va:282)
    best regards
    "jenny" <[email protected]> wrote in message
    news:[email protected]...
    hello all:
    I've set up the oracle thin driver and it works. but when I change
    to
    oci8.it don't work
    below is config and errors:
    <JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
    InitialCapacity="5" LoginDelaySeconds="5" MaxCapacity="15"
    Name="ocipool"
    Properties="user=yanji;password=yanji"
    Targets="myserver" URL="jdbc:oracle:oci8:@pg01"/>
    Could not load 'oracle.jdbc.driver.OracleDriver
    If this is a type-4 JDBC driver, it could occur if the JDBC
    driver is not in the system CLASSPATH.
    If this is a type-2 JDBC driver, it may also indicate that
    the Driver native layers(DBMS client lib or driver DLL)
    have not been installed properly on your system
    or in your PATH environment variable.
    This is most likely caused by one of the following:
    1. The native layer SO, SL, or DLL could not be found.
    2. The file permissions on the native layer SO, SL, or DLL
    have not been set properly.
    3. The native layer SO, SL, or DLL exists, but is either
    invalid or corrupted.
    For more information, read the installation documentation
    for your JDBC Driver, available from:
    http://e-docs.bea.com
    atweblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection
    ectionEnvFactory.java:208)
    atweblogic.jdbc.common.internal.ConnectionEnvFactory.createResource
    ectionEnvFactory.java:131)
    atweblogic.common.internal.ResourceAllocator.makeResources(Resource
    ator.java:698)
    atweblogic.common.internal.ResourceAllocator.<init>(ResourceAllocat
    va:282)
    best regards

  • Oracle (OCI8) driver not available!

    I have installed DAC successfully. So I start my client and am trying to create a new connection.
    I did the following:
    1) Clicked Configure
    2) by default, Create connection is selected, I clicked Next
    3) Entered Name, selected Connection Type as Oracle(OCI8), entered TNS names as ORCL and created new authentication file.
    4) Clicked Test Connection and it shows the error 'Can't connect to the database'. When I click Show details, I get the following:
    MESSAGE:::Oracle (OCI8) driver not available!
    EXCEPTION CLASS::: java.lang.IllegalArgumentException
    com.siebel.etl.gui.login.LoginDataHandler$LoginStructure.testConnection(LoginDataHandler.java:512)
    com.siebel.etl.gui.login.LoginDataHandler.testConnection(LoginDataHandler.java:386)
    com.siebel.etl.gui.login.ConnectionTestDialog$Executor.run(ConnectionTestDialog.java:290)
    ::: CAUSE :::
    MESSAGE:::oracle.jdbc.driver.OracleDriver
    EXCEPTION CLASS::: java.lang.ClassNotFoundException
    java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    java.security.AccessController.doPrivileged(Native Method)
    java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
    java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    java.lang.Class.forName0(Native Method)
    java.lang.Class.forName(Class.java:169)
    com.siebel.etl.gui.login.LoginDataHandler$LoginStructure.testConnection(LoginDataHandler.java:510)
    com.siebel.etl.gui.login.LoginDataHandler.testConnection(LoginDataHandler.java:386)
    com.siebel.etl.gui.login.ConnectionTestDialog$Executor.run(ConnectionTestDialog.java:290)
    Can somebody help me resolve this issue?
    Thanks in advance!!!

    Resolved. ojdbc14.jar was missing in \bifoundation\dac\lib.
    Downloaded and copied the file to the location and rebooted my system.

  • Does multilingual work with Oracle oci8 Driver? I am facing problems with oci8 while thin driver works fine ...

    Hi, I am currently working on iPlanet 6.0 SP4 with oracle 8.1.6. I am planning to make my application language independent. while testing I figured out that if i use oci8 driver or oracle, it doesn't support other language characters while the thin driver supports fine. Can anybody help me regarding this? Is this a bug, or some possible configuration issue? Has somebody came across this problem before? How do i go about it ?

    We faced same issue. Looks like the native driver does not support the automatic data encoding/decoding from/to database. You can always workaround this by reading everything as byte stream and then by letting java handle the encoding/decoding. But we decided to use type4 thin driver which does this automatically if you set the content type. Anyway we are told that later versions of IAS may not support native drivers, so if you are serious about multi language shift to type4 thin drivers now itself.

  • Oracle XA driver problem with WLS 7.0.1.0, Oracle 9.0.1

    We are using simplified chinese, after swith to bea jdriver, it messed up
    all the encoding. So we cannot display Chinese character correctly.
    We are using WLS 7.0.1.0, Oracle 9.0.1 on both Windows and Solaris 8
    environment, BEA supplied JDK 1.3.1_03.
    We have many diffrent problems with oracle drivers:
    1. We want to use XA driver to support distributed transaction, However:
    * bea jdriver xa messes up with encoding
    * when using oracle 901 driver, everything works fince except webservices.
    Workshop application access the ejb, then the workshp application sets
    isolation level, but oracle driver does not support it and gives error. Is
    there a way to turn off isolation level in workshop? I tried manually edit
    weblogic-ejb-jar.xml, however,workshop cannot redeploy it after that.
    2. When not using XA, oracle thin driver works fine. But we lost XA
    capability.
    Any work around?

    I did try to change the value in this config file as well, but did not help.
    In fact, the installation default setting is with
    '<transaction-isolation-level>' commented out.
    And when I use bea oracle jdriver, it somehow messed up with database
    character set encoding, so our Chinese characters could not be retrieved
    correctly. And I try to set the encoding of jdriver to 'GBK', it did not
    work.
    "Anurag Pareek" <[email protected]> дÈëÏûÏ¢ÐÂÎÅ
    :[email protected]..
    Hello Ma,
    The transaction isolation level value for EJBs backing the JWS files is
    specified in the <transaction-isolation-level> tag in the
    WEB-INF/weblogic-jws-config.xml file of a Workshop project. You can
    manipulate this value to serve your purpose.
    Please do let me know how it goes.
    Regards,
    Anurag
    Workshop Support
    "Ma Jie" <[email protected]> wrote in message
    news:[email protected]..
    We are using simplified chinese, after swith to bea jdriver, it messed
    up
    all the encoding. So we cannot display Chinese character correctly.
    We are using WLS 7.0.1.0, Oracle 9.0.1 on both Windows and Solaris 8
    environment, BEA supplied JDK 1.3.1_03.
    We have many diffrent problems with oracle drivers:
    1. We want to use XA driver to support distributed transaction, However:
    * bea jdriver xa messes up with encoding
    * when using oracle 901 driver, everything works fince exceptwebservices.
    Workshop application access the ejb, then the workshp application sets
    isolation level, but oracle driver does not support it and gives error.Is
    there a way to turn off isolation level in workshop? I tried manuallyedit
    weblogic-ejb-jar.xml, however,workshop cannot redeploy it after that.
    2. When not using XA, oracle thin driver works fine. But we lost XA
    capability.
    Any work around?

  • Oracle jdbc driver problems in netbeans 5.5

    need help again....i'm experience a problem. the problems are :
    i connect from netbeans 5.5 to oracle database express client 10g using jdbc driver ojdbc14.jar. the connection succeded (all the tables appears and i even can view the data). but when i trying to bind data to a drop down list component (with right click to the dropdown list component and then bind data), the dataprovider of that table appear in red color and there's no field appears in that. i'm so confused? i already add the ojdbc14.jar driver to the following path :
    1. i create a new class library in netbeans with consist of that driver,
    then added to my project (right click in my project then add library).
    2. then i added the ojdbc14.jar driver to my tomcats lib at "C:\Program
    Files\netbeans-5.5\enterprise3\apache-tomcat-5.5.17\common\lib".
    Is there any additional settings in using oracle jdbc driver? Does anyone knows? thanks a lot for the answers...
    Message was edited by:
    darma_sadha

    Hi!
    I'm using NetBeans 6.5 and I'm having some troubles to connect.
    The steps I've made:
    - Create the connection pool in Glassfish, nothing special, just standard parameters (Based on javax.sql.DataSource and including URL, Username and Password).
    - Create the JDBC resource associated with that connection pool,let's say jdbc/test.
    Now in NetBeans I register the driver:
    - New driver -> Find the ojdbc14.jar and from the options that I can choose it shows: oracle.jdbc.OracleDriver and oracle.jdbc.driver.OracleDriver.
    If i choose without +.driver+ I got the thin drivers (the ones i want) and if i chosse the one with the other one I got the OCI drivers. So I choose the first option oracle.jdbc.OracleDriver
    - Then I go to my project and click New -> Entity Classes from Database and from Datasource I select jdbc/test and it shows the following error message:
    Unable to find the driver oracle.jdbc.driver.OracleDriver. Please register this driver in the Databases.
    I can fix it if while registering the ojdbc14.jar I select the second option (*oracle.jdbc.driver.OracleDriver*) but with this option I need to specity the connection to use OCI instead of the desired thin driver.
    I hope you'll understand and help me somehow
    Edited by: KILE on Oct 10, 2008 2:26 AM

  • Oracle JDBC driver problem for Oracle 8.1.6

    i am a newbee to Java, i was trying JDBC programming thru Jbuilder 4.0. now the problem is whenever i am trying the DriverManager.getconnection(), I am getting an error "NO SUITABLE DRIVER". i have downloaded jodbc14.jar(oracle 9i JDBC driver) but so result. what can i do now? any other config issues or is it due to absence of a Oracle JDBC driver of Oracle 8.1.6.

    i have set the classpath as mentioned. but no solution.
    the error is like this::
    java.lang.NoClassDefFoundError: java/sql/Savepoint
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
         at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
         at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:521)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:325)
         at java.sql.DriverManager.getConnection(DriverManager.java:517)
         at java.sql.DriverManager.getConnection(DriverManager.java:177)
         at DbaseTest.DbaseForm.OpenConnection(DbaseForm.java:37)
         at DbaseTest.DbaseForm.jbInit(DbaseForm.java:73)
         at DbaseTest.DbaseForm.<init>(DbaseForm.java:26)
         at DbaseTest.Application1.<init>(Application1.java:11)
         at DbaseTest.Application1.main(Application1.java:40)
    i have imported
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.sql.*;
    import oracle.jdbc.*;
    import java.lang.*;
    the driver is registered by:
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());

  • Oracle JDBC Driver Problem

    Hi,
    When I write code as
    Resultset rs = .....
    rs.last();
    there is no problem for MySQL JDBC Driver, but when I use this code for Oracle, I am getting error with line 2. Why ? Do you know any Oracle JDBC Driver that supports "rs.last()" ? Or is there another way to handle it?
    Thanks.

    Most of the JDBC Drivers can handle "rs.last()".
    The question here is, how do you create a Scrollable ResultSet using DatabaseMetaData, or if this is even possible.
    A thorough read of the API docs, for the Classes and methods being used here will answer this question (now that you know what the actual question is).

  • Oracle oci8 driver

    Hi All,
    I am able to connect with a oracle database using the thin driver(windows os),
    but not able to connect with the oci8 driver, inspite of putting the dll that is required.
    It is throwing the exception below,
    Exception in thread "main" java.lang.UnsatisfiedLinkError: get_env_handle
    at oracle.jdbc.oci8.OCIEnv.getEnvHandle(OCIEnv.java:70)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:359)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:252)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va, Compiled Code)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
    at java.sql.DriverManager.getConnection(DriverManager.java:457)
    at java.sql.DriverManager.getConnection(DriverManager.java:159)
    at JDBCVersion.verMeth(JDBCVersion.java, Compiled Code)
    at JDBCVersion.main(JDBCVersion.java:41)
    Arun

    Actually, I meant a version conflict between the Oracle JDBC drivers (in classes12.zip) and the installed OCI binaries on the same computer. If both the JDBC and OCI dll's those that were installed from the same Oracle distribution media you should not be getting these errors. Double check your path and classpath. Make sure the versions are precisely the same (8.1.7 for example, not just 8i).
    Chuck

  • Oracle JDBC driver problem for Canada locale

    Hi, there:
    I have problem on Oracle JDBC thin driver with Canada locale on client side:
    I'm using Oracle9i thin jdbc driver, the nls parameters in oracle database is:
    NLS_LANGUAGE: AMERICAN
    NLS_TERRITORY: AMERICA
    NLS_NUMERIC_CHARACTERS : .,
    My java client side is running on Windows NT, which using jdbc thin driver to connect oracle database. If I set the locale in client side as "English(Canada)", it seems return me "French" number format, like ",45" (comma, instead of decimal point) for "0.45". However, If I set client side locale as "English(United States)", it returns me "0.45" as expected.
    So, my question: does Oracle JDBC driver always returns "French" number format evenif I set "English(Canada)" as locale? Because Canada have both English and French locale "French(Canada), and English(Canada)". How can I get "English" number format like "0.45" with "English(Canada)" locale setting?
    Really appreciated any reply, and thanks a lot in advance
    David

    Sounds like a question for Oracle Support to me.
    Anyway, the way to avoid the problem is to not ask Oracle to format numbers. Get the number directly (via ResultSet.getInt() or getDouble() or whatever) and ask Java to format it.

  • Memory leakage with oracle oci driver

    I have developed a Solaris8 client/server application using the JAVA IDL CORBA implementation. The client sends requests to the server to update the database (database is Oracle 8.1.7 and I connect to it using oci oracle drivers). Requests are sent one at a time. No concurrent connections. I have a static connection that I establish with database once I start the server. If that connection is lost for any reason (timeout or database faliure) the application tries automatically to reconnect to database. I have noticed that if the new connection to database fails and an sql exception is thrown, memory used by the application process increases. This memory is not garbage collected so application hangs. I tried similar behaviour with the oracle thin driver and things went fine. There was no memory leakage.
    I would really appreciate, if you can help me in this since I can't use the thin driver because of failover limitations.

    I have noticed
    that if the new connection to database fails and an
    sql exception is thrown, memory used by the
    application process increases.
    How have you noticed this?I noticed this using the command pmap under solaris it operating system
    every time I test reconnecting to database I go and check the memory used by the application before after attepmting to reconnect:
    /usr/proc/bin/pmap [myapp pid] | tail -1
    If I'm using normal connection then the memory will be increased by 100KB. If I'm using the OraclePooledConnection class then the increase will be something like 500KB. Again this is if still there is a problem connecting to database. If connection to database is okay then no memory increase at all.
    This memory is not
    garbage collected so application hangs.
    Then it isn't a java problem. When java runs out of memory it throws a out of memory exception.Well I'm not saying it is a java problem for sure. I suspect that it might be oracle oci8 driver problem. I would appreciate if anyone can help in specifying teh source of the error.
    I tried
    similar behaviour with the oracle thin driver and
    things went fine. There was no memory leakage.
    I would really appreciate, if you can help me in this
    since I can't use the thin driver because of failover
    limitations.
    I don't understand that last sentence at all.What I mean here is that instead of using the oci8 driver to connect to database I used the thin driver and kept everything else the same. I simulated the faliure to reconnect to database and based on the pmap command observations there was no memory leakage.
    I want to know what is needed to be done in order to get a normal behavior once using the oci8 drivers.

  • Cannot connect using oracle jdbc oci8 driver

    I am using Oracle 8.1.5 JDBC oci8 driver, but when try to connect, always got ERROR: java.lang.UnsatisfiedLinkError:make_c_state
    With the same code, but change to connect with thin driver, it works fine. Pls tell me the problem. Thank you.

    Hi,
    Here is the snippet code from oracle,
    // You need to import the java.sql package to use JDBC
    import java.sql.*;
    // We import java.io to be able to read from the command line
    import java.io.*;
    class JdbcCheckup
    public static void main (String args [])
    throws SQLException, IOException
    // Load the Oracle JDBC driver
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    // Prompt the user for connect information
    System.out.println ("Please enter information to test connection to the database");
    String user;
    String password;
    String database;
    user = readEntry ("user: ");
    int slash_index = user.indexOf ('/');
    if (slash_index != -1)
    password = user.substring (slash_index + 1);
    user = user.substring (0, slash_index);
    else
    password = readEntry ("password: ");
    database = readEntry ("database (a TNSNAME entry): ");
    System.out.print ("Connecting to the database...");
    System.out.flush ();
    System.out.println ("Connecting...");
    Connection conn =
    DriverManager.getConnection ("jdbc:oracle:oci8:@" + database,
    user, password);
    System.out.println ("connected.");
    // Create a statement
    Statement stmt = conn.createStatement ();
    // Do the SQL "Hello World" thing
    ResultSet rset = stmt.executeQuery ("select 'Hello World' from dual");
    while (rset.next ())
    System.out.println (rset.getString (1));
    System.out.println ("Your JDBC installation is correct.");
    // close the resultSet
    rset.close();
    // Close the statement
    stmt.close();
    // Close the connection
    conn.close();
    // Utility function to read a line from standard input
    static String readEntry (String prompt)
    try
    StringBuffer buffer = new StringBuffer ();
    System.out.print (prompt);
    System.out.flush ();
    int c = System.in.read ();
    while (c != '\n' && c != -1)
    buffer.append ((char)c);
    c = System.in.read ();
    return buffer.toString ().trim ();
    catch (IOException e)
    return "";
    This code can be run without specifying a TNSNAME connection string, as the oci8 jdbc driver will take localhost as default.
    OR
    Only specifying the TNSNAME is enough, i.e. edit %ORACLE_HOME%\network\ADMIN\TNSNAMES.ORA file and locate the XXXXX.WORLD entry in the file. This is the TNSNAME entry referred to.
    Without TNSNAME entry you can re-run,
    %ORACLE_HOME%\jdbc\demo\samples\oci8\basic-samples> java JdbcCheckup
    Please enter information to test connection to the database
    user: system
    password: manager
    database (a TNSNAME entry):
    Connecting to the database...Connecting...
    connected.
    Hello World
    Your JDBC installation is correct.
    Hope that helps.
    Best Luck!
    Senthil Babu J

  • Using OCI8 driver with Sun ONE AS7 and Oracle 9

    Hi
    I am writing a bean that needs to access an Oracle Database.
    I have defined in AS7 a connection pool, that looks like:
    <jdbc-connection-pool steady-pool-size="8" max-pool-size="32" max-wait-time-
    in-millis="60000" pool-resize-quantity="2" idle-timeout-in-seconds="300" is-isol
    ation-level-guaranteed="false" is-connection-validation-required="false" connect
    ion-validation-method="auto-commit" fail-all-connections="false" datasource-clas
    sname="oracle.jdbc.driver.OracleDriver" name="Oracle_EUNDEV">
    <property value="user" name="user"/>
    <property value="passwd" name="password"/>
    <property value="jdbc:oracle:oci8:@eundev:EUNDEV" name="URL"/>
    </jdbc-connection-pool>
    My code does a JNDI lookup DataSource, which succeeds.
    However, the getConnection always fails, and throws the following exception:
    [02/May/2003:16:28:06] WARNING ( 794): CORE3283: stderr: java.lang.NoSuchMethodException: setpassword
    [02/May/2003:16:28:06] WARNING ( 794): CORE3283: stderr: at com.sun.enterprise.util.Utility.invokeSetMethodCaseInsensitive(Utility.java:373)
    [02/May/2003:16:28:06] WARNING ( 794): CORE3283: stderr: at com.sun.enterprise.repository.JdbcConnectionPool.createDataSource(JdbcConnectionPool.java:238)
    [02/May/2003:16:28:06] WARNING ( 794): CORE3283: stderr: at com.sun.enterprise.resource.JdbcUrlAllocator.createResource(JdbcUrlAllocator.java:80)
    [02/May/2003:16:28:06] WARNING ( 794): CORE3283: stderr: at com.sun.enterprise.resource.IASNonSharedResourcePool.createSteadyResources(IASNonSharedResourcePool.java:856)
    I used dbping tool from iplanet and could define a new connection and connect successfully,
    But trying to use the existing connection always fail with the same 'MissingMethod' exception.
    Can someone help?
    Thanks a lot
    Jean-Noel Colin

    Here is your problem:
    jdbc:oracle:oci8:@eundev:EUNDEV
    the last part is wrong. Driver will see the EUNDEV as password. After @ , just specify the tnsName that you have, no " : "
    you do have a property called "password" already.
    It should be something like this:
    jdbc:oracle:oci8@eundev

  • Oracle driver problem

    Hello,
    I'm currently trying to install the Jive forum application on the WAS. The installation itself went very well, but I have a problem with the initial setup.
    At a certain point I have to give the DB driver class and the according connection string.
    I have a oracle DB installed for this and was using the following driver class:
    oracle.jdbc.driver.OracleDriver
    As error jive setup gives me :
    Unable to load database driver 'oracle.jdbc.driver.OracleDriver' - make sure it is in your appserver's classpath.
    I have deployed the classes12.jar as described in
    http://help.sap.com/saphelp_nw04/helpdata/en/80/4f34c587f05048adee640f4c346417/frameset.htm
    This also did not solve my problem.
    Does somebody has some experience  with this?
    Thanks a lot!
    Regards,
    Peter

    Hi,
    how likely is it that your DB connect code produces the problem ? Did you try this question on the database forum ?
    Frank

  • Oracle 8.1.5 JDBC driver problem with LONGVARCHAR

    Hi, I'm having problem with 8.1.5 release on Solaris with the
    JDBC type 4 driver (thin). If I create the following table
    create table test1 (col1 NUMBER, col2 LONG);
    Using JDBC driver to insert into the second column any string
    longer than 4000 characters causing run time exception. The type2
    driver works fine, but type2 is slow.
    String sql = "insert into test1 (col1, col2) values (1099,?)";
    PreparedStatement stmt ;
    stmt = conn.prepareStatement(sql);
    // create a string with very long value , bigger than 4096
    stmt.setString(1,string);
    stmt.executeUpdate();
    runtime exception:
    java.sql.SQLException: Data size bigger than max size for this
    type
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.sql.SQLException.<init>(Compiled Code)
    at oracle.jdbc.dbaccess.DBError.check_error(Compiled
    Code)
    at oracle.jdbc.ttc7.TTCItem.setArrayData(Compiled Code)
    at
    oracle.jdbc.driver.OraclePreparedStatement.setItem(Compiled Code)
    at
    oracle.jdbc.driver.OraclePreparedStatement.setString(Compiled
    Code)
    at testi.main(Compiled Code)
    Any help is appreciated.
    Thanks
    Steve
    null

    Post the full stacktrace here
    Also you might want to post jdbc related questions to weblogic.developer.
    interest.jdbc
    Kumar
    DreamNEON wrote:
    Hello,
    the NSAPI integration works, also the JSP files.
    But I have still problems with the Jdriver for my Oracle 8.1.5.
    I get the message :
    Failed to invoke startup class
    weblogic.jdbc.common.internal.JdbcStartup=weblogic.jdbc.common.internal.JdbcStartup
    when the WebLogic Server is started.
    Any ideas or hints about that?
    Thanks in advance
    Armin

Maybe you are looking for

  • Viewing vector files in Adobe Bridge

    I currently us "Art Expolsion" for vector files.  I use to be able to view the actual thumbnail images in Bridge, but all I see now is the Icon.  How can I change the view so I can see the actual image instead of open them one up at a time?

  • Set rawValue of field in "full" event

    As I learned in a recent post ( http://forums.adobe.com/thread/827231? ), I have to use xfa.event.newText to get the value of a field in that field's "full" event (not the field's rawValue). But in the "full" event, I want to also then change the val

  • Madwifi install

    hey im trying to get madwifi drivers installed for my Netgear WG511T,  and when i go to do make in the file it says: [root@x-ceptional madwifi-ng-r1474-20060314]# make Checking requirements... FAILED The 'uudecode' tool was not found on your system.

  • Using OWL, SOAP limited to 16384 bytes; Why?

    using OWL, SOAP limited to 16384 bytes; Why? We use OWL version 10.3.5; since we changed electronic signature file 128 bytes 256 bytes to another, the java application (with JDeveloper ADF) we use from the OWL does not allow serving files larger than

  • Sub Total Text in an ALV using FACTORY Method

    Hi Gurus, My requirement is simple, but I couldn't find any answers under SDN or any other forums. Some of you may ask me to check for the SCN posts, but I almost checked everything. My requirement is - When I get the Sub-total in my ALV, it should p