Java连接Oracle数据库的连接字符串

Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
String url = "jdbc:oracle:@localhost:1521:orcl";
String user = "sa";
String password = "123456";
Connection conn = DriverManager.getConnection(url,user,password);

你可能感兴趣的:(java,oracle,数据库,jdbc,String,user)