orcl表空间操作

1--增加表空间语句

alter tablespace issp_rygk add datafile 'data/orcl/datafile/issp_rygk07.dbf' size 2048M autoextend off;

2--查看表空间剩余

select tablespace_name,count(1) as extends,round(SUM(bytes)/1024/1024,2) as mb,SUM(blocks) as blocks from dba_free_space where tablespace_name like 'issp%' group by tablespace_name order by tablespace_name;

3--查看表空间是否这只自动增长

select file_name,tablespace_name,autoextensible from dba_data_files;

4--设置表空间自动增长(每次增长2g空间)

alter database datafile '+DATA/orcl/datafile/issp_wifiinfo1.dbf' autoextend on next 2048M;

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容