SM$TS_USED,SM$TS_FREE,SM$TS_AVAIL
SM$TS_USED,SM$TS_FREE,SM$TS_AVAIL,這三個在Oracle官方文件的reference上找不到相關解釋。其實三者都是檢視,從DBA_VIEWS中可以得到相關資訊。
SYS@ORCL> select view_name,text_length,text from dba_views where view_name='SM$TS_USED';
VIEW_NAME TEXT_LENGTH
------------------------------ -----------
TEXT
--------------------------------------------------------------------------------
SM$TS_USED 87
select tablespace_name, sum(bytes) bytes from dba_segments
group by tablespa(ce_name)
意即該檢視是上述查詢中的text列所示SQL語句的等效檢視,如下可證明該結論:
SYS@ORCL> select tablespace_name,sum(bytes) bytes from dba_segments
2 group by tablespace_name;
TABLESPACE_NAME BYTES
------------------------------ ----------
SYSAUX 561971200
UNDOTBS1 20971520
USERS 3211264
SYSTEM 793051136
EXAMPLE 324206592
SYS@ORCL> select * from sm$ts_used;
TABLESPACE_NAME BYTES
------------------------------ ----------
SYSAUX 561971200
UNDOTBS1 20971520
USERS 3211264
SYSTEM 793051136
EXAMPLE 324206592
剩下二者同上
SYS@ORCL> select view_name,text_length,text from dba_views where view_name='SM$TS_FREE';
VIEW_NAME TEXT_LENGTH
------------------------------ -----------
TEXT
--------------------------------------------------------------------------------
SM$TS_FREE 89
select tablespace_name, sum(bytes) bytes from dba_free_space
group by tables
SYS@ORCL> select view_name,text_length,text from dba_views where view_name='SM$TS_AVAIL';
VIEW_NAME TEXT_LENGTH
------------------------------ -----------
TEXT
--------------------------------------------------------------------------------
SM$TS_AVAIL 89
select tablespace_name, sum(bytes) bytes from dba_data_files
group by tables
by the way,SM$TS_USED,SM$TS_FREE,SM$TS_AVAIL,個人覺得sm有可能是sum的簡寫,ts則是tablespaces的簡寫。
感謝ORA-600的提示:-)
@760
點選(此處)摺疊或開啟
-
SYS@ORCL> desc SM$TS_USED
-
Name Null? Type
-
----------------------------------------------------------------- -------- --------------------------------------------
-
TABLESPACE_NAME VARCHAR2(30)
-
BYTES NUMBER
-
-
SYS@ORCL> desc SM$TS_FREE
-
Name Null? Type
-
----------------------------------------------------------------- -------- --------------------------------------------
-
TABLESPACE_NAME VARCHAR2(30)
-
BYTES NUMBER
-
-
SYS@ORCL> desc SM$TS_AVAIL
-
Name Null? Type
-
----------------------------------------------------------------- -------- --------------------------------------------
-
TABLESPACE_NAME VARCHAR2(30)
- BYTES NUMBER
SYS@ORCL> select view_name,text_length,text from dba_views where view_name='SM$TS_USED';
VIEW_NAME TEXT_LENGTH
------------------------------ -----------
TEXT
--------------------------------------------------------------------------------
SM$TS_USED 87
select tablespace_name, sum(bytes) bytes from dba_segments
group by tablespa(ce_name)
意即該檢視是上述查詢中的text列所示SQL語句的等效檢視,如下可證明該結論:
SYS@ORCL> select tablespace_name,sum(bytes) bytes from dba_segments
2 group by tablespace_name;
TABLESPACE_NAME BYTES
------------------------------ ----------
SYSAUX 561971200
UNDOTBS1 20971520
USERS 3211264
SYSTEM 793051136
EXAMPLE 324206592
SYS@ORCL> select * from sm$ts_used;
TABLESPACE_NAME BYTES
------------------------------ ----------
SYSAUX 561971200
UNDOTBS1 20971520
USERS 3211264
SYSTEM 793051136
EXAMPLE 324206592
SYS@ORCL> select view_name,text_length,text from dba_views where view_name='SM$TS_FREE';
VIEW_NAME TEXT_LENGTH
------------------------------ -----------
TEXT
--------------------------------------------------------------------------------
SM$TS_FREE 89
select tablespace_name, sum(bytes) bytes from dba_free_space
group by tables
SYS@ORCL> select view_name,text_length,text from dba_views where view_name='SM$TS_AVAIL';
VIEW_NAME TEXT_LENGTH
------------------------------ -----------
TEXT
--------------------------------------------------------------------------------
SM$TS_AVAIL 89
select tablespace_name, sum(bytes) bytes from dba_data_files
group by tables
by the way,SM$TS_USED,SM$TS_FREE,SM$TS_AVAIL,個人覺得sm有可能是sum的簡寫,ts則是tablespaces的簡寫。
@760
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29067253/viewspace-2058489/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 關於SYS.SM$TS_AVAIL,SYS.SM$TS_USED,SYS.SM$TS_FREE幾個檢視問題AI
- SM4
- BRECOFLEX SM5張力計MULCO SM5-FFlex
- BRECOFLEX SM5Flex
- SM4測試
- OpenSSL測試-SM4
- OpenSSL測試-SM3
- 爬蟲逆向基礎,認識 SM1-SM9、ZUC 國密演算法爬蟲演算法
- 【JS 逆向百例】醫保局 SM2+SM4 國產加密演算法實戰JS加密演算法
- SYSAUX表空間清理之SM/OPTSTATUX
- 國密SM演算法有哪些?演算法
- sm2簽名和驗籤
- golang連線sm3認證加密Golang加密
- 【Java加解密系列】- SM2加解密Java解密
- PHP sm2 國密擴充套件PHP套件
- SM 國密演算法踩坑指南演算法
- informix--sm_versions檔案是什麼?ORM
- SM951 linux centos fio 速度測試LinuxCentOS
- php國密SM3簽名演算法PHP演算法
- 國密SM3線上摘要(hash)計算工具
- SM2-秘鑰載入、生成與轉換
- Java實現常用加密演算法-SM4Java加密演算法
- 三星新平板SM-T585曝光 定位中端
- C# .NET Framework 實現SM2加簽、驗籤C#Framework
- api介面資料安全格式轉換-DES,AES,SM2API
- 資料加密-國密SM2對資料進行加密加密
- 國家密碼標準-商密SM2官方文件整理密碼
- HCNP Routing&Switching之組播技術PIM-SM RP
- bootstrap之col-xs-*、col-sm-* 、col-md-*和.col-lg-*boot
- linux 啟動 sendmail 和 sm-client 慢的解決辦法LinuxAIclient
- 使用Cloud Run實現強大的無伺服器 - MásMóvilEngineeringCloud伺服器
- Java 與 Python 國密演算法 SM2 互動使用(qbit)JavaPython演算法
- 慧榮SM3267主控晶片量產工具V2.5.31首發晶片
- aes和sm4對128bit資料加密的速度對比加密
- 國密SM2演算法和RSA演算法有什麼關係?演算法
- linux 啟動 sendmail 和 sm-client 慢的解決辦法之補充LinuxAIclient
- linux 啟動sendmail和sm-client慢的解決辦法 及報錯LinuxAIclient
- Bootstrap 柵格系統佈局 .col-lg- .col-md- .col-sm- .col-xs-boot