This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I cann't connect the oracle database!

 
Yanbing Yu
Greenhorn
Posts: 9
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic