萬盛學電腦網

 萬盛學電腦網 >> 數據庫 >> oracle教程 >> oracle表空間

oracle表空間

   1. 查看表空間是否自增長

  SELECT FILE_NAME, TABLESPACE_NAME, AUTOEXTENSIBLE FROM DBA_DATA_FILES;

  2. 查看表空間大小

  select tablespace_name, sum(bytes) / 1024 / 1024 as MB from dba_data_files group by tablespace_name;

  3. 查看表空間使用情況

  select tablespace_name,count(*) as extends,round(sum(bytes) / 1024 / 1024, 2) as MB,sum(blocks) as blocks from dba_free_space group by tablespace_name;

  4. 查看當前用戶默認表空間

  select username,default_tablespace from user_users;

copyright © 萬盛學電腦網 all rights reserved