- 最后登录
- 2016-5-26
- 在线时间
- 35 小时
- 威望
- 8
- 金钱
- 208
- 注册时间
- 2013-1-14
- 阅读权限
- 10
- 帖子
- 60
- 精华
- 0
- 积分
- 8
- UID
- 864
|
2#
发表于 2015-7-27 15:36:51
1.查看密码文件
[oracle@mha-6 admin]$ ls -l $ORACLE_HOME/dbs/orapwdocp11g
-rw-r-----. 1 oracle oinstall 1536 Jul 26 23:04 /u01/oracle/11g/dbs/orapwdocp11g
2.验证密码文件
#我这里屏蔽了os认证,所以不输入密码无法登陆
[oracle@mha-6 admin]$ sqlplus / as sysdba
ERROR:
ORA-01031: insufficient privileges
[oracle@mha-6 admin]$ sqlplus sys/oracle as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Mon Jul 27 15:28:34 2015
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>
#为了验证密码文件中的密码正确我特意输入一个错误的密码
[oracle@mha-6 admin]$ sqlplus sys/oracle1 as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Mon Jul 27 15:28:46 2015
Copyright (c) 1982, 2011, Oracle. All rights reserved.
ERROR:
ORA-01017: invalid username/password; logon denied
3.查看用户id
[oracle@mha-6 admin]$ who am i|id
uid=502(oracle) gid=501(oinstall) groups=501(oinstall),502(dba)
|
|