[oracle@localhost admin]$ sqlplus / as sysdbaSQL*Plus: Release 11.2.0.4.0 Production on Tue Apr 15 08:26:25 2014Copyright (c) 1982, 2013, Oracle. All rights reserved.ERROR: ORA-01017: invalid username/password; logon denied Enter user-name: *********************************
[oracle@localhost admin]$ sqlplus / as sysdbaSQL*Plus: Release 11.2.0.4.0 Production on Tue Apr 15 08:32:23 2014Copyright (c) 1982, 2013, Oracle. All rights reserved.ERROR: ORA-01017: invalid username/password; logon denied Enter user-name: sys as sysdba Enter password: ERROR: ORA-01017: invalid username/password; logon denied Enter user-name: sys Enter password: ERROR: ORA-01017: invalid username/password; logon denied SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus [oracle@localhost admin]$ *******************************
[oracle@localhost admin]$ sqlplus / as sysdbaSQL*Plus: Release 11.2.0.4.0 Production on Tue Apr 15 08:34:24 2014Copyright (c) 1982, 2013, Oracle. All rights reserved.ERROR: ORA-01017: invalid username/password; logon denied Enter user-name: sys as sysdba Enter password: ERROR: ORA-01017: invalid username/password; logon denied Enter user-name: sys Enter password: ERROR: ORA-01017: invalid username/password; logon denied SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus [oracle@localhost admin]$*******************************
[oracle@localhost admin]$ sqlplus / as sysdbaSQL*Plus: Release 11.2.0.4.0 Production on Tue Apr 15 08:44:08 2014Copyright (c) 1982, 2013, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing optionsSQL> alter user sys identified by oracle;User altered.SQL>exit
[oracle@localhost admin]$ sqlplus / as sysdbaSQL*Plus: Release 11.2.0.4.0 Production on Tue Apr 15 08:45:41 2014Copyright (c) 1982, 2013, Oracle. All rights reserved.ERROR: ORA-01017: invalid username/password; logon denied Enter user-name: sys as sysdba Enter password: ERROR: ORA-01017: invalid username/password; logon denied Enter user-name:*******************************
看来还得用orapw<SID>的文件来对应。
[oracle@localhost dbs]$ orapwd file=orapworclEnter password for SYS: [oracle@localhost dbs]$ 输入的口令是刚才在数据库中设置的口令。
然后,再登陆看看:
此时,可以登陆成功了:
[oracle@localhost admin]$ sqlplus / as sysdbaSQL*Plus: Release 11.2.0.4.0 Production on Tue Apr 15 08:47:58 2014Copyright (c) 1982, 2013, Oracle. All rights reserved.ERROR: ORA-01017: invalid username/password; logon denied Enter user-name: sys as sysdba Enter password:Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing optionsSQL>更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12本文永久更新链接地址