軟件測試開發技術oracle常用經典SQL查詢

發表于:2009-09-29來源:作者:點擊數: 標簽:軟件測試SQLSqlsqloracle
軟件測試 開發 技術 oracle 常用經典SQL查詢 oracle 數據庫 關鍵字:oracle SQL查詢 oracle常用經典SQL查詢 常用SQL查詢: 1、查看表空間的名稱及大小 selectt.tablespace_name,round(sum(bytes/(1024*1024)),0)ts_size fromdba_tablespacest,dba_data_files

軟件測試開發技術oracle常用經典SQL查詢 oracle數據庫

關鍵字:oracle SQL查詢 oracle常用經典SQL查詢 

常用SQL查詢:

 

1、查看表空間的名稱及大小

 

select t.tablespace_name, round(sum(bytes/(1024*1024)),0) ts_size

from dba_tablespaces t, dba_data_files d

where t.tablespace_name = d.tablespace_name

group by t.tablespace_name;

 

2、查看表空間物理文件的名稱及大小

 

select tablespace_name, file_id, file_name,

round(bytes/(1024*1024),0) total_space

from dba_data_files

order by tablespace_name;

 

3、查看回滾段名稱及大小

 

select segment_name, tablespace_name, r.status, 

(initial_extent/1024) InitialExtent,(next_extent/1024) NextExtent, 

max_extents, v.curext CurExtent

From dba_rollback_segs r, v$rollstat v

Where r.segment_id = v.usn(+)

order by segment_name; 

 

原文轉自:http://www.anti-gravitydesign.com

国产97人人超碰caoprom_尤物国产在线一区手机播放_精品国产一区二区三_色天使久久综合给合久久97