eclipse连接oracle数据库
来源:互联网 发布:if you十三国语言知乎 编辑:程序博客网 时间:2024/05/21 10:11
第一步:配置好oracle的环境变量
第二步把jar包导入到reference libraries
点击工程名build path->add external......
第三部具体代码
public class hello {
@SuppressWarnings("unused")
public static void main(String[] args) {
System.out.println("Hello World!");
@SuppressWarnings("unused")
public static void main(String[] args) {
System.out.println("Hello World!");
String user="SYSTEM";
String passwd="Zhuying123";
String url="jdbc:oracle:thin:@localhost:1521:orcl";
try
{
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection connection=DriverManager.getConnection(url, user, passwd);
System.out.println("success");
{
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection connection=DriverManager.getConnection(url, user, passwd);
System.out.println("success");
}catch (SQLException e) {
// TODO: handle exception
e.printStackTrace();
}
catch (ClassNotFoundException e) {
// TODO: handle exception
e.printStackTrace();
}
}
}
// TODO: handle exception
e.printStackTrace();
}
catch (ClassNotFoundException e) {
// TODO: handle exception
e.printStackTrace();
}
}
}
0 0
- Eclipse 连接 oracle 数据库
- Eclipse 连接Oracle数据库
- eclipse连接oracle数据库
- Eclipse连接Oracle数据库介绍
- eclipse连接数据库(oracle)
- eclipse连接Oracle数据库和MySQL数据库
- Eclipse是如何连接Oracle数据库的
- 讲解Eclipse连接Oracle数据库的具体步骤
- Eclipse是如何连接Oracle数据库的
- eclipse开发jsp连接Oracle数据库问题
- Eclipse连接Oracle数据库的具体步骤
- eclipse连接oracle数据库的方法
- Eclipse是如何连接Oracle数据库的
- Eclipse连接Oracle数据库的方法
- Eclipse是如何连接Oracle数据库的
- Eclipse连接Oracle数据库的具体步骤
- eclipse+Tomcat+JSP+oracle连接数据库
- 用JDBC连接Oracle数据库 via Eclipse
- 摄影通俗名词解释
- 【mark一下语法】欢迎使用CSDN-markdown编辑器
- Android4.4 无Proximity Sensor的设备拨号中实现自动灭屏
- 游戏UI框架设计(二)
- jquery.validate的addMethod中的方法添加参数
- eclipse连接oracle数据库
- 【Mybatis】(三)动态SQL
- C#中ZedGraph控件的下载和使用
- STL常用算法模板
- PAT B1007. 素数对猜想 (20)
- c++第二次试验:求两点距离
- 剑指Offer:用两个栈实现队列
- POJ 1015 Jury Compromise
- 脏读