Operations that Require Temporary Segments (26)

tsinglee發表於2007-09-11

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最多可以申請兩個臨時段.

[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10599713/viewspace-968972/,如需轉載,請註明出處,否則將追究法律責任。

相關文章