---
title: "ORA-01114错误原因及解决方法（临时表空间坏掉、或者满了）"
author: "ping8899"
date: "2011-12-28T14:23:49Z"
tags: []
slug: "ora-01114"
draft: false
lastmod: "2011-12-28T14:23:49Z"
id: 1328577
url: "https://ping8899.iteye.com/blog/1328577"
---

<span style="font-family: Times New Roman; font-size: 18px;">今天应用服务器后台报一下错误：</span>

<span style="font-family: Times New Roman; font-size: 18px;">java.sql.SQLException: ORA-01114: 将块写入文件 201 时出现 IO 错误 (块 # 1015305)<br>
ORA-27069: skgfdisp: 尝试在文件范围外执行 I/O<br>
OSD-04026: 传递的参数无效。 (OS 1015311)<br>
ORA-01114: 将块写入文件 201 时出现 IO 错误 (块 # 1015305)<br>
ORA-27069: skgfdisp: 尝试在文件范围外执行 I/O<br>
OSD-04026: 传递的参数无效。 (OS 1015311)</span>

<span style="font-family: Times New Roman; font-size: 18px;"></span>

<span style="font-family: Times New Roman; font-size: 18px;">在网上找资料说，是数据库临时表空间满了或者坏掉了。</span>

<span style="font-family: Times New Roman; font-size: 18px;"></span>

<span style="font-family: Times New Roman; font-size: 18px;">查询临时表空间的大小<br>
select name, bytes/1024/1024 as "大小(M)" from v$tempfile order by bytes;</span>

<span style="font-family: Times New Roman; font-size: 18px;">看到系统中最大数据文件D:\ORACLE\ORADATA\TFJS\TEMP.DBF 大小为8G,初步估计是temp表空间无法扩展的原因。</span>

<span style="font-family: Times New Roman; font-size: 18px;"></span>

<span style="font-family: Times New Roman; font-size: 18px;">解决办法：</span>

<span style="font-family: Times New Roman; font-size: 18px;">1、查询该用户下的默认临时表空间<br>
 select * from database_properties where property_name='DEFAULT_TEMP_TABLESPACE';<br>
2、创建新的临时表空间<br>
 create temporary tablespace temp01 tempfile 'D:\ORACLE\ORADATA\TFJS\TEMP01.DBF'<br>
 size 1000M autoextend on;<br>
3、修改默认表空间<br>
 alter database default temporary tablespace temp01;</span>

<span style="font-family: Times New Roman; font-size: 18px;"></span>