标题: 日志报错ORA-1652: unable to extend temp segment by 128 in tablespace TEMP [打印本页] 作者: 刘泽宇 时间: 2021-6-13 09:22 标题: 日志报错ORA-1652: unable to extend temp segment by 128 in tablespace TEMP 查看告警日志看到报错:
ORA-1652: unable to extend temp segment by 128 in tablespace TEMP
查看temp表空间大小
SQL> select tablespace_name,file_name,bytes/1024/1024/1024 file_size,autoextensible from dba_temp_files;
TABLESPACE_NAME FILE_NAME FILE_SIZE AUT
------------------------- ----------------------------------------- ----------- ---
TEMP +DATA/racdb/tempfile/temp02.dbf 10 NO
TEMP +DATA/racdb/tempfile/temp03.dbf 10 NO
TEMP +DATA/racdb/tempfile/temp01.dbf 10 NO
TEMP +DATA/racdb/tempfile/temp04.dbf 10 NO
查看导致direct path write等待事件的sql
SQL> select sql_id, count(*) from dba_hist_active_sess_history
where event = 'direct path write'
group by sql_id order by count(*) desc; 2 3
直接查看导致direct path write temp等待事件的sql
SQL> select sql_id, count(*) from dba_hist_active_sess_history
where event = 'direct path write temp'
group by sql_id order by count(*) desc; 2 3