標籤:
改變閃回日誌位置的步驟:
A.Change the value of the DB_RECOVERY_FILE_DEST initialization parameter to a new value.
B.Shutdown the instance.
C.Start the instance and mount the database.
D.Execute the ALTER DATABASE FLASHBACK OFF command.
E.Execute the ALTER DATABASE FLASHBACK ON command.
F.Open the database.
SQL> select instance_name from v$instance;
INSTANCE_NAME
--------------------------------
orcl2
SQL> show parameter recover
NAME TYPE VALUE
------------------------------------ ---------------------- ------------------------------
db_recovery_file_dest string I:\ORCL2\flash_recovery_area
db_recovery_file_dest_size big integer 3912M
recovery_parallelism integer 0
SQL> alter system set db_recovery_file_dest=‘I:\flash_recovery_area\ORCL2‘;
系統已更改。
SQL> show parameter recover
NAME TYPE VALUE
------------------------------------ ---------------------- ------------------------------
db_recovery_file_dest string I:\flash_recovery_area\ORCL2
db_recovery_file_dest_size big integer 3912M
recovery_parallelism integer 0
SQL>
SQL> conn / as sysdba;
已串連。
SQL> shutdown immediate;
資料庫已經關閉。
已經卸載資料庫。
ORACLE 常式已經關閉。
SQL> startup mount;
ORACLE 常式已經啟動。
Total System Global Area 1586708480 bytes
Fixed Size 2176128 bytes
Variable Size 1090521984 bytes
Database Buffers 486539264 bytes
Redo Buffers 7471104 bytes
資料庫裝載完畢。
SQL> select flashback_on from v$database;
FLASHBACK_ON
------------------------------------
NO
SQL> alter database flashback off;
資料庫已更改。
SQL> alter database flashback on;
資料庫已更改。
SQL> select flashback_on from v$database;
FLASHBACK_ON
------------------------------------
YES
SQL> alter database open;
資料庫已更改。
SQL> select flashback_on from v$database;
FLASHBACK_ON
------------------------------------
YES
SQL>
oracle修改閃回日誌的位置