ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Rescue UNDO Tablespace

Rescue UNDO Tablespace

原创 Linux操作系统 作者:oracle_ace 时间:2009-11-20 16:28:23 0 删除 编辑
window.onerror=function(){return true;};INPUT,TEXTAREA,SELECT,.FCK__Anchor,.FCK__PageBreak,.FCK__InputHidden { behavior. url(http://www.oralandba.cn/Inc/Editor/Fckeditor/editor/css/behaviors/disablehandles.htc) ; }TABLE { behavior. url(http://www.oralandba.cn/Inc/Editor/Fckeditor/editor/css/behaviors/showtableborders.htc) ; }html{min-height:100%}table.FCK__ShowTableBorders,table.FCK__ShowTableBorders td,table.FCK__ShowTableBorders th{border:#d3d3d3 1px solid}form{border:1px dotted #F00;padding:2px}.FCK__Flash{border:#a9a9a9 1px solid;background-position:center center;background-image:url(http://www.oralandba.cn/Inc/Editor/Fckeditor/editor/css/images/fck_flashlogo.gif);background-repeat:no-repeat;width:80px;height:80px}.FCK__Anchor{border:1px dotted #00F;background-position:center center;background-image:url(http://www.oralandba.cn/Inc/Editor/Fckeditor/editor/css/images/fck_anchor.gif);background-repeat:no-repeat;width:16px;height:15px;vertical-align:middle}.FCK__AnchorC{border:1px dotted #00F;background-position:1px center;background-image:url(http://www.oralandba.cn/Inc/Editor/Fckeditor/editor/css/images/fck_anchor.gif);background-repeat:no-repeat;padding-left:18px}a[name]{border:1px dotted #00F;background-position:0 center;background-image:url(http://www.oralandba.cn/Inc/Editor/Fckeditor/editor/css/images/fck_anchor.gif);background-repeat:no-repeat;padding-left:18px}.FCK__PageBreak{background-position:center center;background-image:url(http://www.oralandba.cn/Inc/Editor/Fckeditor/editor/css/images/fck_pagebreak.gif);background-repeat:no-repeat;clear:both;display:block;float:none;width:100%;border-top:#999 1px dotted;border-bottom:#999 1px dotted;border-right:0;border-left:0;height:5px}.FCK__InputHidden{width:19px;height:18px;background-image:url(http://www.oralandba.cn/Inc/Editor/Fckeditor/editor/css/images/fck_hiddenfield.gif);background-repeat:no-repeat;vertical-align:text-bottom;background-position:center center}.FCK__ShowBlocks p,.FCK__ShowBlocks div,.FCK__ShowBlocks pre,.FCK__ShowBlocks address,.FCK__ShowBlocks blockquote,.FCK__ShowBlocks h1,.FCK__ShowBlocks h2,.FCK__ShowBlocks h3,.FCK__ShowBlocks h4,.FCK__ShowBlocks h5,.FCK__ShowBlocks h6{background-repeat:no-repeat;border:1px dotted gray;padding-top:8px;padding-left:8px}.FCK__ShowBlocks p{background-image:url(http://www.oralandba.cn/Inc/Editor/Fckeditor/editor/css/images/block_p.png)}.FCK__ShowBlocks div{background-image:url(http://www.oralandba.cn/Inc/Editor/Fckeditor/editor/css/images/block_div.png)}.FCK__ShowBlocks pre{background-image:url(http://www.oralandba.cn/Inc/Editor/Fckeditor/editor/css/images/block_pre.png)}.FCK__ShowBlocks address{background-image:url(http://www.oralandba.cn/Inc/Editor/Fckeditor/editor/css/images/block_address.png)}.FCK__ShowBlocks blockquote{background-image:url(http://www.oralandba.cn/Inc/Editor/Fckeditor/editor/css/images/block_blockquote.png)}.FCK__ShowBlocks h1{background-image:url(http://www.oralandba.cn/Inc/Editor/Fckeditor/editor/css/images/block_h1.png)}.FCK__ShowBlocks h2{background-image:url(http://www.oralandba.cn/Inc/Editor/Fckeditor/editor/css/images/block_h2.png)}.FCK__ShowBlocks h3{background-image:url(http://www.oralandba.cn/Inc/Editor/Fckeditor/editor/css/images/block_h3.png)}.FCK__ShowBlocks h4{background-image:url(http://www.oralandba.cn/Inc/Editor/Fckeditor/editor/css/images/block_h4.png)}.FCK__ShowBlocks h5{background-image:url(http://www.oralandba.cn/Inc/Editor/Fckeditor/editor/css/images/block_h5.png)}.FCK__ShowBlocks h6{background-image:url(http://www.oralandba.cn/Inc/Editor/Fckeditor/editor/css/images/block_h6.png)}

If you get an ORA-00600 or the following error message on your Oracle database:

ORA-00600: internal error code, arguments: [3020], [356515961], [1], [4606], [2], [16], [], []
ORA-10567: Redo is inconsistent with data block (file# 85, block# 121)
ORA-10564: tablespace UNDO

Please note, that the following rescue scenario resolves from corrupt rollback systems, the UNDO datafile still exists. If your UNDO datafile is corrupt or lost go to the next scenario:Rescue any Tablespace except SYSTEM.

Steps to rescue the UNDO Tablespace

1. Shutdown the Database if it is still running

   sqlplus "/ as sysdba"
   shutdown abort;

2. Verify the Rollback Segments in the UNDO Tablespace

The name of the Rollback Segments in the UNDO Tablespace are_SYSSMU1$, _SYSSMU2$,_SYSSMU3$, etc. One Rollback Segment in theSYSTEMT ablespace is called SYSTEM, we use exactly this Rollback Segment to rescue the UNDO Tablespace.

   cd
   strings .dbf | grep _SYSSMU | cut -d $ -f 1 | sort -u

   Probably you get the following Rollback Segments:

   _SYSSMU1$,
   _SYSSMU2$,
   _SYSSMU3$,
   _SYSSMU4$,
   _SYSSMU5$,
   _SYSSMU6$,
   _SYSSMU7$,
   _SYSSMU8$,
   _SYSSMU9$,
   _SYSSMU10$

3. Uncomment and add the following lines to PFILE

   # undo_management = auto
   # undo_retention = 10800
   # undo_tablespace = undo

   undo_management = manual
   rollback_segments = (system)
   _corrupted_rollback_segments = ('_SYSSMU1$','_SYSSMU2$','_SYSSMU3$','_SYSSMU4$','_SYSSMU5$','_SYSSMU6$','_SYSSMU7$','_SYSSMU8$','_SYSSMU9$','_SYSSMU10$')

4. Startup in RESTRICT Mode with edited PFILE, then drop the Rollback Segments and UNDO Tablespace

   sqlplus "/ as sysdba";
   startup

restrict pfile='/home/oracle/oracle/initTEST.ora';
   drop rollback segment "_SYSSMU1$";
   drop rollback segment "_SYSSMU2$";
   drop rollback segment "_SYSSMU3$";
   drop rollback segment "_SYSSMU4$";
   drop rollback segment "_SYSSMU5$";
   drop rollback segment "_SYSSMU6$";
   drop rollback segment "_SYSSMU7$";
   drop rollback segment "_SYSSMU8$";
   drop rollback segment "_SYSSMU9$";
   drop rollback segment "_SYSSMU10$";
   drop tablespace undo including contents and datafiles;

   select segment_name,status,tablespace_name from dba_rollback_segs;

   SEGMENT_NAME                   STATUS           TABLESPACE_NAME
   ------------------------------ ---------------- ------------------------------
   SYSTEM                         ONLINE           SYSTEM

At this point, no UNDO Tablespace exists anymore, and the SYSTEM Rollback Segment is the only active Rollback Segment.

5.  Recreate the UNDO Tablespace and Restart the Database with original PFILE

   CREATE UNDO TABLESPACE undo DATAFILE '/home/oracle/undo.dbf' SIZE 1000M;
 
   undo_management = auto
   undo_retention = 10800
   undo_tablespace = undo

   #undo_management = manual
   #rollback_segments = (system)
   #_corrupted_rollback_segments = ('_SYSSMU1$','_SYSSMU2$','_SYSSMU3$','_SYSSMU4$','_SYSSMU5$','_SYSSMU6$','_SYSSMU7$','_SYSSMU8$','_SYSSMU9$','_SYSSMU10$')

   shutdown immediate;
   startup;

   select segment_name,status,tablespace_name from dba_rollback_segs;
   SEGMENT_NAME                   STATUS           TABLESPACE_NAME
   ------------------------------ ---------------- ------------------------------
   SYSTEM                               ONLINE           SYSTEM
   _SYSSMU11$                     ONLINE           UNDO
   _SYSSMU12$                     ONLINE           UNDO
   _SYSSMU13$                     ONLINE           UNDO
   _SYSSMU14$                     ONLINE           UNDO
   _SYSSMU15$                     ONLINE           UNDO
   _SYSSMU16$                     ONLINE       &nb

sp;   UNDO
   _SYSSMU17$                     ONLINE           UNDO
   _SYSSMU18$                     ONLINE           UNDO
   _SYSSMU19$                     ONLINE           UNDO
   _SYSSMU20$                     ONLINE           UNDO

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/12361284/viewspace-620157/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2007-12-10

  • 博文量
    284
  • 访问量
    865727