Issue:
we got Oracle database error ORA-38774: cannot disable media recovery - flashback database is enabled when tried to turn off the archive log mode .
Root cause:
oracle DB will not allow to turn off the archive log mode ,until you disable the Flashback.
Solution:
Total System Global Area 8.7242E+10 bytes
Fixed Size 5295200 bytes
Variable Size 9663677344 bytes
Database Buffers 7.7309E+10 bytes
Redo Buffers 263139328 bytes
Database mounted.
SQL> alter database noarchivelog;
alter database noarchivelog
*
ERROR at line 1:
ORA-38774: cannot disable media recovery - flashback database is enabled
SQL> select name,flashback_on from v$database;
NAME FLASHBACK_ON
--------- ------------------
DB1 YES
SQL> alter database flashback off;
Database altered.
SQL> select name,flashback_on from v$database;
NAME FLASHBACK_ON
--------- ------------------
DB1 NO
SQL> select name,open_mode from v$database;
NAME OPEN_MODE
--------- --------------------
DB1 MOUNTED
SQL> alter database noarchivelog;
Database altered.
SQL> alter database open;
Database altered.
SQL> archive log list;
Database log mode No Archive Mode
Automatic archival Disabled
Archive destination /oracle/DB1/oraarch/DB1arch
Oldest online log sequence 361611
Current log sequence 361616
SQL> select name,open_mode from v$database;
NAME OPEN_MODE
--------- --------------------
DB1 READ WRITE
No comments:
Post a Comment