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

Similar Messages

  • How to know which type of jdbc driver used in my application

    How to know which type of jdbc driver used in my application.

    My approach will be....
    Type1: you have to have ODBC s/w install on your machine...even the connection string starts with jdbc:odbc....so it can be identifed easily
    Type2: you have to install client s/w in your machine...if you are using oracle oci driver ...you need to install oracle client s/w
    Type3: you use servername / port to connnect to middleware
    Type4: you do not need any client s/w
    So, If your application works without any client s/w on your machine....you might be using Type4/Type3 driver.....otherwise Type2
    Someone pls add more ....

  • 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

  • How to install Oracle Lite ODBC driver without connecting the mobile server

    My Oracle Lite version is 10g R3.
    I am using branch office version application.
    I wanted to connect oracle client database(.odb file) via Lite DSN in a windows XP machine without installing the client in that device.
    Some of my users wanted to access the client database from backend which requires a DSN entry in that device.Oracle Lite ODBC gets registered in the device only when we do a setup from the mobile server or if Oracle 10g Lite MDK is installed.
    I do not want either of this to be done in my user PC. I wanted a ODBC utility which will register oracle Lite ODBC Driver (Normal & Cleint) in the user PC so that i can manually create and configure the DSN.
    Does anyone have a solution for this?
    Regards,
    Ashok Kumar.G

    Dear Sir,
    Yes, you can find the Driver here
    http://www.oracle.com/technology/software/tech/windows/odbc/index.html

  • Trouble to connect to Oracle Lite with JDBC

    Hi.
    I have installed Oracle Lite 9i on my PC (Win 2000 Pro). Then I connected an HP Jornada 525 (WinCE 3.0) and with
    ActiveSync I installed the Oracle Mobile Client. Using MSql, I created some tables and did some data inserts - Oracle
    is working fine on the Pocket PC. The next step was to create an Java application that will run on the Jornada to
    connect to this database and edit its data. Here is the initial source code:
    import java.sql.*;
    public class JDBCEX {
    public void JDBCEX () {
    public static void main(String args[]) {
    Connection conn = null;
    Statement stmt = null;
    ResultSet retset = null;
    try {
    Class.forName("oracle.lite.poljdbc.POLJDBCDriver");
    conn = DriverManager.getConnection("jdbc:Polite:Polite","system", "manager");
    catch (Exception e) {
    System.out.println(e);
    System.exit(0);
    This works fine on my PC, but in the Pocket PC it gave me: java.sql.SQLException: Internal Error. This after I expanded
    the jar files, 'cause before it tells me that ther is no oljdbc40 on the shared library path. I adjusted the classpath on the
    registry, but i does not have any impact ... There is no file with name oljdbc40, only JARs olite40 and olitejdbc40. I installed
    olitejdbcpj40.jar, and setting this library leads to the same error above.
    What could be wrong? Do you have any tutorial or can you list all steps necessary to bring this working?
    Thanks

    If you're attempting to use the ODBC API directly, have you downloaded the ODBC SDK from Microsoft? That will include some sample code, which is a great starting point. So far as I'm aware, you shouldn't need to configure anything in Borland C++ that you don't have to configure in any other C++ compiler to use ODBC.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • How do I work around a JDBC driver "unsupported function"?

    We have a JDBC driver to a Unidata [multivalue, a truely interesting concept] database. It does not support setMaxRows(). The 10.1.3dp3 version throws an exception:
    Internal Exception: java.sql.SQLException: setMaxRows(int) not supported by eTools JDBC.Error Code: 0
    Query:DataReadQuery()
         at oracle.toplink.exceptions.DatabaseException.sqlException(DatabaseException.java:280)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:567)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:442)
         at oracle.toplink.threetier.ServerSession.executeCall(ServerSession.java:453)
    and our application fails.
    The driver maker suggests the JDBC spec says the function must be present but it may throw an unsupported exception.
    And toplink does not appear to handle the unsupported exception gracefully.
    So we appear to be stuck between the rock and the hard place.
    Any help would be appreciated.

    We can add setFetchSize to the list of work arounds required.
    Internal Exception: java.sql.SQLException: setFetchSize(int) not yet implemented by eTools JDBC.Error Code: 0
    Query:ReadObjectQuery
         at oracle.toplink.exceptions.DatabaseException.sqlException(DatabaseException.java:280)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:567)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:442)
         at oracle.toplink.threetier.ServerSession.executeCall(ServerSession.java:453)
         at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:117)
    So the question becomes, in general, how does one indicate to toplink that the driver has unsupported functions and it should (a) ignore them or (b) deal with it.

  • Oracle lite with JDBC crashes

    I am connecting to an Oracle lite database on NT Server 4.0 with
    JDBC and trying to run an simple insert statement. If I try to
    run the same statement again (which should throw an exception
    since the pk already exists) I get an application error - not an
    exception as expected - I get the same thing when executing a
    "delete from.." stmt on an empty table. These same stmts work
    fine in Oracle8i.
    Also, if I use access with ODBC to view the tables access will
    often freeze up on me.
    Any Help would be appreciated.
    Dylan
    null

    You probably mean if you can call a Java Stored Procedure from ADOCE application. PL/SQL packages are not supported in Oracle Lite database. The answer is no. For more information see Developers' Guide for WindowsCE, Chapter 4

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

  • How to access oracle cursors using jdbc (expecting ur earliest reply)

    Hi All,
    can anyone help me out by giving me an idea or sample code in accessing the cursors that are defined in the oracle... i have to access those cursors using java... Thanks in advance for your reply and time....
    Ragu

    I have tried to follow the example from the URL link you provided.
    I'm using :
    - Oracle 8.1.6/8.1.7
    - JDK 1.3.1
    I've created:
    create or replace package types
    as
    type cursorType is ref cursor;
    end;
    create or replace function sp_ListEmp return types.cursortype
    as
    l_cursor types.cursorType;
    begin
    open l_cursor for
    select ename, empno
    from emp
    order by ename;
    return l_cursor;
    end;
    Then I have on my code the following:
    import java.sql.*;
    import oracle.jdbc.driver.*;
    String conStatus = "":
    String driver_class = "oracle.jdbc.driver.OracleDriver";
    String connect_string = "jdbc:oracle:thin:@slackdog:1521:oracle8";
    String query = "begin :1 := sp_listEmp; end;";
    Connection conn;
    Class.forName(driver_class);
    conn = DriverManager.getConnection(connect_string, "scott", "tiger");
    try{
    conStatus = "before prepareCall, ";
    CallableStatement cstmt = conn.prepareCall(query);
    conStatus = conStatus + "before Register out, ";
    cstmt.registerOutParameter(1,OracleTypes.CURSOR);
    conStatus = conStatus + "before execute, ";
    cstmt.execute();
    conStatus = conStatus + "before getObject, ";
    ResultSet rset = (ResultSet)cstmt.getObject(1);
    while (rset.next ())
    System.out.println( rset.getString (1) );
    cstmt.close();
    } catch (Exception e) {
    conStatus = conStatus + e;
    System.out.println(conStatus);
    What happens is that I am able to successfully compile the code. But when I run the code, it displays:
    "before prepareCall, before Register out, SQLException: incompatible types = -10."
    What does that mean? Pls point out to me what I did wrong in my code.
    Thanks.

  • How can i find the available JDBC driver name?

    hi,
    can anyone tell me how can i find the JDBC driver name in XI

    Hi
    The available JDBC drivers can be viewed in the file found in the following path in ur XI  server
    :\usr\sap\XR3\DVEBMGS00\j2ee\cluster\server0\bin\ext\
    regards
    krishna

  • How to know the location of  JDBC Driver/ connection

    unable to find JDBC driver and connection location
    How can I know the location of "JDBC Driver" for the input box JDBC Driver to confrigure this in ID.
    The same  for "Connection" too.
    urgent input (no links please) will help me.
    Thanks
    SY

    Hi,
    You can ask basis person to get the location of JDBC driver.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/80/4f34c587f05048adee640f4c346417/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/1d/756b3c0d592c7fe10000000a11405a/frameset.htm
    Hope this helps.
    Regards,
    Moorthy

  • How can i use the weblogic jdbc driver for sqlserver?

    hello
    i have downloaded and installed the weblogic on my windows2000 server,then i want to use the weblogic jdbc driver for sqlserver2000 outside of the weblogic,as follow:
    1 add following string to my classpath environment of the wndows2000: E:\bea\wlserver6.1\lib\mssqlserver4v65.jar
    2 then i write a test program as:
    import weblogic.jdbc.mssqlserver4.Driver;
    import java.sql.*;
    public class test{
    public static void main(String argv[]){
    try{ Class.forName("weblogic.jdbc.mssqlserver4.Driver");
    Connection
    conn=DriverManager.getConnection"jdbc:weblogic:mssqlserver4:localhost:1433","sa",""); }catch(Exception e){ System.out.println(e.getMessage()); }
    4 when i execute it,it throw a exception:
    Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/version at weblogic.jdbc.mssqlserver4.TdsStatement.getLicenseStr(TdsStatement.java:2665) at weblogic.jdbc.mssqlserver4.TdsStatement.microsoftLogin(TdsStatement.java:2474) at weblogic.jdbc.mssqlserver4.MicrosoftConnection.beginLogin(MicrosoftConnection.java:42) at weblogic.jdbc.mssqlserver4.TdsConnection.login(TdsConnection.java:57) at weblogic.jdbc.mssqlserver4.MicrosoftConnection.login(MicrosoftConnection.java:53) at weblogic.jdbc.mssqlserver4.BaseConnection.prepareConnection(BaseConnection.java:187) at weblogic.jdbc.mssqlserver4.Driver.newConnection(Driver.java:34) at weblogic.jdbc.mssqlserver4.ConnectDriver.connect(ConnectDriver.java:151) at java.sql.DriverManager.getConnection(DriverManager.java:517) at java.sql.DriverManager.getConnection(DriverManager.java:177) at test.main(test.java:7)
    who can help me?thank you!

    Hi,
    Mail me the jar file as I am using Weblogic 6.1 to my email id [email protected]
    Else tell me the site from where u have downloaded and i will do the same.
    I will test the same and let you know.
    Thanks,
    Seetesh

  • How to setting up the sun.jdbc driver in servlet

    in my servlet i implemens the MetaData Interface, The Sun JDBC driver was Not support the getMetaData() function .. I dont knw why it was
    Pls hel me

    http://www.apple.com/support/iphone/assistant/airprint/

Maybe you are looking for

  • HP Laserjet 2200 Series PCL5

      Printing not working properly My printer stop printing with anything coming out -- isn't grabbing the paper from the tray. It sounds like it's going to print (rollers going) and nothing comes out. The red exclamation point light is coming on. I hav

  • How do I get my visual voicemail back on my iPhone 4?

    how do I get my visual voicemail back on my iPhone 4?

  • Proper video card for 23 inch Cinema Display?

    Hey everyone... I recently bought a 23-inch cinema for my G4. Upon the advice of Apple, I purchased a ATI Radeon 9200(128mb) vid card to power it. Since installing the card, I seem to be having memory issues with my system, such as: memory lag with f

  • URGENT!!! Unable to run report from forms

    I have created a from with one button. In when-button-pressed trigger is DECLARE      repid REPORT_OBJECT;      v_rep VARCHAR2(100); BEGIN      repid := FIND_REPORT_OBJECT('produse');      v_rep := RUN_REPORT_OBJECT(repid); END; I added the report 'p

  • Recovering Tunes From Trash

    I accidentally deleted some hundreds of "songs" from my iTunes library, and they are currently in trash. How can I recover these? I have  2013 MBP with "Mavericks" installed.