oracle修改閃回日誌的位置

來源:互聯網
上載者:User

標籤:

改變閃回日誌位置的步驟:

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修改閃回日誌的位置

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.