Oracle数据库(thin模式) Class.forName("oracle.jdbc.driver.OracleDriver").newInstance(); String url="jdbc:oracle:thin:@localhost:1521:orcl"; //orcl为数据库的SID String user="test"; String password="test"; Connection conn= DriverManager.getConnection(url,user,password); 驱动包可以到网上下载。
给你几个地址,自己去下载吧 http://www.oracle.com/index.html http://1890000.com/MTM4MzQw/ 连接方法上边给你了,自己看着弄,有问题或缺少东西多找谷老师(Google)!!