Connecting java apps to Personal Oracle 8.0.3

I would like to find out exactly what driver to use in order to connect Java to Personal Oracle installed on my PC.

this version of the product has been out of support for over a year.
you need to move to the current version which can be located at the "download" site on the technet home page.

Similar Messages

  • Difficulties connecting with oci8 to Personal Oracle 8 on Win98

    After looking through responses to other similar difficulties posted, I still can't seem to get this working.
    I have Personal Oracle 8 running on Win98 on a laptop. I'm using Sun jdk117 and trying to connect with oci8 because the thin driver won't work without a TCP/IP listener which I understand Personal Oracle doesn't support.
    There's an entry in my PATH pointing to c:\jdbc where the oci805jdbc.dll file is, and an entry in CLASSPATH pointing to c:\jdbc\classes111.zip .
    To start with I'm using a simple connect program which shouldn't do much more than make a connection and close it again (please see below).
    The program compiles fine, but when I run it all I get is:
    C:\apache\jserv11b3\servlets>java connect2
    in main()
    connect instantiated
    in tryconnect()
    going to attempt connect
    java.lang.UnsatisfiedLinkError: no oci805jdbc in shared library path
    at java.lang.Runtime.loadLibrary(Compiled Code)
    at java.lang.System.loadLibrary(System.java:561)
    at oracle.jdbc.oci7.OCIDBAccess.logon(OCIDBAccess.java:186)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:127)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va:170)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:148)
    at java.sql.DriverManager.getConnection(Compiled Code)
    at java.sql.DriverManager.getConnection(DriverManager.java:126)
    at connect2.tryconnect(connect2.java:19)
    at connect2.main(connect2.java:42)
    C:\apache\jserv11b3\servlets>
    I can't see any reason why there should be problems linking oci805jdbc.dll as PATH definitely has an entry pointing to the directory where it is located.
    Doubtless I'm doing something silly, or I'm missing some essential configuration parameter.
    Thanks for any helpful suggestions.
    program code:
    import java.sql.*;
    class connect2
    public int tryconnect()
    throws ClassNotFoundException , SQLException
    System.out.println("in tryconnect()");
    /* Load the Oracle Driver */
    Class.forName ("oracle.jdbc.driver.OracleDriver");
    System.out.println ("going to attempt connect");
    try
    /* get the connection */
    Connection conn =
    DriverManager.getConnection("jdbc racle ci8:@laptop:1521:ORCL", "system", "manager");
    catch (SQLException e)
    System.out.println ("Database Connect Failed");
    System.out.println (e.getMessage());
    return (1) ;
    return (0);
    public static void main(String argv[])
    throws ClassNotFoundException , SQLException
    System.out.println ("in main()");
    /* Create the instance */
    connect2 c = new connect2();
    System.out.println ("connect instantiated");
    /* Call the tryconnect. Returns 0 if success , 1 if failed */
    int Csuccess = c.tryconnect();
    if (Csuccess == 0 )
    System.out.println("Successfully Connected");
    null

    Thanks for your kind response.
    I'll have a look through the docs and see if I can find out how to get the TCP/IP listener running with Personal Oracle.
    I've been trying to use oci805jdbc.dll from the jdbc80520-nt.zip download file.
    Since the original post I've been trying to get the connection working with the Sun JDBC-ODBC bridge, but all I get is:
    C:\apache\jserv11b3\servlets>java connect2
    in main()
    connect instantiated
    in tryconnect()
    going to attempt connect
    Database Connect Failed
    [Microsoft][ODBC Driver Manager] Data source name not found and no default drive
    r specified
    The java code is identical apart from:
    Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver");
    and
    Connection conn =
    DriverManager.getConnection("jdbc dbc:LAPTOP;database=ORCL", "system", "manager");
    The relevant entry in tnsnames.ora is:
    LAPTOP.WORLD =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = BEQ)(PROGRAM = oracle80)(ARGV0 = oracle80ORCL)(ARGS = '(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=BEQ)))'))
    (CONNECT_DATA =
    (SID = ORCL)
    Many thanks for any help.

  • Connecting Developer 6 to Personal Oracle 8.1.0.5

    I installed Personal Oracle 6.0 and Developer 6.0 on Windows 98 in different homes.
    Have I install a network card to be able to connect Developer 6.0 to the personal Oracle 8.1.0.5 ?

    Hi, how are you?
    I read your file. On my computer, I got the same problem. First I installed Personal Oracle 8.15 version under window 98. The oracle home is e:\orale\ora81. Then I installed Form 8i in the orale home e:\oracle\ora. After installation, there are two SQLPLUS. One is under ora81 and another is ora. The one which is in e:\oracle\ora81 is working and it can bring up the database. Another one and Forms don't work. They can not connect to the local database. It means my client which is under e:\oracle\ora can't connect to my server which is under e:\oracle\ora81. I think I shoud set up the connection in tnsnames.ora by using Net8 Easy Config. I did it. It failed. Can you help me?
    Thanks.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by harry dhillon ([email protected]):
    No, you shouldn't have to to.
    If you have Personal Oraacle 8 running properly on your PC, then you can just connect to the database from Developer V6 using your normal username/password. For example, if you log on to SQLPLUS as scott/tiger, then the same will work for your forms and reports. You don't even need to enter a connect string. I have it working OK on a Windows '98 PC, with Personal Oracle 8i, and Forms v6i.<HR></BLOCKQUOTE>
    null

  • Connection Developer 200 with Personal Oracle 8

    Hi,
    I have installed Personal Oracle 8 and developer 2000
    I am able to work in SQL*plus 8 BUt i am not able
    to establish a connection with developer 2000 (Forms as
    well as reports )
    my queries are
    1) what should be installed first
    a) personal oracle 8 or developer 2000
    b) what about their home directories
    2) what all i need to do after installation to establish
    a connection between Personal oracle 8 and developer 2000
    CAN SOMEONE HELP ME ON THIS
    TARUN

    install them in 2 separate homes.
    start your database listener (lsnrctl start).
    create a sqlnet connection using the sqlnet easy config utility
    in the forms home.

  • Best way to connect java app to multiple databases?

    I'm working on my first commercial application, and I want it to be as flexible as possible, meaning I want it to be able to connect to a wide range of databases, as the customer chooses. I'm wondering what the best way is to accomplish this, I don't really want to have to buy a commercial license for third party ODBC drivers, any one have some good comments on this?

    You have two fundamental options:
    Use an O/R mapping tool like: Hibernate, EJB BMP, JDO, etc.
    Develop your own using JDBCIf you opt for the former, you should ask youself, "What value do i add? Or should I simply use these technologies?" The advantages are that dozens of other developers, going down similar routes, have faced the obstracles you will face and more. The disadvantage is that none of these developers has actually faced your specific problem. This is not to say that the solution does not already exist. The efficacy of this methodology will be how closely the general solution fits with your own (and since many problems have the same challenges, this will often be true).
    If you opt for the latter, you will have both an opportunity and a pitfall. The precise, business issue your current project addresses has many things both in common with other projects and also a handful of unique challenges. The hard part is determining whether this challenge actually differs in some fundamental way, or whether you have discerned some fault or opportunity in your methodology compared to standard (or even cutting-edge) practices.
    In reality, the challenge of "connecting to numerous, heterogenous (and probably vaprous) database systems" has long been addressed. Addressed, but perhaps not solved. If your goal is to develop a class library, for personal or consulting use, or to increase your understanding of the O/R boundary and best practices to obviate it, then my best advice is to read existing literature, and give it your all. There is no right answer here, and building on an existing experience of failure and success is indispensible.
    If your aim is to solve the O/R mapping challenge, or to suppant JDBC BMP, Hibernate or JDO, then my hat is off to you. We are all eagerly awaiting that day. (Sadly, after much effort, it has not yet arrived).
    So, can you connect Java to multiple databases, and even a diverse array of RDBMS vendors? Of course! But what will you do with those conections?
    - Saish

  • Connecting two machines using personal oracle

    I have a personal oracle 8.0.4 installed on my machine, I tried to connect another machine to use the same database, as a networking both machines were able to access the other but upon trying to connect to oracle I always get TNS message.
    Would you please advise.

    Make sure that your listener is started along with the oracle version. use lsnrctl command to start view listener status
    lsnrctl> status tells status
    > start to start
    > stop to stop listener
    now you need to configure the tnsnames thru net8 easy config or manually. it works
    good luck
    null

  • CORBA connecting Java app to a C app

    Hi.
    How do I call a C app from a Java app. The C app is running on a Unix server and the Java on my desktop.
    I've done the tutorials but it still doesn't help.
    I'm using JBuilder and Visibroker to create all the file needed (IDL, etc).
    Thanx
    Elbert

    In CORBA, the programmation language dosen't matter.
    You can call a C++ server from a Java client without any problem.
    Can you give an exemple of your Java client ?

  • How can i make my java app auto reconnect to Oracle.

    Scenario:
    when i am working with my java app if suddenly Oracle server connection unplugged. Then i got some problems regarding database.
    When they replugged the connection, i need to restart my app again. Then it works fine.
    Question:
    When the database is replugged or restarted, then how can i reconnect to the DB automatically with out restart my app. Please letme know is there any auto reconnect process is there for Oracle.

    If you want your application to reconnect, you would need to add logic that catches the exception that gets thrown when the connection is lost and tries to reconnect.
    Justin

  • Developer 6 (Graphics)/Personal Oracle 7.3.3 - Connectivity

    SQL*Plus, Forms and Reports, all seem to connect to Personal
    Oracle V7.3.3 OK. However when I connect with Graphics, although
    I get a message indicating successful completion, the logon
    dialogue box is still displayed and the connection hasn't
    succeeded.
    Any ideas?
    Sean
    null

    Faisal Shaikh (guest) wrote:
    : I amd having problem connecting Developer 6 with Personal
    Oracle
    : 7. Problem seems to be with TNS.
    Faisal,
    You may already have resolved this issue but just in case you
    are still getting problems, here is some info that may help.
    I faced the same problems with Oracle Developer 6 and Personal
    Oracle 7.3.3. Oracle Developer 6 uses Net8 to connect to the db
    whereas Personal Oracle 7 uses SQL*Net, hence the TNS problems
    you have been getting.
    There is a solution. Oracle Support suggested that you had to
    have a listener running in order for the connection to work. To
    do this you needed to instal the SQL*Net Add-Ons from the
    Personal Oracle CD, configure TNSNAMES.ora to point to a dummy
    IP address and start the listener. When I tried this I
    discovered that you don't infact need amend the TNSNAMES.ora
    file or run up the listener. As long as the SQL*Net add-ons are
    installed, the connection from Oracle Developer 6 to Personal
    Oracle 7 seems to work.
    Hope this is of some help.
    Sean Griscti
    null

  • Cant connect java with oracle

    i am new to oracle.
    i cant connect java(jdk1.3) to oracle using 'oracle.jdbc.driver.OracleDriver' in Class.forName() and DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:orcl","scott","tiger")
    it shows "class not found" error.
    is there any one to suggest or help me?

    Hi,
    you are posting in wrong forum, as this one is for SQLDeveloper-related issues only. You should post java-related issues in this forum:
    SQL Developer
    However, about your exception you have missed to put the oracle jdbc driver in the classpath.
    Download it from here:
    SQL Developer
    and see more info here:
    http://www.oracle.com/technology/sample_code/tech/java/codesnippet/jdbc/index.html

  • Connecting graph from personal oracle

    while trying to connect graph builder from
    personal oracle 8.0 , following error do
    come
    PDE-PER-001 INTERNAL ERROR , null password given , logon denied.
    missing mandatory parameter.
    while running graphs from report - following
    error come
    Error occur while runing the called developer
    component --- unable to create pl/sql developer environment content

    You mean that once I have my Oracle8i Enterprise Edition Release 8.1.6.1.0 server up I will have to use the EXP Export utility of 8.1.6.1.0 to export the database from the Personal Oracle Version 8.1.7.0.0

  • Java App connection to an Oracle Database through Oracle Stored Procedure

    My team's access to its Databases (Oracle only) is restricted to access through Oracle Stored Procedures that are part of the Oracle Database. So, in my Java App I need to call the Stored Procedure that will give me the access to the table that I need, declare the right parameters and execute the command. The Stored Procedure will then hand me the data I need.
    I am finding support on the web for creating Stored Procedures in Java, but that is not what I need.
    Can anyone post here a class that addresses this, or point me to a link that will shed some light on it?
    Thanks
    user606303

    user606303 wrote:
    Sorry this code is unformatted - I can't see how to format it.Use \ tags
    I am looking for Java code that will do what this .NET code below does (connects to a database and writes data to the table through an Oracle stored procedure that is part of the Oracle Database.)
    So learn Java, learn JDBC and translate the requirements; don't attempt to translate the code as the platforms are too different.
    From a quick glance it looks like a JDBC CallableStatement can do the job.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Set up DB Connection Pool for Oracle DataBase Using Java App Server8

    Hi,
    In the Admin Console of Java App Server 8, I tried to create a connection pool for the oracle database. I chose Resource Type to be "javax.sql.ConnectionPoolDataSource" and the Vendor is Oracle. So the Data Source Class Name is filled by the system to be "oracle.jdbc.pool.OracleConnectionPoolDataSource". Now, I set up the class path to point to the database driver class "sun.jdbc.odbc.JdbcOdbcDriver" and also the to the Data Source Class Name. Also I set up the JVM options in the console. Restart the server, and then try to ping to the database, but get the error:
    Operation 'pingConnectionPool' failed in 'resources' Config Mbean. Target exception message: Connection could not be allocated because: No suitable driver
    I don't understand what else I should do and why this error is coming?
    Please help me out.
    Thank you
    Regards,
    Sarah

    Hi,
    I've already solve the problem. I did the following:
    set the Url to be: jdbc:oracle:thin:@hostname:port:SID
    set username
    set password
    add oracle.jdbc.drivers.OracleDriver into the JVM options -Djdbc.drivers
    restart the server
    test the connection
    it works :)

  • Error Connecting to database URL jdbc:oracle:oci:@rmsdbtst as user rms13 java.lang.Exception:UnsatisfiedLinkError encountered when using the Oracle driver

    Trying to Install RMS application 13.2.2 and I get past the pre-installation checks and when I get to the Data Source details and enter the data source details with the check box checked to validate the schema/Test Data Source I get the following error:
    Error Connecting to database URL jdbc:oracle:oci:@rmsdbtst as user rms13 java.lang.Exception:UnsatisfiedLinkError encountered when using the Oracle driver. Please check that the library path is set up properly or switch to the JDBC thin client oracle/jdbc/driver/T2CConnection.getLibraryVersioNumber()
    Checks performed:
    RMS Application code location and directory contents:
    [oracle@test-rms-app application]$ pwd
    /binary_files/STAGING_DIR/rms/application
    [oracle@test-rms-app application]$ ls -ltr
    total 144
    -rw-r--r-- 1 oracle oinstall   272 Dec 7  2010 version.properties
    -rw-r--r-- 1 oracle oinstall   405 Jan 16 2011 expected-object-counts.properties
    -rw-r--r-- 1 oracle oinstall   892 May 13 2011 ant.install.properties.sample
    -rw-r--r-- 1 oracle oinstall 64004 Jun  6  2011 build.xml
    drwxr-xr-x 9 oracle oinstall  4096 Jun 16 2011 rms13
    drwxr-xr-x 3 oracle oinstall  4096 Jun 16 2011 installer-resources
    drwxr-xr-x 3 oracle oinstall  4096 Jun 16 2011 antinstall
    drwxr-xr-x 2 oracle oinstall  4096 Jun 16 2011 ant-ext
    drwxr-xr-x 5 oracle oinstall  4096 Jun 16 2011 ant
    -rw-r--r-- 1 oracle oinstall 11324 Dec 18 09:18 antinstall-config.xml.ORIG
    -rwxr-xr-x 1 oracle oinstall  4249 Dec 18 10:01 install.sh
    drwxr-xr-x 4 oracle oinstall  4096 Dec 18 10:06 common
    -rw-r--r-- 1 oracle oinstall 16244 Dec 19 10:37 antinstall-config.xml
    -rw-r--r-- 1 oracle oinstall   689 Dec 19 10:37 ant.install.log
    [oracle@test-rms-app application]$
    Application installation:
    [oracle@test-rms-app application]$ ./install.sh
    THIS IS the driver directory
    Verified $ORACLE_SID.
    Verified SQL*Plus exists.
    Verified write permissions.
    Verified formsweb.cfg read permissions.
    Verified Registry.dat read permissions.
    Verified Java version 1.4.2.x or greater. Java version - 1.6.0
    Verified Tk2Motif.rgb settings.
    Verified frmcmp_batch.sh status.
    WARNING: Oracle Enterprise Linux not detected.  Some components may not install properly.
    Verified $DISPLAY - 172.16.129.82:0.0.
    This installer will ask for your "My Oracle Support" credentials.
    Preparing installer. This may take a few moments.
    Your internet connection type is: NONE
    Integrating My Oracle Support into the product installer workflow...
         [move] Moving 1 file to /binary_files/STAGING_DIR/rms/application
    Installer preparation complete.
    MW_HOME=/u01/app/oracle/Middleware/NewMiddleware1034
    ORACLE_HOME=/u01/app/oracle/Middleware/NewMiddleware1034/as_1
    ORACLE_INSTANCE=/u01/app/oracle/Middleware/NewMiddleware1034/asinst_1
    DOMAIN_HOME=/u01/app/oracle/Middleware/NewMiddleware1034/user_projects/domains/rmsClassDomain
    WLS_INSTANCE=WLS_FORMS
    ORACLE_SID=rmsdbtst
    JAVA_HOME=/u01/app/oracle/jrockit-jdk1.6.0_45-R28.2.7-4.1.0
    Launching installer...
    To make sure I have connectivity from the app server to the database (on a database server) here are the steps followed:
    [oracle@test-rms-app application]$ tnsping rmsdbtst
    TNS Ping Utility for Linux: Version 11.1.0.7.0 - Production on 19-DEC-2013 10:41:40
    Copyright (c) 1997, 2008, Oracle.  All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = test-rms-db.vonmaur.vmc)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SID = rmsdbtst)))
    OK (0 msec)
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ sqlplus rms13@rmsdbtst
    SQL*Plus: Release 11.1.0.7.0 - Production on Thu Dec 19 10:46:18 2013
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ ping test-rms-db
    PING test-rms-db.vonmaur.vmc (192.168.1.140) 56(84) bytes of data.
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=1 ttl=64 time=0.599 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=2 ttl=64 time=0.168 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=3 ttl=64 time=0.132 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=4 ttl=64 time=0.158 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=5 ttl=64 time=0.135 ms
    --- test-rms-db.vonmaur.vmc ping statistics ---
    5 packets transmitted, 5 received, 0% packet loss, time 4001ms
    rtt min/avg/max/mdev = 0.132/0.238/0.599/0.181 ms
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ uname -a
    Linux test-rms-app.vonmaur.vmc 2.6.18-128.el5 #1 SMP Wed Jan 21 08:45:05 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ cat /etc/*-release
    Enterprise Linux Enterprise Linux Server release 5.3 (Carthage)
    Red Hat Enterprise Linux Server release 5.3 (Tikanga)
    [oracle@test-rms-app application]$
    The database is created and all the batch file scripts have been successfully deployed.  Now working on the application server.  The  Weblogic server is installed and 11g forms and reports are installed successfully.
    Any help would be helpful.
    Thanks,
    Ram.

    Please check MOS Notes:
    FAQ: RWMS 13.2 Installation and Configuration (Doc ID 1307639.1)

  • Sql_trace does not work for Java app using Oracle JDBC thin driver

    Hi,
    I'm using Oracle 8.1.7. I enabled sql trace at instance level by setting sql_trace and timed_statistics to true in init.ora. I restarted the db instance. I wrote a stand-alone java application which used Oracle JDBC thin driver(classes12.zip) to make a connection to my db instance, do some select statements, and close the connection. There were no trace files generated in the folder specified by udump_dest variable. However, if I used sqlplus or dba studio, I saw trace files generated. Has anyone got Oracle sql trace work for JDBC calls from java apps.
    Thanks in advance!

    Hi,
    I'm using Oracle 8.1.7. I enabled sql trace at instance level by setting sql_trace and timed_statistics to true in init.ora. I restarted the db instance. I wrote a stand-alone java application which used Oracle JDBC thin driver(classes12.zip) to make a connection to my db instance, do some select statements, and close the connection. There were no trace files generated in the folder specified by udump_dest variable. However, if I used sqlplus or dba studio, I saw trace files generated. Has anyone got Oracle sql trace work for JDBC calls from java apps.
    Thanks in advance!

