Connection to Personal Oracle8 with JDBC - JDK 1.2

I am new to development with java and have been struggling the last four days implementing connecting to Personal Oracle8 via JDBC, JDK 1.2.
I have Personal Oracle8 installed on my machine along with JDK 1.2. I am confused on how to construct the URL that would point to my Local Database along with which driver to use. Can someone help me in out.
Thanks
Clif Dawes
Application Builders

Hi,
Openlink Software provides JDBC 2.0 Core API compliancy in Type-1, Type-2, and Type-3 JDBC driver suites. This Multi-Tier Driver Suite offers the high performance, scalability and security that you won't find in other JDBC drivers on the market.
Try a free non-expiring limited seat license at http://www.openlinksw.com
Specific information on contructing the URL string with these drivers can be found at: http://www.openlinksw.com/info/docs/rel3doc/jdbc/cliclass.htm
Best regards,
Stephen Schadt http://www.openlinksw.com

Similar Messages

  • Connecting to personal oracle8 using connection wizard in jdeveloper3.0

    i am trying to connect to oracle8 using jdbc
    using connection wizard in jdeveloper3.0
    but when i test the connection i gives
    an error "no ocijdbc8 in shared library path"
    please help me out.

    The problem isn't Personal Oracle, but rather trying to use the JDBC/OCI driver which uses native code.
    Here's some text from the 3.1 release notes about how to solve your problem (I think this was in 3.0's release notes as well, however I'm not sure)
    If you are using the Oracle JDBC/OCI or Oracle Lite JDBC Driver with JDeveloper (JDK 1.2/1.3) add the %ORACLE_HOME%/bin directory to java.library.path and sun.boot.library.path in bin/jdeveloper.ini. It should look like this:
    [Java_2]
    JDK=java version "JDK1.2.2_JDeveloper"
    Java2VM=OJVM
    JLP=-Djava.library.path=.;%JAVA_ROOT%\bin;%JAVA_ROOT%\jre\bin;C:\ORANT\BIN
    SLP=-Dsun.boot.library.path=.;%JAVA_ROOT%\bin;%JAVA_ROOT%\jre\bin;C:\ORANT\BIN
    If you are executing applications which use the JNI to call native libraries (DLL files) under JDeveloper with JDK 1.2/1.3 it is necessary to edit your project properties. Add to the Java VM Parameters, under the Run/Debug tab the following setting: -Djava.library.path=(Path where DLL files are located)".
    Take Care,
    Rob
    null

  • Personal Oracle8 and JDBC:URL

    I am trying to use Oracle8 Personal Edition with Weblogic7.0. I tried to setup
    the connection pool but I couldn't figure out the JDBC:URL value correctly. I
    know the format is supposed to be jdbc:oracle:thin:@server:port:sid
    The server in my case is the localhost. I have created an instance called FBN.
    I don't know the port number. Can anyone help me to setup the Connection Pool
    properly? Thanks a lot.

    Here is an sample node to use oracle thin JDBC driver:
    <JDBCConnectionPool CapacityIncrement="5"
    DriverName="oracle.jdbc.driver.OracleDriver" InitialCapacity="5"
    MaxCapacity="40" Name="RFIDPool"
    Password="{3DES}FslOVhEO+VkeNVHoDdRxpw=="
    Properties="user=dwschema" Targets="myserver" URL="jdbc:oracle:thin:@localhost:1522:scisidw
    "/>
    Please note this one works with weblogic 6.1.
    Yong
    "Sai S Prasad" <[email protected]> wrote:
    >
    I am trying to use Oracle8 Personal Edition with Weblogic7.0. I tried
    to setup
    the connection pool but I couldn't figure out the JDBC:URL value correctly.
    I
    know the format is supposed to be jdbc:oracle:thin:@server:port:sid
    The server in my case is the localhost. I have created an instance called
    FBN.
    I don't know the port number. Can anyone help me to setup the Connection
    Pool
    properly? Thanks a lot.

  • Maximum number of connections for MS Access with JDBC

    Hi guys,
    does anyone know about the maximum no. of connections that MS Access can have with JDBC...

    MS Access has not limit. It doesn't work that way.
    There is certainly going to be some resource limit however, if nothing else then memory will eventually run out.

  • How to connect oracle8i with jdbc?

    environment: redhat7.0+oracle8iR2(8.1.6)+jdk1.2.2
    classpath: $JDBCPATH/classes12.zip;nls_character12.zip
    run JDBCVersion.java
    import java.sql.*;
    import oracle.jdbc.driver.*;
    class JDBCVersion {
    public static void main (String args[]) throws SQLException {
    // Load the Oracle JDBC driver
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection
    ("jdbc:oracle:thin:@localhost:1521:ora81","scott","tiger");
    // Create Oracle DatabaseMetaData object
    DatabaseMetaData meta = conn.getMetaData();
    // gets driver info:
    System.out.println("JDBC driver version is " + meta.getDriverVersion());
    error report:
    Exception in thread "main" java.lang.NoClassDefFoundError: JDBCVersion/class
    what's problem?who can answer me?
    thanks.

    this is problem of classpath setting, all the code in your program is just fine, i think you should add "./" in your classpath(classpath=./;***.zip;***.jar), and so jvm will find your program and execute it

  • 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

  • Connecting to Oracle DB with JDBC ...

    I receive this err when i run my codes
    java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=150999297)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
    Interactive Session Ended
    Below is my codes.
    // header - edit "Data/yourJavaHeader" to customize
    // contents - edit "EventHandlers/Java file/onCreate" to customize
    import java.sql.*;
    class MakingTheConnection
         public static void main(String[] args)
              Connection connection = null;
    Statement stmt = null;
              try
                        System.out.println("Hello 1");
    Class.forName("oracle.jdbc.driver.OracleDriver");
                                                 System.out.println("Hello 2");
    catch(java.lang.ClassNotFoundException e)
    System.err.print("ClassNotFoundException: ");
    System.err.println(e.getMessage());
    try
                        System.out.println("Hello 2");
    //connection = DriverManager.getConnection("jdbc:oracle:thin:@172.20.134.95:1521:SNP", "system", "manager");
                        connection = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:SNP", "system", "manager");
    stmt = connection.createStatement();
              catch(java.sql.SQLException ex)
    System.err.print("SQLException: ");
    System.err.println(ex.getMessage());
              try
                        System.out.println("Hello 3");
    if (stmt!=null)
    {stmt.close();}
    if (connection!=null)
    {connection.close();}
    catch(Exception e)
    e.printStackTrace();
              //load the driver
              try
                   Class.forName("oracle.jdbc.driver.OracleDriver");
                   //Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   String sourceURL = "jdbc:oracle:thin:@172.20.134.95:1521:SNP";
                   //String sourceURL = "jdbc:oracle:thin:@172.20.134.95:389:SNP";
                   String user = "system";
                   String password = "manager";
                   Connection databaseConnection = DriverManager.getConnection(sourceURL, user, password);
                   System.out.println("connected");
                   databaseConnection.close();
              catch (ClassNotFoundException cnfe)
              System.out.println(cnfe);
              catch(SQLException sqle)
              System.err.println(sqle);
    Do not uncomment the codes i put as comments coz they are not used :)
    I really need help here..thankz.

    Hi:
    That error code is Service Name related error.
    Oracle error docs has the following
    TNS-12505 TNS:listener could not resolve SID given in connect descriptor
    Cause: The SID in CONNECT_DATA was not found in the listener's tables.
    Action: Check to make sure that the SID specified is correct. The SIDs that are currently registered with the listener can be obtained by typing "LSNRCTL SERVICES listener_name". These SIDs correspond to SID_NAMEs in TNSNAMES.ORA, or DB_NAMES in the INIT.ORA file.

  • I Can´t Connect in my DataBase with JDBC

    I Can´t connect in my data base using JDBC 2.0 with Oracle 8i. When i try connect, the following error occurs:
    Exceção de E/S: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=135294976)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))

    The database sid used in the connect url might be invalid. Check if the database sid is correct.
    Elango.

  • Connect to DB Postgresql with JDBC

    I try to use JDBC to connect to a DB Postgresql on the network. I tested locally(on the machine that the server Postgres run) the program and it worked correctly. But I have problem when i tested on a machine distance on the same network).
    I use the url = "jdbc:postgresql://myhost/myDB"
    Please help me!
    Thank.

    Have you tried using the IP address instead of the machine name?

  • Unable to connect Forms 5 to Personal Oracle8

    Hi,
    I have recently installed Developer 2000 (release 2.1) and
    Personal Oracle8 (release 8.0.4.0.0) on Windows 95.
    I have made additions through both SQL Net Easy Config and Net 8
    Config to allow for remote connections to my Oracle server at
    work.
    All the tools I am using - Forms 5, SQL Plus 8.0, Procedure
    Builder, etc. - all connect to my server remotly through the
    configurations I added. SQL Plus connects to Personal Oracle8
    as well (ie the local databse).
    My problem - None of the Developer 2000 tools will connect to
    Personal Oracle8. I have played around at great lengths and am
    stumped.
    Can anybody suggest what I have to do to enable those tools to
    connect locally?
    null

    Hi,
    I have recently installed Developer 2000 (release 2.1) and
    Personal Oracle8 (release 8.0.4.0.0) on Windows 95.
    I have made additions through both SQL Net Easy Config and Net 8
    Config to allow for remote connections to my Oracle server at
    work.
    All the tools I am using - Forms 5, SQL Plus 8.0, Procedure
    Builder, etc. - all connect to my server remotly through the
    configurations I added. SQL Plus connects to Personal Oracle8
    as well (ie the local databse).
    My problem - None of the Developer 2000 tools will connect to
    Personal Oracle8. I have played around at great lengths and am
    stumped.
    Can anybody suggest what I have to do to enable those tools to
    connect locally?
    null

  • Which ODBC driver for Personal Oracle8?

    I'm using Personal Oracle8 and trying to connect via ODBC from a
    Java program using JDBC. I can connect to MS Access 7 via ODBC
    but I cannot connect to Personal Oracle8 using the delivered
    ODBC 8 driver (8.0.4.0). Looking through the technet product
    listing, the other ODBC 8 drivers only work with NT. I'm using a
    laptop with Windows98. I'm stumped. What should I use and where
    do I download it from please?
    Thanks in advance,
    Dave
    null

    Are you connecting via a JDBC-ODBC bridge or just using the
    native JDBC driver? The ODBC drivers (or JDBC drivers for that
    matter) don't care if they run on WIndows 9x or NT. The problem
    here might be that you are using Personal Oracle. This version is
    not intended to be remotely connected to (i.e. from a remote
    machine) -- it is only intended for bequeath connections (i.e.
    processes local to the RDBMS). You CAN start a listener on the PO
    RDBMS (it isn't running by default), although that really isn't
    what it is intended to do (i.e. be a server). Try using the
    workgroup or enterprise server instead.
    The ODBC (and JDBC drivers) will need a listener running to
    connect remotely (which is probably the source of your trouble).
    null

  • Personal Oracle8.0 and Forms5.0

    Hi all,
    I installed Forms5.0 and Personal Oracle8.0 on my PC. I could
    connect to the Oracle instance using SQL*Plus8.0. But when I
    tried to connect to the Oracle Instance with Forms Builder I
    could not!. Well, I could connect to Personal Oracle7.0 with
    Forms5.0. But I need to know how to connect ot Personal
    Oracle8.0. Anyone can help please?!!
    null

    Hi Emad,
    here is your problem:
    Personal Oracle8 uses the Beaquent driver to connect to the
    database by default. This is why you can connect to the database
    from sql*plus but not from the developer/2000. The trick is to
    run the Net8 utility and create your very own tnsnames.ora,
    listener.ora and sqlnet.ora files. After you created those
    files, you will start the listener and then the database. The
    listener will listen at port 1521 for the database (by default).
    Then you will be able to connect from within the developer.
    Try and if you will still have problems send me an e-mail.
    Zafer
    Emad Kehail (guest) wrote:
    : Hi all,
    : I installed Forms5.0 and Personal Oracle8.0 on my PC. I could
    : connect to the Oracle instance using SQL*Plus8.0. But when I
    : tried to connect to the Oracle Instance with Forms Builder I
    : could not!. Well, I could connect to Personal Oracle7.0 with
    : Forms5.0. But I need to know how to connect ot Personal
    : Oracle8.0. Anyone can help please?!!
    null

  • How to connect to personal oracle using oracle thin driver on windows98

    Hi,
    i would like to know is it possible to connect to personal oracle8 using oracle thin driver on windows98.iam getting some exceptions when iam running ,could any one help me
    1.exception in thread main java.sqlexception:IOexception:the
    networkadapter could not establish the connection
    2.at oracle.jdbc.dbaccess.DBError.throws sqlexception(DBError.java)
    3.atoracle.jdbc.dbaccess.DBError.throws sqlexception(DBError.java)
    4.atoracle.jdbc.driver.oracleconnection.<init>(oracleconnection.java)
    5.atoracle.jdbc.driver.oracledriver.getconnectioninstance(oracledrive
    r.jva)
    6.atoracle.jdbc.driver.OracleDriver.connect(OracleDriver.java)
    7.atjava.sql.DriverManager.getConnection(unknown source)
    8.atjava.sql.DriverManager.getConnection(unknown source)
    9.at JEmp.main(JEmp.java:16)
    null

    http://www.orafaq.com/wiki/JDBC#Thin_driver

  • How to establish a trusted connection with JDBC for SQL SERVER 2000

    Hi!I am using jdk 1.4 and eclipse 3.3.
    I create a servlet in eclipse with in-build tomcat.
    When I run it ,it was working perfectlly has it was suppose to work.
    In this servlet I connect to a sql 2000 database using jdbc-odbc bridge driver.
    But when I tried to deploy the servlet on tomcat 5.5 manully on the same machine ,it gave me error saying
    [Microsoft][SQLServer JDBC Driver][SQLServer]Login failed
    for user 'sa'
    I searched around some post and found that ok ,I need trusted connection
    But I have 2 Questions
    1). Why was in eclipse I was able to connect to the SQL server and why not in the servlet which I deployed manully on tomcat.
    2). How do I create a trusted connection with JDBC for SQL server 2000
    Thnaks for your help in advance.

    Hi! duffymo ,QussayNajjar ,dvohra09 .
    Thank for help.
    The ideas are really great.
    I am trying generate reports for my company.
    When I used eclipse the code worked perfectly.
    below is code which I used
    out.println("Calling For Class Name<br>");
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    out.println("Calling For Class Name success Now calling database <br>");
    1). jdbcConnection = DriverManager.getConnection("jdbc:odbc:SQLJasper");
    2). jdbcConnection = DriverManager.getConnection("jdbc:odbc:Driver={SQL Server};Server=ServerName;Database=tempdb");
    3). jdbcConnection = DriverManager.getConnection("jdbc:odbc:Driver={SQL Server};Server=ServerName;Database=tempdb","UID=UserName","Password=Password");
    out.println("connecting to database success<br>");
    I had tried to connect the database using this three way.
    In 1st I tried using DSN name .
    Next 2 self explainer for expert like you.
    I used to 2nd variant to connect in eclipse and it worked fine.
    I not an expert in java ,I just doing some research on jasperReport.
    My best guest is that eclipse is using some library files of which I have no clue.
    Thank's for your help,I appretiate it.
    Once again thank a billion.
    Sorry for the messy righting.

  • TS3367 If I have an IPad mini and my wife has an IPad, can I connect to her IPad with FaceTime from my IPad Mini? Are multiple Apple ID's required? One for each device/person?

    If I have an IPad mini and my wife has an IPad, can I connect to her IPad with FaceTime from my IPad Mini? Are multiple Apple ID's required? One for each device/person?

    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
    For non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
     Cheers, Tom

Maybe you are looking for

  • Can't open a pdf

    I scanned a document and it was sent to my email as a pdf. I can open the document from my email, but I need to save it to my computer so I can upload it for others to see. I'm able to save it, but when I try to open the saved pdf this message comes

  • Disable the AirDrop confirmation dialog?

    I frequently use AirDrop to transfer files between iMac and MBA. Is there any way to disable this annoying confirmation dialog, as I am on a secure home network?

  • Item value NOT useful out of the page where it's been declared.

    Hi all... I'm using Apex 2.1 (version embedded on 10gXE) I'm developing an application where, on page 1 i define a hidden item named P1_CLIENTCODE. The source value for that item comes out from a query like: "select clientcode from clients where user

  • BW Unicode with ERP 2005

    Hello, I'd like to ask about Unicode. I use BW 3.5 which is non-unicode. this BW is connected with R/3 4.6C I plan to upgrade R/3 from 4.6C to ERP 2005 and change from MDMP(English and Japanese) to Unicode. In this case, will I have to change BW from

  • Some non-32-bit effects working like 32bit in CS6.

    I'm noticing that some effects in Premiere cs6 that ARE NOT labeled as 32-bit effects are acting like 32-bit effects. For example: You put 10-bit footage into a sequence that has "max bit depth" enabled for previews.  You add fast color corrector, wh