Oracle 9i drivers

This is a problem we are facing with Weblogic 8.1- this by default is shipped with Oracle 9i drivers & libraries. However we are still pointing it to a Oracle 8i database. The problem we are having is; Updating a number field for eg putting a 1. The data is persisted through an CMP EJB,
From the client side we set the field with a Integer of value 1, this also goes into the EJB with the same value, but what it actually gets put into the database is some wierd floating point value.
I have tried tracing the JDBC code and we can clearly see that the Prepared statement that Oracle is using is haveing the value 1 - but what gets into the database is still some wierd floating point value.
I found that it works fine if I use Weblogic 8.1 with 8i drivers. I had a lengthy discussion with the support @BEA who are of the opinion that it is a problem with the drivers. I am wondering if anyone else has faced this problem - We need help fast!!!
Thanks
Wilson

1. You are working with Oracle 8i.
2. All works fine with the 8i drivers.
3. It doesnt work with the 9i drivers.
=> dont you think everything here is normal/logic ?
I bet that it will not work with the Oracle 7 driver nor with the driver for DB2...
The solution is : "USE THE 8i DRIVER FOR THE 8i DATABASE, USE 9i DRIVER FOR 9i DATABASE, USE THE DB2 DRIVER FOR DB2, USE ACCESS DRIVER FOR ACCESS".
Fred

