oracle 11.2.0.1.0通过rman在windows xp上创建物理standby,为主库添加standby redo log,oracle建议standby redo log大小和onli
0. 概要说明
oracle版本:32位的oracle database 11.2.0.1.0
os版本:32位的winxp sp3
主库sid:primary
从库sid:standby
优势:通过rman创建dataguard无需主库宕机,实施起来相对简单
1. dbca建立主库,sid为primary
2. 开启主库归档模式
c:\>set oracle_sid=primary
c:\>sqlplus / as sysdba
sql*plus: release 11.2.0.1.0 production on 星期日 6月 17 15:09:39 2012
copyright (c) 1982, 2010, oracle. all rights reserved.
连接到:
oracle database 11g enterprise edition release 11.2.0.1.0 - production
with the partitioning, olap, data mining and real application testing options
sql> select log_mode from v$database;
log_mode
------------------------
noarchivelog
sql> shutdown immediate;
数据库已经关闭。
已经卸载数据库。
oracle 例程已经关闭。
sql> startup mount;
oracle 例程已经启动。
total system global area 313860096 bytes
fixed size 1374304 bytes
variable size 138413984 bytes
database buffers 167772160 bytes
redo buffers 6299648 bytes
数据库装载完毕。
sql> alter database archivelog;
数据库已更改。
sql> select log_mode from v$database;
log_mode
------------------------
archivelog
sql> alter database open;
数据库已更改。
sql>
3. 开启强制日志记录
sql> alter database force logging;
数据库已更改。
sql>
,