oracle ora-01652/oracle資料表空間

來源:互聯網
上載者:User

標籤:

參考:

oracel bigfile tablespace:(推薦)

http://blog.chinaunix.net/uid-20779720-id-3078273.html

ora-01652解決

http://www.cnblogs.com/songling/archive/2011/03/04/1970965.html

 

出現:ora-01652無法通過128(在資料表空間xxx中)擴充temp段

這種錯誤可能曾在兩種原因:(下面兩種情況針對普通的smallfile tablespace)

註:預設情況下我們建立資料表空間時,都是smallfile tablespace,除非我們指定了為create bigfile tablespace

1. 如果xxx資料表空間的資料檔案沒有達到上限(一般32G),則可能是暫存資料表空間大小不夠了,這種情況下,我們可以通過修改暫存資料表空間的大小或者將暫存資料表空間改為autoextend模式,這樣一般就可以解決問題。暫存資料表空間在進行大資料的排序等操作時如果資料表空間太小容易產生這種情況。另外,如果是暫存資料表空間,還有可能是暫存資料表空間爆滿導致的,此時可以通過刪除暫存資料表空間重建這種簡單粗暴的方式解決。

----刪除資料表空間及資料檔案drop tablespace worktmp including contents and datafiles cascade constraints;----建立暫存資料表空間create temporary tablespace worktmp tempfile ‘/Oracle11R2/oradata/PMPTGDB/worktmp.dbf‘ size 1024M autoextend on next 100m maxsize unlimited;

 

暫存資料表空間

    暫存資料表空間主要用途是在資料庫進行排序運算[如建立索引、order by及group by、distinct、union/intersect/minus/、sort-merge及join、analyze命令]、管理索引[如建立索引、IMP進行資料匯入]、訪問視圖等操作時提供臨時的運算空間,當運算完成之後系統會自動清理。

2. 如果xxx資料表空間的數的資料檔案過大,達到了上限(一般32G),此時無法自動擴充資料表空間了,在這中情況下,就需要給資料表空間添加新的資料檔案來解決這一問題。

---- 給指定的資料表空間添加資料檔案alter tablespace workadd datafile ‘/media/hdd1/oradata/PMPTGDB/work1.dbf‘ size 1024M autoextend on next 100m maxsize unlimited;

 

查看錶空間的相關sql語句:

---- 查看錶空間select* from dba_tablespaces;---- 查看錶空間細節select tablespace_name,file_name,bytes/1024/1024 file_size,autoextensible from dba_data_files;--dba_temp_file
select tablespace_name,file_name,bytes/1024/1024 file_size,autoextensible from dba_temp_file;
---- 查看使用者資料表空間資訊
select username,temporary_tablespace,default_tablespace from dba_users;
---- 修改資料表空間為自動擴充
alter database tempfile ‘/Oracle11R2/oradata/PMPTGDB/worktmp.dbf‘ autoextend on next 100m maxsize unlimited;

 

oracle ora-01652/oracle資料表空間

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.