歸檔日誌多歸檔路徑 duplex
昨天用RMAN備份了多份歸檔日誌,不由得想到歸檔日誌在歸檔的時候也可以多路徑,可能還有有相應的需求,於是做個小實驗,看一下。
C:\Documents and Settings\Administrator>sqlplus / as sysdba
SQL*Plus: Release 10.2.0.3.0 - Production on 星期一 12月 2 09:41:42 2013
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination F:\arch
Oldest online log sequence 2461
Next log sequence to archive 2463
Current log sequence 2463
SQL> alter system switch logfile;
System altered.
SQL> show parameter log_archive_dest--我的原歸檔日誌路徑在F:\arch下
NAME TYPE
------------------------------------ ----------------------
VALUE
------------------------------
log_archive_dest string
F:\arch
log_archive_dest_1 string
log_archive_dest_10 string
log_archive_dest_2 string
log_archive_dest_3 string
NAME TYPE
------------------------------------ ----------------------
VALUE
------------------------------
log_archive_dest_4 string
log_archive_dest_5 string
log_archive_dest_6 string
log_archive_dest_7 string
NAME TYPE
------------------------------------ ----------------------
VALUE
------------------------------
log_archive_dest_8 string
log_archive_dest_9 string
log_archive_dest_state_1 string
enable
log_archive_dest_state_10 string
enable
log_archive_dest_state_2 string
NAME TYPE
------------------------------------ ----------------------
VALUE
------------------------------
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
NAME TYPE
------------------------------------ ----------------------
VALUE
------------------------------
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='F:\arch1';--嘗試去修改,卻遇到了錯誤
alter system set log_archive_dest_1='F:\arch1'
*
ERROR at line 1:
ORA-32017: failure in updating SPFILE
ORA-16179: incremental changes to "log_archive_dest_1" not allowed with SPFILE
SQL> alter system set log_archive_duplex_dest='F:\arch1';--查了下官方文件,重新進行了修改
System altered.
SQL> alter system switch logfile;--此時再進行歸檔的時候,發現兩個歸檔路徑F:\arch以及F:\arch1都有了歸檔日誌
System altered.
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options
C:\Documents and Settings\Administrator>sqlplus / as sysdba
SQL*Plus: Release 10.2.0.3.0 - Production on 星期一 12月 2 09:46:46 2013
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> archive log list;--
Database log mode Archive Mode
Automatic archival Enabled
Archive destination F:\arch1
Oldest online log sequence 2463
Next log sequence to archive 2465
Current log sequence 2465
C:\Documents and Settings\Administrator>sqlplus / as sysdba
SQL*Plus: Release 10.2.0.3.0 - Production on 星期一 12月 2 09:41:42 2013
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination F:\arch
Oldest online log sequence 2461
Next log sequence to archive 2463
Current log sequence 2463
SQL> alter system switch logfile;
System altered.
SQL> show parameter log_archive_dest--我的原歸檔日誌路徑在F:\arch下
NAME TYPE
------------------------------------ ----------------------
VALUE
------------------------------
log_archive_dest string
F:\arch
log_archive_dest_1 string
log_archive_dest_10 string
log_archive_dest_2 string
log_archive_dest_3 string
NAME TYPE
------------------------------------ ----------------------
VALUE
------------------------------
log_archive_dest_4 string
log_archive_dest_5 string
log_archive_dest_6 string
log_archive_dest_7 string
NAME TYPE
------------------------------------ ----------------------
VALUE
------------------------------
log_archive_dest_8 string
log_archive_dest_9 string
log_archive_dest_state_1 string
enable
log_archive_dest_state_10 string
enable
log_archive_dest_state_2 string
NAME TYPE
------------------------------------ ----------------------
VALUE
------------------------------
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
NAME TYPE
------------------------------------ ----------------------
VALUE
------------------------------
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='F:\arch1';--嘗試去修改,卻遇到了錯誤
alter system set log_archive_dest_1='F:\arch1'
*
ERROR at line 1:
ORA-32017: failure in updating SPFILE
ORA-16179: incremental changes to "log_archive_dest_1" not allowed with SPFILE
SQL> alter system set log_archive_duplex_dest='F:\arch1';--查了下官方文件,重新進行了修改
System altered.
SQL> alter system switch logfile;--此時再進行歸檔的時候,發現兩個歸檔路徑F:\arch以及F:\arch1都有了歸檔日誌
System altered.
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options
C:\Documents and Settings\Administrator>sqlplus / as sysdba
SQL*Plus: Release 10.2.0.3.0 - Production on 星期一 12月 2 09:46:46 2013
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> archive log list;--
Database log mode Archive Mode
Automatic archival Enabled
Archive destination F:\arch1
Oldest online log sequence 2463
Next log sequence to archive 2465
Current log sequence 2465
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26084062/viewspace-1061812/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【Oracle】歸檔日誌管理-設定歸檔日誌路徑以及歸檔日誌冗餘Oracle
- 修改歸檔日誌路徑
- 多路徑重用歸檔日誌
- standby庫歸檔日誌路徑小節
- ORA-00257 (線上更改歸檔路徑,刪除歸檔日誌)
- Oracle設定多個歸檔路徑生成多份歸檔日誌,Rman備份時也只備份其中的一份歸檔日誌Oracle
- 【實驗】【Archived Log】歸檔日誌格式和歸檔路徑之change趣談Hive
- 歸檔日誌
- oracle歸檔日誌儲存路徑的設定Oracle
- 更改ORACLE歸檔路徑及歸檔模式Oracle模式
- 10g修改歸檔日誌路徑的問題
- oracle歸檔日誌Oracle
- Oracle 歸檔日誌Oracle
- 歸檔日誌挖掘
- PostgreSQL 歸檔日誌SQL
- 控制檔案/歸檔日誌
- 更改archive log 歸檔路徑和歸檔檔名稱Hive
- 歸檔oracle alert日誌Oracle
- 14. 日誌歸檔
- PostgreSQL歸檔日誌配置SQL
- rman清理歸檔日誌
- archive log 歸檔日誌Hive
- 備份歸檔日誌
- 歸檔日誌 現象
- Oracle歸檔日誌清理Oracle
- 改變歸檔檔案路徑
- 備份歸檔日誌檔案
- 日誌檔案和歸檔管理
- 刪除歸檔日誌檔案
- RMAN備份歸檔日誌多份 %c
- 當ORACLE歸檔日誌滿後如何正確刪除歸檔日誌Oracle
- 用RMAN備份歸檔日誌時檢查歸檔日誌是否存在
- 誤刪歸檔日誌除導致備份歸檔日誌失敗
- Rman在run命令塊裡臨時設定歸檔目錄,歸檔日誌能否恢復主要看預設的歸檔路徑
- 刪除歸檔,保留最近的5個歸檔日誌
- 手工rm刪除歸檔日誌對備份歸檔日誌的影響
- Oralce資料庫關閉歸檔日誌並且刪除歸檔日誌資料庫
- RMAN delete archivelog命令刪除歸檔日誌及歸檔日誌拷貝deleteHive