fri jul 15 06:03:03 2011
ora-1652: unable to extend temp segment by 128 in tablespace temp ……
fri jul 15 08:02:59 2011
ora-1652: unable to extend temp segment by 128 in tablespace temp
通過檢視表空間發現,
temp
表空間被擴充套件到了
32g,而原先設定的只有
4g,我們通過如下語句分析
temp
表空間有什麼東西這麼耗空間:
selectse.username,sid,serial#,sql_address,machine, program,tablespace,segtype,contents
fromv$session se,v$sort_usage su
wherese.saddr=su.session_addr
orderbymachine
查詢結果如下:
username
sid
serial#
sql_address
machine
program
tablespace
segtype
contents
phc831
30700
port-web
temp
lob_data
temporary
phc897
10837
00port-web
temp
lob_data
temporary
phc928
62946
00port-web
temp
lob_data
temporary
phc893
59116
00port-web
temp
lob_data
temporary
phc1081
30775
00port-web
temp
lob_data
temporary
phc1025
24989
00port-web
temp
lob_data
temporary
phc907
10378
00workgroup\port-sjjh2
plsqldev.exe
temp
lob_data
temporary
eport_admin
1080
63733
000000025b61af28
workgroup\test-wztjfz
logread.exe
temp
sort
temporary
eport_admin
92343188
000000025b61af28
workgroup\test-wztjfz
logread.exe
temp
sort
temporary
eport_admin
1047
23000000025b61af28
workgroup\test-wztjfz
logread.exe
temp
sort
temporary
eport_admin
92929713
000000025b61af28
workgroup\test-wztjfz
logread.exe
temp
sort
temporary
eport_admin
81644578
000000025b61af28
workgroup\test-wztjfz
logread.exe
temp
sort
temporary
eport_admin
91020498
000000025b61af28
workgroup\test-wztjfz
logread.exe
temp
sort
temporary
eport_admin
96950313
000000025b61af28
workgroup\test-wztjfz
logread.exe
temp
sort
temporary
eport_admin
91557
000000025b61af28
workgroup\test-wztjfz
logread.exe
temp
sort
temporary
eport_admin
8767930
000000025b61af28
workgroup\test-wztjfz
logread.exe
temp
sort
temporary
eport_admin
90640178
000000025b61af28
workgroup\test-wztjfz
logread.exe
temp
sort
temporary
eport_admin
83626868
000000025b61af28
workgroup\test-wztjfz
logread.exe
temp
sort
temporary
eport_admin
91250385
000000025b61af28
workgroup\test-wztjfz
logread.exe
temp
sort
temporary
仔細看如下查詢結果,
eport_admin
是以前很少見到的,懷疑
logread.exe
存在嫌疑,考慮到這只是個資料同步程序,考慮如下命令
kill掉:
alter system kill session '1080,63733';
alter system kill session '923,43188';
alter system kill session '1047,23';
alter system kill session '929,29713';
alter system kill session '816,44578';
alter system kill session '910,20498';
alter system kill session '969,50313';
alter system kill session '915,57';
alter system kill session '876,7930';
alter system kill session '906,40178';
alter system kill session '836,26868';
alter system kill session '912,50385';
語句執行後
eport_admin
的程序在
temp
表空間消失,再來看
temp
表空間,已經基本清空:
name
size (mb)
used (mb)
used (%)
free (mb)
status
datafiles
type
temp
32,767.00
470.1
32,720.00
1temporary
結論:顯然
eport_admin
下的logread.exe
存在大量表空間的開銷,這在業務高峰期是非常危險的現象。
TEMP表空間爆滿處理一例
今早巡檢資料庫發現如下報錯 fri jul 15 06 03 03 2011 ora 1652 unable to extend temp segment by 128 in tablespace temp fri jul 15 08 02 59 2011 ora 1652 unable to ex...
臨時表空間爆滿的處理辦法
1這個是檢視當前占用臨時表空間的sql select se.username,se.sid,su.extents,su.blocks to number rtrim p.value as space,tablespace,segtype,sql text from v sort usage su,v...
資料庫縮小表空間一例
案例環境 今天啟動應用程式,程式報錯如下 exceptionmessage ora 01653 表 hbxnb cs.bz29 無法通過 1024 在表空間 users 中 擴充套件 ora 06512 在 hbxnb cs.dbms context line 40 ora 01653 表 hbxn...