ITPub博客

首页 > 数据库 > Oracle > orapw[.ora]oracle口令文件

orapw[.ora]oracle口令文件

原创 Oracle 作者:lsfzly 时间:2017-06-14 11:33:45 0 删除 编辑
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> 

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29362142/viewspace-2140718/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: linux下安装 rlwrap
请登录后发表评论 登录
全部评论

注册时间:2013-12-02

  • 博文量
    122
  • 访问量
    97505