国产成人毛片视频|星空传媒久草视频|欧美激情草久视频|久久久久女女|久操超碰在线播放|亚洲强奸一区二区|五月天丁香社区在线|色婷婷成人丁香网|午夜欧美6666|纯肉无码91视频

undo表空間會(huì)自動(dòng)釋放嗎 如何讓Oracle釋放undo表空間?

如何讓Oracle釋放undo表空間?為了清理這部分空間,使用以下步驟完成更換操作。1創(chuàng)建新的undo表空間undobs2創(chuàng)建undo表空間undotbs2數(shù)據(jù)庫“/u01/APP/Oracle/or

如何讓Oracle釋放undo表空間?

為了清理這部分空間,使用以下步驟完成更換操作。1創(chuàng)建新的undo表空間undobs2創(chuàng)建undo表空間undotbs2數(shù)據(jù)庫“/u01/APP/Oracle/oradata/mydb/undo02。DBF “size 512M reuseautotext on next 64M maxsize unlimited reservation noguarante blocksize 8K flashback on用實(shí)際Oracle數(shù)據(jù)庫路徑2替換紅色部分。Switch system table space alter system set undo able space=undotbs2 scope=both將Oracle的當(dāng)前undo表空間切換到undotbs2。三。重新啟動(dòng)數(shù)據(jù)庫,通過命令行[root$smserver]sqlplus/nolog[root$smserver]conn/as SYSDBA[root$smserver]shutdown immediate[root$smserver]startup登錄數(shù)據(jù)庫。4刪除原來的undo內(nèi)容drop表空間undotbs1包括內(nèi)容和數(shù)據(jù)文件5,重復(fù)第三個(gè)操作,重新啟動(dòng)數(shù)據(jù)庫

有兩種處理方法,一種是添加undo表空間的數(shù)據(jù)文件,另一種是切換undo表空間。在這種情況下,通常在撤消表空間已經(jīng)非常大的情況下使用。1添加數(shù)據(jù)文件SQL> alter tablespace undo添加數(shù)據(jù)文件“D:%undo 2?!癉BF”表空間大小已更改。2切換撤消表空間1。新建表空間undo table space undotbs2 SQL>;創(chuàng)建undo table space undotbs2數(shù)據(jù)文件“D:%undo03。已創(chuàng)建DBF“size 100m重用表空間。2切換到新的撤消表空間。操作如下:SQL> alter system set undoTablespace=undotbs2 scope=both system changed。三。將原始撤消表空間設(shè)置為脫機(jī):SQL> alter table space undo offline table space has been changed。4刪除原始撤消表空間:已刪除SQL> drop table space undo including contents and datafiles cascade constraints表空間。如果只是drop tablespace undo,則只刪除控制文件中的記錄,而不會(huì)物理刪除該文件。只有在不使用表空間時(shí)才能執(zhí)行Drop undo。如果正在使用undo表空間(例如,事務(wù)失敗,但恢復(fù)尚未成功),drop table space命令將失敗。Include內(nèi)容可以在drop表空間中使用。

oracle如何擴(kuò)展undo表空間?

一個(gè)參數(shù)是undo,它設(shè)置保留時(shí)間。默認(rèn)情況下,保留時(shí)間為900秒。經(jīng)過多年的使用,隨著數(shù)據(jù)操作的頻繁,Oracle的undo表空間不斷增大,占用了磁盤空間。為了清理這部分空間,使用以下步驟完成更換操作。1創(chuàng)建一個(gè)新的undo表空間undobs2 createundablespaceundotbs2datafile“/u01/APP/Oracle/oradata/mydb/undo02。DBF“size512mreuseautonext donnext64mmaxsizeunlimited data encryption blocksize8k flash backup,將紅色部分替換為實(shí)際的Oracle數(shù)據(jù)庫路徑。2_u2;Table space=undotbs2scope=both將Oracle的當(dāng)前undo表空間切換到undotbs2。三。重新啟動(dòng)數(shù)據(jù)庫,通過命令行[root$smserver]sqlplus/nolog[root$smserver]conn/assysdba[root$smserver]shutdown immediate[root$smserver]startup登錄數(shù)據(jù)庫。4刪除原始undo內(nèi)容,droptable space undotbs1包括內(nèi)容和數(shù)據(jù)文件。5重復(fù)第三個(gè)操作,重啟數(shù)據(jù)庫6,手動(dòng)刪除原始undotbs對(duì)應(yīng)的數(shù)據(jù)庫文件