Oracle 11g tablespace usage
在pl sql developer的preferences-->files-->directories-->command files新增檔案sp.sp的內容如下:
set pagesize 100
set timing on
select x.tablespace_name,y.bytes/1024/1024 total_size_mb,x.bytes/1024/1024 free_size_mb,(y.bytes-x.bytes)/1024/1024 use_size_mb,round((y.bytes-x.bytes)/y.bytes,4)*100 usage
from
(select tablespace_name,sum(bytes) bytes from dba_free_space group by tablespace_name) x,
(select tablespace_name,sum(bytes) bytes from dba_data_files group by tablespace_name) y
where x.tablespace_name=y.tablespace_name
order by 5 desc;
然後就可以執行@sp檔案中的內容.
set pagesize 100
set timing on
select x.tablespace_name,y.bytes/1024/1024 total_size_mb,x.bytes/1024/1024 free_size_mb,(y.bytes-x.bytes)/1024/1024 use_size_mb,round((y.bytes-x.bytes)/y.bytes,4)*100 usage
from
(select tablespace_name,sum(bytes) bytes from dba_free_space group by tablespace_name) x,
(select tablespace_name,sum(bytes) bytes from dba_data_files group by tablespace_name) y
where x.tablespace_name=y.tablespace_name
order by 5 desc;
然後就可以執行@sp檔案中的內容.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24237320/viewspace-1767024/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- [Oracle Script] check tablespace usage infoOracle
- [Oracle Script] check temp tablespace usageOracle
- [Shell] Linux monitor tablespace usageLinux
- 4.Linux monitor tablespace usageLinux
- Oracle10g新增的檢視dba_tablespace_usage_metricsOracle
- oracle 11g expdb autoextend tablespace and create directory error;OracleError
- 20160822Oracle 11g Temporary TablespaceOracle
- Oracle11g新增檢視查詢表空間使用率DBA_TABLESPACE_USAGE_METRICSOracle
- The DBA_TABLESPACE_USAGE_METRICS View Needs to be Rebuilt in 10g_738101.1ViewUI
- [Oracle Script] Temporary Sort UsageOracle
- [Oracle Script] Rollback Segment UsageOracle
- Oracle runInstaller 's UsageOracle
- Oracle NUMA usage recommendationOracle
- [Oracle Script] Undo Usage Per statusOracle
- [Oracle Script] Undo Usage Per sessionOracleSession
- 11G的rsource角色與Unlimited TablespaceMIT
- Oracle NUMA Usage Recommendation [ID 759565.1]Oracle
- Oracle OCP(48):UNDO TABLESPACEOracle
- Oracle Table and tablespace CompressOracle
- V$TEMPSEG_USAGE與Oracle排序Oracle排序
- [Oracle] 檢視tablespace的使用率(Including temp tablespace)Oracle
- [Oracle] Raw device上Create TablespaceOracledev
- OMF (Oracle Managed Files) Usage for Datafiles [ID 137482.1]Oracle
- dnsjava usageDNSJava
- oracle 切換undo tablespace小結Oracle
- Rename Tablespace in Oracle database 10gOracleDatabase
- How to Rename Tablespace In Oracle10gOracle
- 聊一聊Oracle的Tablespace(一)Oracle
- 【Oracle】oracle tablespace&datafile -- oracle表空間 分享[轉]Oracle
- 【TABLESPACE】Oracle表空間最佳實踐Oracle
- Oracle基礎 01 表空間 tablespaceOracle
- Tablespace Management Enhancements in Oracle Database 10gOracleDatabase
- oracle實用sql(6)--tablespace/datafile resizeOracleSQL
- oracle unlimited tablespace 許可權的用途OracleMIT
- oracle10g ASM transport_tablespaceOracleASM
- oracle實驗記錄 (bigfile tablespace)Oracle
- oracle實驗記錄 (transport tablespace(Rman))Oracle
- How to move Oracle Spatial objects from SYSAUX tablespace to a user defined tablespace [ID 1119758.1OracleObjectUX