- 论坛徽章:
- 0
|
这是HP-UNIX平台
nuh302:UPP1:/ora/admin#uname
HP-UX
用下面的命令可以显示用户名
nuh302:UPP1:/ora/admin#top -d 1 -h
System: nuh302 Wed Jul 30 19:54:54 2014
Load averages: 0.37, 0.27, 0.24
237 processes: 208 sleeping, 29 running
Cpu states: (avg)
LOAD USER NICE SYS IDLE BLOCK SWAIT INTR SSYS
0.37 5.0% 0.0% 14.9% 80.2% 0.0% 0.0% 0.0% 0.0%
Memory: 8238556K (3508160K) real, 8581808K (3729892K) virtual, 10082728K free Page# 1/7
CPU TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND
7 ? 26858 oracle 152 20 596M 6476K sleep 14:58 38.22 38.15 oracleUPPZ
1 ? 44 root 152 20 7424K 7424K run 10400:29 15.43 15.40 vxfsd
4 ? 13276 root 152 20 24188K 4752K sleep 0:36 15.05 15.02 bpbkar
3 ? 17594 oracle 152 20 624M 27532K sleep 6:56 14.22 14.19 oracleUPPZ
6 ? 14117 oracle 152 20 623M 22144K sleep 36:09 11.42 11.40 ora_lgwr_UPPZ
4 ? 14127 oracle 149 20 599M 9856K sleep 15:13 7.84 7.82 ora_arc1_UPPZ
2 ? 5184 root 152 20 32K 32K sleep 1320:29 6.68 6.67 biod
6 ? 5185 root 152 20 32K 32K run 1320:23 6.67 6.66 biod
0 ? 5182 root 154 20 32K 32K sleep 1320:01 6.66 6.65 biod
3 ? 5183 root 154 20 32K 32K sleep 1319:50 6.63 6.62 biod
2 ? 14115 oracle 152 20 607M 18048K sleep 12:06 6.43 6.42 ora_dbw0_UPPZ
2 ? 27 root 100 20 32K 32K sleep 397:45 1.93 1.92 smpsched
4 ? 34 root 100 20 32K 32K sleep 396:59 1.93 1.92 smpsched
但如果加上选项 -u oracle
nuh302:UPP1:/ora/admin#top -d 1 -h -u oracle
System: nuh302 Wed Jul 30 19:58:49 2014
Load averages: 0.07, 0.17, 0.21
232 processes: 204 sleeping, 28 running
Cpu states: (avg)
LOAD USER NICE SYS IDLE BLOCK SWAIT INTR SSYS
0.07 1.0% 0.0% 2.0% 97.0% 0.0% 0.0% 0.0% 0.0%
Memory: 8218816K (3785836K) real, 8553364K (4001696K) virtual, 10105952K free Page# 1/7
CPU TTY PID UID PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND
3 ? 17594 150 152 20 624M 27532K sleep 7:42 24.17 24.13 oracleUPPZ
7 ? 44 0 152 20 7424K 7424K run 10400:31 1.07 1.07 vxfsd
6 ? 14117 150 156 20 623M 22144K sleep 36:19 0.87 0.87 ora_lgwr_UPPZ
1 ? 14115 150 156 20 607M 18048K sleep 12:13 0.52 0.52 ora_dbw0_UPPZ
第四列变成了 UID,只显示用户ID,如果才能只选项oracle用户,又显示用户名?
|
|