Oracle 8i type4 jdbc driver (classes1.2.zip) refreshRow() error...

Hi there,
I am implementing a distributed app using Oracle8 Server and the Oracle
8i 8.1.6 driver for JDK 1.2.x . I have created a prepared statment
which uses the scrollable result set as follows:
do connection stuff...
PreparedStatement pstmt2 = null;
String query2 = "Select ......";
pstmt2 = con.prepareStatement(query2,ResultSet.TYPE_SCROLL_SENSITIVE,
ResultSet.CONCUR_READ_ONLY);
execute it...
scroll through result set using myRs.next() and myRs.relative() .
Anyway, this code works for result sets with only 5 or 6 rows in the
result set, but when I return 8 or more I get the error below.
I checked the bug list and refreshRow() is supposed to work for the type
of prepared statement I've set up.
Does anyone know if there is a work around???
ERROR::
Exception! java.sql.SQLException: operation not allowed: Unsupported
syntax for refreshRow() at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:197) at
oracle.jdbc.driver.SensitiveScrollableResultSet.refreshRow(SensitiveScrollableResultSet.java:174)
at
oracle.jdbc.driver.SensitiveScrollableResultSet.handle_refetch(Compiled
Code) at
oracle.jdbc.driver.SensitiveScrollableResultSet.next(Compiled Code) at
GRSTest.GRSTest.formatGRSTable(GRSTest.java:313) at
GRSTest.GRSTest.query(GRSTest.java:184) at
GRSTest.GRSTest.doPost(GRSTest.java:36) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:521) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:588) at
sun.servlet.http.HttpServerHandler.sendResponse(HttpServerHandler.java:165)
at
sun.servlet.http.HttpServerHandler.handleConnection(HttpServerHandler.java:121)
at
sun.servlet.http.HttpServerHandler.run(Compiled Code) at
java.lang.Thread.run(Compiled Code)
null

After testing some combinations, i found the following:
The statement
select "col1","co2" from "table" where "col3"=?
will cause
java.sql.SQLException: operation not allowed: Unsupported syntax for refreshRow()
when the last valid row will be reached (by result.next() or result.last()).
If i use "select * from ..." instead, everything seems to work fine!
Hope that will help.
Greetings from Germany.

