如果你的ORACEL安装了客户端的话你就用 thin模式方式访问,把oracle 里对JDBC的支持的文件COPY到,TOMCAT下的 /common/lib下,就开始,写代码了
程序:
Class.forname("oracle.jdbc.driver.OracleDriver");
Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:你的数据库的SID",user,password);
....................