|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
闪回的目的是要让数据库在commit之后,还能恢复到之前的某个状态,整库或指定的表。恢复|数据|数据库
oracle9i回滚段表空间丧失后的处置办法:
用隐含参数恢单数据库的例子:
详细操纵步骤以下:
起首把初init.ora文件里主动办理改成手工办理,然后到场隐含参数:
#undo_management=AUTO
undo_tablespace=UNDOTBS
_corrupted_rollback_segments=(_SYSSMU1$,_SYSSMU2$,_SYSSMU3$,_SYSSMU4$,_SYSSMU5$,_SYSSMU6$,_SYSSMU7$,_SYSSMU8$,_SYSSMU9$,_SYSSMU10$)
SQL>startupmount(数据库启动到mount形态)
SQL>alterdatabasedatafileD:ORACLEORADATAORCLUNDOTBS01.DBFofflinedrop;
Databasealtered.
SQL>alterdatabaseopen;
Databaseopened.
SQL>showparameterundo
NAMETYPEVALUE
--------------------------------------------------------
undo_managementstringMANUAL
undo_retentioninteger900
undo_suppress_errorsbooleanFALSE
undo_tablespacestringUNDOTBS
SQL>droptablespaceundotbsincludingcontents;
Tablespacedropped.
重修undotbs表空间:
SQL>createundotablespaceundotbsdatafileD:ORACLEORADATAORCLUNDOTBS01.DBF
size100M;
Tablespacecreated.
SQL>shutdownimmediate(封闭数据库)
Databaseclosed.
Databasedismounted.
ORACLEinstanceshutdown.
编纂init.ora初始化参数文件,往失落隐含参数,设置
undo_management=AUTO
undo_tablespace=UNDOTBS
保留init.ora文件,然后实行
SQL>startupmount
ORACLEinstancemounted.
TotalSystemGlobalArea114061244bytes
FixedSize282556bytes
VariableSize79691776bytes
DatabaseBuffers33554432bytes
RedoBuffers532480bytes
Databasemounted.
SQL>alterdatabasedatafileD:ORACLEORADATAORCLUNDOTBS01.DBFonline;
Databasealtered.
SQL>alterdatabaseopen;
Databaseopened.
SQL>showparameterundo
NAMETYPEVALUE
-----------------------------------------------------------------------------
undo_managementstringAUTO
undo_retentioninteger900
undo_suppress_errorsbooleanFALSE
undo_tablespacestringUNDOTBS
因此我们看到,这些信息足够让我们对单个操作实现“逆操作”。 |
|