SQLException - Win 98; Oracle 8i personal (8.1.5) JDBC Thin 1.2 driver

Environment:
Win 98; Oracle 8i personal (8.1.5) JDBC Thin 1.2.2 drivers
Included in classpath: e:\oracle\ora81\jdbc\lib\classes12_01.zip;e:\oracle\ora81\jdbc\lib\nls_chaset2_01.zip;
Included in path: e:\Oracle\Ora81\bin;e:\Oracle\Ora81\\jdbc\lib;
code snippet used:
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
dbconn = DriverManager.getConnection( "jdbc:oracle:thin:@127.0.0.1:1521:ORCL","scott","tiger" );
following runtime error occurs:
java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:156)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:210)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:251)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:224)
at java.sql.DriverManager.getConnection(DriverManager.java:457)
at java.sql.DriverManager.getConnection(DriverManager.java:137)
at OracleTest.main(OracleTest.java, Compiled Code)
Any suggestions anyone?

<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Vij:
Environment:
Win 98; Oracle 8i personal (8.1.5) JDBC Thin 1.2.2 drivers
Included in classpath: e:\oracle\ora81\jdbc\lib\classes12_01.zip;e:\oracle\ora81\jdbc\lib\nls_chaset2_01.zip;
Included in path: e:\Oracle\Ora81\bin;e:\Oracle\Ora81\\jdbc\lib;
code snippet used:
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
dbconn = DriverManager.getConnection( "jdbc:oracle:thin:@127.0.0.1:1521:ORCL","scott","tiger" );
following runtime error occurs:
java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:156)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:210)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:251)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:224)
at java.sql.DriverManager.getConnection(DriverManager.java:457)
at java.sql.DriverManager.getConnection(DriverManager.java:137)
at OracleTest.main(OracleTest.java, Compiled Code)
Any suggestions anyone?<HR></BLOCKQUOTE>
Vij,
Assuming that Personal Oracle is up and running, you should check that the listener is running and listening on the port you are using.
You can check the status with the following command (from the DOS prompt): lsnrctl status
If the listener is not running start it with this command: lsnrctl start listener
You can also have it start automatically by modifying the registry entry LISTENER_STARTUP to "AUTO"
(HKEY_LOCAL_MACHINE\Software\ORACLE\HOME0)
Hope this helps
Thomas Risberg
null