Similar Messages

  • How to configure oracle thin drivers for SUN APPLICATION SERVER

    hi all,
    I am working with EJB with oracle as back-end. I wants to know how to configure oracle thin drivers for the SUN APPLICATION SERVER. Please explain me breifly.
    Advanced thanks to all the replies.
    with regards,
    /kumaraswamy.n

    Kumaraswamy,
    Did you try searching the Internet? Here are the results of my Internet search:
    http://tinyurl.com/zo4gk
    And one of the first hits in the list was this:
    Deploying to a Sun Java System Application Server
    Good Luck,
    Avi.

  • Oracle JDBC Drivers 8.1.6.0.1

    In the readme file of Oracle JDBC drivers 8.1.6.0.1 (http://technet.oracle.com/software/tech/java/sqlj_jdbc/files/Readme_01.txt)
    it mentioned that it supports "connection pooling" and "distributed transactions".
    Later on in the same file under "Oracle JDBC Connection Caching", it says it "facilitates" users in their own connection pooling. Does this mean there is not complete implementation of connection pooling in the driver and users has to do the work themselves?
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by JDBC_TX ():
    In the readme file of Oracle JDBC drivers 8.1.6.0.1 (http://technet.oracle.com/software/tech/java/sqlj_jdbc/files/Readme_01.txt)
    it mentioned that it supports "distributed transactions".
    As I understand, JDBC transaction is connection based and uses Oracle internal transaction manager. In order to do "distributed transactions", I must have at least two connections open at the same time each to its own database instance. How does the two connections coordinate the transactions? I thought in order to support "distributed transactions", one has to build a higher layer to encapsulate the two connections and therefore coordinate the distributed transactions. Any examples will be welcome.<HR></BLOCKQUOTE>
    The two branches of the transaction are coordinated using 2-phase commit.
    For samples look under
    $ORACLE_HOME/jdbc/demo/samples/oci8/jdbc20-samples/
    null

  • Is in ORACLE JDBC drivers connection pooling support

    Hi All!
    Can anybody give me information about subj?
    Any information appreciated

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Mike:
    Hi All!
    Can anybody give me information about subj?
    Any information appreciated<HR></BLOCKQUOTE>
    Yes, Oracle JDBC drivers do support connection pooling. Download the latest drivers to get samples and refer doc for more details.

  • Oracle 10 drivers compatibility with Oracle 11g database server

    Can someone tell me what is the impact using Oracle 10g drivers for 11g database? is there any differences using the ojdbc14.jar instead of ojdbc5.jar?

    To find an article, go to My Oracle Supprt (formerly metalink) metalink.oracle.com and login. Then search for the article ID (doc no).
    https://support.oracle.com/CSP/ui/flash.html#tab=KBHome(page=KBHome&id=()),(page=KBNavigator&id=(bmDocTitle=Starting%20With%20Oracle%20JDBC%20Drivers&from=BOOKMARK&viewingMode=1143&bmDocType=FAQ&bmDocDsrc=KB&bmDocID=401934.1))
    Somehow it's not easy to paste the URL to the new flashy documents!

  • Oracle JDBC Drivers

    We are extracting blobs from an 8.05 database. The following statement works only with an older driver for a version I'm not sure whar it is(size is 1419KB, date is 11/3/00 at 9:25AM).
    Nothing special in the sql just extracting the column.
    pBlob = (oracle.sql.BLOB)rset.getObject(1);
    This works fine with the above mentioned driver. All other drivers I have tested 8.15 for 8i, 8.05, 7.34, 8.04, etc. all give the network datatype unsupported error at this statement. I tried the various examples but they were for the oci8 drivers and did not work with thin.
    We use the thin(type 4) driver.
    Do the new drivers not support the BLOB type for thin?
    Does anyone know which driver version and database that the one I described is from?
    Thanks.

    user452131,
    Yes, there are differences between the Oracle 8i JDBC drivers and the Oracle 9i JDBC drivers.
    If you haven't already done so, I suggest perusing the following Web page:
    http://www.oracle.com/technology/tech/java/sqlj_jdbc/index.html
    Good Luck,
    Avi.

  • Oracle JDBC Drivers with Tomcat

    I try to connect to Oracle DB with the JDBC Drivers throught Tomcat JNDI access.
    I've tried with the oracle.jdbc.driver.OracleDriver and I have an UnsupportedOperationException when calling the getConnection() method on ma dataSource ref.
    So I've tried with the oracle.jdbc.pool.OracleConnectionPoolDataSource and I have an java.sql.SQLException:
    Cannot create JDBC driver of class
    'oracle.jdbc.pool.OracleConnectionPoolDataSource' for connect URL
    'jdbc:oracle:thin:@(description=(address=(host=meditws322)(protocol=tcp)(port=1521)
    )(connect_data=(sid=HABILLE)))'
    Please help I'm about to break down

    Thanks for your reply. I use Oracle JDBC driver. The XSQLConfig.xml was changed to have the following setting:
    <connection-manager>
    <factory>oracle.xml.xsql.XSQLOracleDatasourceConnectionManager</factory>
    </connection-manager>
    I'm using Tomcat 4.1.x and Apache Commons DBCP Datasources with org.apache.commons.dbcp.BasicDataSourceFactory. The configuration file does set driverClassName to oracle.jdbc.driver.OracleDriver. All other queries embedded in .xsql files work great, I only have issues with queries containing CURSOR() statements. If I switch back to built-in database connectivity, by changing XSQLConfig.xml and connection parameters in .xsql files everything is working again. When I attempt to use DataSources, I get things like this "oracle.jdbc.driver.OracleResultSetImpl@15780d9" instead of nested XML. The non-nested portion of XML looks fine also, so it is retrieving the data from the database properly. Please let me know if I can provide any additional information that could help in resolving this. Thanks in advance!
    -M-

  • JDK1.3 and Oracle thin drivers

    I see that the latest version of the thin drivers (Oracle8i 8.1.6.0.1) are "validated" for jdk1.2.x use.
    Now that jdk1.3 is out for both Solaris and Windows, can I assume that the drivers will function properly with jdk1.3? or will Oracle release new drivers for jdk1.3?
    /Magnus

    I have found that the 1.3 jdk (I am using the RC for linux) works very well with the jdbc thin driver. The performance is exceptional using the hotspot server vm.
    slag

  • Multithreaded clients and Oracle JDBC-drivers?

    Are the thin and OCI8 drivers for Oracle multithreaded? (I know they're thread safe)
    I.e. Can many threads share the same Connection object (and statement objects) to do their requests without the requests being serialized to the DB?
    Sun's javadoc of package java.sql says:
    We require that all operations on all the java.sql objects be multi-thread safe and able to cope correctly with having several threads simultaneously calling the same object.
    Some drivers may allow more concurrent execution than others. Developers can assume fully concurrent execution; if the driver requires some form of synchronization, it will provide it. The only difference visible to the developer will be that applications will run with reduced concurrency.
    For example, two Statements on the same Connection can be executed concurrently and their ResultSets can be processed concurrently (from the perspective of the developer). Some drivers will provide this full concurrency. Others may execute one statement and wait until it completes before sending the next.
    One specific use of multi-threading is to cancel a long running statement. This is done by using one thread to execute the statement and another to cancel it with its Statement.cancel() method.
    Restated again for Oracle; Will threads run concurrently when using the same connection and statements, or will the calls be serialized?

    In the connection pool, I specified:
    user
    password
    url
    In the deployment tool (Sun Java Appl. Server 8 BE Update 1), I specified the "Resource Reference" for the EJB. This leads to the following entries in sun-ejb-jar.xml:
    <res-ref-name>jdbc/pdisasdb</res-ref-name>        
       <jndi-name>jdbc/pdisasdb</jndi-name>        
          <default-resource-principal>         
             <name>myname</name>          
             <password>geheim</password>        
          </default-resource-principal> 
    </resource-ref> The strange thing is, that now it works without this entry - but I am not gaga, yesterday it doesnt...

  • Why would oracle 9i drivers faster than oracle 10g drivers against a 10g?

    I'm skeptical of the claim but we have a system at work and tests have been done that apparently is showing that the older oracle 9i thin jdbc driver is performing a fetch faster than the 10g driver. This for a query that is currently doing a full table scan.
    Is there a default setting in 10g vs 9i that can explain why the perceived query performance is faster with the older thin driver?

    steffi2 wrote:
    What was observed was that when they started using the old Oracle 8.1.7 8i client jar against this 10g data the actual execution plan changed dramatically to use indexes where was previously it was not doing so and it was doing a full tablescan.
    Why would the introduction of the old 8i jar have this affect?Maybe the test is flawed. For example one test was run with the network was loaded while the other wasn't. Or different connection parameters.
    That said I believe somewhere the claim has been made that Oracle drivers changed from one API to another somewhat recently. Thus that could be the source.
    Or maybe something to do with hints.

  • Oracle 10g Drivers is

    Hi support,
    Are Oracle 10G database server drivers compatible with Oracle 11G database server .
    As we have updated our Database Server from Oracle 10g to Oracle 11g DB Server.
    Please confirm that do we need to update all our clients machine from Oracle 10g to Oracle 11g OR* Oracle 10g Client will work fine with Oracle 11g Server
    THanks
    Naveed Aamir

    860707 wrote:
    Hi support,
    Are Oracle 10G database server drivers compatible with Oracle 11G database server .
    As we have updated our Database Server from Oracle 10g to Oracle 11g DB Server.
    Please confirm that do we need to update all our clients machine from Oracle 10g to Oracle 11g OR* Oracle 10g Client will work fine with Oracle 11g Server
    THanks
    Naveed AamirIt works fine with 11g

  • Does wls8.1 install with oracle jdbc drivers in the classpath by default?

    I just went through the 8.1 install tonight and it looks to me like the
    oracle jars are in the default weblogic classpath.
    set
    WEBLOGIC_CLASSPATH=%JAVA_HOME%\lib\tools.jar;%WL_HOME%\server\lib\weblogic_s
    p.jar;%WL_HOME%\server\lib\weblogic.jar;%WL_HOME%\server\lib\ojdbc14.jar
    Why is that? I don't have oracle, and with just learning how to use wls, it
    took me a bit of time to finally figure this piece out (trying to get MySQL
    drivers loaded). Not everyone has Oracle installed, so why put it on the
    classpath for all servers/domains when they startup?
    Thanks.

    I'm not sure what the best practice is.
    The Oracle driver is set in
    bea/weblogic81/common/commEnv.cmd or commEnv.sh.
    There is a WEBLOGIC_CLASSPATH that has the jars in it and I always
    put my stuff at the beginning.
    I suspect that the preferred way of doing this is to update
    /bea/weblogic81/samples/domains/examples/startExamplesServer.cmd
    or whatever script is used to start the server.
    "Flip" <[remove][email protected]> wrote in message news:[email protected]...
    Hey Stephen, thanks for the reply.
    You got it to work without probs? COOL! :> Where did you stick the driver
    and where did you put the jar reference (in which cmd/sh file and where
    abouts in the file)? Inquiring minds want to know! :>>>> I tried looking
    on the web, but I was referenced to some PRE_CLASSPATH params, as well, as
    putting it into my own directories... I'm just looking to find out what dir
    is the best practise to dump the jar file into and where to put the
    reference in a classpath.
    One small note, I do dev in WIN and run production on linux (that might
    change soon, but that's another question, and another server :>).
    Thanks.
    PS BEA, nice domain config wizard with 8.1! Very sweet, I like the
    integrated connection pool and datasource creation!
    "Stephen Felts" <[email protected]> wrote in message
    news:[email protected]...
    The Oracle driver (client jar) is shipped in the box. Having it in theCLASSPATH makes it easier
    for customers that use it.
    If you don't use it and you want to use another driver, it won't get inthe way
    since your alternate driver will have a different classname.
    I installed and ran MySQL with no problems.
    "Flip" <[email protected]> wrote in message
    news:[email protected]...
    I just went through the 8.1 install tonight and it looks to me like the
    oracle jars are in the default weblogic classpath.
    set
    WEBLOGIC_CLASSPATH=%JAVA_HOME%\lib\tools.jar;%WL_HOME%\server\lib\weblogic_s
    p.jar;%WL_HOME%\server\lib\weblogic.jar;%WL_HOME%\server\lib\ojdbc14.jar
    Why is that? I don't have oracle, and with just learning how to usewls, it
    took me a bit of time to finally figure this piece out (trying to getMySQL
    drivers loaded). Not everyone has Oracle installed, so why put it onthe
    classpath for all servers/domains when they startup?
    Thanks.

  • How do I install just the Oracle ODBC drivers on a Windows NT workstation?

    I want to access a remote Oracle database on my network via ODBC
    from Visual Foxpro. When I try to set up the ODBC data source,
    I'm told it doesn't exist. I downloaded the ODBC driver
    (ora8175.exe) from Oracle, but I cannot get it to run.
    I am new to Oracle, so any assistance you can provide will be
    greatly appreciated. (I am very familiar with VFP).
    Thanks,
    Jeff

    You have to install the Oracle client in order to be able to use
    the Oracle ODBC driver. The ODBC driver relies on, among other
    things, the network communication libraries of the Oracle client.
    If you're willing to pay for an ODBC driver, Merant (now
    DataDirect I believe) has an ODBC driver that doesn't require
    the Oracle client to be present. I've not used it, so I can't
    recommend it, but it's an option.
    Justin

  • Bug in Oracle JDBC Drivers with {ts ?}

    Oracle fails to set bind variables correctly when using the {ts ?} in an insert. It works ok if you use {d ?}.
    Ex:
    String st = "INSERT INTO BL(NM,TSTAMP) VALUES (?,{ts ?} )";
    System.out.println(dbConn.nativeSQL(st));
    java.sql.PreparedStatement stmt = dbConnn.prepareStatement(st);
    stmt.setString(1,"test");
    stmt.setString(2,"2000-08-18 09:33:45");
    int xx = stmt.executeUpdate();
    Oracle Reports:
    INSERT INTO BL (NM,TSTAMP) VALUES (:1,TO_DATE (?, 'YYYY-MM-DD HH24:MI:SS'))
    ConnectionPoolManager failed:java.sql.SQLException: ORA-00911: invalid character
    Notice the ? doesn't change to :2.
    Whoops.
    Also when does Oracle plan to implement {fn }
    scalars. There are work arounds but they are not portable. If not soon we will switch our suggested database for our clients.
    null

    Horea
    In the ejb-jar.xml, in the method a cursor is closed, set <trans-attribute>
    to "Never".
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name></ejb-name>
    <method-name></method-name>
    </method>
    <trans-attribute>Never</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    Deepak
    Horea Raducan wrote:
    Is there a known bug in Oracle JDBC thin driver version 8.1.6 that would
    prevent it from closing the open cursors ?
    Thank you,
    Horea

  • Oracle jdbc drivers - cannot resolve symbol

    while i'm not new to java, i am new to jdbc. need to connect a java app to an oracle database (hosted by a 3rd party). i have all the connection info. i've crafted a test program, but cannot get it to compile.
    here's the code:
    import java.sql.*;
    public class SimpleJDBC
         public static void main(String[] args) throws SQLException, ClassNotFoundException
         Class.forName(oracle.jdbc.driver.OracleDriver);
         System.out.println("Driver loaded");
         Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@database.host:1521:class"); //, "username", "password");
         System.out.println("Database connected");
         Statement statement = conn.createStatement();
         ResultSet results = statement.executeQuery("select first_name, last_name from user_tbl where last_name = 'Kendall'");
         while(results.next())
              System.out.println(results.getString(1) + "\t" + results.getString(2));
         conn.close();
    }i've set the classpath to the location of the ojdbc14.jar, and it shows in the classpath when i do a "set" on the cmd line. i've tried it in netbeans, eclipse, and straight cmd line.
    i always come up with the same message (cannot resolve symbol) on the line where i call Class.forName(oracle.jdbc.driver.OracleDriver);.
    i've tried compiling and setting the classpath at the same time. i added the ojdbc14.jar to the compile/build paths in both the ides. i even tried using the old classes12.jar. nothing has worked.
    i can't figure out what else there is. within the ides, the intellisense will actually let me put that line in (piece by piece), but then it shows an error.
    any suggestions?

    Place the string name of the driver in quotes.
    - Saish

Maybe you are looking for

  • Displaying chinese characters in browser

    Dear sirs, I am having the following issue in chinese internationalization.when i stored the JSP form parameters(typed in chinese) in database,it stored some kind of junk characters ....and when i displayed ,they showed like SMALL SMALL tables.... in

  • Non-recurring calendar entries did not restore from backup

    I synch contacts and calendar from PC, music and video from Mac. In the past, when I synced a new iphone for the first time, the backup on Itunes on my Mac automatically restored all contacts and calendar entries onto the new iPhone. Today, however,

  • Integrating Tableau server report with SharePoint

    Hi  The requirement is to have Tebleau server report to be integrated with SharePoint. We can integrate the report using a page viewer web part but in the web part it asks for log in credentials, also Tableau server is installed on a different server

  • Oracle Instance - Performance

    All - There are two instances of oracle - both running on 9.2.0.5 on Unix server. Processes on instance A is much faster than the same processes on instance B. Could it be because of some instance level settings on instance B that makes it perform sl

  • How do u reset the zen microphoto comple

    how do u reset the microphoto so it resets completly, like?you just bought it