The following statements sometimes require the use of a temporary segment:
■ CREATE INDEX
■ SELECT ... ORDER BY
■ SELECT DISTINCT ...
■ SELECT ... GROUP BY
■ SELECT . . . UNION
■ SELECT ... INTERSECT
■ SELECT ... MINUS
Some unindexed joins and correlated subqueries can require use of a temporary
segment. For example, if a query contains a DISTINCT clause, a GROUP BY, and an
ORDER BY, Oracle can require as many as two temporary segments.
1. 以上7种情况可能用到临时段
2. Oracle一条SQL最多可以申请两个临时段.
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/10599713/viewspace-968972/ ,如需转载,请注明出处,否则将追究法律责任。