oracle 10g logical standby db creation
1,構建一個物理備庫,我們已經有了,哈哈,對吧
2,停止物理備庫日誌應用
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
3,調整主庫用於支援邏輯備庫
如主庫切換為邏輯備庫
配置如下引數
LOG_ARCHIVE_DEST_3=
'LOCATION=/oracle/centos/
VALID_FOR=(STANDBY_LOGFILES,STANDBY_ROLE)
DB_UNIQUE_NAME=centos'
LOG_ARCHIVE_DEST_STATE_3=ENABLE
4,在重作資料中構建資料字典
在主庫
EXECUTE DBMS_LOGSTDBY.BUILD;
5,轉變為邏輯備庫
在備庫
alter database recover to logical standby logic; --為新的邏輯備庫起的新db_name
orapwd file=./orapwrhel password=system entries=10 force=y --為新logical standby db構建password file
6,為邏輯備庫調節某些引數
shutdown immediate;
startup mount;
*.log_archive_config='dg_config=(centos,rhel)'
*.log_archive_dest_1='location=/oracle/rhelarch valid_for=(online_logfiles,all_roles) db_unique_name=rhel' --logical standby db本地日誌的歸檔所有
*.log_archive_dest_2='location=/oracle/receive_centos_arch valid_for=(standby_logfiles,standby_role) db_unique_name=rhel' ---主庫歸檔傳送過來,接收所在地
7,開啟邏輯備庫
ALTER DATABASE OPEN RESETLOGS;
8,開始邏輯備庫日誌應用
ALTER DATABASE START LOGICAL STANDBY APPLY IMMEDIATE;
9,備庫重作日誌的(standby logfile)的相關資訊
SQL> select group#,dbid,archived,status from v$standby_log;
GROUP# DBID ARC STATUS
---------- ---------------------------------------- --- ----------
4 UNASSIGNED NO UNASSIGNED
5 3004476886 YES ACTIVE
6 UNASSIGNED YES UNASSIGNED
SQL>
10,以上日誌新增,可採用如下操作
Example 3-2 Adding a Standby Redo Log File Group to a Specific Group Number
You can also specify a number that identifies the group using the GROUP clause:
SQL> ALTER DATABASE ADD STANDBY LOGFILE GROUP 10
2> ('/oracle/dbs/log1c.rdo','/oracle/dbs/log2c.rdo') SIZE 500M;
Using group numbers can make administering standby redo log file groups easier. However, the group number must be between 1 and the value of the MAXLOGFILES clause. Do not skip log file group numbers (that is, do not number groups 10, 20, 30, and so on), or you will use additional space in the standby database control file.
Note:
Although the standby redo log is only used when the database is running in the standby role, Oracle recommends that you create a standby redo log on the primary database so that the primary database can switch over quickly to the standby role without the need for additional DBA intervention. Consider using Oracle Enterprise Manager to automatically configure standby redo log on both your primary and standby databases.
Step 5 Verify the standby redo log file groups were created.
To verify the standby redo log file groups are created and running correctly, invoke a log switch on the primary database, and then query either the V$STANDBY_LOG view or the V$LOGFILE view on the standby database once it has been created. For example:
SQL> SELECT GROUP#,THREAD#,SEQUENCE#,ARCHIVED,STATUS FROM V$STANDBY_LOG;
GROUP# THREAD# SEQUENCE# ARC STATUS
---------- ---------- ---------- --- ----------
3 1 16 NO ACTIVE
4 0 0 YES UNASSIGNED
5 0 0 YES UNASSIGNED
11,最後一點,因為我們是基於物理備庫,轉換為邏輯備庫,所以邏輯備庫採用了新的db_name,故主備庫的tnsnames.ora及listener.ora檔案要重建,及重啟
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9240380/viewspace-625525/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle 10g physical standby database creationOracle 10gDatabase
- Create Logical Standby For Oracle 10GOracle 10g
- 配置 Oracle 10g RAC primary + RAC logical standbyOracle 10g
- oracle實驗記錄 (oracle 10G dataguard(11)建立logical standby)Oracle
- Oracle DG建立Logical Standby DatabaseOracleDatabase
- 建立Oracle 11g logical standbyOracle
- Oracle10g logical standby 建立Oracle
- 單機Linux平臺Oracle 10g DataGuard Logical Standby 搭建例項LinuxOracle 10g
- 10g Logical Standby的建立,優化及管理 - 更新優化
- Oracle10gR2 Logical Standby (zt)Oracle
- Oracle Logical Standby 維護常用命令Oracle
- 建立 Logical Standby DatabaseDatabase
- manage logical standby databaseDatabase
- DataGuard:Logical Standby Switchover
- Oracle 10g Limits - Logical Database LimitsOracle 10gMITDatabase
- oracle LOGICAL standby ORA-04030: out of process memoryOracle
- Oracle 9i R2 配置 Logical StandbyOracle
- DataGuard:Logical Standby FailoverAI
- 監控Logical standby databaseDatabase
- Oracle 9i Logical Standby與Physical standby歸檔恢復區別Oracle
- oracle10g R2 logical standby switchover to primaryOracle
- oracle LOGICAL standby 日誌無法應用處理Oracle
- Oracle Data Gurad -- Logical Standby 相關說明Oracle
- Oracle10g Logical Standby的開啟與關閉Oracle
- oracle9204(9i)_logical standby_ddl_relatedOracle
- 物理Standby資料庫及邏輯Standby資料庫(Physical Standby & Logical Standby)資料庫
- oracle 10g physical standby 切換操作Oracle 10g
- Logical Standby Database的配置步驟.Database
- Logical Standby的維護操作_SKIP
- Logical Standby中Job的處理
- [zt] Oracle如何配置邏輯備用資料庫(Logical Standby)Oracle資料庫
- 在Oracle 10g下單機Physical StandbyOracle 10g
- 建立Data guard logical standby database須知Database
- [江楓]In Memory Undo與logical standby databaseDatabase
- [zt] Logical standby維護命令手冊
- 建立三節點的10g RAC的Logical Standby, 擔心同步的及時性
- 配置 Oracle 10g RAC primary + RAC physical standby dataguardOracle 10g
- Oracle 10g 邏輯Standby 建立及注意點Oracle 10g