日期:2014-05-16 浏览次数:20426 次
jdbc.properties driver=oracle.jdbc.driver.OracleDriver url=jdbc:oracle:thin:@127.0.0.1:1521:orcl username=sys password=password
Exception in thread "main" java.sql.SQLException: ORA-28009: connection as SYS should be as SYSDBA or SYSOPER
username=sys as sysdba就可以连接了!
Connection c = DriverManager.getConnection(url, "sys as sysdba", "password");