Oracle物理DATAGUARD最大效能模式部署

來源:互聯網
上載者:User

物理DATAGUARD最大效能模式配置過程

主庫主機edbjr2p1

備庫主機edbjr2p2

1.建立主庫

[root@edbjr2p1 ~]# xhost +

access control disabled, clients can connect from any host

[root@edbjr2p1 ~]# su - oracle

[oracle@edbjr2p1 ~]$ dbca

建庫過程略。。。ORACLE_SID=ORCL

2.主庫參數

[oracle@edbjr2p1 ~]$ export ORACLE_SID=ORCL

[oracle@edbjr2p1 ~]$ sqlplus / as sysdba

SQL*Plus: Release 10.2.0.1.0 - Production on Tue Dec 31 09:20:03 2013

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

Connected to:

Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production

With the Partitioning, OLAP and Data Mining options

SYS@ORCL>shutdown immediate;

Database closed.

Database dismounted.

ORACLE instance shut down.

SYS@ORCL>startup mount

ORACLE instance started.

Total System Global Area  285212672 bytes

Fixed Size                  1218968 bytes

Variable Size              88082024 bytes

Database Buffers          188743680 bytes

Redo Buffers                7168000 bytes

Database mounted.

SYS@ORCL>select status from v$instance;

STATUS

------------

MOUNTED

SYS@ORCL>alter database force logging;

Database altered.

SYS@ORCL>select log_mode from v$database;

LOG_MODE

------------

NOARCHIVELOG

SYS@ORCL>

SYS@ORCL>alter database archivelog;

Database altered.

SYS@ORCL>alter system set log_archive_config='dg_config=(orcl,aux1)';

System altered.

SYS@ORCL>alter system set log_archive_dest_10='location=/home/oracle/orcl_arclog valid_for=(online_logfiles,all_roles) db_unique_name=orcl';

System altered.

SYS@ORCL>

建立目錄用於存放歸檔

[oracle@edbjr2p1 admin]$ mkdir /home/oracle/orcl_arclog

繼續更改參數

SYS@ORCL>alter system set log_archive_dest_1='service=aux1 valid_for=(online_logfiles,primary_role) db_unique_name=aux1';

System altered.

SYS@ORCL>alter system set log_archive_max_processes=4;

System altered.

SYS@ORCL>create pfile from spfile;

File created.

傳輸pfile檔案和密碼檔案

[oracle@edbjr2p1 admin]$ scp $ORACLE_HOME/dbs/initORCL.ora edbjr2p2:$ORACLE_HOME/dbs/initAUX1.ora

oracle@edbjr2p2's password:

initORCL.ora                                  100% 1178     1.2KB/s   00:00

[oracle@edbjr2p1 admin]$ scp $ORACLE_HOME/dbs/orapwORCL edbjr2p2:$ORACLE_HOME/dbs/orapwAUX1

oracle@edbjr2p2's password:

orapwORCL                                     100% 1536     1.5KB/s   00:00

[oracle@edbjr2p1 admin]$

3.在備庫中修改傳輸過來的pfile檔案

[root@edbjr2p2 ~]# su - oracle

[oracle@edbjr2p2 ~]$ cd $ORACLE_HOME/dbs

[oracle@edbjr2p2 dbs]$ ls

initAUX1.ora  initdw.ora  init.ora  orapwAUX1

[oracle@edbjr2p2 dbs]$ vi initAUX1.ora

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.