国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服

開通VIP
減少臨時(shí)表使用空間的幾種方法
減少臨時(shí)表使用空間的幾種方法
1、 第一種方式,直接resize tempfile , 雖然簡單,但是很容易無效 


sys@mescp> select tablespace_name,file_name ,2 file_id,bytes/1024/1024 as "size(M)"3 from dba_temp_files4 /TABLESPACE_NAME FILE_NAME FILE_ID size(M)
-------------------- ---------------------------------- ---------- ----------TEMP /orabin/oradata/mescp/temp01.dbf 1 1024TEMP /orabin/oradata/mescp
/tmp1_01.dbf 2 40962 rows selected.sys@mescp> alter database tempfile
 1 resize 16M;alter database tempfile 1 resize 16M*ERROR at line 1:ORA-03297: file contains used data beyond requested RESIZE value-- 失敗了 

  2、第二種,建立另一個(gè)臨時(shí)表空間,并把它設(shè)為default temporary tablespace,再刪除原來的temporary tablespace以及tempfile。  

     
  需要切換,復(fù)雜了點(diǎn)…… 

  3、我提供的方式 

sys@mescp> alter database tempfile 1 drop ;Database altered.sys@mescp> 
alter tablespace temp add tempfile2 ’/orabin/oradata/mescp/temp01.dbf’3 size 16M reuse autoextend on next 16M maxsize 4096M;Tablespace 
altered.sys@mescp> alter database tempfile 2 drop ;Database altered.sys@mescp
> alter tablespace temp add tempfile2 ’/orabin/oradata/mescp/tmp1_01.dbf’3sys@mescp> 3 size 16M reuse autoextend on next 16M maxsize 4096M;sys@mescp
> /Tablespace altered.sys@mescp> select tablespace_name,file_name ,2 file_id,
bytes/1024/1024 as "size(M)"3 from dba_temp_files4 /TABLESPACE_NAME FILE_NAME FILE_ID size(M)
-------------------- ---------------------------------- ---------- ----------TEMP /orabin/oradata/mescp/temp01.dbf 1 16TEMP /orabin/oradata/mescp/
tmp1_01.dbf 2 162 rows selected. 

  無需重新建立temporary tablespace,無需修改database的default temporary tablespace
減少臨時(shí)表使用空間的幾種方法


本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
臨時(shí)表空間管理
Oracle Temp 臨時(shí)表空間
釋放臨時(shí)表空間實(shí)例
臨時(shí)表空間總結(jié)
Oracle 臨時(shí)表空間 SQL語句
oracle 臨時(shí)表空間的增刪改查
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服