看Oracle表空間大小 已經使用的百分比

2021-05-26 23:04:32 字數 754 閱讀 1477

看oracle表空間大小--已經使用的百分比

select   a.tablespace_name,a.bytes/1024/1024 "sum mb",(a.bytes-b.bytes)/1024/1024   "used mb",b.bytes/1024/1024 "free mb",round(((a.bytes-b.bytes)/a.bytes)*100,2) "percent_used"  from  (select tablespace_name,sum(bytes) bytes from dba_data_files group by tablespace_name)   a,  (select tablespace_name,sum(bytes) bytes,max(bytes) largest from dba_free_space group by tablespace_name)   b  where   a.tablespace_name=b.tablespace_name  order   by   ((a.bytes-b.bytes)/a.bytes)   desc

資料檔案是否自動擴充套件,可以自動擴充套件的最大值

select   file_name,tablespace_name,bytes/1024/1024 "bytes mb",maxbytes/1024/1024 "maxbytes mb" 

from dba_data_files order by tablespace_name;

檢視oracle表空間大小

1.檢視所有表空間大小 sql select tablespace name,sum bytes 1024 1024 from dba data files group by tablespace name 2.已經使用的表空間大小 sql select tablespace name,sum by...

檢視oracle表空間大小

select upper f.tablespace name 表空間名 d.tot grootte mb 表空間大小 m d.tot grootte mb f.total bytes 已使用空間 m to char round d.tot grootte mb f.total bytes d.tot...

Oracle修改表空間大小

使用oracle10g建立資料庫後,向資料庫中匯入了部分資料,第二天繼續向資料庫中匯入資料表時發生錯誤 org.hibernate.exception.genericjdbcexception ora 00604 遞迴 sql 級別 1 出現錯誤 ora 04031 無法分配 256 位元組的共享記...