新聞中心
在oracle數(shù)據(jù)庫中刪除表后,怎樣把占用的磁盤空間釋放
使用: truncate table tablename DROP STORAGE;
超過十年行業(yè)經(jīng)驗,技術(shù)領(lǐng)先,服務(wù)至上的經(jīng)營模式,全靠網(wǎng)絡(luò)和口碑獲得客戶,為自己降低成本,也就是為客戶降低成本。到目前業(yè)務(wù)范圍包括了:成都網(wǎng)站設(shè)計、做網(wǎng)站,成都網(wǎng)站推廣,成都網(wǎng)站優(yōu)化,整體網(wǎng)絡(luò)托管,成都小程序開發(fā),微信開發(fā),App定制開發(fā),同時也可以讓客戶的網(wǎng)站和網(wǎng)絡(luò)營銷和我們一樣獲得訂單和生意!
解釋: 直接刪除表,并且釋放存儲空間。truncate的意思是清空表數(shù)據(jù), “DROP STORAGE”是釋放存儲空間。
ORACLE如何清理數(shù)據(jù)可以使表空間立即釋放
1、刪除用戶和數(shù)據(jù),磁盤空間不會釋放,因為數(shù)據(jù)文件大小已定。
2、解決方法最直接的就是:導(dǎo)出數(shù)據(jù), 重建數(shù)據(jù)文件、表空間, 重新導(dǎo)入數(shù)據(jù)。
如何釋放oracle臨時表空間
重新創(chuàng)建一個臨時表空間,把原來的默認臨時表空間drop掉(包括里面的臨時數(shù)據(jù)文件)再重新建立
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.
(注意:由于臨時表空間的數(shù)據(jù)文件比較大,所以這步可能會花費比較長的時間)
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
當(dāng)前標題:oracle空間如何釋放,oracleundo表空間釋放
網(wǎng)站鏈接:http://fisionsoft.com.cn/article/hdohgd.html