There are many in the Oracle installation directory. jar package file, copy the ojdbc14.jar to tomcat6lib, and write the path of ojdbc14.jar into the environment variable classpath, Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
View the D:oracleapporacleproduct10.2.0serverNETWORKloglistener.log log file
String url="jdbc:oracle:thin:@localhost:1521 (port number):xe", localhost is the host name.
String user=" ", non-SYS/SYSDBA
String password=******;
Connection conn=DriverManager.getConnection(url,user,password);
When querying, it is case-sensitive, so use "filename" for the file name;
This article comes from the CSDN blog. Please indicate the source when reprinting: http://blog.csdn.net/spark_lx/archive/2009/12/31/5109799.aspx