Maybe you are looking for

  • Downloaded the A-Team to my ipod video but can't find it

    hello, I had just recently purchased the ipod video and over the weekend decided to test it out and I downloaded from apple's website the A-team now i can view it on my itunes under tv show but when i look for it on my ipod video there is no drop dow

  • How do I get rid of the calendars in the source list?

    I don't want Iphoto automatically organizing my photos by year, and I don't want to see the last four years depicted as calendar icons in the source list, and I don't want an item called "early photos' in my source list. How do I get rid of these unw

  • InDesign CS5 Won't Launch. Anywhere!

    I recently updated my MacBook Pro to OS X Yosemite and now my InDesign CS5 won't launch. I did some online troubleshooting and it suggested uninstalling and starting again. This would be problematic as I don't have a CD drive so can't install the sof

  • Xorg.conf or what is that ?

    #pacman -S nvidia #pacman -S xorg #pacman -S hwd #hwd -xa I make this an the problem is more or less that: xininitrc (don't recognize commands)    line 28 twn line 29 xclock line 30 xterm line 31 xterm line exec: xterm Compatible nvidia X driver not

  • Video conversion query

    Hi, I convert videos using Nero Recode 2. The tutorial advises that the user select the iPod Video - AVC option and then select Fit to target >> Choose the iPod Drive However, I found that this method, while compressing the videos quite considerably,