开发者社区> 问答> 正文

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

展开
收起
a123456678 2016-03-10 09:44:10 5096 0
1 条回答
写回答
取消 提交回答
  • 填写正确的用户名和密码。
    如果都忘掉了,修改oracle_homeNETWORKADMIN 目录下面的sqlnet.ora文件
    SQLNET.AUTHENTICATION_SERVICES= (NTS),修改成这样。
    然后sqlplus/nolog;
    conn / as sysdba
    alter user xxx identified by xxx;
    通过这样子修改密码,然后登录

    2019-07-17 18:56:51
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
PostgresChina2018_王帅_从Oracle到PostgreSQL的数据迁移 立即下载
Oracle云上最佳实践 立即下载
迁移 ORACLE 最佳实践 立即下载