Using JDBC thin drivers against 9.2 DB ?

Is anyone doing this? How? Which JDK? Which drivers?
I would really like to uses JDBC 2.0 (classes12.zip) - but this hangs on the very first getConnect() or Driver.connect()
Mike

Thanks for the response.
I understand what you are saying...
that readers don't block writers in Oracle (the same is true in SQL Server 2000).
However, I don't see how my test case is working correctly with Oracle (the exact same code acting as I'm thinking it should with SQL Server, but I still think it is acting incorrectly with Oracle).
I have transaction A do this:
update <table> set <column2>=<value> where <column1>='1'
then I use Thread.sleep() to make that program hang around for a few minutes.
Meanwhile I sneak off and start another program which begins transaction B. I have transaction B do this:
select * from <table> where <column1>='1'
and the read works immediately (no blocking... just as you have said) however, transaction A is still sleeping, it has not called commit() or rollback() yet.
So what if transaction A were to call rollback(), the value read by transaction B would be incorrect wouldn't it ?
Both A and B use setAutoCommit(false) to start their transactions, and then call setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED).
Isn't that supposed to guarantee that a reader can only read what is committed ?
And if a row is in "flux"... in the process of having one or more values changed, then the database cannot say what the value will be ?
I can almost see what you are saying.
In letting the reader have what it wants without making it wait, I suppose it could be said that Oracle is holding true to the "only let committed data be read"
So if that's it, then what if I want the blocking ?
I want an entire row to be locked until whoever it in the middle of updating, adding, or removing it has finished.
Do you know if that can be done with Oracle ? And how ?
Thanks again for helping me.

Similar Messages

  • JDBC Thin Drivers

    Hi,
    I have downloaded Oracle thin drivers for jdk1.2.2 from oracle's site. But when i tried to hit the Database with it iam getting "Network Adapter error". I ahd given the url correctly. I checked up the application by running on the system where oracle is installed and it is running perfectly but when i access the database by installing thin drivers on some other machine and testing it, iam not able to connect to database. Iam getting Network adapter error and i also checked up with the network people and the assured me that there are no network problems as i am able to oracle server by pinging and thru telnet also. Any help will be greatly appreciated and Thanx in Advance.

    Marcelo,
    You can download JDBC 2.0 - friendly drivers from Openlink
    Software (http://www.openlinksw.com). Our latest 3.2 versions
    that support JDK 1.2 can be found at
    ftp://ftp.openlinksw.com/pre-3.2/index.html
    ... if you scroll to the NT / 95 section at the bottom of the
    page, you'll find the "opljdbc2.jar" in the list.
    Best regards,
    Stephen
    Marcelo Malagutti (guest) wrote:
    : Hello.
    : I3d like to know when will be released the JDBC thin drivers
    for
    : Oracle 8.0.4, compatible with the JDK 1.2. I need it to use
    the
    : new Java BLOB features of the JDK 1.2. Thanks.
    null

  • JDBC-Thin-Drivers on different Platforms

    Hello,
    Is there a difference between the JDBC thin drivers for Win NT and IBM AIX when using the same driver version (8.1.7) ?
    thanks in advance
    Joachim Helf

    the jdbc thin driver spec requires platform indepenedence.
    so you should not have a problem.
    if you do have a problem, then oracle support wants to hear about it.
    in that case, log a tar with your local oracle support center.

  • JDBC thin drivers for 8.0.4 and JDK 1.2

    Hello.
    I3d like to know when will be released the JDBC thin drivers for
    Oracle 8.0.4, compatible with the JDK 1.2. I need it to use the
    new Java BLOB features of the JDK 1.2. Thanks.
    null

    Marcelo,
    You can download JDBC 2.0 - friendly drivers from Openlink
    Software (http://www.openlinksw.com). Our latest 3.2 versions
    that support JDK 1.2 can be found at
    ftp://ftp.openlinksw.com/pre-3.2/index.html
    ... if you scroll to the NT / 95 section at the bottom of the
    page, you'll find the "opljdbc2.jar" in the list.
    Best regards,
    Stephen
    Marcelo Malagutti (guest) wrote:
    : Hello.
    : I3d like to know when will be released the JDBC thin drivers
    for
    : Oracle 8.0.4, compatible with the JDK 1.2. I need it to use
    the
    : new Java BLOB features of the JDK 1.2. Thanks.
    null

  • JDBC Thin Drivers and Tom Cat Compatibility Error

    I tried to use thin drivers in JDK 1.4 and Oracle 9i. The Oracle 9i has got a jar file named classes12.jar.
    i usually compile my .java files with the command:
    javac -classpath D:\oracle\jdbc\lib\classes12.jar <nameOfFile.java>
    the same is run in the console by the command
    java -classpath D:\oracle\jdbc\classes12.jar; <nameOfClassFile>
    I am giving the entire code that I want to compile and run below.
    The problem thing I am facing is ..... When even I try to start TOMCAT v5.0 I have to close the TSNListener of Oracle 9i and let the Oracle database only running. But when I request for a execution of a servlet that uses the class file, it gives an error. Telling ClassNotFound. If I add up the classes12.jar file in the classpath then tom cat does not run properly.
    So may anyone help me out of the situation of how to use the thin drivers, compile and run servlets and jsp's in TomCat v5.0.
    If not the solution of my above problem, then I want to know how can I use the Thin Drivers and implement a MVC architechture using TOMCAT and JDK1.5 and JRE1.5

    Where did you add the classes12.jar file reference in Tomcat?
    You need not add it to classpath. Just drop the jar file into the path":
    <TomCatInstallDir>\common\lib
    Tomcat loads all Jars inside this folder and then uses it for Runtime. It does not look at your machine's Classpath attribute

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

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

    Could you please provide further details on what do you mean with OS_USER?
    The application is a Java applet based application
    that connects to the database using JDBC Thin client.
    on 9i the OS_USER comes up as the user running the
    applet but in 10G it is coming up as the user account
    that installed 10G on the DB server.
    Are you referring to the user provided to perform authentication against database, i.e. a database user?
    How do you know this user is being changed?
    ~ Madrid

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

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

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

  • Jdbc thin drivers for windows 95

    Where can I find jdbc thin drivers for windows 95 for Personal Oracle 8.0. Thanks for the help.
    AP

    The thin driver is for the most part OS and RDBMS independant so any of them should work. The problem is more likely to be that you do NOT have a TCP/IP listener running on Personal Oracle (it doesn't have a listener at all by default).

  • Cannot connect Oracle 7.2.2 using JDBC thin in JDevelper....

    When I try to connect Oracle 7.2.2 database using JDBC thin driver of Java 1.1.8 in JDeveloper, the connection manager refuse to connect the database and alert the minimum version supported is 7.2.3. But I know JDBC thin driver can connect database of 7.2.x onwards. Any way to workaround? Thank you.

    Hi Tian-liang,
    Try using Microsofts JDBC driver rather than Suns. Also search these forums, other have run into the same issue.
    Thank you
    Don

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

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

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

  • OS Authentication using JDBC Thin driver

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

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

  • JDBC thin drivers for oracle 8.0.5 for linux

    I want to use Java SDK 1.2.2 and need the oracle thin drivers.
    I have trouble with the 816 thin drivers connecting to the 8.0.5
    server.
    when using statement.executeQuery(..... I get the following
    Exception.
    Exception error: java.sql.SQLException: ORA-03120: two-task
    conversion routine:integer overflow
    I think my solution is to upgrade to a 8.1.6 server or use the
    java 1.1.6 driver on the JDK1.1.6
    I tried downoading the 8.1.5 enterprise server but this fails to
    complete.
    Can someone help me to this version on CDROM or to the JDBC thin
    driver for the 8.0.5 server?
    null

    You must include "classes12.zip" instead of "classes111.zip".
    Since "classes111.zip" is required only for Java 1
    and "classes12.zip" is required for Java 2 which means from J2SE 1.2 on forward.
    In adition you might need to inlcude "nls_charset12.zip" as well. Try it first without and if it is not working include it as well.
    The required files can you get from the OTN.
    This should help
    Roger

  • Connection error to 9i database using JDBC thin driver

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

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

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

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

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

  • Using JDBC-thin driver

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

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

Maybe you are looking for