RAC配置服务器端failover

本文介绍如何在Oracle RAC环境中创建并配置TAF Service,包括服务的创建、启动、参数设置及验证步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1.创建TAFService
[oracle@rac1 ~]$ srvctl add service -d pandb -s server_taf -r "pandb1,pandb2" -P BASIC
2. 启动server_taf服务
[oracle@rac1 ~]$ srvctl start service -d pandb -s server_taf
3. 检查service运行情况
[oracle@rac1 ~]$ srvctl config service -d pandb
4.确认serviceID
SQL> select name,service_id from dba_services where name = 'server_taf';
5.给service添加参数:
SQL> execute dbms_service.modify_service (service_name => 'server_taf' - 
, aq_ha_notifications => true - 
, failover_method => dbms_service.failover_method_basic - 
, failover_type => dbms_service.failover_type_select - 
, failover_retries => 180 - 
, failover_delay => 5 - 
, clb_goal => dbms_service.clb_goal_long); 
6. 确认参数修改:
col name format a15 
col failover_method format a11 heading 'METHOD' 
col failover_type format a10 heading 'TYPE' 
col failover_retries format 9999999 heading 'RETRIES' 
col goal format a10 
col clb_goal format a8 
col AQ_HA_NOTIFICATIONS format a5 heading 'AQNOT' 
SQL> select name, failover_method,failover_type, failover_retries,goal, clb_goal,aq_ha_notifications from dba_services where service_id = 3; 
7. 检查service注册情况:
[oracle@db1 bin]$ lsnrctl services1.创建TAFService
[oracle@rac1 ~]$ srvctl add service -d pandb -s server_taf -r "pandb1,pandb2" -P BASIC
2. 启动server_taf服务
[oracle@rac1 ~]$ srvctl start service -d pandb -s server_taf
3. 检查service运行情况
[oracle@rac1 ~]$ srvctl config service -d pandb
4.确认serviceID
SQL> select name,service_id from dba_services where name = 'server_taf';
5.给service添加参数:
SQL> execute dbms_service.modify_service (service_name => 'server_taf' - 
, aq_ha_notifications => true - 
, failover_method => dbms_service.failover_method_basic - 
, failover_type => dbms_service.failover_type_select - 
, failover_retries => 180 - 
, failover_delay => 5 - 
, clb_goal => dbms_service.clb_goal_long); 
6. 确认参数修改:
col name format a15 
col failover_method format a11 heading 'METHOD' 
col failover_type format a10 heading 'TYPE' 
col failover_retries format 9999999 heading 'RETRIES' 
col goal format a10 
col clb_goal format a8 
col AQ_HA_NOTIFICATIONS format a5 heading 'AQNOT' 
SQL> select name, failover_method,failover_type, failover_retries,goal, clb_goal,aq_ha_notifications from dba_services where service_id = 3; 
7. 检查service注册情况:
[oracle@db1 bin]$ lsnrctl services
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值