ora-01017 无效的用户名和密码
[oracle@FERMDB dbs]$ sqlplus sys@fermdb as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on 星期三 6月 14 11:12:23 2017
Copyright (c) 1982, 2013, Oracle. All rights reserved.
输入口令:
ERROR:
ORA-01017: invalid username/password; logon denied
sys口令是对的,但是登录提示口令无效
这种问题一般都是口令文件的问题,重建口令文件即可,口令文件存放的是sysdba sysoper的口令
口令文件存放位置:
linux:$ORACLE_HOME/dbs/orapw<SID>
win: $ORACLE_HOME/dbs/orapw<SID>.ora
重建命令:orapwd file=orapwd<SID>[.ora] password=oracle entries=1 force=y
file:口令文件名称
password:口令
entries:能存放sysdba sysoper的个数
force:是否覆盖原有的口令文件
重建后登录正常
[oracle@FERMDB dbs]$ sqlplus sys@fermdb as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on 星期三 6月 14 11:29:00 2017
Copyright (c) 1982, 2013, Oracle. All rights reserved.
输入口令:
连接到:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>
[oracle@FERMDB dbs]$ sqlplus sys@fermdb as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on 星期三 6月 14 11:12:23 2017
Copyright (c) 1982, 2013, Oracle. All rights reserved.
输入口令:
ERROR:
ORA-01017: invalid username/password; logon denied
sys口令是对的,但是登录提示口令无效
这种问题一般都是口令文件的问题,重建口令文件即可,口令文件存放的是sysdba sysoper的口令
口令文件存放位置:
linux:$ORACLE_HOME/dbs/orapw<SID>
win: $ORACLE_HOME/dbs/orapw<SID>.ora
重建命令:orapwd file=orapwd<SID>[.ora] password=oracle entries=1 force=y
file:口令文件名称
password:口令
entries:能存放sysdba sysoper的个数
force:是否覆盖原有的口令文件
重建后登录正常
[oracle@FERMDB dbs]$ sqlplus sys@fermdb as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on 星期三 6月 14 11:29:00 2017
Copyright (c) 1982, 2013, Oracle. All rights reserved.
输入口令:
连接到:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29362142/viewspace-2140718/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/29362142/viewspace-2140718/