多路徑重用歸檔日誌

東北胖子發表於2014-03-24

SQL> show parameter log_archive_dest;

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
log_archive_dest                     string
log_archive_dest_1                   string
log_archive_dest_10                  string
log_archive_dest_2                   string
log_archive_dest_3                   string
log_archive_dest_4                   string
log_archive_dest_5                   string
log_archive_dest_6                   string
log_archive_dest_7                   string
log_archive_dest_8                   string
log_archive_dest_9                   string

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
log_archive_dest_state_1             string      enable
log_archive_dest_state_10            string      enable
log_archive_dest_state_2             string      enable
log_archive_dest_state_3             string      enable
log_archive_dest_state_4             string      enable
log_archive_dest_state_5             string      enable
log_archive_dest_state_6             string      enable
log_archive_dest_state_7             string      enable
log_archive_dest_state_8             string      enable
log_archive_dest_state_9             string      enable
SQL> alter  system set log_archive_dest='D:\oracle\product\10.2.0\arch' scope=sp
file;

系統已更改。

SQL> startup force;
ORACLE 例程已經啟動。

Total System Global Area  612368384 bytes
Fixed Size                  1250428 bytes
Variable Size             255855492 bytes
Database Buffers          348127232 bytes
Redo Buffers                7135232 bytes
資料庫裝載完畢。
資料庫已經開啟。
SQL> show parameter log_archive_dest;

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
log_archive_dest                     string      D:\oracle\product\10.2.0\arch
log_archive_dest_1                   string
log_archive_dest_10                  string
log_archive_dest_2                   string
log_archive_dest_3                   string
log_archive_dest_4                   string
log_archive_dest_5                   string
log_archive_dest_6                   string
log_archive_dest_7                   string
log_archive_dest_8                   string
log_archive_dest_9                   string

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
log_archive_dest_state_1             string      enable
log_archive_dest_state_10            string      enable
log_archive_dest_state_2             string      enable
log_archive_dest_state_3             string      enable
log_archive_dest_state_4             string      enable
log_archive_dest_state_5             string      enable
log_archive_dest_state_6             string      enable
log_archive_dest_state_7             string      enable
log_archive_dest_state_8             string      enable
log_archive_dest_state_9             string      enable
SQL> alter  system set log_archive_dest_1='D:\oracle\product\10.2.0\arch' scope=
spfile;
alter  system set log_archive_dest_1='D:\oracle\product\10.2.0\arch' scope=spfil
e
*
第 1 行出現錯誤:
ORA-32017: 更新 SPFILE 時失敗
ORA-16179: 不允許使用 SPFILE 對 "log_archive_dest_1" 進行增量更改

SQL> alter system set log_archive_dest_1='location=D:\oracle\product\10.2.0\arch
\arch' scope=spfile;

系統已更改。

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/2317695/viewspace-1128504/,如需轉載,請註明出處,否則將追究法律責任。

相關文章