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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- RAC 開啟歸檔日誌
- rac下啟動關閉與更改歸檔模式模式
- RAC--歸檔日誌的開啟方法
- 【RAC】RAC環境下歸檔日誌格式約定
- rac下啟動關閉與更改歸檔模式(zt)模式
- oracle11g RAC 啟動歸檔模式Oracle模式
- oracle RAC開啟歸檔模式Oracle模式
- Oracle10g RAC下啟用歸檔模式Oracle模式
- postgresql開啟歸檔日誌SQL
- oracle 10g rac下啟動關閉與更改歸檔模式Oracle 10g模式
- RAC中歸檔日誌得命名格式
- 將RAC資料庫更改為不歸檔日誌的模式資料庫模式
- RAC環境備份歸檔日誌和RMAN恢復啟動資料庫資料庫
- 在歸檔模式下丟失日誌檔案的恢復模式
- rac下啟動關閉與更改歸檔模式 時CLUSTER_DATABASE 作用模式Database
- oracle入門之1 rac下啟動關閉與更改歸檔模式Oracle模式
- RAC歸檔日誌還原一例
- Oracle RAC中使用RMAN管理歸檔日誌Oracle
- RAC 環境下修改歸檔模式模式
- ORACLE RAC模式下歸檔模式和非歸檔模式的切換方法Oracle模式
- 歸檔模式下的日誌檔案丟失的解決方法模式
- oracle入門之1 rac下啟動關閉與更改歸檔模式 (zt)Oracle模式
- 歸檔日誌
- 【Oracle】歸檔日誌管理-設定歸檔日誌路徑以及歸檔日誌冗餘Oracle
- oracle 歸檔日誌開啟,關閉Oracle
- 關閉和開啟歸檔日誌
- rac+dg環境刪除歸檔日誌
- 手動刪除歸檔日誌
- rac更改歸檔模式模式
- oracle 10g rac 啟用歸檔模式Oracle 10g模式
- Oracle RAC 10gR2 環境下開啟歸檔日誌的步驟(八一原創)Oracle
- oracle歸檔模式下imp匯入資料,產生的歸檔日誌大小記錄Oracle模式
- ORACLE 歸檔日誌開啟關閉方法Oracle
- dataguard的啟動和應用歸檔日誌的語句
- oracle歸檔日誌Oracle
- Oracle 歸檔日誌Oracle
- 歸檔日誌挖掘
- PostgreSQL 歸檔日誌SQL