• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Network Adapter Error WHY????

 
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear All,
Hey,
I have Windows 98, JDK1.2.2, Oracle 8i Personal Edition (8.1.6) I am facing problem in using the thin drivers for oracle. I am using the following statement to connect to the database:
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
Connection Con=DriverManager.getConnection("jdbc racle:thin:@localhost:1521:GMD","username","password");
My SID is GMD
and username and password are my respective username and password. The code compiles correctly, but when I execute the code, I get the following exception:
Exception in Connection to Database : java.sql.SQLException: Io exception: The Network Adapter could not establish the connection

Why am I getting this exception?
Please Help!
Also, what is the difference between TYPE II and TYPE III jdbc drivers?
Thanks a lot.
Bye,
Tualha Khan
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check your Oracle server configuration, like its TNS name, Listener, etc. Try to connect to other existing Oracle server. The most possible reason is in your Oracle.

 
Tualha Khan
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When I try to run the 'Test Connection' in Net8 Configuration Screen, it says ORA-Some error number : No Listener.
How do configure a listener. Is the guide available on the oracle site as a documentation. If yes, Please provide with the URL.
Thanks a lot.
Bye,
Tualha Khan
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all
i got the same problem, network adapter could not establish the connection while using thin drivers, but in my case it is working fine with other users. only it is not working when im using connection pool. my tnslistner.ora and listener.ora are absolutely fine. im just wondering how its working for one user of oracle and not working for other user. user name and password are exactly correct. what could be the problem? please help me out.
thank u
rama tubati
 
Let's get him boys! We'll make him read this tiny ad!
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic