oracle空间怎么释放 oracle数据库释放空间

如何释放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如何清理数据可以使表空间立即释放

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

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

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

使用: truncate table tablename DROP STORAGE;

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

oracle临时表空间满了怎么办

法一、重启库

库重启时,Smon进程会完成临时段释放,TEMP表空间的清理操作,不过很多的时侯我们的库是不允许down的,所以这种方法缺少了一点的应用机会,不过这种方法还是很好用的。

法二、Metalink给出的一个方法

修改一下TEMP表空间的storage参数,让Smon进程观注一下临时段,从而达到清理和TEMP表空间的目的。

SQLalter tablespace temp increase 1;

SQLalter tablespace temp increase 0;


本文标题:oracle空间怎么释放 oracle数据库释放空间
文章出自:http://scyanting.com/article/hejhic.html