问题描述
- ORACLE:ORA-01017错误
-
如题 检查了dataSource.properties中数据库用户密码没有错误Struts Problem Report
Struts has detected an unhandled exception:
Messages:
ORA-01017: invalid username/password; logon denied
Cannot create PoolableConnectionFactory (ORA-01017: invalid username/password; logon denied )
Cannot open connection
Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Cannot open connection
File: oracle/jdbc/driver/DatabaseError.java
Line number: 112
解决方案
ORA-01017: invalid username/password; logon denied
说的很清楚,用户名密码不正确,登录被拒绝。
解决方案二:
我猜可能是大小写的问题,oracle现在对用户名/密码可以设为大小写敏感了
你执行一下sql,如果看到大小写敏感,改成不敏感就好了
SQL> SHOW PARAMETER SEC_CASE_SENSITIVE_LOGON
NAME TYPE VALUE
sec_case_sensitive_logon boolean TRUE
SQL> ALTER SYSTEM SET SEC_CASE_SENSITIVE_LOGON = FALSE;
解决方案三:
填写正确的用户名和密码。
如果都忘掉了,修改oracle_homeNETWORKADMIN 目录下面的sqlnet.ora文件
SQLNET.AUTHENTICATION_SERVICES= (NTS),修改成这样。
然后sqlplus/nolog;
conn / as sysdba
alter user xxx identified by xxx;
通过这样子修改密码,然后登录