oracle空间如何释放,oracleundo表空间释放

在oracle数据库中删除表后,怎样把占用的磁盘空间释放

使用: truncate table tablename DROP STORAGE;

超过十年行业经验,技术领先,服务至上的经营模式,全靠网络和口碑获得客户,为自己降低成本,也就是为客户降低成本。到目前业务范围包括了:成都网站设计、做网站,成都网站推广,成都网站优化,整体网络托管,成都小程序开发,微信开发,App定制开发,同时也可以让客户的网站和网络营销和我们一样获得订单和生意!

解释: 直接删除表,并且释放存储空间。truncate的意思是清空表数据, “DROP STORAGE”是释放存储空间。

ORACLE如何清理数据可以使表空间立即释放

1、删除用户和数据,磁盘空间不会释放,因为数据文件大小已定。

2、解决方法最直接的就是:导出数据, 重建数据文件、表空间, 重新导入数据。

如何释放oracle临时表空间

重新创建一个临时表空间,把原来的默认临时表空间drop掉(包括里面的临时数据文件)再重新建立

SQL create temporary tablespace temp2

2 tempfile '/home/oracle/oracle/product/10.2.0/oradata/hatest/temp02.pdf' size 512M reuse

3 autoextend on next 640k maxsize unlimited;

Tablespace created.

SQL alter database default temporary tablespace temp2;

Database altered.

SQL drop tablespace temp including contents and datafiles;

Tablespace dropped.

(注意:由于临时表空间的数据文件比较大,所以这步可能会花费比较长的时间)

SQL create temporary tablespace temp

2 tempfile '/home/oracle/oracle/product/10.2.0/oradata/hatest/temp01.pdf' size 512M reuse

3 autoextend on next 640K maxsize unlimited;

Tablespace created.

SQL alter database default temporary tablespace temp;

Database altered.

SQL drop tablespace temp2 including contents and datafiles;

Tablespace dropped.

SQL exit


当前文章:oracle空间如何释放,oracleundo表空间释放
文章转载:http://lszwz.com/article/hdohgd.html

其他资讯

售后响应及时

7×24小时客服热线

数据备份

更安全、更高效、更稳定

价格公道精准

项目经理精准报价不弄虚作假

合作无风险

重合同讲信誉,无效全额退款