Connecting to Oracle8 Personal Edition from Java

Hi,
I have Oracle8 Personal Edition installed on my system. I would like to connect to it using the java test program that comes with Oracle called Employee.java. Whenever I run the program (on the same machine as the database), I get an error message saying "Connection Refused". I am connecting to Oracle running locally using:
Connection conn =
DriverManager.getConnection ("jdbc:oracle:thin:@127.0.0.1:1521:orcl",
                    "scott", "tiger");
Does anybody know what is wrong?

The problem is fixed. It did not work because I did not have a TNS listener running. Now it works fine.

Similar Messages

  • How to connect to Oracle 8i Personal Edition from another app like TOAD?

    I downloaded Oracle 8.1.7 Personal Edition; and the download went like a breeze.
    I installed Oracle and can connect to the database using SQL*Plus without specifying Host Name.
    I am very much familiar with TOAD (Tool for Oracle Application Developer). But I am unable to connect to Oracle 8.1.7 Personal Edition database from TOAD. I get a ORA-12541: TNS:no listener error when I give the global database name as the database name.
    Can anybody help me? Your help will be appreciated very much.

    SQL*PLus does not use the listener to connect to Oracle8i Personal Edition. That is why you are able to connect with SQL*Plus and not TOAD when the listener is not started.

  • Download oracle8i personal edition

    URGENT
    can somebody answer me???
    if I download oracle8i personal edition from OTN to install it on my personal computer,
    how long I will be able to use this software
    thanks

    http://otn.oracle.com/software/htdocs/devlic.html?/software/products/8i_personal/htdocs/winsoft.html

  • Installing Oracle8i Personal Edition, Version 8.1.5 on Windows XP Pro

    I am trying to install Oracle8i Personal Edition, Version 8.1.5 on my system with Windows XP Pro on it.
    After copying the CD content to the Hard Drive and renaming symcjit.dll to symcjit_back.dll, and running the setup from the oracle folder on the C drive, I am having the following error message:
    " Invalid srttaging area. There are no top level components for Windows NT available for install from this satging area".
    Any clue?

    You may want to search the database forums or All forums categories first to see if this question is already answered. I see at least 6 threads in the database category level and 21 threads when I searched all categories for "invalid staging area." If you still do not the find the answer, please repost your question in the database forum.

  • Installing oracle8i personal edition on windows ME

    I am having a problem installing oracle8i personal edition on windows ME.
    The error on running the setup.exe was "jrew has caused an error in javai.dll. " A fix was reported on the internet for this , which is adding a line ": Jrew=0x00080000" to compatibility95 in the win.ini file. Appaarently this fix worked for few people, but it is making no difference for me.
    Please provide a solution for this. email:[email protected]
    regards,
    Swati
    e-mail: [email protected]

    Duh hello....This is a Java forum not Oracle. Place your question in an Oracle forum.

  • Installing Designer 6 on NT With Oracle8 Personal Edition

    According to the Designer 6 For Windows NT installation guide, I can have Personal Oracle 8.0.4 as a local database for use with Designer 6. However I am unable to successfully install these due to:
    1. Designer and the Pre-Configured Repository must reside in the default_home directory.
    2. The Pre-Configured Repository must reside in the same Oracle Home Directory as the local database - therefore Personal Oracle8 must reside in the default_home directory also.
    3. Designer needs the 8.0.5 required support files whereas Oracle8 Personal Edition needs the 8.0.4 required support files to work.
    Thus, is my problem. As I can not install both 8.0.4 and 8.0.5 support files into the same Oracle home, how can I get to use Designer 6 with a local 8.0.4 database on NT, as it suggests in the Designer installation guide?
    null

    These are the steps .
    1. First Yout NT server must have Nt ver.4 with Service pack 5 built in
    2.All Y have to do is to Installed Web App
    Server on Different Physical location(With Oracle 8i) as different NT user with administrative privileges(Different from the user Y installed 8i RDBMS ).
    3. Set TNS_ADMIN parameter for NT Server.
    4.Set up the tnsname.ora and sqlnet.ora file
    on web app home ,(ie %ORACLE_HOME%\net80\admin ) as same as those on your Oracle DB HOme ,(ie %ORACLE_HOME%/network/admin )
    After this if You follow the installation guide ,Post installation task ,
    Every thing will work..
    Good luck ..
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by John J:
    Thanks. A couple of questions. Did you place the OAS in separate homes? If yes did you set enviromental variablesin System and user. Last Did you have to set the IP address in the winnt\system32\drivers\host.
    Still have not got it working. It seems to have installed. The node Listners is running. It could be a problem with my browser setup. Any ideas.
    Thanks JJ
    <HR></BLOCKQUOTE>
    null

  • Connect to MS Sql Server from Java Source

    Hi,
    Is there any way I could connect to ms sql server from Java source? I know I can call java source from function thats easy but what I really want is capability to connect to non-oracle(MS SQL server) from my java source and then call it from function.
    I don't know if JDBC driver for SQL server is even installed/available. Is there a way I could find it out form my IDE? I know sqlJ does compile but I have never used sqlj. help!!!
    Sinha

    You'll probably have better luck in a Java forum or a Microsoft forum.

  • Oracle8i Personal Edition for win2000

    Dear Mr./Ms.:
    After download, I try to run setup but nothing happen.
    What is the wrong of my system ?
    Thanks!

    Yes i am able to install oracle 8.1.7 Personal edition on Xp by copying all the file on Hard drive and rename symcjit.dll to symcjit.old and run setup exe from win32. Now problem os wants to send a error to microsoft.com that jave.exe not working or problem. Can you please help to solve that If it is solveable.
    hope i will get a reply soon
    Rgds
    Hoque
    [email protected]

  • Oracle8i personal edition Autorun trouble

    I am having trouble installing 8i personal edition on windows 98. I keep on getting a message when I click on Install/deinstall programs when running the autorun program. The message says "Unable to start Oracle installer. Please verify the path for the file C:\install\win32\setup.exe"

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by SRIVATSAN RAGHURAMAN ([email protected]):
    Hi Boule,
    Try activating the Autorun from
    Control panel-Add/Remove programs.
    Hope it works.
    R.Srivatsan
    [email protected]<HR></BLOCKQUOTE>
    R. Srivatsan,
    I just tried what you suggested but still had no luck. I appreciate the help anyway let me know if you have any other suggestions or where can I purchase a copy of 8i personal edition.
    Thank you
    Dave

  • ORA-28183 when connect proxy user with password from java

    1. Create user on database 10.2.0.1.0
    create user scott identified by tiger;
    create user jeff identified by secnt;
    grant connect, resource to scott;
    grant create session to jeff;
    alter user jeff grant connect through scott authenticated using password;
    2. Try to open proxy session from java
    DriverManager.registerDriver(new OracleDriver());
    Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@//db.garage:1521/ILINK", "scott", "tiger");
    if (conn != null && conn instanceof OracleConnection) {
         Properties properties = new Properties();
         properties.put(OracleConnection.PROXY_USER_NAME, "jeff");
         properties.put(OracleConnection.PROXY_USER_PASSWORD, "secnt");
         ((OracleConnection)conn).openProxySession(OracleConnection.PROXYTYPE_USER_NAME, properties);
         ((OracleConnection)conn).close(OracleConnection.PROXY_SESSION);
    conn.close();
    3. Got the following error for step 2
    Exception in thread "main" java.sql.SQLException: ORA-28183: proper authentication not provided by proxy
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:277)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:272)
         at oracle.jdbc.driver.T4CTTIoauthenticate.receiveOauth(T4CTTIoauthenticate.java:647)
         at oracle.jdbc.driver.T4CConnection.doProxySession(T4CConnection.java:852)
         at oracle.jdbc.driver.PhysicalConnection.openProxySession(PhysicalConnection.java:1548)
         at ch.tie.cluster.Test.run(Test.java:30)
         at ch.tie.cluster.Test.main(Test.java:19)
    4. If i grant connect without using password like:
    alter user jeff grant connect through scott
    everything is fine, but i need password authentication.
    Thanks in advance.

    did you try using the oci driver?

  • Can't connect to IPv6-only host from java on Mac OS

    I have some IPv6-only hosts. I can successfully execute curl request to it by curl
    $ curl -I my.ip.v6.only.host HTTP/1.1 200 OK
    But when I trying to get it from java I have an error:
    HttpGet httpget = new HttpGet("http://my.ip.v6.only.host");
    CloseableHttpResponse response = httpclient.execute(httpget);  
    Stack trace:
    INFO: I/O exception (java.net.NoRouteToHostException) caught when processing request to {}->http://my.ip.v6.only.host: No route to host
    Mar 17, 2015 7:42:23 PM org.apache.http.impl.execchain.RetryExec execute
    INFO: Retrying request to {}->http://my.ip.v6.only.host
    java.net.NoRouteToHostException: No route to host
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    at java.net.Socket.connect(Socket.java:579)
    at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:72)
    at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:123)
    at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:318)
    at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:363)
    at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219) 
    at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195)
    at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86)
    at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108)
    at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:106)
    at MainTest.main(MainTest.java:25)
    Problem has been occured on java v1.7.0_65 and v1.8.0_40, MacOS 10.10.2. On previous version MacOS 10.9.5 it works well.
    What's going on? How it is possible that host is reachable by curl and unreachable from java.
    Also, I've tried to play around -Djava.net.preferIPv6Addresses=true and -Djava.net.preferIPv4Stack=false and it couldn't help.

    Using the code you supplied I was able to reproduce your errors. I've adjusted it accordingly and can connect to one of my 10.2 test databases.
    import java.sql.*;
    import oracle.jdbc.*;
    import oracle.jdbc.pool.*;
    class Conn {
      public static void main (String args []) throws SQLException
        Connection conn = null;       
        OracleDataSource ods = new OracleDataSource();
        // ods.setURL(" jdbc:oracle:thin:@localhost:1521:TEST");
        // conn = ods.getConnection("scott", "tiger");
        ods.setURL("jdbc:oracle:thin:@localhost:1521:TEST");
        conn = ods.getConnection("scott", "tiger");
        Statement stmt = conn.createStatement();
        ResultSet rset = stmt.executeQuery("select BANNER from SYS.V_$VERSION");
        while (rset.next())
            System.out.println (rset.getString(1));   // Print col 1
        stmt.close();
    }There are several different ways to configure OracleDataSources:
    http://download.oracle.com/docs/cd/B19306_01/java.102/b14355/urls.htm#BEIDBFDF
    So, hopefully it's just a mismatch config.

  • Possible to install Oracle8i Personal Edition  Windows Me?

    hi,
    does anybody has experience or knowledge about installing Oracle 8i Personal Edition on Windows Me?
    thx,
    Hendrik

    Has anyone ever found the answer to this?
    I tried adding the JREW=0x0008000 to the win.ini
    but that didn't work..

  • Oracle8i Personal Edition

    Hi Everyone!
    I purchased the Oracle 8i CD Pack (Release3), which comes with 8i PE. The installation goes very well. However, when I try to setup the Network Configuration, it doesn't find anything! Even if I create the listner, etc. I recently noticed that the CD says NT/2000 on it, nothing about Windows 98. However, as I mentioned above, the installation works. Could it be that I have the wrong version and that is why the network part does not work? I have read all the problems people are having with the Win98 download version[\b], so I don't know if I want to go that route. Seems easier to install NT or 2000. Has anyone gotten their 98 PE to work yet? If so, how?

    Afaik, personal edition was/is only for Windows plateform.
    Nicolas.
    Go to http://www.oracle.com/technology/support/metalink/index.html
    Choose "...by Product", "Database...", "...Personal Edition", then you will see that is only Windows OS for which this edition was/is certified.
    Message was edited by:
    N. Gasparotto

  • Oracle8i Personal Edition - Connecting

    Hi
    I've installed OP8 completely without problems, and I can startup the database. I t seems I have all the standard users like scott/tiger and so on, but I can't figure out the string to write in the database-field in the connect-popup of SQL*plus, Forms Builder etc. (local) ?
    Thanks

    Hi,
    which os are u all talking about?NT or 95 or 98?
    1.in case of any of these, make sure that you have tcp/ip configured for the machine and an ip adress to identify ur machine.a DHCP ip address will also help.
    2.make sure that the listener.ora in the $ORACLE_HOME/net80/admin directory has the proper SID to listen for .
    3.You can connect to the database using sqlplus 8.0 but connecting from sqlplus 3.3 and forms 4.5 will require a connect string to be defined in the tnsnames.ora in the $ORACLE_HOME/network/admin directory.
    4.Since the middleware (sqlnet and net8 ) are different , the conenct string will have to be used while connecting from sqlplsu 3.3 or forms 4.5.
    5.as far as polite is concerned, MikeSP has
    answered that question.
    Hope this helps.

  • Can't connect to Oracle XE instance from Java web application

    I'm a long-time Java developer but can't figure this out.
    I've been pouring over the forum for over a week and can't
    find the solution that will let me connect.
    Hardware: Intel/Vista.
    DB: Oracle Express 10G.
    Application: Java web application (Jakarta Struts)
    Application Server: Tomcat 5.5
    I copied the latest JDBC driver from OTN into my app server's "/LIB" directory.
    I get no driver errors. ("ojdbc14.JAR)"
    I can connect locally from my TOAD client, using SYSTEM/PASSWORD/XE.
    My listeners seem to be OK.
    Depending on which connection string I use from my Java application,
    I get one of two messages.
    "ORA-01017: invalid username/password; logon denied"
    OR
    "Io exception: The Network Adapter could not establish the connection"
    ------------ lsnrctl status ---------------------------------------------------
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "XEXDB" has 1 instance(s).
    Instance "xe", status READY, has 1 handler(s) for this service...
    Service "XE_XPT" has 1 instance(s).
    Instance "xe", status READY, has 1 handler(s) for this service...
    Service "xe" has 1 instance(s).
    Instance "xe", status READY, has 1 handler(s) for this service...
    The command completed successfully
    ------------ SOURCE CODE ------------------------------------------------------
    OracleDataSource ods = new OracleDataSource();
    ods.setURL(" jdbc:oracle:thin:@localhost");
    conn = ods.getConnection("system", "password");
    //ods.setURL("jdbc:oracle:thin:@rsosborn-PC:1521:XE");
    //conn = ods.getConnection("system", "password");
    String query = "select * from books;";
    Statement st = conn.createStatement();
    ResultSet rs = st.executeQuery(query);

    Using the code you supplied I was able to reproduce your errors. I've adjusted it accordingly and can connect to one of my 10.2 test databases.
    import java.sql.*;
    import oracle.jdbc.*;
    import oracle.jdbc.pool.*;
    class Conn {
      public static void main (String args []) throws SQLException
        Connection conn = null;       
        OracleDataSource ods = new OracleDataSource();
        // ods.setURL(" jdbc:oracle:thin:@localhost:1521:TEST");
        // conn = ods.getConnection("scott", "tiger");
        ods.setURL("jdbc:oracle:thin:@localhost:1521:TEST");
        conn = ods.getConnection("scott", "tiger");
        Statement stmt = conn.createStatement();
        ResultSet rset = stmt.executeQuery("select BANNER from SYS.V_$VERSION");
        while (rset.next())
            System.out.println (rset.getString(1));   // Print col 1
        stmt.close();
    }There are several different ways to configure OracleDataSources:
    http://download.oracle.com/docs/cd/B19306_01/java.102/b14355/urls.htm#BEIDBFDF
    So, hopefully it's just a mismatch config.

Maybe you are looking for

  • Curious thing while calling a procedure from Java !...

    Hi !. My name is Agustin and my doubt would be the following one... I am working for a e-business comp and they asked me to call a procedure from java... The code is the following one: CallableStatement cs = null; System.out.println("Fecha Nro. 1: "

  • Contacts not appearing in the Mail address panel

    If I am in Mail on my MacBook the mail program knows nothing about any addresses in my contact list. The Address Panel and Previous Contacts lists are empty. If I open my contacts list - I see all my contacts properly. They also sync properly between

  • Why cannot I use hidden or display only item to store value for insert?

    hi, Gurus: I have a question: I implemented a form with report region in a page, the update works OK, but the add function has a problem: There is a column, offender_ID, which is a foreign key for another table, it should not be null during insert. H

  • Extract function for xmltype replaces ~ (tilde) with ']]]'

    Hi, In 10.2.0.4 when extracting fragment using xpath and extract function is replacing ~ with ]]]. strange thing is, it happens with only one ~ though there are many ~ in the xml. Has anyone faced similar issue with extract() function ? Thanks, vivek

  • Troubleshooting file access problem

    using finder, going into a sub folder in my documents folder, finder blows up... disappears, no message, nothing, just goes away. If I go in via terminal, everything is there in the correct folder and accessible. I can even gently go in using finder