Similar Messages

  • Insert data 32K into a column of type LONG using the oracle server side jdbc driver

    Hi,
    I need to insert data of more than 32k into a
    column of type LONG.
    I use the following code:
    String s = "larger then 32K";
    PreparedStatement pstmt = dbcon.prepareStatement(
    "INSERT INTO TEST (LO) VALUES (?)");
    pstmt.setCharacterStream(1, new StringReader(s), s.length());
    pstmt.executeUpdate();
    dbcon.commit();
    If I use the "standard" oracle thin client driver from classes_12.zip ("jdbc:oracle:thin:@kn7:1521:kn7a") every thing is working fine. But if I use the oracle server side jdbc driver ("jdbc:default:connection:") I get the exception java.sql.SQLException:
    Datasize larger then max. datasize for this type: oracle.jdbc.kprb.KprbDBStatement@50f4f46c
    even if the string s exceeds a length of 32767 bytes.
    I'm afraid it has something to do with the 32K limitation in PL/SQL but in fact we do not use any PL/SQL code in this case.
    What can we do? Using LOB's is not an option because we have client software written in 3rd party 4gl language that is unable to handle LOB's.
    Any idea would be appreciated.
    Thomas Stiegler
    null

    In rdbms 8.1.7 "relnotes" folder, there is a "Readme_JDBC.txt" file (on win nt) stating
    Known Problems/Limitations In This Release
    <entries 1 through 3 omiited for brevity >
    4. The Server-side Internal Driver has the following limitation:
    - Data access for LONG and LONG RAW types is limited to 32K of
    data.

  • SetString/executeBatch fails in Oracle 10g OCI JDBC driver

    Hi,
    I am using Oracle 10g OCI jdbc driver for batch updates.
    Following is the the code that I am using
    import java.sql.*;
    import oracle.jdbc.*;
    import oracle.jdbc.pool.OracleDataSource;
    public class BatchUpdates
    public static void main(String[] args)
    Connection conn = null;
    Statement stmt = null;
    PreparedStatement pstmt = null;
    ResultSet rset = null;
    int i = 0;
    try
    String url = "jdbc:oracle:oci:@kctutf8";
    try {
    String url1 = System.getProperty("JDBC_URL");
    if (url1 != null)
    url = url1;
    } catch (Exception e) {
    OracleDataSource ods = new OracleDataSource();
    ods.setUser("kctuser");
    ods.setPassword("kana");
    ods.setURL(url);
    conn = ods.getConnection ();
    stmt = conn.createStatement();
    try { stmt.execute(
    "create table mytest_table (col1 number, col2 varchar2(20))");
    } catch (Exception e1) {}
    pstmt = conn.prepareStatement("insert into mytest_table values (?, ?)");
    pstmt.setInt(1, 1);
    pstmt.setString(2, "row 1");
    pstmt.addBatch();
    pstmt.setInt(1, 2);
    pstmt.setString(2, "row 2");
    pstmt.addBatch();
    pstmt.setInt(1, 3);
    pstmt.setString(2, "row 3");
    pstmt.addBatch();
    pstmt.setInt(1, 4);
    pstmt.setString(2, "row 4");
    pstmt.addBatch();
    pstmt.setInt(1, 5);
    pstmt.setString(2, "row 5");
    pstmt.addBatch();
    pstmt.executeBatch();
    rset = stmt.executeQuery("select * from mytest_table");
    while (rset.next())
    System.out.println(rset.getInt(1) + ", " + rset.getString(2));
    catch (Exception e)
    e.printStackTrace();
    finally
    if (stmt != null)
    try { stmt.execute("drop table mytest_table"); } catch (Exception e) {}
    try { stmt.close(); } catch (Exception e) {}
    if (pstmt != null)
    try { pstmt.close(); } catch (Exception e) {}
    if (conn != null)
    try { conn.close(); } catch (Exception e) {}
    When I run this class I get the following output
    1, row 1
    2, row 3
    3, row 5
    4, null
    5,
    But It should have been
    1, row 1
    2, row 2
    3, row 3
    4, row 4
    5, row 5
    The same class runs fine if I use Thin driver.
    Can anyone please help me solve this issue.
    Note: This happens only in case we use setString with Varchar2 in the DB. This works fine if I have two number columns
    Thanks,
    Raja.S

    Please post this question to the Java forum. It is located under "Technologies".

  • How can I access the oracle/sql server jdbc driver class files from my cust

    I have a war file in which I have custom DataSource i.e mypackage.Datasource class. Its basically the need of my application. In this class we connect to datasource and link some of our programming artifacts .
    I have deployed the oracle jdbc driver and deploy my application as ear with datasources.xml in the meta inf file. Inspite of that my code fails to load the jdbc driver classes.
    Here is the extract of the code :
            Class.forName("oracle.jdbc.OracleDriver").newInstance();
             String url = "jdbc:oracle:thin:@dataserver:1521:orcl";
            Connection conn = DriverManager.getConnection(url, "weblims3", "labware");
            if(conn != null){
              out.println("the connection to the database have been achieved");
            out.println("conn object achived= " + conn);
    Class.forname fails in this case. I can see the ojdbc5.jar the driver jar in usr\sap\CE1\J00\j2ee\cluster\bin\ext\ojdbc5  . I even put the ojdbc.jar in web-inf/lib and application lib but does not help at all. Hope I have explained my problem clearly.
    I deployed the jdbc driver in the name of ojdbc5 .
    I am stuck here. It will be great help if anyone can help me in this. Thanks in advance.

    Bent,
    You can access the database from your Java portlet, just like from any other Java/JSP environment. Yes, you can use JDBC, as well as BC4J.
    The Discussion Forum portlet was built using BC4J, take a look at it's source to see how it was done.
    Also, check out Re: BC4J Java portlet anyone?, it contains a lot of useful information too.
    Peter

  • Microsoft jdbc driver for sql server 2000 error

    I try to connect to a sql server database;
    After execution of:
    C:\Sun\Creator\bin\runide.exe -cp:a =.;"C:\Programmi\Microsoft SQL Server 2000 Driver for JDBC\lib\msbase.jar";"C:\Programmi\Microsoft SQL Server 2000 Driver for JDBC\lib\msutil.jar";"C:\Programmi\Microsoft SQL Server 2000 Driver for JDBC\lib\mssqlserver.jar"
    (where "programmi" is "Program Files" in Italian)
    I can make a connection to sql server.
    When I try to see the "tables" in database I have this error:
    [Microsoft][SQLServer 2000 Driver for JDBC]Error setting up static cursor cache
    I have tryed to found some resolution and I found only this:
    http://forum.java.sun.com/thread.jsp?thread=444136&forum=48&message=2007122
    Can you see if it apply on source of IDE and eventually correct?

    I'm using the new version and I can't update a row
    satRowSet.setDataSourceName("java:comp/env/jdbc/Northwind");
    satRowSet.setCommand("SELECT * FROM dbo.Sat");
    satModel.setWrappedData(satRowSet);
    satRowSet.setConcurrency(java.sql.ResultSet.CONCUR_UPDATABLE);
    satRowSet.setHoldability(java.sql.ResultSet.HOLD_CURSORS_OVER_COMMIT);
    satRowSet.setAutoCommit(true);
    satRowSet.setReadOnly(false);
    satRowSet.execute();
    satRowSet.next();
    try{
    this.satRowSet.absolute(1);
    this.satRowSet.updateRow();
    } catch (Exception ex) {
    this.textArea1.setValue(ex.getMessage());
    ex.printStackTrace();
    java.sql.SQLException: [Sun][SQLServer JDBC Driver]Invalid operation for the current cursor position.
         at com.sun.sql.jdbc.base.BaseExceptions.createException(Unknown Source)
         at com.sun.sql.jdbc.base.BaseExceptions.getException(Unknown Source)
         at com.sun.sql.jdbc.base.BaseResultSet.validateCursorPosition(Unknown Source)
         at com.sun.sql.jdbc.base.BaseResultSet.getString(Unknown Source)
         at com.sun.sql.rowset.JdbcRowSetXImpl.getString(JdbcRowSetXImpl.java:842)
         at com.sun.sql.rowset.JdbcRowSetXImpl.getString(JdbcRowSetXImpl.java:941)
         at untitled.Page1.setFields(Page1.java:133)
         at untitled.Page1.beforeRenderResponse(Page1.java:147)
         at com.sun.jsfcl.app.FacesBean.beforePhase(FacesBean.java:227)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:192)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:289)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:311)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:205)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:283)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:102)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:192)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:156)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:569)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:261)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:215)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:156)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:569)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:191)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:156)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:180)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:582)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
         at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
         at com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:254)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
         at com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:569)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:161)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:156)
         at com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:166)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:569)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:979)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:692)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:647)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:691)
         at java.lang.Thread.run(Thread.java:534)

  • How to obtain oracle lite polite jdbc driver

    Hi
    I have an old project which I need to compile. However this project imports oracle.lite.poljdbc.OracleCallableStatement and
    oracle.lite.poljdbc.OracleResultSet.
    Where can I obtain a zip/jar/exe that contains these classes? Or if they are obsolete, which classes can I use as replacement?
    Thanks in advance!
    Alex

    Hi
    It should be in a JAR file under $ORACLE_HOME/Mobile/classes or $ORACLE_HOME/Mobile/sdk.
    Chris

  • Problem In JDBC Driver Package Class12.zip

    After executing the code below:
    Connection con = ConnectionPool.getConnection();
    while(true){
    Statement sta = con.createStatement();
    sta.close();
    Exception is raised after the loop is executed 300times with message:
    ORA-01000: ³¬³ö´ò¿ªÓαêµÄ×î´óÊý
    then I checked the connection,and found that it is not cloed but cannot createStatement any more.
    what't the matter with it?in fact every statement is closed properly.

    Clark,
    I'm only guessing, but it could be that the "close()" method returns before the database has actually released the resources associated with the "Statement" you are closing. In that case you are probably creating "Statement"s faster than you are closing them, and hence the ORA-01000 error (I think :-)
    Good Luck,
    Avi.

  • Problem with Java 5 and Oracle 10g JDBC driver

    Hi All,
    Currently we upgrade our web application to Java 5 and Oracle 10.2 JDBC driver. And we encountered a bug, when the user entered the information through UI and data didn't store into database (Oracle 9i). The problem is that this bug is not happend so often maybe once a day and this did not happen before we upgraded to Java 5 and Oracle 10.2 JDBC driver. Does anyone encounter the same problem ? Is this Java 5 problem or Oracle JDBC driver problem ?
    Thanks,

    sounds like a database problem...
    Are you using a driver version that's supported for your database engine?
    What else did you change? We once ran into a major bug in our application that had for 5 years been masked by performance problems in our hardware and infrastructure.
    Once those were resolved the bug showed itself and caused tens of thousands of records to be erroneously inserted into our database every day.
    It's certainly NOT a problem with your JVM (if it's a decent one, like the Sun implementation).
    So it's either your database, your driver, your network (dropping packets???), or your application.
    The upgrade may just have exposed something that was already there.

  • [Macromedia][Oracle JDBC Driver]Numeric overflow

    I am moving from CF 6.1 to CF 9 using Oracle 9i.  I get the following error when I use cfstoredproc to call a procedure in a package: [Macromedia][Oracle JDBC Driver]Numeric overflow.  In spite of throwing the error, the stored procedure seems to execute properly. Has anyone encountered this problem?

    I cannot consistently replicate the problem.  Values that work the first time may not work the second time.  The data is always entered in the database, but sometimes an error message is thrown regardless of the fact that the data was entered into the database. Calling the procedure with PL/SQL works every time.  Here is a dump of the info. from cfcatch:
    The database operation failed.
    Type: Database
    Message: Error Executing Database Query.
    Detail: [Macromedia][Oracle JDBC Driver]Numeric overflow.
    Native Error Code: 0
    SQLState: HY000
    SQL: {call pk_name.proc_name ( (param 1) , (param 2) , (param 3) , (param 4) , (param 5) , (param 6) , (param 7) , (param 8) , (param 9) , (param 10) , (param 11) , (param 12) , (param 13) , (param 14) , (param 15) , (param 16) , (param 17) , (param 18) , (param 19) , (param 20) , (param 21) , (param 22) , (param 23) , (param 24) , (param 25) , (param 26) , (param 27) , (param 28) , (param 29) , (param 30) , (param 31) , (param 32) , (param 33) , (param 34) , (param 35) , (param 36) , (param 37) , (param 38) , (param 39) , (param 40) , (param 41) , (param 42) , (param 43) , (param 44) )}
    Query Error: [Macromedia][Oracle JDBC Driver]Numeric overflow.
    Where:
    (param 1) = [type='INOUT', value='null', sqltype='cf_sql_integer'] ,
    (param 2) = [type='IN', class='java.lang.Integer', value='41014', sqltype='cf_sql_integer'] ,
    (param 3) = [type='IN', class='java.lang.String', value='N', sqltype='cf_sql_char'] ,
    (param 4) = [type='IN', class='java.lang.String', value='N', sqltype='cf_sql_char'] ,
    (param 5) = [type='IN', class='java.lang.String', value='LastName, FirstName ', sqltype='cf_sql_varchar'] ,
    (param 6) = [type='IN', class='java.lang.String', value='12345', sqltype='cf_sql_varchar'] ,
    (param 7) = [type='IN', class='java.lang.String', value='10063', sqltype='cf_sql_varchar'] ,
    (param 8) = [type='IN', class='java.lang.String', value='LastName, FirstName', sqltype='cf_sql_varchar'] ,
    (param 9) = [type='IN', class='java.lang.String', value='(123) 456-7890', sqltype='cf_sql_varchar'] ,
    (param 10) = [type='IN', class='java.lang.String', value='abc_201102_163', sqltype='cf_sql_varchar'] ,
    (param 11) = [type='IN', class='java.lang.String', value='test', sqltype='cf_sql_varchar'] ,
    (param 12) = [type='IN', class='java.lang.String', value='test', sqltype='cf_sql_varchar'] ,
    (param 13) = [type='IN', class='java.lang.String', value='test', sqltype='cf_sql_varchar'] ,
    (param 14) = [type='IN', class='java.lang.String', value='test', sqltype='cf_sql_varchar'] ,
    (param 15) = [type='IN', class='java.lang.String', value='test', sqltype='cf_sql_varchar'] ,
    (param 16) = [type='IN', class='java.lang.String', value='', sqltype='cf_sql_varchar'] ,
    (param 17) = [type='IN', class='java.lang.Integer', value='38', sqltype='cf_sql_integer'] ,
    (param 18) = [type='IN', class='java.lang.String', value='', sqltype='cf_sql_varchar'] ,
    (param 19) = [type='IN', class='java.lang.String', value='', sqltype='cf_sql_varchar'] ,
    (param 20) = [type='IN', class='java.lang.Integer', value='2', sqltype='cf_sql_integer'] ,
    (param 21) = [type='IN', class='java.lang.String', value='EA', sqltype='cf_sql_varchar'] ,
    (param 22) = [type='IN', class='java.lang.String', value='test', sqltype='cf_sql_varchar'] ,
    (param 23) = [type='IN', class='java.lang.String', value='D', sqltype='cf_sql_varchar'] ,
    (param 24) = [type='IN', class='java.lang.String', value='', sqltype='cf_sql_varchar'] ,
    (param 25) = [type='IN', value='null', sqltype='cf_sql_varchar'] ,
    (param 26) = [type='IN', class='java.lang.String', value='', sqltype='cf_sql_varchar'] ,
    (param 27) = [type='IN', class='java.lang.String', value='', sqltype='cf_sql_varchar'] ,
    (param 28) = [type='IN', class='java.lang.String', value='', sqltype='cf_sql_varchar'] ,
    (param 29) = [type='IN', class='java.lang.String', value='', sqltype='cf_sql_varchar'] ,
    (param 30) = [type='IN', value='null', sqltype='cf_sql_integer'] ,
    (param 31) = [type='IN', class='java.lang.String', value='', sqltype='cf_sql_varchar'] ,
    (param 32) = [type='IN', value='null', sqltype='cf_sql_varchar'] ,
    (param 33) = [type='IN', class='java.lang.String', value='', sqltype='cf_sql_varchar'] ,
    (param 34) = [type='IN', class='java.lang.String', value='A5E', sqltype='cf_sql_varchar'] ,
    (param 35) = [type='IN', class='java.lang.String', value='B5', sqltype='cf_sql_varchar'] ,
    (param 36) = [type='IN', class='java.lang.String', value='CEJ', sqltype='cf_sql_varchar'] ,
    (param 37) = [type='IN', class='java.lang.String', value='A', sqltype='cf_sql_varchar'] ,
    (param 38) = [type='IN', class='java.lang.String', value='15', sqltype='cf_sql_varchar'] ,
    (param 39) = [type='IN', class='java.lang.String', value='', sqltype='cf_sql_varchar'] ,
    (param 40) = [type='IN', class='java.lang.String', value='ABC DEF - GHI JK', sqltype='cf_sql_varchar'] ,
    (param 41) = [type='IN', class='java.lang.String', value='ABCD EF1234 GHI JK', sqltype='cf_sql_varchar'] ,
    (param 42) = [type='IN', value='null', sqltype='cf_sql_date'] ,
    (param 43) = [type='OUT', sqltype='cf_sql_integer'] ,
    (param 44) = [type='OUT', sqltype='cf_sql_varchar']

  • JDBC driver register issue in iAS.

    I currently turn to EJB development, and I encountered a problem when running a CMP sample in iPlanet. My develop environment list below:
    Windows 2000 Server
    iPlanet 6.0 SP3 (Installed in G:\iplanet\ias6\ias )
    Oracle8i,
    Forte for Java 3.0
    I learn CMP Bean by study the Product sample in iPlanet ( G:\iplanet\ias6\ias\ias-samples\j2eeguide\product ). I ran the script in G:\iplanet\ias6\ias\ias-samples\j2eeguide\product\src\schema\setup_ora.bat. It register a ORACLE-OCI ,the type 2 driver. But I want to register a type 4 driver. So I start kregedit ,
    removed the type 2 , and register a type 4 driver and datasource use iASAT. The entries list following:
    Oracle Type4 Driver Register
    DriverType:oracle-type4
    Driver ClassName:oracle.jdbc.driver.OracleDriver
    Driver Classpath:D:\oracle\ora81\jdbc\lib\classes12.zip
    DataSource configuration
    JNDI Name:bankDS
    DriverType:oracle-type4
    DatabaseUrl:oracle:thin:@192.168.188.31:1521:PhilipW
    Username:philip
    Password:tiger
    Then, I run the client (both servlet and rmi), all successfully. But few days later. When I run it a exception raise to indicated that the iAS can't find jdbc driver. Message in KJS Process window list below:
    ==================First KJS Process window================
    Engine running on Java HotSpot(TM) Server VM 2.0fcs JVM supplied by Sun Microsy
    stems Inc.
    Connected to LDAP server on top-philip port 389
    iPlanet Application Server is running in international mode
    Initializing LDAP cache from server top-philip port 389
    LDAP cache initialization completed successfully.
    [25/&#20108;&#26376;/2002 16:05:53:6] info: ENGINE-ready: ready: 8787
    eng =com.kivasoft.types.enumSubKeysIGDSKey@288051
    eng =com.kivasoft.types.enumSubKeysIGDSKey@45eb
    eng =com.kivasoft.types.enumSubKeysIGDSKey@6e7a14
    eng =com.kivasoft.types.enumSubKeysIGDSKey@10cb03
    [25/&#20108;&#26376;/2002 16:06:18:9] error: EB-001: Unable to locate interface IGXTxnAssocMgr
    [25/&#20108;&#26376;/2002 16:06:19:0] info: PROT-006: new connection established
    ================Second KJS Process Window ==================
    [25/&#20108;&#26376;/2002 16:05:44:0] info: ENGINE-ready: ready: 10819
    [25/&#20108;&#26376;/2002 16:06:19:0] info: PROT-006: new connection established
    [25/&#20108;&#26376;/2002 16:06:19:0] info: REQ-012: thread add
    java.sql.SQLException: No suitable driver
    at java.sql.DriverManager.getDriver(DriverManager.java:208)
    at com.netscape.server.jdbc.DataSourceImpl.loadDriver(Unknown Source)
    at com.netscape.server.jdbc.DataSourceImpl.getConnection(Unknown Source
    at com.netscape.server.jdbc.DataSourceImpl.getConnection(Unknown Source
    at com.netscape.server.ejb.SQLPersistenceManager.getConnection(Unknown source)
    at com.netscape.server.ejb.SQLPersistenceManager.start(Unknown Source)
    at com.netscape.server.ejb.SQLPersistenceManager.start(Unknown Source)
    at com.netscape.server.ejb.SQLPersistenceManager.create(Unknown Source)
    at com.netscape.server.ejb.EntityDelegateManagerImpl.doPersistentCreate(Unknown Source)
    at com.netscape.server.ejb.EntityDelegateManagerImpl.create(Unknown Souce)
    at com.kivasoft.eb.EBHomeBase.create(Unknown Source)
    at com.titan.cabin.ejb_home_com_titan_cabin_CabinBean.create(ejb_home_cm_titan_cabin_CabinBean.java:76)
    at com.titan.cabin.ejb_kcp_skel_CabinHome.create__com_titan_cabin_Cabin_int(ejb_kcp_skel_CabinHome.java:208)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at java.lang.Thread.run(Thread.java:479)
    I am sure the classes12.zip (the Oracle type4 jdbc driver ) is on the iAS's classpath. I guess maybe this caused by the type2 driver. I had reinstalled iAS, even the OS. but I can't resolve this problem. I
    really feel crazy! Do you have any idea?
    Thanks in advance.
    Shuhao Wang

    Shouldn't the database URL be
    "<B>jdbc:</B>oracle:thin:@192.168.188.31:1521:PhilipW"? And it could also be a good idea to add the path to classes12.zip to appserver/6.0/java/classpath using kregedit...

  • Weblogic 8.1 has  type 4 JDBC driver  to access oracle8.1.7

    Hi,
              Does WebLogic 8.1 has a type 4 JDBC driver that can be used to access Oracle 8.1.7.2/
              BLOB data ?. Does any one have example for updateBLOB using wl type4 JDBC driver for oracle?
              Thanks,
              Anant
              

    Anant wrote:
              > Hi,
              > Does WebLogic 8.1 has a type 4 JDBC driver that can be used to access Oracle 8.1.7.2/
              > BLOB data ?. Does any one have example for updateBLOB using wl type4 JDBC driver for oracle?
              >
              > Thanks,
              > Anant
              You might get better responses to this if you post it in
              weblogic.developer.interest.jdbc
              ~Ryan Upton
              

  • Oracle on Linux JDBC problem

    Hi
    I installed Oracle 8.1.7 on Redhat 7.0 JDK 1.22
    I try to connect Oracle with thin JDBC Driver.
    code are all similar to the sample code. But I find the following exception message:
    java.sql.SQLEXception:io exception: The network adapter could not establish the connection
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java...)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java...)
    at oracle.jdbc.driver.OracleConnection.<init>(Oracleconnection.java ....)
    when I try to call DriverManager.getConnection
    Is there any suggestion?
    And why linux don't provide class12.zip, Is this problem because of I use class111.zip with JDK 2?
    Thanks
    Feng
    null

    I tried. download classes12.zip. same exception.
    Feng
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Lito ([email protected]):
    Hi,
    Yes, I think it is. classes111.zip is compatible with JDK v.1.x.x (I think). You should download the classes12.zip.
    It is located in the download section. Look for jdbc driver. Download the solaris version. (It is 100% pure java, so it runs on Linux).
    PS. I am not sure if oracle also needs the compatible nlscharset file to run under JDK2.<HR></BLOCKQUOTE>
    null

  • JDBC adapter can't find the jdbc driver class

    Hello, my jdbc driver give an very strange error
    11:46:13 (4207): JDBC adapter terminated
    Mon Aug 02 11:46:13 CEST 2004 *****
    11:46:13 (4210): ERROR: Attempt to load JDBC driver failed ("java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver")
    Attempt to intialize JDBC adapter failed
    11:46:13 (4203): Unable to start JDBC adapter (not initialized)
    I know that the jdbc driver is in the classpath, and to confirm that I have created a java program in the IB (repository) which import the class oracle.jdbc.driver.OracleDriver. I can compile and run that program without problems.
    Here you can see my jdbc adapter configuration file:
    jdbc adapter java class
    classname=com.sap.aii.messaging.adapter.ModuleDB2XMB
    mode=DB2XMB
    Integration Engine address and document settings (example, see docu)
    XMB.TargetURL=http://<host>:<port>/sap/xi/engine?type=entry
    XMB.SenderBusinessSystem=ExtAdapterSender
    XMB.SenderInterfaceNamespace=http://sap.com/xi/xidemo
    XMB.SenderInterfaceName=ExtAdapterSenderIF
    XMB.QualityOfService=EO
    ##DB Adapter specific parameters (example for SQL-Server, see docu)
    db.jdbcDriver=oracle.jdbc.driver.OracleDriver
    db.connectionURL=jdbc:oracle:<user>:<password>/hello@<url>:<port>:<instance>
    db.processDBSQLStatement=Select * emp
    db.pollInterval=600
    xml.recordsetsPerMessage=1

    Hi Ernesto,
    Can you try to the following:
    1. Remove your JDBC driver entries from the CLASSPATH.
    2. Put those jars into your jre/lib/ext directory.
    3. Restart the whole adapter engine, and
    4. Config the driver java class for the adapter. the class name to be used can be found in your JDBC driver document.
    Let me know whether it works.
    Hart

  • How to deploy MS Sql Server 2005 and 2008 jdbc driver

    Hi SAP Guru's
    Can somebody tell me how to deploy the jdbc driver of MS SQL Server 2005 and 2008 on SDM.
    According to the SAP instruction we should have 3 files(mssqlserver.jar,msbase.jar,msutil.jar) but in 2005 driver file we only have 1 file i.e sqljdbc.jar so how do i deploy it .
    Secondly i cannot deploy it on visual administrator as well and when i am doing the File to jdbc scenarion i am getting this error
    " Accessing database connection "jdbc.sqlserver://localhost:1433;DatabaseName=Employee failed DriverManagerException. Cannot establish connection to URL jdbc.sqlserver://localhost:1433;DatabaseName=Employee  SAPClassNotFoundException com.microsoft.sqlserver.jdbc.SQLServerDriver".
    can somebody please upload the screen shots on mediafire or any other site so that i will solve my problem.

    Hello,
    *OS: First of all: *
    3 files (msbase.jar,mssqlserver.jar and msutility.jar )should be zipped to aii_af_jmsproviderlib.zip file only for UNIX OS.
    For Windows OS only sqljdbc.jar file which in every version of JDBC driver should be zipped to aii_af_jmsproviderlib.zip.
    You can deploy JDBC driver through SDM tool which mention in guide below:
    New version of JDBC driver 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
    Drivertool from this guide you can find at https://www.sdn.sap.com/irj/sdn/howtoguides
    Then Exchange Infrastructure How-to Guides for SAP NetWeaver 2004 HYPERLINK "https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f04ce027-934d-2a10-5a8f-fa0b1ed4d88f"
    How to Install and Configure External Drivers for JDBC & JMS
    AdaptersHYPERLINK "https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e00262f5-934d-2a10-b99c-9bc63c2a7768"
    Download attached system files (ZIP 16KB)
    Any questions - let me know
    BR,
    Dzmitry

  • Oracle in instantclient_11_2 ODBC driver error 14001

    Hi there,
    I've tried to set up an Oracle ODBC Instant Client driver and I get this error:
    "The setup routines for the Oracle in instantclient_11_2 ODBC driver could not be loaded to system error code 14001
    "Errors found
    "Could not load the setup or translator library
    My Configuration is :
    - ESX 5.0
    - Virtual machine Windows 2008 64 bits (created originally under ESX 4.1)
    - VMTools activated
    - Oracle 11gR2 64 bits (11.2.0.1.0)
    - Instant Client: instantclient-basic-nt-11.2.0.2.0.zip + instantclient-odbc-nt-11.2.0.2.0.zip
    Path is :
    C:\Oracle\instantclient\instantclient_11_2;C:\Oracle\product\11.2.0\dbhome_1;C:\Oracle\product\11.2.0\dbhome_1\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%systemroot%\system32\inetsrv;%systemroot%\system32\inetsrv
    What can be done to rectify this?

    Hi,
    I had exactly the same problem with a comparable system configuration, but with the x86-64 packages (you tried to use the 32bit instant client due to the file names you mentioned).
    Somewhere in the depths of the WWW I got the hint that the solution is to use the instant client V 11.2.0.1.0.
    So I downloaded the older version and everything worked fine...
    Also rememeber to set the TNS_ADMIN environment variable to the path of your "instantclient_11_2" directory and edit a tnsnames.ora file in that directory or else you won't be able to open a connection...
    Good luck and best regards
    Sebastian

Maybe you are looking for

  • How to compile Java files using Ant in Eclipse

    Hi All , I would like to compile all Java files using Ant in Eclipse.Since am very new to Ant and Eclipse can someone help me to create a build.xml file and let me know how to compile all the java files. For ex , I have placed my java files inside th

  • Iphoto wont load

    I have looked at the help pages, the forum, I see that this question has been asked before but with no answers. When I try to open iphoto, it reads "loading photos" but nothing happens, even after quitting and rebooting, force quitting and restarting

  • Solaris possibly preventing RAID BIOS launch

    Hello I have installed a STLab A-230 2-Channel Serial ATA & ATA-133 RAID Combo and tried to boot into its RAID BIOS with no luck. The initial loading menu quickly switches to the multi-boot menu where you select to boot into Solaris or another OS. I

  • Mbp takes long time to go to sleep

    hey guys. i am having this issue since a few days and  i came to no solution. there is no printers issue, as many others can have. here is what my terminal says after typing pmset -g log Time stamp Domain Message Duration Delay ========== ====== ====

  • Handling for un-authorize access to infotype

    I am calling function module to add the record in info type, i want to set a returncode if user is not authorized to access infotype but nothing has come in wa_return even the infotype is not getting updated data: wa_return type bapiret1. CALL FUNCTI