【OracleDatabase】数据库表空间管理-创新互联
创建表空间
SQL> create tablespace soe
datafile '/u01/app/oracle/oradata/wallet/soe01.dbf'
size 1024M
extent management local
uniform size 1M;
扩展表空间
方法一:在表空间中增加数据文件
SQL> alter tablespace soe
add datafile '/u01/app/oracle/oradata/wallet/soe02.dbf'
size 2048M;
方法二:数据文件自动扩展
SQL> alter database datafile '/u01/app/oracle/oradata/wallet/soe01.dbf' autoextend on;
方法三:增加表空间中数据文件的大小
SQL> alter database datafile '/u01/app/oracle/oradata/wallet/soe01.dbf' resize 2048M;
移动表空间数据文件
SQL> alter tablespace soe offline;
SQL> host cp /u01/app/oracle/oradata/wallet/soe02.dbf /u02/app/oracle/oradata/wallet
SQL> alter tablespace soe
rename datafile '/u01/app/oracle/oradata/wallet/soe02.dbf'
to '/u02/app/oracle/oradata/wallet/soe02.dbf';
SQL> alter tablespace soe online;
SQL> host rm -rf /u01/app/oracle/oradata/wallet/soe02.dbf
删除表空间
SQL> drop tablespace soe including contents and datafiles;
本文标题:【OracleDatabase】数据库表空间管理-创新互联
浏览路径:http://jxruijie.cn/article/hdjjp.html
另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。
本文标题:【OracleDatabase】数据库表空间管理-创新互联
浏览路径:http://jxruijie.cn/article/hdjjp.html