Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I cann't connect the oracle database!

 
Yanbing Yu
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I cann't connect the oracle database!
I had wrote the code such as
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con = DriverManager.getConnection("jdbc racle:thin:@192.168.0.24:1521","siis","siis");
siis is user name and passward.
when i run this program,it shows me that java.lang.ClassNotFoundException racle.jdbc.driver.OracleDriver
at java.net.URLClassLoader$1.run<Unkown Source>
at ............
at ......
 
Nagendra Prasad
Ranch Hand
Posts: 219
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From the information provided in your post, it looks like the program is not able to find the Oracle classes requried for making the connection i.e. the JDBC Drivers..
Are you sure that the jdbc drivers are in your class path at the time of running the application?
 
Yanbing Yu
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot ,Nagendra Prasad.
Today it runs good.
Maybe it's the problem of the network.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic