Jdbc 2.0 driver

i am using classes12.zip & nls_char12.zip downloaded from OTN but still am unable to use certain methods of resultset interface such as previous(),beforefirst() etc which require jdbc 2.0 .
the error shown on use of such methods is 'javax.servlet.servletException'.

Are you creating a scrollable resultset?
Refer documentation here :
http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/java.920/a96654/resltset.htm#1000888
Also ensure that you are using proper version of JDBC driver and JDK. The best would be to use 9i JDBC driver (classes12.jar) with JDK 1.3x
Chandar

Similar Messages

  • Connection reset using JDBC Oracle thin Driver (towards 10g DB)

    Hi we have a home-grown application and a Oracle 10g (10.2.0.1) database.
    We created a scheduled servlet that gets a JDBC connection from a persistent connected cache (an OracleDataSource object registered using OracleConnectionCacheManager). The servlet runs every 15 minutes and runs the query "SELECT SYSTIME FROM DUAL" on 10g Database as XYZ user. The datapool was created yday on web-app and all queries ran successfully for about 5 hours after which it reported a connection reset error.
    I can then conclude that we cannot keep the server session alive for the JDBC client by running frequent SQL queries.
    We didnt get any messages on the DB server side that indicate the release of the session
    Ultimately, we are struggling with reset connections from our applications that are
    using the JDBC thin oracle driver; after a couple of hours of idle
    connections, we receive the below error from the JDBC driver:
    Jul 5, 2007 10:59:53 AM oracle.jdbc.driver.DatabaseError throwSqlException
    WARNING: DatabaseError.throwSqlException(e): Unable to find ORA number from
    exception Jul 5, 2007 10:59:53 AM oracle.jdbc.driver.DatabaseError
    findMessage
    WARNING: DatabaseError.findMessage(errNum, obj): returned Io exception:
    Connection reset Jul 5, 2007 10:59:53 AM
    oracle.jdbc.driver.PhysicalConnection getWarnings
    INFO: PhysicalConnection.getWarnings()
    Any suggestions please ?
    Vk

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

  • Help required on jdbc 2.0 driver for oracle 8.0.4

    Hi all,
    I wanted to know whether any oracle/Third party jdbc 2.0 driver is available to connect to oracle 8.0.4 enterprise server.
    Any help would be kindly appreciated....
    Regards,
    Sudhakar

    Ravindra Rao (guest) wrote:
    : I'm looking for a Type 4 JDBC 2.0 driver for Oracle 8.0.4. Does
    : Oracle provide one. I have looked at the downloads area but was
    : not able to locate one.
    : Any pointers?
    : Ravindra Rao
    : [email protected]
    The only oracle JDBC driver that can run with JDK 1.2.x is in the
    OTN download area and is named "816SDK for JDK 1.2"
    it will work with the JDK 1.2.X using the JDBC 1.22 spec from JDK
    1.1.X.
    IT DOES NOT PROVIDE THE FULL JDBC 2.0 FEATURES/ FUNCTIONALITY
    THAT ARE INCLUDED IN THE JDK 1.2.X CLASSES.
    you're using a jdk 1.2.x/jdbc 2.0 feature -- which is anticipated
    to be included in the 816 driver later this year -- it's not in
    the "816SDK" JDBC driver you're using now..
    816SDK can be thought of as stepping stone between 815 using jdk
    1.1.x and 816 supporting jdk 1.1.x and 1.2.x.
    i think of it as "8.1.5 and a half" to avoid the naming confusion
    between "816sdk" and "816" .
    SEE the following FAQ link for additional details :
    http://technet.oracle.com/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm
    null

  • 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.

  • Has anybody used the microsoft JDBC 2.0 driver for sql server 2000?

    Hi,
    Has anybody used the JDBC 2.0 driver for sql server 2000 downloadable from the
    microsoft website?When I try using it with WL 6.1 sp1 it says it can't load the
    driver.I try viewing the class file from the jar file using the jar utility it
    gives an unknown Zip format error.Anybody has any solution for this ?If anybody
    has managed to work with this microsoft driver i will be grateful if they provide
    me with a solution.
    Thanks
    Thomas

    Hello Thomas,
    You may want to download the driver again and install it again.
    heres a sample xml tag in the config.xml:
    <JDBCConnectionPool
    DriverName="com.microsoft.jdbc.sqlserver.SQLServerDriver"
    InitialCapacity="3" MaxCapacity="12" Name="MSpool"
    Password="{3DES}fUz1bxR0zDg=" Properties="user=uid"
    Targets="myserver"
    URL="jdbc:microsoft:sqlserver://mydbserver:1433"/>
    ensure that you follow the instructions from Microsoft. For using 2000
    driver you will need to have
    Install_dir/lib/msbase.jar and Install_dir/lib/msutil.jar in addition to
    Install_dir/lib/mssqlserver.jar in the CLASSPATH.
    hth
    sree
    "Thomas" <[email protected]> wrote in message
    news:3c91ec0e$[email protected]..
    Hi,
    Has anybody used the JDBC 2.0 driver for sql server 2000 downloadable from
    the
    microsoft website?When I try using it with WL 6.1 sp1 it says it can't load
    the
    driver.I try viewing the class file from the jar file using the jar utility
    it
    gives an unknown Zip format error.Anybody has any solution for this ?If
    anybody
    has managed to work with this microsoft driver i will be grateful if they
    provide
    me with a solution.
    Thanks
    Thomas

  • SQL 2005 JDBC 1.1 driver

    I tried installing and using the new SQL 2005 JDBC 1.1 driver
    and read and followed the technote at
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=ded4216b.
    I get multiple error messages each time I try to connect using RDS.
    After the messages aredismissed it works ok. The settings I used
    for this Datasource were:
    1. JDBC URL= jdbc:sqlserver:// SAIC-C549F42BF7 :
    1433;DatabaseName=MwsDevSqlServer
    2. Driver Class= com.microsoft.sqlserver.jdbc.SQLServerDriver
    3. Driver Name= SQL 2005 JDBC 1.1
    4. A standard User Name & Password
    The previous Datasource I used, which I went back to is a
    Microsoft SQL Server driver:
    1. Database =MwsDevSqlServer
    2. Server=SAIC-C549F42BF7
    3. Port= 1433
    4. A standard User Name & Password
    Ideas to fix?

    We got the same error while using XA Datasource from the SQL Server 2005 JDBC driver 1.0. The file downloaded is "sqljdbc_1.0.809.102_enu" . We have not installed "Microsoft Distributed Transaction Coordinator", as we are developing custom transaction manager to talk to oracle, sybase and sql server databases in a single transaction. Does SQL Server require the Microsoft Distributed Transaction Coordinator to participate in the two phase commit protocal ?
    Joshy
    Note:- If you are intereted, check out my 2006 Tax Calculator Applet at http://www.bestonlinetaxpreparation.com/2006TaxCalculator.html . Of Course it does not participate in two phase commit protocol -:) .

  • JDBC 4.0 Driver JDeveloper

    Oracle database 11g JDBC drivers support JDBC 4.0.
    But, JDeveloper does not support the JDBC 4.0 driver.
    Because JDeveloper is pre-configured with a built-in Oracle JDBC driver and if the ojdbc6.jar is used to connect to Oracle database an error gets generated.

    Thanks Steve.
    The error gets generated if the Databases navigator is used to connect to Oracle database with JDBC 4.0 driver.
    1. Set JDK to JDK 6.0 with Tools>Project Properties>Libraries and Classpath>Java SE Version
    2. In the Databases navigator right-click on IDE Connections and select New Connection.
    3. Select Connection Type as "Generic JDBC".
    4. In the Generic JDBC Settings select New in the Driver Class field.
    Specify Driver Class as oracle.jdbc.OracleDriver. Create a library for the ojdbc6.jar and select the library in the Library selection.
    5. Error gets generated:
    The Oracle JDBC driver is built in and cannot be redefined.

  • How to use the type 4 of DBF JDBC 2.0 Driver?

    Hi,
    I download the "DBF JDBC 2.0 Driver package" from http://memebers.tripod.com/~ZYH/jdbc.html and copy it into my classpath.
    But I cannot find its Driver name string using in Class.forName(<DriverName>). And I also need the Connection String in Con.getConnection(<ConnectionString>).
    It will be great appreciated if you can give me any information.
    Thans a lot in advance!
    Jane

    Dear Jiehua Huang,
    First, you need to download JDK1.2, 1.3 or 1.4 from www.javasoft.com if
    you use DBF JDBC 2.0 package(DBF_JDBC20.jar). You can download JDK1.1.X
    too if you use DBF JDBC 1.2 package(DBF_JDBC12.jar).
    Secondly, please add DBF_JDBC20.jar (or DBF_JDBC12.jar) to your Java
    class path, for instance, "SET
    CLASSPATH=c:\javalib\DBF_JDBC2.0.jar;%classpath". You can also use "java
    -classpath c:\javalib\dbf.jar yourDBFclass" to run your class. More
    information about classpath, please read the "Setting the Classpath"
    topic in file:///yourdriver|/jdk1.2/docs/tooldocs/tools.html . You can
    use "java -classpath c:\javalib\DBF_JDBC20.jar yourDBFclass" or "java
    -classpath c:\javalib\DBF_JDBC12.jar yourDBFclass" too.
    Thirdly, you can use
    'Class.forName("com.hxtt.sql.dbf.DBFDriver").newInstance();' or
    Class.forName("com.hxtt.sql.dbf.DBFDriver");' to load this driver.
    Fourth, if you have used other JDBC driver, you only need to know the
    correct URL format for DriverManager.getConnection(url,"",""); You can
    find the URL format from "testDBF.java". If you were a Java novice,
    please read also other Java examples code in JDBC20demo.zip or
    JDBC12demo.zip.
    DBF URL format:
    Direct Access:
    jdbc:dbf:[/]/[DatabasePath] (You can omit that "//"
    characters)
    For example:
    "jdbc:dbf:/."
    "jdbc:dbf:/c:/dbffiles"
    "jdbc:DBF:////usr/data" for unix or linux:
    "jdbc:DBF:/./data"
    Access by DBF Server: Skip it if you don't use RMI or JINI.
    jdbc:DBF://hostname:port/[DatabasePath]
    For example:
    "jdbc:DBF://domain.com:3099/dbffiles" if
    one DBFServer is run on the 3099 port of domain.com
    Last, DBF driver is a standard JDBC driver so that you will find most of
    valuable information at
    file:///yourdrive|/jdk1.2/docs/api/java/sql/package-frame.html .
    DBF supports SQL Minimum Grammar, which is a subset of the Entry level
    syntax of SQL-92.
    The major syntax is listed below:
    CREATE TABLE base-table-name (column-identifier data-type
    [,column-identifier data-type]...)
    DROP TABLE base-table-name
    DELETE FROM table-name [WHERE search-condition]
    INSERT INTO table [ ( column [, ...] ) ] { VALUES ( expression [,
    ...] ) | SELECT query }
    UPDATE table-name SET column-identifier = {expression | NULL }[,
    column-identifier = {expression | NULL}]... [WHERE search-condition]
    SELECT [ALL | DISTINCT ]select-list FROM table-reference-list
    [WHERE search-condition] [group-by-clause] [order-by-clause]
    CREATE [UNIQUE] INDEX indexName[(keylength)][,...] [OF
    indexFileName] ON tableName (expression UNIQUE ASC
    [FOR lExpression][,...])
    DROP INDEX {ALL | indexName[,indexName2,...]} [of indexFileName]
    ON table-name
    REINDEX {ALL | indexFileName[,indexfiLEName2,...]} ON table-name
    DBF driver will use index to speed up the query which contains some
    index expressions. If a table has a structural .CDX or .IDX file, the
    file is opened automatically when the table is opened. You have to run
    the DBFIndex once to supply the necessary index file information for the
    nonstructural index file which hasn't the same file name as its table
    name and is created by other xbase applications. Then DBF will create a
    special table.INDICES file and maintain the index files automatically.
    You can use "java com.hxtt.sql.dbf.DBFIndex" to find out how to supply
    existent index files. Useage: java com.hxtt.sql.dbf.DBFIndex
    dbfTablePath tableName indexFileFullName1 [indexFileFullName2 ...]. For
    instance, you have a legacy 'product.dbf' file with prodname.idx,
    prodprice.idx and orderdate.idx on "c:\proudct\data" directory, you can
    run "java com.hxtt.sql.dbf.DBFIndex c:\proudct\data product prodname.idx
    prodprice.idx orderdate.idx" once. Then DBF will create a special
    product.INDICES file and maintain the index files automatically. All
    operations of update, insert and delete will update the .IDX files that
    are related to the DBF file. DBF driver doesn't index all deleted records.
    File name is case sensitive on unix OS. For unix or linux, DBF will try
    to seek acquiescently dbf files with the suffixs like ".DBF" for the
    first time, and ".dbf" for the second time. If it failed to find out a
    suitable dbf file, it will try other mixture method. You can also use
    the full table name to quote your table. For instance, 'select * from
    "Test.dBf"'.
    Any question or problem? Please don't hesitate to let me know.
    With best regards,
    Zhao Yonghong
    System Analyst
    [email protected]

  • What's the URL in a JDBC-ODBC bridge driver connection?

    I'm trying to use a JDBC-ODBC bridge driver but I don't know what is the URL I need to put inside a the "getConnection (String URL, String userid, String passwd)" method.
    Connection conn = DriverManager.getConnection(URL, user, passwd);
    Can anybody help me?

    Yes Marc,
    but maybe Edgar should know that he first has to add a ODBC datasource.
    in WINNT
    Goto System ODBC Datasources and try to connect to your DB.
    If the test is working than you can use the name you have chosen
    as URL
    good luck
    Stefan

  • Can't find jdbc-odbc bridge driver

    Hi
    I've installed sdk 2.0 (v1.4.1) and am getting the runtime error:
    "Exception in thread main java.lang.NoClassDefFoundError <prog name>/class" from the java prompt.
    I suspect it is the jdbc-odbc bridge driver that is the problem. It should have downloaded with the SD 2.0 installation, but I can't find it on my NT PC.
    Any ideas?

    I suspect you are using,java <program_name>.class to execute your program.
    Then it will try to find the promram 'class' in the package '<program_name>'.
    You need to use, java <program_name>, thats all.
    For eaxample if you have Prg1.java, then use,
    'javac Prg1.java' to compile it and 'java Prg1' to run it.
    Sudha

  • JDBC ODBC Bridge/Driver???

    Hi,
    Please can someone help me?
    I'm a 4th year computer science student and have a final year project to do using databases. My problem is finding a JDBC:ODBC driver/bridge(what's the difference?).Every tutorial on the web says use the
    sun.jdbc.odbc.JdbcOdbcDriver, that's all well and good but where do I get it?I've tried downloading JDBC API's but still no joy. When I do finally find a driver do I need to copy it to the folder where the rest of my project is,
    (that's what I had to do for a mysql driver I had to use before). I want to use Microsoft Access with the project for portability and ease of alteration, do I need to set up an ODBC driver for my database as well as using the JDBC:ODBC bridge?
    That probably came out like complete double dutch but I hope someone out there can make sense of it and help me.

    Please can someone help me?Start with a tutorial http://java.sun.com/docs/books/tutorial/jdbc/index.html
    Basic info on your particular problem:
    JDBC defines an 'interface' that allows one to access databases. That usually consists of serveral parts: the database, the interface layer, the jdbc driver and jdbc itself.
    JDBC comes with java. In addition a single jdbc driver, the 'jdbc-odbc bridge' driver comes with java. To use that particular driver you also need the 'interface layer' which for MS Acess will mostly already be available to you - basically the ODBC shell (not part of java) and the MS Access ODBC driver (also not part of java.)
    Keep in mind that the jdbc-odbc bridge driver uses the ODBC that is already on the box. ODBC itself is not part of the driver.
    You will probably need to configure ODBC for use as a 'DSN' (Data Source Name?). To do that you go to the control panel and use the ODBC (Data Sources) applet. Pick 'System DSN' (a panel in the dialog), push 'Add' and follow the prompts by picking a MS Access driver. You can either use 'create' or 'select' at the end to create or use an existing database.
    If this seems like too much work then search the JDBC forum using "DSN-less" as the search string. The discussions there will tell you how to set up a connect string without creating a DSN.
    If you have further questions on this particular subject it would be best to post them to the JDBC forum rather than here.

  • JDBC-ODBC Bridge Driver Suitable?

    I'm implementing a web site for a small company, so will be using MS Access for the database.
    Will a JDBC-ODBC Bridge driver be suitable?
    I ask this as I have heard that JDBC-ODBC Bridge drivers are only suitable for testing purposes - not commercial use.
    Cheers

    Ideally, you should use a third-party driver in your implementation. Not that there's anything wrong with the JDBC-ODBC Driver, but like you said, Sun never really intended it to be used for mainstream applications. It was developed to serve as a generic driver until third party drivers could be developed and released. Now that there's plenty of good third party drivers out there, the use of the JdbcOdbcDriver is really not recommended. Here's a list of current drivers available for MS Access.
    http://servlet.java.sun.com/products/jdbc/drivers/search_results.jsp?jdbc_version=0&vendor_name=&cert_mode=and&jdbc_driver_type_mode=and&dbms=6&dbms_mode=and&features_mode=and&results_per_page=20&submit=Search

  • Com.mysql.jdbc.driver and jdbc:odbc bridge driver

    Hi All,
    I want to update mysql database from data in hashtable. My application already uses JDBC:OBDC bridge driver for retrieving data from excel sheet and putting in hashtable.
    For connecting to mysql i need to use com.mysql.jdbc.driver too in the same code.
    How to do that?
    my code uses.
    Read(String strFilePath,String strFileName)
               filepath = strFilePath;
               filename = strFileName;
                strDriver= "jdbc:odbc:Driver={MicroSoft Excel Driver (*.xls)}";Thanks

    Please stay with one thread:
    http://forum.java.sun.com/thread.jspa?threadID=5145466&tstart=0
    Please don't cross-post this way.

  • MSSQL JDBC 2.0 driver configuration

    Hi ALL
    I am using PI7.0 with database MSQL 2005
    for JDBC scenario i have downloaded MSSQL JDBC 2.0 driver from microsoft website
    But as per the deployement guides available on SDN and help section , i have to add files
    msbase.jar,mssqlserver.jar and msutility.jar to aii_af_jmsprovider.sda
    but i cant see anyone of the three file inside the downloaded driver.
    downloaded Driver path is  
    http://www.microsoft.com/downloads/details.aspx?FamilyID=f914793a-6fb4-475f-9537-b8fcb776befd&DisplayLang=en
    Is there different procedure to install MSSQL JDBC2.0 driver?
    or have i downloaded the wrong driver?
    If any JDBC driver is already deployed on XI server then How to confirm that driver is installed and which version?
    Thanks
    Sandeep Sharma
    Edited by: sandeep sharma on Jan 23, 2009 10:49 AM

    Hi Sandeep,
    Below I provide info about installation drivers for JDBC & JMS adapters
    FIRST: drivertool you can find at https://www.sdn.sap.com/irj/sdn/howtoguides
    Then Exchange Infrastructure How-to Guides for SAP NetWeaver 2004 How to Install and Configure External Drivers for JDBC & JMS AdaptersDownload attached system files (ZIP 16KB)
    SECOND:
    New version of installation guiade:
    External Driver Configuration for Process Integration 7.0
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60237e74-ef19-2b10-5a9b-b35cc6a28e83
    BR,
    Dzmirty

  • Not able to find 10.1.0.4 jdbc thin client driver

    I am trying to download 10.1.0.4 jdbc thin client driver, but I am not able to. I am using this link http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc101040.html. But It does not show 10.1.0.4. Can anybody tell me how I can download this driver ? Any help is much appreciated
    Thanks

    I would very much doubt that Oracle ever returned an empty String. Oracle treats (unless something has dramatically changed in 10.x) empty strings as null. This is not related to the JDBC driver. What do you get when you select the values using SQL*Plus?

  • Microsoft JDBC 2.0 driver for SQL:  Integrated Windows Authentication?

    Has anyone had success with the MS JDBC 2.0 driver for SQL and Integrated Windows Authentication in distributed mode (Multiserver)?  At best, we can get server-to-server authentication.

    Hello Thomas,
    You may want to download the driver again and install it again.
    heres a sample xml tag in the config.xml:
    <JDBCConnectionPool
    DriverName="com.microsoft.jdbc.sqlserver.SQLServerDriver"
    InitialCapacity="3" MaxCapacity="12" Name="MSpool"
    Password="{3DES}fUz1bxR0zDg=" Properties="user=uid"
    Targets="myserver"
    URL="jdbc:microsoft:sqlserver://mydbserver:1433"/>
    ensure that you follow the instructions from Microsoft. For using 2000
    driver you will need to have
    Install_dir/lib/msbase.jar and Install_dir/lib/msutil.jar in addition to
    Install_dir/lib/mssqlserver.jar in the CLASSPATH.
    hth
    sree
    "Thomas" <[email protected]> wrote in message
    news:3c91ec0e$[email protected]..
    Hi,
    Has anybody used the JDBC 2.0 driver for sql server 2000 downloadable from
    the
    microsoft website?When I try using it with WL 6.1 sp1 it says it can't load
    the
    driver.I try viewing the class file from the jar file using the jar utility
    it
    gives an unknown Zip format error.Anybody has any solution for this ?If
    anybody
    has managed to work with this microsoft driver i will be grateful if they
    provide
    me with a solution.
    Thanks
    Thomas

Maybe you are looking for

  • Why do I get a green screen on all of my videos in Mozilla (YouTube, Facebook, etc.)

    I have read the forums regarding this issue on Internet Explorer, but I do not know how to fix the issue on Firefox, which is my preferred browser.  All videos have audio but there is no video, just a green screen.  :-(  Also, is there a different fi

  • Dual monitor setup without using the ADC?

    Would it be possible to run a dual monitor setup using a DVI splitter cable from my (2009)Mac Pro? I've seen some old forums referring to the 2006 models saying that this wouldn't work and instead you'd get the same image on both screens but the newe

  • ORA-19870: error while restoring backup piece -- file exists in ASM

    [oracle@rs1pre92dvdbsa01 ~]$ rman target sys/c9nv9sd9t9f11e@mdm11 auxiliary / Recovery Manager: Release 11.2.0.1.0 - Production on Fri Oct 29 10:41:38 2010 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. connected to targ

  • Freezing scroll bar in list box

    Hello, I want the user to be able to read the list while I add new items to it. the problem is that whenever a new item is added to the list the scroll jumps up - I want it to stay where ever it was (in case the user scrolled it...) thanks

  • Project version(current data and version data comparison not possible)

    HI, I am stuck up with project version we are using EHP7 and SAP HANA When i create the version through CN71 or CNS41 system displays message "version is saved" When i try to compare the same version with the current date in the same mentioned transa