ORA-01691錯誤分析
解答者:tolywang
[@more@]在應用程式中插入oracle大欄位的時候出現如下提示:
ORA-01691: unable to extend lob segment xxx.SYS_LOB0000030895C00010$$ by 2048 in tablespace xxx ORA-06512: at "xxx.storeprocedure", line 86 ORA-06512: at line 1
ORA-01691 unable to extend lob segment string.string by string in tablespace string
Cause: Failed to allocate an extent for LOB segment in tablespace.
Action: Use ALTER TABLESPACE ADD DATAFILE statement to add one or more files to the tablespace indicated.
Problem Description:
====================
You are attempting to insert or import data into a table containing
LOBs and get the following error:
ORA-01691: unable to extend lob segment TESTARCH.SYS_LOB#$ by X in tablespace
TEST
Cause: Failed to allocate an extent for lob segment in tablespace.
Action: Use ALTER TABLESPACE ADD DATAFILE statement to add one or more
files to the tablespace indicated.
Problem Explanation:
====================
The LOB segment associated with the target table has reached hit
a limit or run out of sufficiently large chunks of contigous space.
Search Words:
=============
loc clob import
Solution Description:
=====================
Assuming you had the following error:
ORA-1691: unable to extend lob segment TESTARCH.SYS_LOB0000004289C00007$
by 25600 in tablespace TEST
You would issue the following query:
select segment_type, bytes, extents,
initial_extent, next_extent, max_extents
from dba_segments
where segment_name = 'SYS_LOB0000004289C00007$';
and extract the values for EXTENTS, NEXT_EXTENT, and MAX_EXTENTS from the
resulting record. Assuming these value were:
extents = 452
next_extent = 52428800
amx_extents = 999
You would then issue the following statement to determine if sufficient
space was available to extend the LOB segment:
select bytes
from dba_free_space
where tablespace_name = 'TEST'
order by bytes desc;
If there was no contiguous block large enough to allocate the next extent,
you could try the following:
alter tablespace test coalesce
and subsequently rerun the above query. If there was still not enough space,
you would need to add a datafile to the TEST tablespace to allow the import
to complete.
Note that you would need to specify ignore=y in the import options to avoid
failing on the primary key constraint.
Solution Explanation:
=====================
This error should be handled no differently from other errors indicating the
inability to extend a database segment. Initial confusion may occur given the
unique nature of LOB storage.
還有可能是bug .
metalink 上的回答 :
The bug you mention is likely bug 855986 where a space leak can occur using LOB columns: deleted/updated LOB columns may not release the space occupied for reuse. This occurs for particular sizes of LOB. ORA-1691 is raised if the LOB cannot be extended.
The bug is fixed in 8.0.6 and 8.1.6. Although this fix was scheduled to be in it, unfortunately, there was no 8.1.5.2 patchset released. However, there is an individual patch for this bug which can be applied to 8.1.5.0 and 8.1.5.1 on Solaris. You will need to log an iTAR in order to obtain the patch as it is not available for download from MetaLink.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/166555/viewspace-790965/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- web拼圖錯誤分析Web
- net 日誌分析錯誤
- ORA-03113錯誤分析(轉)
- [java基礎]之基本錯誤分析Java
- Laravel Excpetions(錯誤處理) 原始碼分析Laravel原始碼
- SqlServer 主從複製錯誤分析--20598SQLServer
- 【ERROR】ORA-8103錯誤分析處理Error
- Http failure response 0 Unknown error 錯誤分析HTTPAIError
- mysql慢查詢和錯誤日誌分析MySql
- 【常見錯誤】--Nltk使用錯誤
- iis7.5錯誤 配置錯誤
- WARNING: inbound connection timed out (ORA-3136)錯誤分析
- 如何用NodeJS讀取分析Nginx錯誤日誌NodeJSNginx
- ORA-32701錯誤原因分析及處理方法
- Yii2 之錯誤處理深入分析
- ORA-04031錯誤導致當機案例分析
- nginx 錯誤除錯Nginx除錯
- PbootCMS錯誤提示:執行SQL發生錯誤!錯誤:no such column: def1bootSQL
- 資料分析中常見的錯誤是什麼(一)
- MySQL在刪除表時I/O錯誤原因分析MySql
- 資料分析中會常犯哪些錯誤,如何解決?
- 前端錯誤前端
- JavaFx 錯誤Java
- ORACLE 錯誤Oracle
- Promise基礎(消化錯誤和丟擲錯誤)Promise
- 記錄一次根據錯誤資訊無法定位錯誤的錯誤
- thinkphp原始碼分析(四)—錯誤及異常處理篇PHP原始碼
- Oracle查詢錯誤分析:ORA-01791:不是SELECTed表示式Oracle
- 如何分析SAP UI5應用的undefined is not a function錯誤UIUndefinedFunction
- C中的匯流排錯誤和段錯誤
- Request 驗證錯誤沒有返回錯誤資訊?
- 錯誤和異常 (一):錯誤基礎知識
- npm錯誤集合NPM
- app:processDebugManifest 錯誤APP
- PHP捕捉錯誤PHP
- Larabbs 錯誤集合
- 錯誤捕獲
- cpp查錯誤
- Homestead 502 錯誤