Oracle 11g Aix 雙機 物理Standby配置 03

wmlm發表於2008-12-01

修改主庫為歸檔模式

SQL> shutdown immediate

Database closed.

Database dismounted.

ORACLE instance shut down.

SQL> startup mount

ORACLE instance started.

Total System Global Area 329859072 bytes

Fixed Size 2137944 bytes

Variable Size 201326760 bytes

Database Buffers 121634816 bytes

Redo Buffers 4759552 bytes

Database mounted.

SQL>

SQL> alter database archivelog;

Database altered.

SQL> alter database open;

修改主庫為強制歸檔

SQL> alter database force logging;

Database altered.

[@more@]

啟動STANDBY資料庫

$ export ORACLE_SID=sales

$

$ sqlplus / as sysdba

SQL*Plus: Release 11.1.0.6.0 - Production on Fri Nov 14 14:49:05 2008

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

Connected to an idle instance.

SQL> startup nomount pfile='/opt/app/oracle/admin/sales2/pfile/init.ora'

RACLE instance started.

Total System Global Area 329859072 bytes

Fixed Size 2137944 bytes

Variable Size 201326760 bytes

Database Buffers 121634816 bytes

Redo Buffers 4759552 bytes

SQL> alter database mount standby database;

Database altered.

在備庫上新增STANDBY LOGFILE

alter database add standby logfile '/ww/oradata/sales2/redo04.log' size 50M;

alter database add standby logfile '/ww/oradata/sales2/redo05.log' size 50M;

alter database add standby logfile '/ww/oradata/sales2/redo06.log' size 50M;

啟動STANDBY至恢復管理模式

recover managed standby database disconnect from session;

查詢一下備庫上的日誌檔案狀態

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/271063/viewspace-1014085/,如需轉載,請註明出處,否則將追究法律責任。

相關文章