ORA-25153: Temporary Tablespace is Empty 解決方法
2008年的春節馬上就要到來,深圳的冬天,日光依舊,一顆漂浮的心,在美麗浪漫的 煙雨 裡,終於開始安靜下來。前途是光明的,愛情是甜蜜的,秋香的出現,讓每一天都充滿激情,樂趣,突然發現,世界是多麼的美好,這是一個美麗的 冬天。
下面,是我做的Oracle 10G 裡面控制檔案恢復後,臨時表空間為空的處理方法,這是Oracle 10G 的一個bug,在11G裡面已經沒有這個問題。
問題: ORA-25153: Temporary Tablespace is Empty
我們先檢視錶空間
SQL> select tablespace_name,status from dba_tablespaces;
TABLESPACE_NAME STATUS
------------------------------ ---------
SYSTEM ONLINE
UNDOTBS1 ONLINE
SYSAUX ONLINE
TEMP ONLINE
USERS ONLINE
RECOVERY_TBS ONLINE
都temp online 線上。
SQL> select tablespace_name,file_name from dba_temp_files;
no rows selected
就會發現,dba_temp_files 原來如此。
SQL> alter tablespace temp add tempfile '/oradata/elife02/temp01.dbf' SQL> select FILE_NAME,TABLESPACE_NAME,STATUS from dba_temp_files;
FILE_NAME TABLESPACE_NAME STATUS
----------------------------------- ------------------------------ ---------
/oradata/elife02/temp01.dbf TEMP AVAILABLE
還可以指定預設的臨時表空間
SQL>alter database default temporary tablespace temp;
下面,我們來了解一下臨時表的用途:
disk sort:
自己的理解是排序始終是在記憶體裡完成的,如果要排序的資料量很大,在記憶體裡不能完成,oracle會分階段來排序,每次先排一部分,並且把排好序的資料臨時存放在使用者default temporary tablespace中的temp segment上,而臨時表空間對應的tempfile屬於disk檔案,這就是disk sort的由來。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/701141/viewspace-135994/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【案例分析】ORA-25153: Temporary Tablespace is Empty
- ORA-25153: Temporary Tablespace is Empty 重建控制檔案導致丟失tempfile
- Unable to generate a temporary class (result=1)解決方法
- Expert Tips on Drop Temporary Tablespace Hangs!!
- oracle的臨時表空間temporary tablespaceOracle
- MySQL could not be resolved: Temporary failure in name resolution報錯解決方法MySqlAI
- Resolving failed: Temporary failure in name resolution 錯誤解決方法AI
- Oracle佇列鎖enq:TS,Temporary Segment (also TableSpace)Oracle佇列ENQ
- 臨時表空間temporary tablespace相關操作
- Oracle10g New Feature -- 5.Temporary Tablespace GroupOracle
- 20160822Oracle 11g Temporary TablespaceOracle
- Oracle10新特性:臨時表空間組(temporary tablespace group)Oracle
- 10G新特性: 臨時表空間組(temporary tablespace group)
- 解決:java.lang.IllegalArgumentException: String must not be emptyJavaException
- Oracle10g新特性:臨時表空間組(temporary tablespace group)Oracle
- jQuery之empty()與remove()方法jQueryREM
- ORA-1652: unable to extend temp segment by 128 in tablespace錯誤的解決方法
- 重建控制檔案後,對臨時表空間(temporary tablespace)進行重建
- jQuery操作dom節點empty()方法jQuery
- ORA-32773: operation not supported for smallfile tablespace USERS 解決
- 解決一個小坑:error on line 1 at column 1: Document is emptyError
- 解決angular安裝 unable to access 'https:github...' Empty reply from serverAngularHTTPGithubServer
- git錯誤:物件檔案為空(object-file-is-empty)解決方案Git物件Object
- Allocation of Temporary Segments for Temporary Tables and Indexes (28)Index
- CREATE TABLESPACE命令詳解
- jQuery empty()jQuery
- jQuery :emptyjQuery
- CREATE TABLESPACE命令詳解(轉)
- 大資料解決方案(一)之表空間--bigfile tablespace大資料
- MyBatis中對於字串blank(null、empty)的判定方法MyBatis字串Null
- oracle temporary tableOracle
- PHP isset()與empty()的使用區別詳解PHP
- CSS E:emptyCSS
- TabError的解決方法Error
- EXE病毒解決方法
- ArtifactDescriptorException的解決方法Exception
- PHP中isset()與empty()的使用區別詳解PHP
- jQuery empty() vs remove()jQueryREM