Results 1 to 1 of 1
  1. #1
    Join Date
    Jul 2002
    Posts
    11

    Unanswered: JDBC - ORACLE9i error

    Hi,
    I am new to this discussion and new to oracle as such. I downloaded the oracle9i (trial version) from the oracle website. And after a little struggle, I got oracle running and I was able to query through sqlPlus and JDBC program.
    For some reason, oracle did not work suddenly, so i re-installed it and again it works. But now my JDBC is not able to connect to the database.
    I am able to connect to the database using sqlplus username developer1 and password developer1. but when i try the following using java:
    connection = DriverManager.getConnection
    ("jdbcracle:thin:@marcanthony:1521:dev1","developer1","d eveloper1");

    and run it , i get the following error:
    java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBE rror.java:134)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBE rror.java:179)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBE rror.java:333)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleC onnection.java:404)
    at oracle.jdbc.driver.OracleDriver.getConnectionInsta nce(OracleDriver.java:468)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriv er.java:314)
    at java.sql.DriverManager.getConnection(DriverManager .java:512)
    at java.sql.DriverManager.getConnection(DriverManager .java:171)
    at Jdbctest1.main(Jdbctest1.java:21)

    I have attached my simple program !

    Any help?
    Thanks.
    p
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •