+ -
当前位置:首页 → 问答吧 → 数据库连接函数getConnection小问题,高手来看看

数据库连接函数getConnection小问题,高手来看看

时间:2011-11-25

来源:互联网

conn=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:DB1","sys","ora123");
报错:
connection as SYS should be as SYSDBA or SYSOPER

我新手,求教如何才能让sys用户连接上。
其他普通的用户我试过是可以的。

作者: lihongbo6668201   发布时间: 2011-11-25

conn=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:DB1","sys as sysdba","ora123");

没试过 只不过是猜想

作者: goldenfish1919   发布时间: 2011-11-25