oracle的臨時表空間解決問題的步驟
正式資料庫伺服器,不能隨便重啟資料庫。
1、首先檢視當前的資料庫預設表空間:
SQL>select * from database_properties where property_name='DEFAULT_TEMP_TABLESPACE';
確認當前的臨時表空間為TEMP
2、檢視目前臨時表空間的大小:
SQL>select file_name,tablespace_name,bytes/1024/1024 "MB",autoextensible from dba_temp_files;
3、建立新的臨時表空間:
SQL> create temporary tablespace temp02
tempfile '/oracle/oms/oradata/undo/temp02.dbf' size 512M autoextend on/off;
4、把新建的臨時表空間卻換成資料庫的預設臨時表空間
SQL> alter database default temporary tablespace temp02;
5、確認目前資料庫的預設臨時表空間
SQL>select * from database_properties where property_name='DEFAULT_TEMP_TABLESPACE';
確認temp02為當前的資料庫預設表空間
6、在刪除temp臨時表空間之前,先把執行在temp臨時表空間的sql語句kill掉,這樣的sql語句多為排序的語句
SQL>Select se.username,se.sid,se.serial#,su.extents,su.blocks*to_number(rtrim(p.value))as Space,
tablespace,segtype,sql_text
from v$sort_usage su,v$parameter p,v$session se,v$sql s
where p.name='db_block_size' and su.session_addr=se.saddr and s.hash_value=su.sqlhash
and s.address=su.sqladdr
order by se.username,se.sid;
查詢出來之後,kill掉這些sql語句:
SQL>alter system kill session '524,778';
確認在temp臨時表空間中沒有執行的sql語句之後,則可以刪除temp臨時表空間資料檔案了
7、刪除temp臨時表空間
SQL> drop tablespace temp including contents and datafiles;
相關文章
- oracle的臨時表空間寫滿磁碟空間,解決改問題的具體步驟Oracle
- 解決Oracle臨時表空間佔滿的問題Oracle
- 轉:Oracle 臨時表空間過大問題解決Oracle
- 【實驗】重建臨時表空間解決臨時表空間過大問題
- oracle建立使用者,表空間,臨時表空間,分配許可權步驟詳解Oracle
- oracle的還原表空間UNDO寫滿磁碟空間,解決該問題的具體步驟Oracle
- 臨時表空間ORA-1652問題解決
- oracle的臨時表空間Oracle
- oracle 9i 臨時表空間問題Oracle
- ORACLE 臨時表空間滿了的原因解決方案Oracle
- Oracle rman 備份與恢復 臨時表空間的檔案問題解決Oracle
- Oracle 臨時表空間的概念Oracle
- ORACLE臨時表空間的清理Oracle
- 臨時表空間過大的解決方法
- 臨時表空間已滿的解決方法
- 【實驗】RESIZE方法解決臨時表空間過大問題
- oracle 臨時表空間Oracle
- oracle臨時表空間Oracle
- ORACLE預設的臨時表空間Oracle
- oracle的臨時表空間temporary tablespaceOracle
- 系統臨時表空間不足問題
- Oracle 臨時表空間概念Oracle
- oracle臨時表空間組Oracle
- Oracle Temp 臨時表空間Oracle
- Oracle臨時表空間檢視、新增臨時表空間資料檔案、修改預設臨時表空間 方法!Oracle
- oracle之臨時表空間的收縮Oracle
- 臨時表空間資料刪除問題
- oracle臨時表空間相關Oracle
- Oracle TEMP臨時表空間概念Oracle
- ORACLE臨時表空間總結Oracle
- oracle 重建臨時表空間 tempfileOracle
- 刪掉Oracle臨時表空間Oracle
- ORACLE 臨時表空間使用率過高的原因及解決方案Oracle
- ORACLE臨時表空間使用率過高的原因及解決方法Oracle
- 臨時表空間資料檔案損壞的解決
- 27、oracle的臨時表問題Oracle
- oracle 臨時表空間的增刪改查Oracle
- ORACLE 臨時表空間的增刪改查:Oracle