oracle 11gR2 改資料庫為歸檔模式
前幾天在公司做了oracle 11gR2 rac for aix的安裝實驗,記錄了下將資料庫非歸檔模式改為歸檔模式的
步驟,和10g步驟差不多,以下為詳細步驟:
第一步:設定歸檔目錄大小和路徑
[oracle@p520:/oracle/app/oracle]$sqlplus "/as sysdba"
SQL*Plus: Release 11.2.0.1.0 Production on Fri Feb 26 09:56:24 2010
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
SQL> show parameter db_recover
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_recovery_file_dest string
db_recovery_file_dest_size big integer 0
SQL> alter system set db_recovery_file_dest='+dgrecover' scope=spfile;
System altered.
SQL> show parameter spfile
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
spfile string +DGSYSTEM/orcl/spfileorcl.ora
SQL> alter system set db_recovery_file_dest_size=8G scope=spfile;
System altered.
第二步:修改cluster_database的值為false
QL> alter system set cluster_database=false scope=spfile sid='orcl1';
System altered.
第三步:停止所有節點上的例項
[oracle@p520:/oracle/app/oracle]$srvctl stop database -d orcl
第四步:啟動到mount狀態,改資料庫為archivelog
[oracle@p520:/oracle/app/oracle]$sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Fri Feb 26 10:00:25 2010
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup mount
ORACLE instance started.
Total System Global Area 2137886720 bytes
Fixed Size 2208496 bytes
Variable Size 1526730000 bytes
Database Buffers 603979776 bytes
Redo Buffers 4968448 bytes
Database mounted.
SQL> alter database archivelog;
Database altered.
第五步:修改cluster_database的值為tuce
SQL> alter system set cluster_database=true scope=spfile sid='orcl1';
System altered.
第六步:關閉資料庫,用srvctl 啟動所有節點上的例項
SQL> shutdown immediate
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
[oracle@p520:/oracle/app/oracle]$srvctl start database -d orcl
第七步:檢查資料庫是否為歸檔模式
[oracle@p520:/oracle/app/oracle]$sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Fri Feb 26 10:05:13 2010
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
SQL> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 70
Next log sequence to archive 71
Current log sequence 71
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7199859/viewspace-628045/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle資料庫歸檔模式的切換ELOracle資料庫模式
- Oracle資料庫歸檔模式的開啟和關閉Oracle資料庫模式
- Oracle RAC 11gR2開啟歸檔Oracle
- oracle資料庫歸檔日誌量陡增分析Oracle資料庫
- Oracle資料庫日常問題-歸檔異常增長Oracle資料庫
- 設定Oracle9i為自動歸檔模式Oracle模式
- SQL資料庫怎麼進行資料歸檔和歸檔管理?SQL資料庫
- Oracle、mysql資料庫增、刪、改OracleMySql資料庫
- 對歸檔模式下CLEAR 未歸檔日誌後恢復資料庫的一點看法模式資料庫
- Oracle資料庫分割槽表SPLIT操作導致歸檔瘋漲Oracle資料庫
- 【配置上線】靜默安裝資料庫Oracle 11gR2資料庫Oracle
- RAC開啟資料庫歸檔資料庫
- Oracle 12c 關閉歸檔模式Oracle模式
- oracle 11g開啟歸檔模式及修改歸檔目錄Oracle模式
- Polardb-O資料庫歸檔配置資料庫
- oracle歸檔Oracle
- SQLServer資料庫中了勒索病毒加密,副檔名改為LockbitSQLServer資料庫加密
- SQLServer資料庫中了勒索病毒加密,副檔名改為ReadInstructionsSQLServer資料庫加密Struct
- oracle資料庫的配置檔案Oracle資料庫
- Sybase或SQLServer資料庫分批歸檔方案SQLServer資料庫
- oracle uncatalog資料庫備份檔案Oracle資料庫
- 達夢資料庫歸檔方式及其配置方法資料庫
- Oralce資料庫關閉歸檔日誌並且刪除歸檔日誌資料庫
- Oracle檢視歸檔是否被備庫應用Oracle
- oracle adg備庫歸檔滿了無法同步Oracle
- oracle歸檔日誌Oracle
- LightBD/PostgreSQL資料庫設定歸檔保留時間SQL資料庫
- oracle dg庫資料檔案空間不足Oracle
- Oracle案例11——Oracle表空間資料庫檔案收縮Oracle資料庫
- 歸檔oracle alert日誌Oracle
- Oracle歸檔日誌清理Oracle
- Oracle:歸檔量統計Oracle
- SQLServer資料庫中了勒索病毒加密,副檔名改為Globeimposter-Alpha666qqzSQLServer資料庫加密
- Oracle閃回技術 為Oracle閃回配置資料庫Oracle資料庫
- 分析Oracle資料庫日誌檔案(三)EPOracle資料庫
- 分析Oracle資料庫日誌檔案(二)DOOracle資料庫
- 分析Oracle資料庫日誌檔案(一)HBOracle資料庫
- DM7使用dmrestore工具利用不同資料庫的歸檔恢復資料庫REST資料庫
- oracle adg主庫通過rman無法刪除歸檔Oracle