???????????TOP???????????
???????????? ???????[ 2014/8/19 10:53:01 ] ?????????????? ?????
???????????????????????????????DBA??????????????????????????????????????????????????????????????????????????????????????????????
?????????????????????TOP????????????????????????????????????????????????????????????TOP??????????????OS PID?????
???????OS PID??V$PROCESS?????????????й???????????V$PROCESS?????????????????????????????????????????????????????????SESSION???????????????SQL??????????£????????????????????????????????????£???????????????????????????????????????????????????V$SESSION?????й??????????
??????????????????????????£????????????????????????????????????????????????????????????????????????TOP?????й????????????????CPU????????????
????1.???????????????????t1??????в????Щ?????
????SQL>create table t1 as select * from emp;
????SQL>insert into t1 as select * from t1;
????SQL>/
????SQL>/
????SQL>/
????SQL>/
???????T1????м??????????
????2.??3??4?????????б?t1?м????е???????????У???????????????
declare
v1 emp.sal%type;
begin
for n in 1..100 loop
for k in 1..100 loop
select count(*) into v1 from t1;
end loop;
dbms_lock.sleep(1);
end loop;
end;
/
????3.?????????????TOP???????CPU????????
top - 12:57:42 up 19 min?? 2 users?? load average: 1.18?? 0.35?? 0.23
Tasks: 132 total?? 2 running?? 130 sleeping?? 0 stopped?? 0 zombie
Cpu(s): 20.5%us?? 5.9%sy?? 0.0%ni?? 73.1%id?? 0.5%wa?? 0.0%hi?? 0.0%si?? 0.0%st
Mem: 1034664k total?? 883716k used?? 150948k free?? 125584k buffers
Swap: 4120664k total?? 0k used?? 4120664k free?? 609440k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
5182 oracle 19 0 368m 50m 48m S 37.9 5.0 0:03.57 oracle
1 root 15 0 2160 652 564 S 0.0 0.1 0:02.30 init
2 root RT -5 0 0 0 S 0.0 0.0 0:00.05 migration/0
3 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0
4 root RT -5 0 0 0 S 0.0 0.0 0:00.04 migration/1
5 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/1
6 root 10 -5 0 0 0 S 0.0 0.0 0:00.04 events/0
7 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 events/1
8 root 11 -5 0 0 0 S 0.0 0.0 0:00.01 khelper
9 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kthread
13 root 10 -5 0 0 0 S 0.0 0.0 0:00.10 kblockd/0
14 root 10 -5 0 0 0 S 0.0 0.0 0:00.02 kblockd/1
15 root 16 -5 0 0 0 S 0.0 0.0 0:00.00 kacpid
179 root 12 -5 0 0 0 S 0.0 0.0 0:00.00 cqueue/0
180 root 12 -5 0 0 0 S 0.0 0.0 0:00.00 cqueue/1
183 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 khubd
185 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kseriod
252 root 18 0 0 0 0 S 0.0 0.0 0:00.00 khungtaskd
253 root 17 0 0 0 0 S 0.0 0.0 0:00.00 pdflush
254 root 15 0 0 0 0 S 0.0 0.0 0:00.03 pdflush
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11