我想在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”的建议并不总是最好的行动方式:) –