- 最后登录
- 2018-11-1
- 在线时间
- 377 小时
- 威望
- 29
- 金钱
- 6866
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 891
- 精华
- 4
- 积分
- 29
- UID
- 1
|
4#
发表于 2013-9-24 22:13:40
由于在建立连接之前 根本没有session,所以数据库用户名这个信息并不存在于进程或SGA中,直到建立session完成后才会有。
通过 sqlplus 登录但不输入密码:
[oracle@vrh8 ~]$ sqlplus getme
SQL*Plus: Release 10.2.0.5.0 - Production on Tue Sep 24 22:06:52 2013
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
Enter password:
ERROR:
ORA-01017: invalid username/password; logon denied
Enter user-name: getme
Enter password:
ERROR:
ORA-01005: null password given; logon denied
Enter user-name:
ERROR:
ORA-01017: invalid username/password; logon denied
dump对应的server process,这个时候只有server process 而没有session
[oracle@vrh8 ~]$ ps -ef|grep LOCAL=YES
oracle 11863 11860 0 22:06 ? 00:00:00 oracleG10R25 (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
oracle 11898 11821 0 22:08 pts/10 00:00:00 grep LOCAL=YES
[oracle@vrh8 ~]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.5.0 - Production on Tue Sep 24 22:08:39 2013
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> oradebug setospid 11863;
Oracle pid: 23, Unix process pid: 11863, image: oracle@vrh8.oracle.com (TNS V1-V3)
SQL> oradebug dump processstate 10;
Statement processed.
查看processstate可以发现没有 db username 信息,因为还没有session state
|
|