故障現象:
ERROR: 12-09-20 16:15:03 擷取最大號時發生錯誤:CallableStatementCallback; uncategorized SQLException for SQL [{call USP_SYS_CMSCODE(?, ?, ?, ?)}]; SQL state [72000]; error code [1552]; ORA-01552: 非系統資料表空間 'USERS' 不能使用系統回退段
ORA-06512: 在 "WMP2.USP_SYS_CMSCODE", line 24
ORA-06512: 在 "WMP2.USP_SYS_CMSCODE", line 31
ORA-06512: 在 line 1; nested exception is java.sql.SQLException: ORA-01552: 非系統資料表空間 'USERS' 不能使用系統回退段
ORA-06512: 在 "WMP2.USP_SYS_CMSCODE", line 24
ORA-06512: 在 "WMP2.USP_SYS_CMSCODE", line 31
ORA-06512: 在 line 1
java.lang.RuntimeException: 擷取最大號時發生錯誤:CallableStatementCallback; uncategorized SQLException for SQL [{call USP_SYS_CMSCODE(?, ?, ?, ?)}]; SQL state [72000]; error code [1552]; ORA-01552: 非系統資料表空間 'USERS' 不能使用系統回退段
ORA-06512: 在 "WMP2.USP_SYS_CMSCODE", line 24
ORA-06512: 在 "WMP2.USP_SYS_CMSCODE", line 31
ORA-06512: 在 line 1
; nested exception is java.sql.SQLException: ORA-01552: 非系統資料表空間 'USERS' 不能使用系統回退段
ORA-06512: 在 "WMP2.USP_SYS_CMSCODE", line 24
ORA-06512: 在 "WMP2.USP_SYS_CMSCODE", line 31
ORA-06512: 在 line 1
故障分析:
UNDO資料表空間資料檔案受損,導致執行更新操作失敗。
損毀修復:
C:\Documents and Settings\Administrator>sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on 星期四 9月 20 17:26:38 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
串連到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> create undo tablespace "UNDOTBS02" datafile 'D:\oracle\product\10.2.0\oradata\zjport\UNDOTBS02.DBF' size 128m reuse autoextend on next 10m maxsize 2048m;
資料表空間已建立。
SQL> alter system set undo_tablespace=UNDOTBS02 scope=spfile;
系統已更改。
SQL> alter system set undo_management=auto scope=spfile;
系統已更改。
SQL> shutdown immediate;
資料庫已經關閉。
已經卸載資料庫。
ORACLE 常式已經關閉。
SQL> startup;
ORACLE 常式已經啟動。
資料庫裝載完畢。
資料庫已經開啟。
SQL> DROP TABLESPACE UNDOTBS1 INCLUDING CONTENTS AND DATAFILES;
資料表空間已刪除。
SQL> shutdown immediate;
資料庫已經關閉。
已經卸載資料庫。
ORACLE 常式已經關閉。
SQL> startup;
ORACLE 常式已經啟動。
Total System Global Area 612368384 bytes
Fixed Size 1250428 bytes
Variable Size 167775108 bytes
Database Buffers 436207616 bytes
Redo Buffers 7135232 bytes
資料庫裝載完畢。
資料庫已經開啟。