我想在Oracle中執行以下查詢:無法通過128在表空間TEMP延長臨時段
SELECT DISTINCT
t4.s_studentreference "Student ID",
t3.p_surname "Surname",
t3.p_forenames "Forenames",
t1.m_reference "Course",
t2.e_name "Enrolment Name"
FROM student t4,
person t3,
enrolment t2,
course t1
WHERE t4.s_id(+) =t3.p_id
AND (t2.e_student=t3.p_id)
AND (t2.e_course =t1.m_id)
AND (t1.m_reference LIKE 'LL563%15')
OR (t1.m_reference LIKE 'LL562%15')
OR (t1.m_reference LIKE 'LL563%16')
OR (t1.m_reference LIKE 'LL562%16')
不過,我得到以下錯誤:
ORA-01652: unable to extend temp segment by 128 in tablespace TEMP
01652. 00000 - "unable to extend temp segment by %s in tablespace %s"
*Cause: Failed to allocate an extent of the required number of blocks for
a temporary segment in the tablespace indicated.
*Action: Use ALTER TABLESPACE ADD DATAFILE statement to add one or more
files to the tablespace indicated.
我用下面的查詢找到臨時段空間:
select inst_id, tablespace_name, total_blocks, used_blocks, free_blocks
from gv$sort_segment;
給出:
INST_ID, TABLESPACE_NAME, TOTAL_BLOCKS, USED_BLOCKS, FREE_BLOCKS
1 TEMP 3199872 15360 3184512
任何想法如何解決?
感謝, 阿魯娜
我覺得這個問題可以在dba.stackexchange.com上得到更好的回答。 – BriteSponge
錯誤消息明確告訴您要採取何種措施。 – OldProgrammer
@OldProgrammer,這是一個很好的例子,爲什麼*有時*從oracle錯誤消息中獲取「Action」的建議並不總是最好的行動方式:) –