Similar Messages

  • Oracle 7.3.4.0.2 JDBC Thin Driver for NT 4.0

    I'm unable to download the Oracle 7 JDBC driver even after using the GetRight Download utility.
    - Oracle 7.3.4.1.0
    - jdbc73402-nt.zip
    - 2/8/02 10am ET
    - IE 5.0 & Netscape 4.7.3
    - Win 2000 Terminal
    - Error Message : " The document contains no data. "

    You can try substituting any of the following in the download URL for the product: download-west.oracle.com , download-east.oracle.com , or download-uk.oracle.com
    Please let us know if this helps,
    OTN
    I'm unable to download the Oracle 7 JDBC driver even after using the GetRight Download utility.
    - Oracle 7.3.4.1.0
    - jdbc73402-nt.zip
    - 2/8/02 10am ET
    - IE 5.0 & Netscape 4.7.3
    - Win 2000 Terminal
    - Error Message : " The document contains no data. "

  • Differences between Oracle JDBC Thin and Thick Drivers

    If any body is looking for this information...
    ============================================================
    I have a question concerning the Oracle JDBC thin vs. thick drivers
    and how they might affect operations from an application perspective.
    We're in a Solais 8/Oracle 8.1.7.2 environment. We have several
    applications on several servers connecting to the Oracle database.
    For redundancy, we're looking into setting up TAF (transparent
    application failover). Currently, some of our apps use the Oracle
    <B>JDBC thin</B> drivers to talk to the database, with a connection
    string that like this:
    <B> jdbc:oracle:thin:@host:port:ORACLE_SID </B>
    In a disaster recovery mode, where we would switch the database
    from one server to another, the host name in the above string
    would become invalid. That means we have to shut down our application
    servers and restart them with an updated string.
    Using the Oracle <B>OCI (thick)</B> driver though, allows us to connect
    to a Net8 service instead of a specific server:
    <B> jdbc:oracle:oci8:@NET8_SERVICE_NAME </B>
    Coupled with the FAILOVER=ON option configured in Net8, it is
    then possible to direct a connection from the first server to
    the failover database on another server. This is exactly what
    we would like to do.
    My question is, from an application perspective, how is the Oracle
    thick driver different from the thin driver? If everything
    else is "equal" (i.e. the thick driver is compatible with the
    app servers) would there be something within the the thick/OCI
    driver that could limit functionality vs. the thin driver?
    My understand, which obviously is sketchy, is that the thick
    driver is a superset of the thin driver. If this is the case,
    and for example if all database connections were handled through
    a configuration file with the above OCI connection string, then
    theoretically the thick driver should work.
    ============================================================
    <B>
    In the case with the Oracle, they provide a thin driver that is a 100% Java driver for client-side use without the need of an Oracle installation (maybe that's why we need to input server name and port number of the database server). This is platform indipendent, and has good performance and some features.
    The OCI driver on the other hand is not java, require Oracle installation, platform dependent, performance is faster, and has a complete list of all the features.
    </B>
    ========================================================
    I hope this is what you expect.
    JDBC OCI client-side driver: This is a JDBC Type 2 driver that uses Java native methods to call entrypoints in an underlying C library. That C library, called OCI (Oracle Call Interface), interacts with an Oracle database. <B>The JDBC OCI driver requires an Oracle (7.3.4 or above) client installation (including SQL*Net v2.3 or above) and all other dependent files.</B> The use of native methods makes the JDBC OCI driver platform specific. Oracle supports Solaris, Windows, and many other platforms. This means that the Oracle JDBC OCI driver is not appropriate for Java applets, because it depends on a C library to be preinstalled.
    JDBC Thin client-side driver: This is a JDBC Type 4 driver that uses Java to connect directly to Oracle. It emulates Oracle's SQL*Net Net8 and TTC adapters using its own TCP/IP based Java socket implementation. <B>The JDBC Thin driver does not require Oracle client software to be installed, but does require the server to be configured with a TCP/IP listener. Because it is written entirely in Java, this driver is platform-independent.</B> The JDBC Thin driver can be downloaded into any browser as part of a Java application. (Note that if running in a client browser, that browser must allow the applet to open a Java socket connection back to the server.
    JDBC Thin server-side driver: This is another JDBC Type 4 driver that uses Java to connect directly to Oracle. This driver is used internally by the JServer within the Oracle server. This driver offers the same functionality as the client-side JDBC Thin driver (above), but runs inside an Oracle database and is used to access remote databases. Because it is written entirely in Java, this driver is platform-independent. There is no difference in your code between using the Thin driver from a client application or from inside a server.
    ======================================================
    How does one connect with the JDBC Thin Driver?
    The the JDBC thin driver provides the only way to access Oracle from the Web (applets). It is smaller and faster than the OCI drivers, and doesn't require a pre-installed version of the JDBC drivers.
    import java.sql.*;
    class dbAccess {
    public static void main (String args []) throws SQLException
    DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection
    ("jdbc:oracle:thin:@qit-uq-cbiw:1526:orcl", "scott", "tiger");
    // @machineName:port:SID, userid, password
    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();
    How does one connect with the JDBC OCI Driver?
    One must have Net8 (SQL*Net) installed and working before attempting to use one of the OCI drivers.
    import java.sql.*;
    class dbAccess {
    public static void main (String args []) throws SQLException
    try {
    Class.forName ("oracle.jdbc.driver.OracleDriver");
    } catch (ClassNotFoundException e) {
    e.printStackTrace();
    Connection conn = DriverManager.getConnection
    ("jdbc:oracle:oci8:@qit-uq-cbiw_orcl", "scott", "tiger");
    // or oci7 @TNSNames_Entry, userid, password
    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();
    =================================================================

    Wow, not sure what your question was, but there sure was a lot of information there...
    There really is only one case where failover occurs, and it would not normally be in a disaster recovery situation, where you define disaster recovery as the obliteration of your current server farm, network and concievably the operational support staff. This would require a rebuild of your server, network etc and isn't something done with software.
    Fail over is normally used for high availablity that would take over in case of hardware server failure, or when your support staff wants to do maintenance on the primary server.
    Using the thin and thick driver should have ZERO affect on a failover. Transparent failover will make the secondary server the same IP as the primary, therefore the hostname will still point to the appropriate server. If you are doing this wrong, then you will have to point all your applications to a new IP address. This should be something that you tell your management is UNACCEPTABLE in a fail-over situation, since it is almost sure to fail to fail-over.
    You point out that you are providing the TNSNAME, rather than the HOSTNAME when using the thick driver. That's true within your application, but that name is resolved to either a HOSTNAME, or IP ADDRESS before it is sent to the appropriate Oracle server/instance. It is resolved using either a NAME server (same as DNS server but for Oracle), or by looking at a TNSNAMES file. Since the TNSNAMES files profilerate like rabbits within an organization you don't want a fail over that will make you find and switch all the entries, so you must come up with a fail over that does not require it.
    So, the application should not be concerned with either the hostname, or the IP address changing during fail over. That makes use of the thin or thick client acceptable for fail over.
    Don't know if this will help, but this shows the communication points.
    THIN DRIVER
    client --> dns --> server/port --> SID
    THICK DRIVER
    client --> names server --> dns --> server/port --> SID
    client --> tnsnames     --> dns --> server/port --> SID

  • Cannot connect Oracle 7.2.2 using JDBC thin in JDevelper....

    When I try to connect Oracle 7.2.2 database using JDBC thin driver of Java 1.1.8 in JDeveloper, the connection manager refuse to connect the database and alert the minimum version supported is 7.2.3. But I know JDBC thin driver can connect database of 7.2.x onwards. Any way to workaround? Thank you.

    Hi Tian-liang,
    Try using Microsofts JDBC driver rather than Suns. Also search these forums, other have run into the same issue.
    Thank you
    Don

  • Oracle 9i Personal Edition

    I REALLY need to get this installed, see previous message below. Can anyone help.

    I downloaded Oracle 9i Personal edition from Oracle.com.
    Installed the same on Win Me with a starter database.
    I am not able to open the database since it asks me to enter a password which i've never entered.
    I am not able to create a session. The moment I try to create a session on SQL, the database starts opening but i cannot get further since it asks for the password.
    Please Help. Try using the generic username of scott & the generic pw of tiger. Hope this helps Hi,
    Try this from dos prompt
    c:\> set oracle_sid=<sid_value>
    c:\> sqlplus system/manager
    Can you elaborate what you meant when you say "the database starts opening" ? What is the error number and error message you are getting?
    HTH

  • Problems facing while installing Oracle 8i personal edition under win98se

    hello,
    I am having problems while installing Oracle 8i personal edition
    under win98se.
    I am stuck on the creation of database. it always stuck at 85%.
    I've try installed many many times.. but it still the same..
    what can i do?
    i am using win98 se.
    is there any solution for this problems?
    thanks~!

    Under Win 98SE (Personal Oracle 8i)creation of database - very
    long. Therefore choose a mode of creation of base - copy from CD.
    Then the base can be increased.
    Best regards - Alex

  • PL/SQL does not work in Oracle 8i Personal Edition

    I just installed Oracle 8i Personal Edition for Win 98. Everything works perfectly, except the PL/SQL.
    Then I tried to install Oracle 8i EM, but I always get the listener or adapter error. Even when I tried to start the listener from lsnrctl prompt, it gives me those errors. Anyone can help?

    You need use correct type when you create object.
    Don't forget object in reality is a memory pointer,
    so what if you don't allocate correct memory in creation,
    you can't treat object as subtype.
    And meanwhile, it doesn't depend on Oracle version -
    your example doesn't work in 9.2.0.1 for example.
    SQL> declare
      2  super one_t;
      3  sub two_t := two_t(1, sysdate);
      4  begin
      5  super := two_t(1, sysdate);
      6  sub := treat(super as two_t);
      7  dbms_output.put_line('sub ' || sub.x || ' ' || sub.y );
      8  select treat(super as two_t) into sub from dual;
      9  dbms_output.put_line('super ' || super.x || ' ' || super.y );
    10  if sub is null then
    11  dbms_output.put_line('stupid');
    12  end if;
    13  if sub is of (two_t) then
    14  dbms_output.put_line('stupid');
    15  end if;
    16  end;
    17  /
    sub 1 08.06.05
    super 1 08.06.05
    stupid
    &nbsp
    PL/SQL procedure successfully completed.Rgds.

  • Oracle 9i Personal Edition Lean Install

    I want to install Oracle 9i Personal Edition on a Windows Box(NT/2000/XP). I would like to make it as lean as possible (ie. minimal disk space, minimal services, etc). The databases deployed on this would have tables, procs, functions, views, packages, sequences, users & roles. Any tips on how to minimize what is installed? tia.

    I downloaded Oracle 9i Personal edition from Oracle.com.
    Installed the same on Win Me with a starter database.
    I am not able to open the database since it asks me to enter a password which i've never entered.
    I am not able to create a session. The moment I try to create a session on SQL, the database starts opening but i cannot get further since it asks for the password.
    Please Help. Try using the generic username of scott & the generic pw of tiger. Hope this helps Hi,
    Try this from dos prompt
    c:\> set oracle_sid=<sid_value>
    c:\> sqlplus system/manager
    Can you elaborate what you meant when you say "the database starts opening" ? What is the error number and error message you are getting?
    HTH

  • Any Oracle database personal edition certified for Windows 7/32bit?

    Is any Oracle database Personal edition certified for Windows 7/32bit? I spent an hour at least searching for this but no chance.
    Thank you.

    Currently, only 11gR2 and 10.2.0.5 are certified on Win 7 Professional or higher - Home versions are not supported.
    HTH
    Srini

  • Oracle 8i Personal Edition Installation on Windows ME

    Hi,
    I am assuming that Oracle 8i Personal Edition for Windows 98 will work on Windows Me too. First of all, is this assumption valid ? If yes, then I am facing a problem right at the start of the installation. After specifying the File location path (For source path, the default is 'C:\Program Files\Oracle\STAGE\products.jar'. I have not changed this. For destination path,(oracle home path), I am specifying it as 'C:\Program Files\Oracle'. After this I get an error as follows - 'There was a problem in accessing the staging area. Please make sure the specified values for 'Source' and 'Destination' are valid.'
    I am stuck up at this point. Please let me know what could be the problem.

    I had this same problem with this same installation on ME. After a smooth installation with PO 8, I suspected spaces in path names, since the 8i install appears to be java based. If you go into windows regedit (Win ME does not read from autoexec.bat), and search for oracle home, and all 'home' paths you have tried specifying in the initial 8i install interface, upon editing your oracle home path, you may find a space character discreetly tucked at the end of that path name. What's more, just correcting your paths through regedit may only temporarily solve your problem. Also search/correct your prompt. A quick verification of this is if, from a dos window, your prompt looks like:
    C:\> _
    (notice the space between the > and _ characters) I think this is either a MS bug, or an image disk install bug, and suspect, after reading of your same problem, it comes from MS.
    Hope this helps,
    KJ
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Anjali Vipinkumar ([email protected]):
    Hi,
    I am assuming that Oracle 8i Personal Edition for Windows 98 will work on Windows Me too. First of all, is this assumption valid ? If yes, then I am facing a problem right at the start of the installation. After specifying the File location path (For source path, the default is 'C:\Program Files\Oracle\STAGE\products.jar'. I have not changed this. For destination path,(oracle home path), I am specifying it as 'C:\Program Files\Oracle'. After this I get an error as follows - 'There was a problem in accessing the staging area. Please make sure the specified values for 'Source' and 'Destination' are valid.'
    I am stuck up at this point. Please let me know what could be the problem.<HR></BLOCKQUOTE>
    null

  • Problem with oracle 9i personal and thin driver

    hi all,
    this is the code i test the connection of thin driver and oracle 9i personal database.
    but i got the error below, could someone tell me where i did wrong.
    thank you...
    import java.sql.*;
    import java.math.*;
    import java.io.*;
    import java.awt.*;
    import oracle.jdbc.driver.*;
    class JdbcTest
      public static void main(String arg[])
        try
          // load oracle driver
          DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
          //connect to the local database
          Connection connection = DriverManager.getConnection
                                 ("jdbc:oracle:thin:@myhost:1521:ORCL","scott","tiger");
          Statement statement = connection.createStatement();
          ResultSet resultset = statement.executeQuery("SELECT ename FROM emp");
          //print the name out
          while(resultset.next())
            System.out.println(resultset.getString(1));
          //close the resultset, statement, and connection
          resultset.close();
          statement.close();
          connection.close();
        catch(SQLException sqle)
          System.err.println(sqle);
    }  C:\CODE-JDBC\ORACLE\TEST-CONNECT>java JdbcTest
    java.sql.SQLException: Io exception: The Network Adapter could not establish the connection

    Replace this line:
    DriverManager.registerDriver(new racle.jdbc.OracleDriver());with this one:
    Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();

  • Forms 6.0/Oracle 8i Personal

    I have Forms 6.0 installed from Developer 6.0 CD on a Windows 98 desktop. I recently installed Oracle 8i Personal Edition. I had to install 8i in a new Oracle Home because the UOI is not compatible with the installer used for Developer 6.0. I am now trying to connect to the Personal Oracle 8i database from the Forms Builder 6.0 . Is this possible? I have tried editing the tnsnames.ora file in the oracle home where the Forms 6.0 lives, but haven't had any luck.

    It is easier to use developer 6i. 8i and 6i can find each other without having to change anything in the listeners or tns.names.
    Greetings Huub Bos
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Tani Converse ([email protected]):
    I have Forms 6.0 installed from Developer 6.0 CD on a Windows 98 desktop. I recently installed Oracle 8i Personal Edition. I had to install 8i in a new Oracle Home because the UOI is not compatible with the installer used for Developer 6.0. I am now trying to connect to the Personal Oracle 8i database from the Forms Builder 6.0 . Is this possible? I have tried editing the tnsnames.ora file in the oracle home where the Forms 6.0 lives, but haven't had any luck. <HR></BLOCKQUOTE>
    null

  • How to install oracle in personal computer

    Dear Friends
    I would like to install oracle in personal computer, and I have the following oracle CD
    And I do not now which one I have to use .
    1) ORACLE9I REASE 1(9.0.1) for Microsoft windows NT/200 ( CD 1OF 3) , ( CD 2 OF 3),
    ( CD 3 OF 3)
    2) ORACLE9I APPLICATION SERVER release 1.02.2.2 for windows NT ALSO 3 DISKETS
    3) ORACLE8I CLIENT RELEASE 3 (8.1.7) FOR MICROSOFT WINDOWS 95/98/200/NT
    4) ORACLE8I STANDARD EDITION RELEASE 3 (8.1.7) FOR MICROSOFT WINDOWS NT/2000
    Which one of the above CD I have to use .
    And also I want to install in the same computer the form builder (32 – bit) that is
    Forms [32 Bit] Version 6.0.8.23.2 (Production)
    And also I want to install in the same computer the REPORT BUILDER (32- BIT) that is
    Report Builder 6.0.8.23.0
    How can I do that what is the setting for the TNSNAMES.ORA.
    Please in details, and with example if it is possible.
    Best regards
    Jamil alshaibani

    Hi friends
    I have install oracle9I release 1 (9.0.1) in my PC ,so I was able to connect oracle through SQL PLUS ,
    It means that tnsname.ora file is configured properly as for as the database is concerned
    But when I try to connect through the developer form to the database I got this message
    ORA-12203: TNS UNABLE TO CONNECT TO DISTINATION
    The oracle database have been install in D:\ORACLE and the developer have been installed in
    C:\ORACLE
    I have copied the tnsname.ora from D:\ORACLE to c:\oracle\net80\admin, but still I got this message ORA-12203: TNS UNABLE TO CONNECT TO DISTINATION
    Waiting for your valuable answer
    Best regards
    jamil

  • Oracle 8i Personal Edition

    I NEED to download Oracle 8i Personal Edition. Obviously, it's been yanked from the site. Are there any other places I can download this? Or any other places I can get a hard copy. This is extremely urgent! Someone help, please.

    Here you can still find the software you are looking for:
    http://otn.oracle.com/software/htdocs/devlic.html?/software/products/8i_personal/htdocs/winsoft.html

  • Errors in simple query in oracle 9i personal edition

    hi,
    i have oracle 9i personal edition release 9.0.1.1.1 - production.
    with it came sql*plus release 9.0.1.0.1 - production
    i have installed it on windows 98SE
    what i did is the following
    step 1:
    create type address_ty as object
    (street varchar2(50),
    city varchar2(50),
    state char(2),
    zip number);
    when i executed i got message "type created"
    step 2 :
    create table customer
    (cust_id number ,
    person address_ty);
    when i executed this i got message "table created"
    step 3 :
    insert into customer values
    (3,address_ty('xyz','abc','AP',4563));
    i get messsage "1 row created"
    step 4 :
    select cust_id,person.street from customer;
    i get error message .......
    select cust_id,person.street from customer;
    ERROR at line 1:
    ORA-00904: invalid column name
    i tried this example from the book "Oracle Complete Reference" from oracle press.
    what is the problem how to avoid it.
    i am a beginner help
    gopal

    hi! i'm not very sure, but your second field selected is person.street, do you have this field?
    why not try just select * from tablename, you should see the result.
    hope that helps.
    rgds.

Maybe you are looking for

  • IPhoto 08 vs Adobe Photoshop elements 6

    I have just recently started to really enjoy digital photography and digital scrapbooking. I bought my first MAC about 2 months ago (20" iMac) and love it. I also purchased my first SLR camera and have really dived into photography being a hobby and

  • How can i unlock my phone when i forgot the password

    How can i unlock my phone if i forgot the password?

  • Wrong DATE-TIME FORMAT among REPORTS NOTIFICATION EMAILs

    Dear all, I create a report request with url https://ocixxxx2.oci.xxcl.net/reports/rwservlet?>destype=printer&desformat=PDF&server=rep_xxxxx2_orahome&userid=ixxxxxx/xxxxxxx@saas&notifysuccess=IASL&notifyfailure=IASL&report=R1000R13.rdf&jobname=R1000R

  • IDES best practices

    Dear All; can any one tell me if there is best pracricess in the IDES system (Internet Demonstration and Evaluation System). if the answer is yes, can i know how to get them. Best Regards ~ Amal Aloun

  • Problems with the alerts

    Hi to all. I have this problem: I need to know If exists any way, for don't close the alert with the "X", locate in the upper rigth corner. If I close the alert with this th application runs wrong. The application runs in a web. I anybody have any so