|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
这能找出所有错误的99.99%。它不能找出的是仅仅涉及数据文件的损坏(这很不常见)。如果你想要检查一张表,你通常应该没有选项地运行myisamchk或用-s或--silent选项的任何一个。
在RAC情况中怎样办理日记(redologfile)组
Tuesday,2004-09-1411:52Eygle
原文毗连:
http://www.eygle.com/faq/How.To.Mangement.redologfile.in.Rac.Raw.htm
本文复杂先容在RAC裸设备情况下怎样办理日记文件(redologfile)
本文情况:Oracle9iRac+VCS4.0+VxVM4.0+Solaris9.0+SunFire210
1.起首能够检察以后裸设备情形
#vxprintDiskgroup:oradgTYNAMEASSOCKSTATELENGTHPLOFFSSTATETUTIL0PUTIL0dgoradgoradg------dmoradg01c2t0d2s2-244143872----vctlfile1genENABLED204800-ACTIVE--plctlfile1-01ctlfile1ENABLED204800-ACTIVE--sdoradg01-13ctlfile1-01ENABLED2048000---vctlfile2genENABLED204800-ACTIVE--plctlfile2-01ctlfile2ENABLED204800-ACTIVE--sdoradg01-14ctlfile2-01ENABLED2048000---vredo101genENABLED204800-ACTIVE--plredo101-01redo101ENABLED204800-ACTIVE--sdoradg01-04redo101-01ENABLED2048000---vredo102genENABLED204800-ACTIVE--plredo102-01redo102ENABLED204800-ACTIVE--sdoradg01-05redo102-01ENABLED2048000---vredo103genENABLED204800-ACTIVE--plredo103-01redo103ENABLED204800-ACTIVE--sdoradg01-06redo103-01ENABLED2048000---vredo201genENABLED204800-ACTIVE--plredo201-01redo201ENABLED204800-ACTIVE--sdoradg01-07redo201-01ENABLED2048000---vredo202genENABLED204800-ACTIVE--plredo202-01redo202ENABLED204800-ACTIVE--sdoradg01-08redo202-01ENABLED2048000---vredo203genENABLED204800-ACTIVE--plredo203-01redo203ENABLED204800-ACTIVE--sdoradg01-09redo203-01ENABLED2048000---vspfilegenENABLED204800-ACTIVE--plspfile-01spfileENABLED204800-ACTIVE--sdoradg01-12spfile-01ENABLED2048000---vsrvcfggenENABLED1024000-ACTIVE--plsrvcfg-01srvcfgENABLED1024000-ACTIVE--sdoradg01-15srvcfg-01ENABLED10240000---vsystemgenENABLED1638400-ACTIVE--plsystem-01systemENABLED1638400-ACTIVE--sdoradg01-01system-01ENABLED16384000---vtempgenENABLED2048000-ACTIVE--pltemp-01tempENABLED2048000-ACTIVE--sdoradg01-02temp-01ENABLED20480000---vundo11genENABLED16777216-ACTIVE--plundo11-01undo11ENABLED16777216-ACTIVE--sdoradg01-10undo11-01ENABLED20480000---sdoradg01-17undo11-01ENABLED147292162048000---vundo21genENABLED2048000-ACTIVE--plundo21-01undo21ENABLED2048000-ACTIVE--sdoradg01-11undo21-01ENABLED20480000---vusersgenENABLED16777216-ACTIVE--plusers-01usersENABLED16777216-ACTIVE--sdoradg01-03users-01ENABLED20480000---sdoradg01-16users-01ENABLED147292162048000---
2.分派新的裸设备并设置响应的权限
这一步必要以root身份实行
#vxassist-goradg-Ugenmakeredo104100m
#vxassist-goradg-Ugenmakeredo105100m
#vxedit-goradgsetuser=oraclemode=644redo104
#vxedit-goradgsetuser=oraclemode=644redo105
3.从头计划redologfile组
$sqlplus"/assysdba"SQL*Plus:Release9.2.0.4.0-ProductiononTueSep1410:02:472004Copyright(c)1982,2002,OracleCorporation.Allrightsreserved.Connectedto:Oracle9iEnterpriseEditionRelease9.2.0.4.0-64bitProductionWiththeRealApplicationClustersoptionJServerRelease9.2.0.4.0-ProductionSQL>setlinesize120SQL>select*fromv$log;GROUP#THREAD#SEQUENCE#BYTESMEMBERSARCSTATUSFIRST_CHANGE#FIRST_TIM-------------------------------------------------------------------------------------------116313524288001NOACTIVE319385514-SEP-04216312524288001NOINACTIVE319169114-SEP-04516314524288001NOCURRENT319604114-SEP-043217104857601NOCURRENT301631014-SEP-044216104857601NOINACTIVE161919813-SEP-04SQL>alterdatabaseaddlogfilethread1group6(/dev/vx/rdsk/oradg/redo104)size90M;Databasealtered.SQL>alterdatabaseaddlogfilethread1group7(/dev/vx/rdsk/oradg/redo105)size90M;Databasealtered.SQL>select*fromv$log;GROUP#THREAD#SEQUENCE#BYTESMEMBERSARCSTATUSFIRST_CHANGE#FIRST_TIM-------------------------------------------------------------------------------------------116316524288001NOINACTIVE320041514-SEP-04216315524288001NOINACTIVE319823314-SEP-04516317524288001NOACTIVE320262114-SEP-04616318943718401NOCURRENT320481114-SEP-04710943718401YESUNUSED03217104857601NOCURRENT301631014-SEP-044216104857601NOINACTIVE161919813-SEP-047rowsselected.SQL>alterdatabasedroplogfilegroup5;Databasealtered.SQL>alterdatabaseaddlogfilethread1group5(/dev/vx/rdsk/oradg/redo103)size90M;Databasealtered.....SQL>select*fromv$log;GROUP#THREAD#SEQUENCE#BYTESMEMBERSARCSTATUSFIRST_CHANGE#FIRST_TIM-------------------------------------------------------------------------------------------116327943718401NOINACTIVE323853414-SEP-04216329943718401NOCURRENT324641714-SEP-04510943718401YESUNUSED0616328943718401NOACTIVE324248214-SEP-04716326943718401NOINACTIVE323459714-SEP-043217104857601NOCURRENT301631014-SEP-044216104857601NOINACTIVE161919813-SEP-047rowsselected.
支持多种存储引擎。 |
|