如果你的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);
....................
程序:
Class.forname("oracle.jdbc.driver.OracleDriver");
Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:你的数据库的SID",user,password);
....................
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货