• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error ,Who can tell me ??

 
ShouTao Hao
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I executed

result is

who can tell me ? why?
[ Edited by Dave to remove smilies and format code ]
[ June 04, 2002: Message edited by: David O'Meara ]
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver

You are using Oracle as your database, but the 'generic' JDBC-ODBC drivers to connect to it. This driver is not very stable and definitely not recommended for live use.
You are much better off using the Type 4 driver provided with Oracle. It will probably solve your problems too.
Dave
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"babyoracle",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp.
We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please edit your profile and select a new name which meets the requirements.
Thanks.
Dave
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic