###########################################################################
#TESTCASE About Service Preferred on two nodes
#Public IP
192.168.120.102 paycore1
192.168.120.103 paycore2
#VIP
192.168.120.104 paycore1-vip
192.168.120.105 paycore2-vip
#PRIV
172.168.0.101 paycore1-priv
172.168.0.102 paycore2-priv
#SCAN
192.168.120.108 paycore-cluster
###########################################################################
./srvctl add service -d newpay -s s_node1p -r newpay1 -a
newpay2 -P BASIC
./srvctl add service -d newpay -s s_node2p -r newpay2 -a
newpay1 -P BASIC
./srvctl start service -d newpay -s
s_node1p
./srvctl start service -d newpay -s
s_node2p
./srvctl add service -d newpay -s s_node1 -r newpay1 -a
newpay2
./srvctl add service -d newpay -s s_node2 -r newpay2 -a
newpay1
./srvctl start service -d newpay -s
s_node1
./srvctl start service -d newpay -s
s_node2
./srvctl add service -db newpay -service sales
-failovertype SESSION -failovermethod
BASIC -failoverdelay 180
-failoverretry 3 -preferred newpay1 -available
newpay2
./srvctl start service -db newpay -service sales
./srvctl status instance -d newpay -i newpay1
./srvctl stop instance -d newpay -i newpay1
./srvctl status instance -d newpay -i newpay1
./srvctl start instance -d newpay -i newpay1
./srvctl add service -d newpay -s s_node1p -r newpay1,newpay2
-P BASIC
./srvctl start service -d newpay -s
s_node1p
./srvctl config service -d newpay -s s_node1
-a
./srvctl relocate service -d newpay -s
s_node1 -i newpay2 -t newpay1
./srvctl stop service -d newpay -s
s_node1
./srvctl stop service -d newpay -s
s_node2
./srvctl stop service -d newpay -s
s_node1p
./srvctl stop service -d newpay -s
s_node2p
./srvctl remove service -d newpay -s
s_node1
./srvctl remove service -d newpay -s
s_node2
./srvctl remove service -d newpay -s
s_node1p
./srvctl remove service -d newpay -s
s_node2p
SELECT machine, failover_method,
failover_type, failed_over, service_name, COUNT(*)
FROM v$session
GROUP BY machine, failover_method, failover_type,failed_over,
service_name;
------------------------------------------------------------------------------------------------------Testcase1(preferred
no -P)
./srvctl add service -d newpay -s s_node1 -r newpay1 -a
newpay2
./srvctl add service -d newpay -s s_node2 -r newpay2 -a
newpay1
./srvctl start service -d newpay -s
s_node1
./srvctl start service -d newpay -s
s_node2
[oracle@paycore1 bin]$ ./crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.DATA1.dg ora....up.type ONLINE
ONLINE paycore1
ora....ER.lsnr ora....er.type ONLINE ONLINE paycore1
ora....N1.lsnr ora....er.type ONLINE ONLINE paycore1
ora.asm ora.asm.type
ONLINE ONLINE paycore1
ora.cvu ora.cvu.type
ONLINE ONLINE paycore2
ora....network ora....rk.type ONLINE ONLINE paycore1
ora.newpay.db ora....se.type ONLINE
ONLINE paycore1
ora....de1.svc ora....ce.type ONLINE ONLINE paycore1
ora....de2.svc ora....ce.type ONLINE ONLINE paycore2
ora.oc4j ora.oc4j.type ONLINE
ONLINE paycore1
ora.ons ora.ons.type
ONLINE ONLINE paycore1
ora....SM1.asm application ONLINE ONLINE paycore1
ora....E1.lsnr application ONLINE ONLINE paycore1
ora....re1.ons application ONLINE ONLINE paycore1
ora....re1.vip ora....t1.type ONLINE ONLINE paycore1
ora....SM2.asm application ONLINE ONLINE paycore2
ora....E2.lsnr application ONLINE ONLINE paycore2
ora....re2.ons application ONLINE ONLINE paycore2
ora....re2.vip ora....t1.type ONLINE ONLINE paycore2
ora.scan1.vip ora....ip.type ONLINE
ONLINE paycore1
[oracle@paycore1 bin]$
[oracle@paycore1 bin]$ lsnrctl status
LSNRCTL for Linux: Version 12.1.0.1.0 - Production on
19-MAR-2014 15:48:22
Copyright (c) 1991, 2013, Oracle. All rights
reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 12.1.0.1.0 -
Production
Start Date 19-MAR-2014
11:03:04
Uptime 0 days 4 hr. 45 min. 17
sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /oracle/grid/12.1.0/network/admin/listener.ora
Listener Log File /oracle/app/diag/tnslsnr/paycore1/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.120.102)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.120.104)(PORT=1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "+ASM1", status READY, has 1
handler(s) for this service...
Service "newpay" has 1 instance(s).
Instance "newpay1", status READY, has 1
handler(s) for this service...
Service "newpayXDB" has 1 instance(s).
Instance "newpay1", status READY, has 1
handler(s) for this service...
Service "s_node1" has 1 instance(s).
Instance "newpay1", status READY, has 1
handler(s) for this service...
The command completed successfully
[oracle@paycore1 bin]$
[oracle@paycore2 ~]$ lsnrctl status
LSNRCTL for Linux: Version 12.1.0.1.0 - Production on
19-MAR-2014 15:48:39
Copyright (c) 1991, 2013, Oracle. All rights
reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 12.1.0.1.0 -
Production
Start Date 19-MAR-2014
11:02:20
Uptime 0 days 4 hr. 46 min. 19
sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /oracle/grid/12.1.0/network/admin/listener.ora
Listener Log File /oracle/app/diag/tnslsnr/paycore2/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.120.103)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.120.105)(PORT=1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "+ASM2", status READY, has 1
handler(s) for this service...
Service "newpay" has 1 instance(s).
Instance "newpay2", status READY, has 1
handler(s) for this service...
Service "newpayXDB" has 1 instance(s).
Instance "newpay2", status READY, has 1
handler(s) for this service...
Service "s_node2" has 1 instance(s).
Instance "newpay2", status READY, has 1
handler(s) for this service...
The command completed successfully
[oracle@paycore2 ~]
./srvctl status instance -d newpay -i newpay1
./srvctl stop instance -d newpay -i newpay1
./srvctl status instance -d newpay -i newpay1
./srvctl start instance -d newpay -i newpay1
SELECT machine, failover_method,
failover_type, failed_over, service_name, COUNT(*)
FROM v$session
GROUP BY machine, failover_method, failover_type,failed_over,
service_name;
s_node1 =
(DESCRIPTION =
(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.120.104)(PORT=1521))
(CONNECT_DATA =
(SERVICE_NAME = s_node1)
)
)
s_node2 =
(DESCRIPTION =
(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.120.105)(PORT=1521))
(CONNECT_DATA =
(SERVICE_NAME = s_node2)
)
)
RAC_s_node1 =
(DESCRIPTION
=(FAILOVER=ON)(LOAD_BALANCE=ON)
(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.120.104)(PORT=1521))
(CONNECT_DATA =
(SERVICE_NAME = s_node1)
(FAILOVER_MODE =
(TYPE=SESSION)
(METHOD=BASIC)
(RETRIES=180)
(DELAY=5))))
close session instance,can't failover!
RAC_SCAN_S1 =
(DESCRIPTION =
(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.120.108)(PORT=1521))
(CONNECT_DATA =
(SERVICE_NAME = s_node1)
)
)
close session instance,still can't failover!
------------------------------------------------------------------------------------------------------Testcase2(preferred
-P)
./srvctl add service -d newpay -s s_node1p -r newpay1 -a
newpay2 -P BASIC
./srvctl add service -d newpay -s s_node2p -r newpay2 -a
newpay1 -P BASIC
./srvctl start service -d newpay -s
s_node1p
./srvctl start service -d newpay -s
s_node2p
[oracle@paycore1 bin]$ lsnrctl status
LSNRCTL for Linux: Version 12.1.0.1.0 - Production on
19-MAR-2014 16:42:42
Copyright (c) 1991, 2013, Oracle. All rights
reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 12.1.0.1.0 -
Production
Start Date 19-MAR-2014
11:03:04
Uptime 0 days 5 hr. 39 min. 38
sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /oracle/grid/12.1.0/network/admin/listener.ora
Listener Log File /oracle/app/diag/tnslsnr/paycore1/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.120.102)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.120.104)(PORT=1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "+ASM1", status READY, has 1
handler(s) for this service...
Service "newpay" has 1 instance(s).
Instance "newpay1", status READY, has 1
handler(s) for this service...
Service "newpayXDB" has 1 instance(s).
Instance "newpay1", status READY, has 1
handler(s) for this service...
Service "s_node1" has 1 instance(s).
Instance "newpay1", status READY, has 1
handler(s) for this service...
Service "s_node1p" has 1 instance(s).
Instance "newpay1", status READY, has 1
handler(s) for this service...
The command completed successfully
[oracle@paycore1 bin]$
[oracle@paycore2 bin]$ lsnrctl status
LSNRCTL for Linux: Version 12.1.0.1.0 - Production on
19-MAR-2014 16:43:05
Copyright (c) 1991, 2013, Oracle. All rights
reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 12.1.0.1.0 -
Production
Start Date 19-MAR-2014
11:02:20
Uptime 0 days 5 hr. 40 min. 45
sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /oracle/grid/12.1.0/network/admin/listener.ora
Listener Log File /oracle/app/diag/tnslsnr/paycore2/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.120.103)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.120.105)(PORT=1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "+ASM2", status READY, has 1
handler(s) for this service...
Service "newpay" has 1 instance(s).
Instance "newpay2", status READY, has 1
handler(s) for this service...
Service "newpayXDB" has 1 instance(s).
Instance "newpay2", status READY, has 1
handler(s) for this service...
Service "s_node2" has 1 instance(s).
Instance "newpay2", status READY, has 1
handler(s) for this service...
Service "s_node2p" has 1 instance(s).
Instance "newpay2", status READY, has 1
handler(s) for this service...
The command completed successfully
./srvctl status instance -d newpay -i newpay1
./srvctl stop instance -d newpay -i newpay1
./srvctl status instance -d newpay -i newpay1
./srvctl start instance -d newpay -i newpay1
SELECT machine, failover_method,
failover_type, failed_over, service_name, COUNT(*)
FROM v$session
GROUP BY machine, failover_method, failover_type,failed_over,
service_name;
s_node1p =
(DESCRIPTION =
(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.120.104)(PORT=1521))
(CONNECT_DATA =
(SERVICE_NAME = s_node1p)
)
)
s_node2p =
(DESCRIPTION =
(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.120.105)(PORT=1521))
(CONNECT_DATA =
(SERVICE_NAME = s_node2p)
)
)
RAC_s_node1p =
(DESCRIPTION
=(FAILOVER=ON)(LOAD_BALANCE=ON)
(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.120.104)(PORT=1521))
(CONNECT_DATA =
(SERVICE_NAME = s_node1p)
(FAILOVER_MODE =
(TYPE=SESSION)
(METHOD=BASIC)
(RETRIES=180)
(DELAY=5))))
close session instance,can't failover!
./srvctl stop service -d newpay -s
s_node1
./srvctl stop service -d newpay -s
s_node2
./srvctl stop service -d newpay -s
s_node1p
./srvctl stop service -d newpay -s
s_node2p
./srvctl remove service -d newpay -s
s_node1
./srvctl remove service -d newpay -s
s_node2
./srvctl remove service -d newpay -s
s_node1p
./srvctl remove service -d newpay -s
s_node2p
[oracle@paycore1 bin]$ ./crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.DATA1.dg ora....up.type ONLINE
ONLINE paycore1
ora....ER.lsnr ora....er.type ONLINE ONLINE paycore1
ora....N1.lsnr ora....er.type ONLINE ONLINE paycore1
ora.asm ora.asm.type
ONLINE ONLINE paycore1
ora.cvu ora.cvu.type
ONLINE ONLINE paycore2
ora....network ora....rk.type ONLINE ONLINE paycore1
ora.newpay.db ora....se.type ONLINE
ONLINE paycore1
ora.oc4j ora.oc4j.type ONLINE
ONLINE paycore1
ora.ons ora.ons.type
ONLINE ONLINE paycore1
ora....SM1.asm application ONLINE ONLINE paycore1
ora....E1.lsnr application ONLINE ONLINE paycore1
ora....re1.ons application ONLINE ONLINE paycore1
ora....re1.vip ora....t1.type ONLINE ONLINE paycore1
ora....SM2.asm application ONLINE ONLINE paycore2
ora....E2.lsnr application ONLINE ONLINE paycore2
ora....re2.ons application ONLINE ONLINE paycore2
ora....re2.vip ora....t1.type ONLINE ONLINE paycore2
ora.scan1.vip ora....ip.type ONLINE
ONLINE paycore1
[oracle@paycore1 bin]$
------------------------------------------------------------------------------------------------------Testcase3(preferred
no -P&-P)
./srvctl add service -d newpay -s s_node1 -r newpay1 -a
newpay2
./srvctl start service -d newpay -s
s_node1
./srvctl add service -d newpay -s s_node1p -r newpay1 -a
newpay2 -P BASIC
./srvctl start service -d newpay -s
s_node1p
[oracle@paycore1 bin]$ ./srvctl config service -d newpay -s
s_node1 -a
Warning:-a option has been deprecated and will be
ignored.
Service name: s_node1
Service is enabled
Server pool: newpay_s_node1
Cardinality: 1
Disconnect: false
Service role: PRIMARY
Management policy: AUTOMATIC
DTP transaction: false
AQ HA notifications: false
Global: false
Commit Outcome: false
Failover type:
Failover method:
TAF failover retries:
TAF failover delay:
Connection Load Balancing Goal: LONG
Runtime Load Balancing Goal: NONE
TAF policy specification: NONE
Edition:
Pluggable database name:
Maximum lag time: ANY
SQL Translation Profile:
Retention: 86400 seconds
Replay Initiation Time: 300 seconds
Session State Consistency:
Preferred instances: newpay1
Available instances: newpay2
[oracle@paycore1 bin]$
shutdown instance(fail)
shutdown node1(ok)
[oracle@paycore1 bin]./srvctl relocate service -d newpay
-s s_node1 -i newpay2 -t newpay1
[oracle@paycore1 bin]$ lsnrctl status
LSNRCTL for Linux: Version 12.1.0.1.0 - Production on
19-MAR-2014 17:42:31
Copyright (c) 1991, 2013, Oracle. All rights
reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 12.1.0.1.0 -
Production
Start Date 19-MAR-2014
17:36:34
Uptime 0 days 0 hr. 5 min. 56
sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /oracle/grid/12.1.0/network/admin/listener.ora
Listener Log File /oracle/app/diag/tnslsnr/paycore1/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.120.102)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.120.104)(PORT=1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "+ASM1", status READY, has 1
handler(s) for this service...
Service "newpay" has 1 instance(s).
Instance "newpay1", status READY, has 1
handler(s) for this service...
Service "newpayXDB" has 1 instance(s).
Instance "newpay1", status READY, has 1
handler(s) for this service...
Service "s_node1" has 1 instance(s).
Instance "newpay1", status READY, has 1
handler(s) for this service...
The command completed successfully
[oracle@paycore1 bin]$
[oracle@paycore1 bin]$ ./srvctl config
service -d newpay -s s_node1p -a
Warning:-a option has been deprecated and will be
ignored.
Service name: s_node1p
Service is enabled
Server pool: newpay_s_node1p
Cardinality: 1
Disconnect: false
Service role: PRIMARY
Management policy: AUTOMATIC
DTP transaction: false
AQ HA notifications: false
Global: false
Commit Outcome: false
Failover type:
Failover method:
TAF failover retries:
TAF failover delay:
Connection Load Balancing Goal: LONG
Runtime Load Balancing Goal: NONE
TAF policy specification: BASIC
Edition:
Pluggable database name:
Maximum lag time: ANY
SQL Translation Profile:
Retention: 86400 seconds
Replay Initiation Time: 300 seconds
Session State Consistency:
Preferred instances: newpay1
Available instances: newpay2
[oracle@paycore1 bin]$
./srvctl status instance -d newpay -i newpay1
./srvctl stop instance -d newpay -i newpay1
./srvctl status instance -d newpay -i newpay1
./srvctl start instance -d newpay -i newpay1
RAC_s_node1p =
(DESCRIPTION
=(FAILOVER=ON)(LOAD_BALANCE=ON)
(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.120.104)(PORT=1521))
(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.120.105)(PORT=1521))
(CONNECT_DATA =
(SERVICE_NAME = s_node1p)
(FAILOVER_MODE =
(TYPE=SESSION)
(METHOD=BASIC)
(RETRIES=180)
(DELAY=5))))
shudown instance(fail)
[oracle@paycore1 bin]$ ./srvctl stop service -d newpay -s
s_node1
[oracle@paycore1 bin]$ ./srvctl stop service
-d newpay -s s_node1p
[oracle@paycore1 bin]$ ./srvctl remove
service -d newpay -s s_node1
[oracle@paycore1 bin]$ ./srvctl remove
service -d newpay -s s_node1p
------------------------------------------------------------------------------------------------------Testcase4(preferred
FAN)
./srvctl add service -d newpay -s s_node1 -r newpay1 -a
newpay2
./srvctl start service -d newpay -s
s_node1
execute dbms_service.modify_service ( service_name =>
's_node1' , aq_ha_notifications => true , failover_method
=> dbms_service.failover_method_basic ,
failover_type => dbms_service.failover_type_session ,
failover_retries => 180, failover_delay => 5 , clb_goal =>
dbms_service.clb_goal_long);
RAC_SCAN_S1 =
(DESCRIPTION =
(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.120.108)(PORT=1521))
(CONNECT_DATA =
(SERVICE_NAME = s_node1)
)
)
./srvctl stop instance -d newpay -i newpay1
fail
./srvctl start instance -d newpay -i newpay1
RAC_s_node1 =
(DESCRIPTION
=(FAILOVER=ON)(LOAD_BALANCE=ON)
(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.120.104)(PORT=1521))
(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.120.105)(PORT=1521))
(CONNECT_DATA =
(SERVICE_NAME = s_node1)
)
)
./srvctl stop instance -d newpay -i newpay1
fail
./srvctl start instance -d newpay -i newpay1
RAC_s_node1 =
(DESCRIPTION
=(FAILOVER=ON)(LOAD_BALANCE=ON)
(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.120.104)(PORT=1521))
(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.120.105)(PORT=1521))
(CONNECT_DATA =
(SERVICE_NAME = s_node1)
(FAILOVER_MODE =
(TYPE=SESSION)
(METHOD=BASIC)
(RETRIES=180)
(DELAY=5))))
./srvctl stop instance -d newpay -i newpay1
fail
./srvctl start instance -d newpay -i newpay1
[oracle@paycore1 bin]$ ./srvctl stop service -d newpay -s
s_node1
[oracle@paycore1 bin]$ ./srvctl remove
service -d newpay -s s_node1
------------------------------------------------------------------------------------------------------Testcase5(preferred
12c )
./srvctl add service -db newpay -service sales
-session_state DYNAMIC
-failovertype SESSION -failovermethod
BASIC -failoverdelay 180
-failoverretry 3
PRKO-3116 : '-serverpool' or '-preferred' option must be
provided
./srvctl add service -db newpay -service sales
-session_state STATIC
-failovertype SESSION -failovermethod
BASIC -failoverdelay 180
-failoverretry 3 -preferred newpay1
PRCD-1262 : Failed to add or modify session state consistency
because the failover type is not set to TRANSACTION
./srvctl add service -db newpay -service sales
-failovertype SESSION -failovermethod
BASIC -failoverdelay 180
-failoverretry 3 -preferred newpay1 -available
newpay2
./srvctl start service -db newpay -service sales
RAC_SALES =
(DESCRIPTION
=(FAILOVER=ON)(LOAD_BALANCE=ON)
(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.120.104)(PORT=1521))
(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.120.105)(PORT=1521))
(CONNECT_DATA =
(SERVICE_NAME = sales)
(FAILOVER_MODE =
(TYPE=SESSION)
(METHOD=BASIC)
(RETRIES=180)
(DELAY=5))))
SCAN_SALES =
(DESCRIPTION =
(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.120.108)(PORT=1521))
(CONNECT_DATA =
(SERVICE_NAME = sales)
)
)
./srvctl stop instance -d newpay -i newpay1
fail
./srvctl start instance -d newpay -i newpay1
[oracle@paycore1 bin]$ ./srvctl stop service -d newpay -s
sales
[oracle@paycore1 bin]$ ./srvctl remove
service -d newpay -s sales
------------------------------------------------------------------------------------------------------Oracle
Testcase
./srvctl add service -d newpay -s s_2_nf -r newpay1,newpay2 -P
BASIC
./srvctl add service -d newpay -s s_2_f -r
newpay1,newpay2
#############################################################################################
TAF Basic Configuration Without FAN
#############################################################################################
$ srvctl add service -d RACDB -s AP -r I1,I2
-P BASIC
$ srvctl start service -d RACDB -s AP
AP =
(DESCRIPTION
=(FAILOVER=ON)(LOAD_BALANCE=ON)
(ADDRESS=(PROTOCOL=TCP)(HOST=N1VIP)(PORT=1521))
(ADDRESS=(PROTOCOL=TCP)(HOST=N2VIP)(PORT=1521))
(CONNECT_DATA =
(SERVICE_NAME = AP)
(FAILOVER_MODE =
(TYPE=SESSION)
(METHOD=BASIC)
(RETRIES=180)
(DELAY=5))))
#############################################################################################
TAF Basic Configuration with FAN
#############################################################################################
$ srvctl add service -d RACDB -s AP -r I1,I2
$ srvctl start service -d RACDB -s AP
SQL>execute dbms_service.modify_service ( service_name
=> 'AP' , aq_ha_notifications => true , failover_method
=> dbms_service.failover_method_basic
,
failover_type => dbms_service.failover_type_session ,
failover_retries => 180, failover_delay => 5
,
clb_goal => dbms_service.clb_goal_long);
AP =
(DESCRIPTION
=(FAILOVER=ON)(LOAD_BALANCE=ON)
(ADDRESS=(PROTOCOL=TCP)(HOST=N1VIP)(PORT=1521))
(ADDRESS=(PROTOCOL=TCP)(HOST=N2VIP)(PORT=1521))
(CONNECT_DATA =
(SERVICE_NAME = AP)))