日期:2014-05-16 浏览次数:20364 次
Oracle dataguard 配置 系统 linux
说明:主服务器 ora10g01(192.168.1.252)
Standby服务器 orac10g02(192.168.1.253)
两台机器都安装相同版本的数据库
主库创建数据库
物理备库不创建数据库
1. 主库备库必须要是归档模式,主库和备库监听全部起来lsnrctl start
2. Archive log list
3. 设置主库强制归档
Conn /as sysdba
startup
Alter database force logging;
4. 修改主库的tnsnames
加上
ORA10G01 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.253)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ora10g)
)
)
ORA10G02 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.252)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ora10g)
)
)