共計 649 個字符,預計需要花費 2 分鐘才能閱讀完成。
自動寫代碼機器人,免費開通
今天就跟大家聊聊有關 oracle 數據庫中怎么擴展表空間,可能很多人都不太了解,為了讓大家更加了解,丸趣 TV 小編給大家總結了以下內容,希望大家根據這篇文章可以有所收獲。
第一步:查看表空間的使用情況:
select tablespace_name,sum(bytes)/1024/1024 from dba_data_files group by tablespace_name;
第二步:查看表空間的名字及文件所在位置:
select tablespace_name, file_id, file_name,round(bytes/(1024*1024),0) total_space from dba_data_files order by tablespace_name;
第三步:增大所需表空間大小
alter database datafile 表空間位置 resize 新的尺寸。
例如:alter database datafile /home/oracle/oracle11g/oradata/ora11g/users01.dbf resize 2000m。
第四步:設置表空間自動擴展:
alter database datafile \oracle\oradata\anita_2008.dbf autoextend on next 100m maxsize 10000m
看完上述內容,你們對 oracle 數據庫中怎么擴展表空間有進一步的了解嗎?如果還想了解更多知識或者相關內容,請關注丸趣 TV 行業資訊頻道,感謝大家的支持。
向 AI 問一下細節