链接ORACLE数据库代码

来源:百度知道 编辑:UC知道 时间:2024/05/09 13:37:50
谁能给我:链接ORACLE数据库代码

Java的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);

晕,你是基于什么语言下的啊,不同的语言连接数据库的机制都不一样啊~~