oracle数据连接出现 login denied 问题

连接oracle数据库 账号和密码是全大写 会报连接出错问题(因为oracle帐号都是小写的所以会出现这个问题,所以 帐号 如果创建是小写的 话连接名最好小写,因为oracle登录有区分大小写)

java.sql.SQLException: ORA-01017: invalid username/password; logon denied

 at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
 at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:305)
 at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:272)
 at oracle.jdbc.driver.T4CTTIoauthenticate.receiveOauth(T4CTTIoauthenticate.java:648)
 at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:308)
 at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:348)
 at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:151)
 at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
 at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:563)
 at java.sql.DriverManager.getConnection(DriverManager.java:582)
 at java.sql.DriverManager.getConnection(DriverManager.java:185)
 at DB.masDataBaseConnection.<init>(masDataBaseConnection.java:17)
 at DB.test.sendMessage(test.java:24)
 at DB.test.main(test.java:16)
java.lang.NullPointerExceptionthis.conn2null

 at DB.test.sendMessage(test.java:29)
 at DB.test.main(test.java:16)

or

posted on 2012-03-13 20:32  阳光总在风雨后001  阅读(4920)  评论(0编辑  收藏  举报

导航