Data Guard 部署物理備庫的 8 大注意事項

來源:互聯網
上載者:User

Data Guard 部署物理備庫的 8 大注意事項,這8點主要是面向 10g R2 以後的 DG 部署。

① 主庫設定為force logging模式

idle> select force_logging from v$database;

idle> alter database force logging;

 ② 主庫設定為歸檔模式

idle> archive log list;
idle> shutdown immediate;
idle> startup mount;
idle> alter database archivelog;
idle> archive log list;

 ③ 配置Standby Redo Log

配置 standby redo log

④ 建立密匙檔案(如果不存在的話)

先看文檔的解釋:

            You must have SYSDBA system privileges for the user accounts that you use to manage the primary and standby database instances
            Furthermore, the SYS user must have the same password on all databases in the configuration.

那麼如果password不一樣會怎樣?

案例如下:

Error 1031 received logging on to the standby
Errors in file /u01/app/Oracle/diag/rdbms/pri/orcl/trace/orcl_arcf_5769.trc:
ORA-01031: insufficient privileges
PING[ARCf]: Heartbeat failed to connect to standby 'std'. Error is 1031.

顯然、拋出 ORA-01031: insufficient privileges

使用 DBCA 建庫會在 $ORACLE_HOME/dbs 下自動建立密匙檔案

如若沒有、可使用 orapwd 命令列工具、其 file 和 password 為必填參數、

例如(假設目前的目錄是 $ORACLE_HOME/dbs ):

orapwd file=orapworcl password=oracle entries=30 (Linux/Unix 平台命名規則:orapw[sid])

  • 1
  • 2
  • 下一頁

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.