oracle standby 配置,Oracle 11g Aix 双机 物理Standby配置 03

修改主库为归档模式

SQL> shutdown immediate

Database closed.

Database dismounted.

ORACLE instance shut down.

SQL> startup mount

ORACLE instance started.

Total System Global Area329859072 bytes

Fixed Size2137944 bytes

Variable Size201326760 bytes

Database Buffers121634816 bytes

Redo Buffers4759552 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 Area329859072 bytes

Fixed Size2137944 bytes

Variable Size201326760 bytes

Database Buffers121634816 bytes

Redo Buffers4759552 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;

查询一下备库上的日志文件状态

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值