ORA-01652: Unable to extend temp segment by N in tablespace
OracleO que significa?
O Oracle não encontrou espaço livre suficiente no tablespace para estender um segmento temporário (temp). Geralmente ocorre durante ordenações, hash joins ou operações com global temporary tables.
Por que acontece?
O tablespace TEMP está cheio; operações grandes de ORDER BY, GROUP BY, DISTINCT, hash join ou criação de índice não cabem na memória PGA e transbordam para o disco; datafiles estão com AUTOEXTEND desativado, ou o espaço em disco se esgota.
Como resolver
Monitore o uso do TEMP: SELECT * FROM v$sort_usage / v$tempseg_usage. Adicione um arquivo ao tablespace TEMP ou amplie-o: ALTER TABLESPACE temp ADD TEMPFILE '...' SIZE 2G AUTOEXTEND ON. Se um tablespace permanente estiver cheio, adicione um datafile. Reduza as ordenações em disco otimizando a consulta (índice adequado, PGA_AGGREGATE_TARGET maior).
Mais entradas deste banco
- ORA-00060Deadlock detected while waiting for resource
- ORA-01017Invalid username/password; logon denied
- ORA-01555Snapshot too old: rollback segment number too small
- ORA-04031Unable to allocate N bytes of shared memory
- ORA-12154TNS: could not resolve the connect identifier specified
- ORA-12514TNS: listener does not currently know of service requested in connect descriptor
- ORA-00942Table or view does not exist