dba_segments之segment_type='TEMPORARY'
TEMPORARY:臨時段。除了磁碟排序產生臨時段之外,臨時表也會有臨時段。另外,在CTAS過程中,如果SQL還沒有最終完成,這個時候的表對應的段為TEMPORARY表,只有在SQL執行的最後將TEMPORARY段改為TABLE段。比如:
SQL> create table t2 as select * from dba_objects;
在執行上面語句的同時,執行:
SQL> select segment_type,owner,segment_name from dba_segments where segment_type=’TEMPORARY’;
SEGMENT_TYPE OWNER SEGMENT_NAME
------------------ ------------------------------ --------------------------------------------
TEMPORARY SYS 1.84337
可以看到臨時段,在CTAS執行完之後,我們可以看到:
SQL> select segment_type,owner,segment_name from dba_segments where segment_type=’TEMPORARY’;
未選定行
SQL> select header_file,header_block from dba_segments where wner=USER and segment_name=’T2′;
HEADER_FILE HEADER_BLOCK
----------- ------------
1 84337
可以看到,之前的臨時段(其段名為一個特別的名字1.84337,段頭的檔案號和塊號),與CTAS後的表的段頭一致。
另外在表和索引的MOVE、REBUILD階段也會有臨時段。所以臨時段不一定是在臨時表中,在普通的表空間中也可能會存在。
注意在排序段和臨時表的段在並沒有在DBA_SEGMENTS檢視,而是在V$TEMPSEG_USAGE檢視中。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9240380/viewspace-759630/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- GLOBAL TEMPORARY TABLE(轉)
- [virtualbox] temporary failure in name resolutionAI
- SpringBoot檔案上傳異常之提示The temporary upload location xxx is not validSpring Boot
- Find and Fix the Mismatch Between DBA_SEGMENTS and DBA_EXTENTS ViewsView
- Temporary failure resolving ‘archive.ubuntu.com‘AIHiveUbuntu
- Sybase IQ 錯誤 : Temporary space limit exceededMIT
- ftp_rawlist: Unable to create temporary file.FTP
- temporary、interim、tentative和provisional的區別
- Resolving archive.cloudera.com... failed: Temporary failure in nameHiveCloudAI
- [20181112]Private Temporary Tables Oracle Database 18C.txtOracleDatabase
- 【MySQL】ERROR 1878 (HY000): Temporary file write failure.MySqlErrorAI
- 淺談Using filesort和Using temporary 為什麼這麼慢
- [20230227][20230109]Oracle Global Temporary Table ORA-01555 and Undo Retention.tOracle
- 發現dba_segments和dba_extents中統計段空間大小居然不一樣
- oracle ocp 19c考題,科目082考試題-temporary undoOracle
- mac 下vscode 更新時提示:Could not create temporary directory: 許可權被拒絕MacVSCode
- [20200819]12c Global Temporary table 統計資訊的收集的疑問.txt
- win10系統沒有方法刪除temporary internet files檔案怎麼辦Win10
- 漢字之美,拼音之韻
- PHP之string之ord()函式使用PHP函式
- 深入Spring之IOC之載入BeanDefinitionSpringBean
- JavaScript之thisJavaScript
- 若之
- 計算方法之祖沖之的精度
- Kubernetes安裝之八:配置master之schedulerAST
- vue 兄弟元件之間傳值之busVue元件
- 《碼農翻身》之浪潮之巔的WebWeb
- 揭秘ORACLE備份之----RMAN之五(CATALOG)Oracle
- React之元件(component)之間的通訊React元件
- PHP之string之str_split()函式使用PHP函式
- AI犯錯誰之過?切勿盲目相信之AI
- Java常用資料結構之Set之TreeSetJava資料結構
- PHP之string之str_pad()函式使用PHP函式
- flutter之從零開始搭建(一)之 BottomNavigationBarFlutterNavigation
- kubernetes實踐之五十五:kubectl之配置kubeconfig
- 序列SRAM和FRAM之間的相似之處
- 計算機網路之HTTP之概況計算機網路HTTP
- 前端之資料模擬之Mock.js前端MockJS
- RxSwift 之 ObservableSwift