网站首页 > 数据库教程 > Oracle教程 > Oracle Database 10g Express Edition与jsp连接问题

Oracle Database 10g Express Edition与jsp连接问题

  • 作者:互联网
  • 时间:2009-12-31 16:50:30

在Oracle安装目录中有许多。jar包文件,把其中的oj***14.jar复制到tomcat6lib中,并且将oj***14.jar的路径写入环境变量classpath中,Cl***.forName("or***e.jdbc.driver.OracleDriver").newInstance();

查看D:oracleapporacleproduct10.2.0serverNETWORKlogli***ner.log日志文件

String url="jdbc:oracle:thin:@localhost:1521(端口号):xe",localhost为主机名。

String user=" ",非SYS/SYSDBA

String password=******;

Connection co***DriverManager.getConnection(url,user,password);

在进行查询的时候,对大小写敏感,文件名要用"filename";

 

本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/spark_lx/archive/2009/12/31/5109799.aspx