ORA-01114錯誤

ORA-01114 IO error writing block to file string (block # string)


Cause: The device on which the file resides is probably offline. If the file is a temporary file, then it is also possible that the device has run out of space. This could happen because disk space of temporary files is not necessarily allocated at file creation time.

Action: Restore access to the device or remove unnecessary files to free up space.

3.查看物理磁盤剩餘空間還有20多個G,排除磁盤空間不足的原因。

4.查看各個數據文件大小:

SQL> SELECT bytes/1024/1024/1024 AS "大小(G)",NAME FROM v$datafile ORDER BY bytes;

大小(G)   NAME
----------   --------------------------------------------------------------------------------
0.00488281 D:\ORACLE\ORADATA\KDC\TEMP02.ORA
0.01525878 C:\DATAFILE\KDCWZ_PLAN.ORA
0.01678466 D:\ORACLE\ORADATA\KDC\TOOLS01.DBF
0.01953125 D:\ORACLE\ORADATA\KDC\CWMLITE01.DBF
0.01953125 D:\ORACLE\ORADATA\KDC\DRSYS01.DBF
0.01953125 D:\ORACLE\ORADATA\KDC\ODM01.DBF
0.02441406 D:\ORACLE\ORADATA\KDC\INDX01.DBF
0.03723144 D:\ORACLE\ORADATA\KDC\XDB01.DBF
0.14587402 D:\ORACLE\ORADATA\KDC\EXAMPLE01.DBF
0.34765625 D:\DATAFILE\KDCWZ_BILL.ORA
0.41015625 D:\ORACLE\ORADATA\KDC\SYSTEM01.DBF
0.49328613 E:\DATAFILE\KDCWZ_STOCK.ORA
1.50741577 D:\ORACLE\ORADATA\KDC\UNDOTBS01.DBF
2.03735351 D:\ORACLE\ORADATA\KDC\USERS01.DBF

14 行 已選擇



SQL> SELECT bytes/1024/1024/1024 AS "大小(G)",NAME FROM v$tempfile ORDER BY bytes;

大小(G)  NAME
---------- --------------------------------------------------------------------------------
8.00000000 D:\ORACLE\ORADATA\KDC\TEMP01.DBF

看到系統中最大數據文件D:\ORACLE\ORADATA\KDC\TEMP01.DBF 大小爲8G,初步估計是temp表空間無法擴展的原因。

5.重建temp表空間:





1.以sysdba身份登錄

2.創建臨時中轉的臨時表空間TEMP2

 SQL> create temporary tablespace TEMP2 TEMPFILE D:\ORACLE\ORADATA\KDC\TEM
P02.DBF' SIZE 5M REUSE AUTOEXTEND ON NEXT 640K MAXSIZE UNLIMITED
2 /

表空間已創建。

3.修改默認臨時表空間爲TEMP2

SQL> alter database default temporary tablespace temp2;

數據庫已更改。

4.drop原來的臨時表空間TEMP:

SQL> drop tablespace temp including contents and datafiles;

表空間已丟棄。

5.重新創建臨時表空間TEMP:

 SQL> create temporary tablespace TEMP TEMPFILE D:\ORACLE\ORADATA\KDC\TEM
P01.DBF' SIZE 4000M(這個地方跟你的需要而定) REUSE AUTOEXTEND ON NEXT 640K MAXSIZE UNLIMITED
2 /

表空間已創建。

6.更改默認臨時表空間爲TEMP:

SQL> alter database default temporary tablespace temp;

數據庫已更改。

7.drop臨時表空間TEMP2

SQL> drop tablespace temp2 including contents and datafiles;

表空間已丟棄。



OK。
發佈了31 篇原創文章 · 獲贊 0 · 訪問量 1771
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章