Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();

  Properties conProps = new Properties();
        conProps.put("user", "sys");
        conProps.put("password", "root");
        conProps.put("defaultRowPrefetch", "15");
        conProps.put("internal_logon", "sysdba");

   conn = DriverManager.getConnection(
                "jdbc:oracle:thin:@192.168.200.93:1521:orcl", conProps);

 通过以上,我们可以用JDBC实现一个 conn as sysdba的目的。

相关文章:

  • 2021-08-07
  • 2022-12-23
  • 2021-04-05
  • 2021-06-22
  • 2022-12-23
  • 2022-03-08
  • 2022-12-23
猜你喜欢
  • 2021-08-28
  • 2021-05-14
  • 2022-12-23
  • 2022-12-23
  • 2021-11-09
  • 2021-11-13
  • 2021-11-21
相关资源
相似解决方案