ORA-01017: Invalid username/password; logon denied(用户名/密码无效;登录被拒绝)
Oracle含义
连接数据库时提供的用户名或密码不正确,登录被拒绝。
原因
密码错误、用户名错误、区分大小写的密码设置(SEC_CASE_SENSITIVE_LOGON)与预期不符、密码已被更改,或应用连接字符串中的凭据已过时。
解决方法
核实用户名和密码。必要时以 DBA 身份重置密码:ALTER USER app_user IDENTIFIED BY new_password。检查用户是否存在且未被锁定:SELECT username, account_status FROM dba_users。使用 12c+ 的密码哈希版本时,11g 客户端可能无法连接;请检查 SQLNET.ALLOWED_LOGON_VERSION_SERVER 设置。
同一数据库的其他条目
- ORA-00001Unique constraint violated(违反唯一约束)
- ORA-00054Resource busy and acquire with NOWAIT specified or timeout expired(资源正忙,且指定了 NOWAIT 或等待超时)
- ORA-00060Deadlock detected while waiting for resource(等待资源时检测到死锁)
- ORA-01555Snapshot too old: rollback segment number too small(快照过旧:回滚段编号过小)
- ORA-01652Unable to extend temp segment by N in tablespace(无法在表空间中将临时段扩展 N)
- ORA-04031Unable to allocate N bytes of shared memory(无法分配 N 字节共享内存)
- ORA-12154TNS: could not resolve the connect identifier specified(TNS:无法解析指定的连接标识符)