[Oracle Script] check temp tablespace usage
select y.name,y.bytes/1024/1024 total_mb,(x.total_blocks*y.block_size)/1024/1024 used_mb,(y.bytes-x.total_blocks*y.block_size)/1024/1024 free_mb,
round((x.total_blocks*y.block_size)/y.bytes,4)*100 pct
from v$sort_segment x,(
select b.name,sum(a.bytes) bytes,a.block_size from v$tempfile a,v$tablespace b
where a.ts#=b.ts# group by b.name,a.block_size) y
where x.tablespace_name=y.name;
round((x.total_blocks*y.block_size)/y.bytes,4)*100 pct
from v$sort_segment x,(
select b.name,sum(a.bytes) bytes,a.block_size from v$tempfile a,v$tablespace b
where a.ts#=b.ts# group by b.name,a.block_size) y
where x.tablespace_name=y.name;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24237320/viewspace-2141489/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- [Oracle Script] check tablespace usage infoOracle
- [Oracle Script] Temporary Sort UsageOracle
- [Oracle Script] Rollback Segment UsageOracle
- Oracle 11g tablespace usageOracle
- [Oracle Script] check userOracle
- [Oracle Script] check latchOracle
- [Oracle Script] Undo Usage Per statusOracle
- [Oracle Script] Undo Usage Per sessionOracleSession
- [Oracle Script] check active sessionOracleSession
- [Oracle Script] check lock infoOracle
- [Oracle Script] check Literal SQLOracleSQL
- [Oracle Script] check object count by userOracleObject
- [Oracle Script] check File I/OOracle
- [Oracle] 檢視tablespace的使用率(Including temp tablespace)Oracle
- tablespace 大檔案,undo,temp tablespace
- Oracle - ORA-01652: unable to extend temp segment by 128 in tablespace TEMPOracle
- Tablespace Space Script
- [Shell] Linux monitor tablespace usageLinux
- check ftp success scriptFTP
- 4.Linux monitor tablespace usageLinux
- script of check repair ASM DISKGROUPAIASM
- Oracle10g新增的檢視dba_tablespace_usage_metricsOracle
- SAP WM中階Storage Type的Capacity Check – Usage check based on SUT
- recover database delete archivelogs skip tablespace temp;報錯DatabasedeleteHive
- SAP WM中階儲存型別的Capacity Check – Usage check based on material型別
- ORA-1652: unable to extend temp segment by 256 in tablespace PSAPTEMPAPT
- 【Oracle九大效能檢視】之8.v$sort_usage temp表空間的使用情況Oracle
- Oracle11g新增檢視查詢表空間使用率DBA_TABLESPACE_USAGE_METRICSOracle
- oracle scriptOracle
- Script to Detect Tablespace Fragmentation [ID 1020182.6]Fragment
- Oracle runInstaller 's UsageOracle
- Oracle NUMA usage recommendationOracle
- The DBA_TABLESPACE_USAGE_METRICS View Needs to be Rebuilt in 10g_738101.1ViewUI
- oracle temp 表空間Oracle
- Oracle Temp Table ConceptOracle
- [Oracle Script] LockOracle
- Oracle Database ScriptOracleDatabase
- ORACLE temp表的簡介Oracle