隐含参数_DISABLE_LOGGING导致数据库的损坏

Oracle不推荐修改隐含参数,尤其是对于你不了解的隐含参数,修改的后果可能很严重。

比如如果设置了_DISABLE_LOGGING参数为TRUE:

_disable_logging = TRUE

那么启动数据库后进行任何的操作,在关闭数据库后,就会发现数据库出现了损坏:

SQL> ALTER system checkpoint;
System altered.
SQL> shutdown abort
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 6.2268E+10 bytes
Fixed SIZE 2243512 bytes
Variable SIZE 4160750664 bytes
DATABASE Buffers 5.7982E+10 bytes
Redo Buffers 122974208 bytes
DATABASE mounted.
ORA-19821: an intentionally corrupt log file was found

即使在关闭数据库之前做过CHECKPOINT操作,但是数据库关闭后,仍然无法正常打开,数据库启动后会出现ORA-19821错误。
对于这个错误,通过隐含参数_ALLOW_RESETLOGS_CORRUPTION也无法直接打开。因此,即使是在测试环境中,类似_DISABLE_LOGGING之类的参数也不要随便设置。

This entry was posted in ORACLE and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *