jdbc以sysdba权限连接oracle





private ConnectionOriDB(String url,String username,String password){
  try {
   Class.forName("oracle.jdbc.driver.OracleDriver");
   Properties conProps = new Properties();
         conProps.put("user", username);
         conProps.put("password", password);
         //conProps.put("defaultRowPrefetch", "15");
         conProps.put("internal_logon", "sysdba");
   conn = DriverManager.getConnection(
     "jdbc:oracle:thin:@"+url, conProps);
   
  } catch (Exception e) {
   // TODO Auto-generated catch block
   e.printStackTrace();
  }
 }




Related posts

coded by nessus
分享:  DeliciousGReader鲜果豆瓣CSDN网摘
Trackback

no comment untill now

Add your comment now

无觅相关文章插件