日期:2014-05-16  浏览次数:20475 次

如何解决 ORA-01691
Caused by: com.ibatis.common.jdbc.exception.NestedSQLException:   
--- The error occurred in CommonSqlMap.xml.  
--- The error occurred while applying a parameter map.  
--- Check the IfTask.insert-InlineParameterMap.  
--- Check the statement (update failed).  
--- Cause: java.sql.SQLException: ORA-01691: unable to extend lob segment ICPMIS.SYS_LOB0000112366C00006$$ by 8192 in tablespace ICPMIS


   最近定时任务表中的数据由于xml文件过大,未及时清理,在MDM归档反馈时出现以上错误,很不理解,后来问过同时之后才知道是数据库表空间不足,后来清理了一堆不用日志之后,系统正常。
    针对ORA-01691 的解决办法其实还有如下:

   查看错误信息发现原因是表空间无法分配新的空间给表。所以报错。

  下面是oracle官方错误代码

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.


下面是解决方法

方法1:修改数据文件的扩展性

alter database datafile '文件路径' autoextend on next 100m maxsize 4000M;


方法2:给表空间增加新的数据文件

alter tablespace jack_data add datafile '数据文件路径‘ size 1000m autoextend on next 100m maxsize 4000M