【发布时间】:2017-07-01 13:48:10
【问题描述】:
我正在尝试在 Oracle 中执行以下查询:
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 上可能会得到更好的回答。
-
错误信息具体告诉你要采取什么行动。
-
@OldProgrammer,这是一个很好的例子,为什么有时从 oracle 错误消息中获取“行动”建议并不总是最好的行动方案:)
标签: oracle oracle-sqldeveloper temp segment tablespace