Oracle 11.2.0.1 RAC使用exp遭遇ORA-01455錯誤解決辦法

來源:互聯網
上載者:User

1.環境描述

OS:Linux RedHat5.5

Oracle version:Oracle RAC 11.2.0.1

2.問題描述

使用exp匯出資料庫中多個使用者資料,語句為exp buffer=4096000 file=exp.dmp wner=user1,user2….

當匯出至最後結尾出時報出ORA-1455: converting column overflows integer datatype 錯誤。

3.解決步驟

遇到這個問題後,經過百度、google、以及metalink尋找,共得到以下幾種辦法,但均為解決(可能情況不同,遇到這個錯誤的朋友可以嘗試一下幾種解決辦法)

1:在exp命令中加上index=n命令可解決此錯誤。

2:metalink中 note [ID 1083330.1]中寫出的解決辦法如下:


Solution

On 11.2, by default deferred segment creation future is turned on. When a table created with locally managed tablespace then its property value is very big. If we insert any row in the table then it's segment gets created and property value updated to 536870912. Supported workarounds for this problem are:

1. If a table is created in this manner it is required to contain data even if the data is then deleted afterwards.

Or:

2. Initially create the table with SEGMENT CREATION IMMEDIATE option, or set the parameter:
<!--[if !supportLineBreakNewLine]-->
 <!--[endif]-->

alter system set deferred_segment_creation=false;


and create the table afterwards in a new session.
 

把一個deferred_segment_creation

預設為TRUE的參數修改為false。

以上兩種方式我均嘗試過,宣告失敗,但是經過其他測試發現有另外兩種辦法解決,外加一個特定案例,不清楚是否是解決辦法

1.經過同事高手指點,由於我的資料庫中存在一個物化視圖,如果將此物化視圖刪除,可成功解決,另,非常奇怪的是物化視圖還不能是利用pl/sql等工具刪除,一定要通過drop命令刪除此物化視圖才可以解決。我是如此解決,但不清楚是否是通用問題。

 

2.放棄exp/imp,而使用資料泵EXPDP方式匯出,亦可解決此問題。

3.大招!可通過升級到Oracle 11.2.0.3版本得到解決。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.