RAC下啟動日誌歸檔模式
將資料庫調整為archive模式
(0)檢視當前資料庫是否為歸檔模式
[oracle@node1 ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Tue Jun 17 02:08:05 2014
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
SYS@PROD1> archive log list
Database log mode No Archive Mode
Automatic archival Disabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 21
Current log sequence 22
(1)將該例項的cluster_database設定為false:
[oracle@node1 ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Tue Jun 17 01:52:47 2014
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
SYS@PROD1> alter system set cluster_database=false scope=spfile sid=‘prod1';
System altered.
(2)關閉所有訪問該資料庫的例項:
[oracle@node1 ~]$ su - grid
[grid@node1 ~]$ srvctl stop database -d prod
(3)使用本地例項掛載資料庫:
[grid@node1 ~]$ su - oracle
[oracle@node1 ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Tue Jun 17 02:04:50 2014
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to an idle instance.
SYS@PROD1> startup mount
ORACLE instance started.
Total System Global Area 1269366784 bytes
Fixed Size 2227984 bytes
Variable Size 838861040 bytes
Database Buffers 419430400 bytes
Redo Buffers 8847360 bytes
Database mounted.
(4)啟動archive
SYS@PROD1> alter database archivelog;
Database altered.
(5)將例項prod1的引數cluster_database設為為true:
SYS@PROD1> alter system set cluster_database=true scope=spfile sid='prod1';
System altered.
(6) 關閉本地例項:
SYS@PROD1> shutdown immediate;
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
(7) 啟動所有例項
[grid@node1 ~]$ srvctl start database -d prod
(8) 檢視啟動歸檔日誌後的結果
[oracle@node1 ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Tue Jun 17 02:08:05 2014
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
SYS@PROD1> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 21
Next log sequence to archive 22
Current log sequence 22
(8) 檢視啟動歸檔日誌後的結果
[oracle@node1 ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Tue Jun 17 02:08:05 2014
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
SYS@PROD1> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 21
Next log sequence to archive 22
Current log sequence 22
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29047826/viewspace-1192143/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【Oracle】歸檔日誌管理-設定歸檔日誌路徑以及歸檔日誌冗餘Oracle
- 歸檔日誌挖掘
- PostgreSQL 歸檔日誌SQL
- oracle歸檔日誌Oracle
- 對歸檔模式下CLEAR 未歸檔日誌後恢復資料庫的一點看法模式資料庫
- rac歸檔模式/非歸檔模式下檔案建至本地儲存修復方法-ORA-01157模式
- 歸檔oracle alert日誌Oracle
- 14. 日誌歸檔
- Oracle歸檔日誌清理Oracle
- RAC開啟資料庫歸檔資料庫
- 手工rm刪除歸檔日誌對備份歸檔日誌的影響
- Oralce資料庫關閉歸檔日誌並且刪除歸檔日誌資料庫
- 批量註冊歸檔日誌
- 測試在丟失歸檔日誌的情況下,跳過部分歸檔日誌進行資料恢復資料恢復
- DG歸檔日誌缺失恢復
- ArgoWorkflow教程(四)---Workflow & 日誌歸檔Go
- logminer異機挖掘歸檔日誌
- Oracle RAC 11gR2開啟歸檔Oracle
- 【REDO】Oracle 日誌挖掘,分析歸檔日誌線上日誌主要步驟Oracle
- rman 還原歸檔日誌(restore archivelogRESTHive
- oracle11G歸檔日誌管理Oracle
- rac日誌收集方法
- oracle rman備份歸檔日誌需要先切換日誌嗎Oracle
- Oracle RAC啟動歸檔時需要設定CLUSTER_DATABASE引數嗎?OracleDatabase
- oracle dg 歸檔日誌恢復情況Oracle
- oracle 刪除過期的歸檔日誌Oracle
- 【SQL】Oracle 歸檔日誌暴增原因分析SQLOracle
- PostgreSQL的xlog/Wal歸檔及日誌清理SQL
- Oracle歸檔日誌暴增排查優化Oracle優化
- 配置rman來自動刪除應用過的歸檔日誌
- Oracle設定多個歸檔路徑生成多份歸檔日誌,Rman備份時也只備份其中的一份歸檔日誌Oracle
- Oracle使用備份檔案集恢復歸檔日誌Oracle
- Oracle DataGuard歸檔日誌丟失處理方法Oracle
- [20221121]rman刪除歸檔日誌問題.txt
- oracle資料庫歸檔日誌量陡增分析Oracle資料庫
- Ubuntu 下開啟 crontab日誌Ubuntu
- oracle 11g開啟歸檔模式及修改歸檔目錄Oracle模式
- 在Oracle中,如何定時刪除歸檔日誌檔案?Oracle
- RMAN備份整庫和歸檔日誌的方法