RAC - Command

SRVCTL


Database 
srvctl status database -d agap
srvctl status database -d agap -verbose
note: verbose show if database is open, mount, nomount or read only
srvctl start database -d agap
srvctl start database -d agap -startoption "read only"
srvctl start database -d agap -s "read only"
srvctl start database -d agap -s "mount"
srvctl start database -d agap -s "open"
srvctl stop database -d agap -stopoption "NORMAL"
srvctl stop database -d agap -stopoption "TRANSACTIONAL"
srvctl stop database -d agap -stopoption "IMMEDIATE"
srvctl config database -d agap
srvctl config database -d agap -all
srvctl config database -d agap --serverpool spoolagap
srvctl remove database -db agap
srvctl remove database -db agap -f
srvctl setenv database -db crm -env LANG=en
srvctl unsetenv database -db crm -envs "CLASSPATH,LANG"
srvctl update database -db db_unique_name
srvctl add database -db crm -oraclehome /u01/oracle/product/12c/mydb -domain example.com -spfile +diskgroup1/crm/spfilecrm.ora -role PHYSICAL_STANDBY -startoption MOUNT -dbtype RAC -dbname crm_psd -policy MANUAL -serverpool "svrpool1,svrpool2" -diskgroup "dgrp1,dgrp2"

srvctl add database -db crm -oraclehome /u01/oracle/product/12c/mydb -domain example.com
srvctl modify database
srvctl convert database -db myDB -dbtype RACONENODE -instance myDB3
note:The srvctl convert database command converts a database either to or from an Oracle RAC One Node database.


Instance
srvctl status instance -d agap -n ol7-122-rac1
srvctl status instance -d agap -n ol7-122-rac1 -verbose
srvctl status instance -d agap -i agap_1
note: verbose show if instance is open, mount or nomount
srvctl start instance -d agap -i agap_1
srvctl start instance -d agap -n ol7-122-rac1
srvctl start instance -d agap -i agap_1 -startoption OPEN
srvctl start instance -d agap -i agap_1 -startoption MOUNT
srvctl start instance -d agap -i agap_1 -startoption NOMOUNT
srvctl stop instance -d agap -i agap_1 
srvctl stop instance -d agap -i agap_1 -stopoption IMMEDIATE
srvctl stop instance -d agap -i agap_1 -stopoption "TRANSACTIONAL LOCAL"
srvctl stop instance -d agap -i agap_1 -stopoption NORMAL
srvctl stop instance -d agap -i agap_1 -stopoption ABORT
srvctl stop instance -d agap -i agap_1 -failover
note: Allow the running services to fail over to another instance
srvctl remove instance
srvctl remove instance -db db_unique_name -instance instance_name [-noprompt] [-force]
srvctl remove instance -db agap -instance agap_1
srvctl add instance -db crm -instance crm01 -node gm01
srvctl add instance -db crm -instance crm02 -node gm02

srvctl add instance -db crm -instance crm03 -node gm03

Listener
srvctl status listener
srvctl status listener -n ol7-122-rac1
srvctl start listener
srvctl start listener -n ol7-122-rac1
srvctl start listener -listener listener_pepe
srvctl stop listener
srvctl stop listener -n ol7-122-rac1
srvctl stop listener -listener listener_pepe
srvctl config listener
srvctl config listener -all
srvctl config listener -listener listener
srvctl config listener -listener MGMTLSNR
srvctl remove listener
srvctl remove listener [-listener listener_name | -all] [-force]
srvctl remove listener -listener lsnr01
srvctl setenv listener
Note: You cannot use this command to administer SCAN listeners.
srvctl setenv listener -env "LANG=en"
srvctl unsetenv listener -envs "TNS_ADMIN"
srvctl update listener
note: Updates the listener to listen on the new endpoints
srvctl update scan_listener
note: Update the SCAN listeners to listen on the new endpoints.
srvctl add listener -listener listener112 -endpoints "1341,1342,1345" -oraclehome /u01/app/oracle/product/12.1.0/db1

SCAN
srvctl status scan
srvctl status scan -all
srvctl status scan -verbose
srvctl status scan -scannumber 1
srvctl status scan -scannumber 2
srvctl status scan -scannumber 3
srvctl start scan
srvctl start scan -netnum 1
srvctl stop scan
srvctl stop scan -netnum 1
srvctl stop scan -netnum 1
srvctl stop scan -f
srvctl config scan
srvctl config scan -scannumber 1
srvctl remove scan
note: Removes all Oracle Clusterware resources for all SCAN VIPs
srvctl remove scan [-force] [-noprompt]
srvctl remove scan -f
srvctl add scan -scanname scan.mycluster.example.com

SCAN listeners
srvctl status scan_listener
srvctl status scan_listener -all
srvctl status scan_listener -scannumber 1
srvctl start scan_listener
srvctl start scan_listener -n ol7-122-rac1
srvctl start scan_listener -scannumber 1
srvctl stop scan_listener
srvctl stop scan_listener -n ol7-122-rac1
srvctl stop scan_listener -scannumber 1
srvctl config scan_listener
srvctl config scan_listener -scannumber 1
srvctl remove scan_listener
note: Removes all Oracle Clusterware resources for all SCAN listeners
srvctl remove scan_listener [-force] [-noprompt]
srvctl remove scan_listener -f
srvctl add scan_listener -listener myscanlistener

Servers
srvctl status server -servers ol7-122-rac1
srvctl status server -servers ol7-122-rac1 -detail
note: with detail word you can see the Server active pools

Service
srvctl status service -db agap
srvctl start service -db agap
srvctl start service -db agap -n ol7-122-rac1
srvctl start service -db agap -serverpool
srvctl start service -db agap -service crm
srvctl start service -db agap -service crm -instance agap_1
srvctl stop service -db agap
srvctl stop service -db agap -f
srvctl stop service -db agap -v
srvctl config servic
srvctl config service -db crm -service webapps
srvctl remove service
note: Removes services from the Oracle Clusterware or Oracle Restart configuration
srvctl remove service -db db_unique_name -service service_name  [-instance instance_name] [-global_override]
srvctl remove service -db agap -service sales
srvctl remove service -db agap -service sales -instance agap_2
srvctl add service
srvctl modify service
srvctl add service -db crm -service sales -preferred crm01,crm02 -available crm03 -tafpolicy BASIC
srvctl relocate service

Server Pools
srvctl status srvpool
srvctl status srvpool -detail
note: with detail word you can see all server pools information
srvctl status srvpool -serverpool Free
srvctl status srvpool -serverpool spagap
srvctl status srvpool -serverpool Generic
srvctl config srvpool
srvctl config srvpool -serverpool dbpool
srvctl remove srvpool -serverpool pool_name [-eval] [-verbose]
srvctl remove srvpool -serverpool srvpool1
srvctl modify srvpool
srvctl add srvpool -serverpool SP1 -importance 1 -min 3 -max 7
srvctl remove srvpool

Highly Available VIPs
srvctl status havip
srvctl start havip -id myhavip -node ol7-122-rac1
srvctl config havip
srvctl config havip -id hrexports
srvctl remove havip
srvctl remove havip -id havip_name [-force]
srvctl remove havip -id myhavip
srvctl add havip -id myhavip -address 192.0.2.1 -netnum 2 -description "My HA VIP" -skip -homenode myNode2

ASM Autiomatic Storage Manager
srvctl status asm 
srvctl status asm -n ol7-122-rac1
srvctl status asm -n ol7-122-rac1 -detail
srvctl start asm -n ol7-122-rac1
srvctl start asm -n "ol7-122-rac1,ol7-122-rac1"
srvctl start asm -n ol7-122-rac1 -startoption MOUNT
srvctl start asm -n ol7-122-rac1 -startoption NOMOUNT
srvctl remove asm -force
srvctl setenv asm -env "LANG=en"
srvctl unsetenv asm -envs "CLASSPATH"

Cluster Verification Utility
srvctl status cvu
srvctl status cvu -n ol7-122-rac1
srvctl start cvu
srvctl start cvu -node crmnode1

Disk Group
srvctl status diskgroup -diskgroup data -n ol7-122-rac1
srvctl status diskgroup -diskgroup data -n "ol7-122-rac1,ol7-122-rac2"
srvctl start diskgroup
srvctl start diskgroup -diskgroup diskgroup1 -node "mynode1,mynode2"
srvctl remove diskgroup -diskgroup diskgroup_name [-force]
srvctl remove diskgroup -diskgroup DG1 -force

Volume
srvctl status volume
srvctl status volume -diskgroup data
srvctl status volume -device /dev/asm/volumen1-241
srvctl status volume -all
srvctl start volume
srvctl start volume -all
srvctl start volume 
-diskgroup data
srvctl start volume -volume VOLUME1 -diskgroup DATA
srvctl stop volume -device /dev/asm/volumen1-241 -f
note= run as a root
srvctl remove volume -volume volume_name -diskgroup disk_group_name [-force]
srvctl remove volume -device volume_device [-force]
srvctl remove volume -volume VOLUME1 -diskgroup DATA

ACFS
note: ACFS - Automatic Cluster File System
srvctl status filesystem
srvctl status filesystem -verbose
srvctl status filesystem -device /dev/asm/volumen1-241 
note: you can found device with df -h command
srvctl start filesystem
srvctl start filesystem -device /dev/asm/volumen1-241 
srvctl start filesystem -device /dev/asm/volumen1-241 -node ol7-122-rac1
srvctl start filesystem -device /dev/asm/volumen1-241 -node ol7-122-rac1
note:as a root
srvctl stop filesystem
srvctl stop filesystem -device /dev/asm/volumen1-241
srvctl remove filesystem -device volume_device_name [-force]
srvctl remove filesystem -device /dev/asm/racvol1

Oracle home
srvctl status home -oraclehome /u01/app/oracle/product/12.1/dbhome_1 -statefile ~/state.txt -node ol7-122-rac1
srvctl start home -oraclehome /u01/app/oracle/product/12.1.0/db_1 -statefile ~/state.txt -node node1

Management database
srvctl status mgmtdb
srvctl status mgmtdb -verbose
note: verbose show if database is open, mount or nomount
srvctl start mgmtdb
srvctl start mgmtdb -n ol7-122-rac1 -startoption "OPEN"
srvctl start mgmtdb -n ol7-122-rac1 -startoption "MOUNT"
srvctl start mgmtdb -n ol7-122-rac1 -startoption "NOMOUNT"
srvctl start mgmtdb -n ol7-122-rac1 -startoption "OPEN"
srvctl start mgmtdb -n ol7-122-rac1 -startoption "READ ONLY"
srvctl stop mgmtdb -stopoption "NORMAL"
srvctl stop mgmtdb -stopoption "TRANSACTIONAL"
srvctl stop mgmtdb -stopoption "IMMEDIATE"
NOTE: Immediate is the best option, you don't have to wait as normal or transaction maybe you have to wait forever. 
srvctl stop mgmtdb -stopoption "ABORT"
srvctl remove mgmtdb [-force] [-noprompt] [-verbose]
srvctl remove mgmtdb -noprompt
srvctl setenv mgmtdb -env LANG=en
srvctl unsetenv mgmtdb -envs "LANG"

Management Listener
srvctl status mgmtlsnr 
srvctl status mgmtlsnr -verbose
note: Yo can see if listener is enable, running and you get IP address 
srvctl start mgmtlsnr
srvctl start mgmtlsnr -n ol7-122-rac1
srvctl stop mgmtlsnr
srvctl stop mgmtlsnr -n ol7-122-rac1
srvctl stop mgmtlsnr -n ol7-122-rac1 -f
srvctl remove mgmtlsnr -f
srvctl setenv mgmtlsnr -env LANG=en
srvctl unsetenv mgmtlsnr -envs "LANG"
srvctl add mgmtlsnr -endpoints "TCP:1341"

Node applications
srvctl status nodeapps
srvctl status nodeapps -n ol7-122-rac1
srvctl start nodeapps -n ol7-122-rac1 -v
srvctl start nodeapps -n ol7-122-rac1 -v
srvctl stop nodeapps

srvctl stop nodeapps -n ol7-122-rac1
srvctl stop nodeapps -n ol7-122-rac1 -relocate
srvctl stop nodeapps -n ol7-122-rac1 -relocate -f
srvctl config nodeapps
srvctl config nodeapps -viponly -onsonly
srvctl remove nodeapps
srvctl remove nodeapps [-force] [-noprompt] [-verbose]
note: You must have full administrative privileges
srvctl setenv nodeapps -env "CLASSPATH=/usr/local/jdk/jre/rt.jar" -verbose
srvctl unsetenv nodeapps -envs "test_var1,test_var2"

srvctl add nodeapps -node crmnode1 -address 1.2.3.4/255.255.255.0


oc4j - Oracle Database QoS Management server
srvctl status oc4j
srvctl status oc4j -verbose
srvctl status oc4j -n ol7-122-rac1
srvctl start oc4j
srvctl start oc4j -n ol7-122-rac1
srvctl start oc4j -n ol7-122-rac1 -v
srvctl stop oc4j
srvctl stop oc4j -n ol7-122-rac1
srvctl stop oc4j -n ol7-122-rac1 -n
srvctl config oc4j
srvctl remove oc4j -force -verbose
srvctl add oc4j

ONS - Oracle Notification Service
srvctl status ons
srvctl start ons
srvctl stop ons
srvctl config ons
srvctl remove ons -force -verbose
srvctl add ons -l 6200

VIPs
srvctl status vip -n ol7-122-rac1
srvctl status vip -n ol7-122-rac1 -verbose
srvctl start vip
srvctl start vip -vip crm1-vip -verbose
srvctl stop vip -n ol7-122-rac1
note: must be ready down listenr
srvctl stop vip -n ol7-122-rac1 -vip ol7-122-rac1-vip.localdomain
srvctl config vip
srvctl config vip -node crmnode1
srvctl config volume
srvctl config volume -device /dev/asm/volume1-123
srvctl remove vip
srvctl remove vip -vip "vip_name_list" [-force] [-noprompt] [-verbose]
srvctl remove vip -vip "vip1,vip2,vip3" -force -noprompt -verbose
srvctl setenv vip -vip crm1-vip -env "LANG=en"
srvctl unsetenv vip -vip "crm2-vip" -envs "CLASSPATH"
srvctl add vip -node node7 -address 192.168.16.17/255.255.255.0 -netnum 2

Cluster Verification Utility
srvctl status cvu
srvctl status cvu -n ol7-122-rac
srvctl start cvu
srvctl start cvu -n ol7-122-rac
srvctl stop cvu
srvctl stop cvu -f
srvctl config cvu
srvctl remove cvu -force

Network
srvctl config network
srvctl config network -netnum 1
srvctl config network -netnum 2
srvctl remove network {-netnum network_number | -all} [-force] [-verbose]
srvctl remove network -netnum 3
srvctl add network -netnum 2 -subnet 192.168.16.0/255.255.255.0
srvctl add network -netnum 3 -subnet 192.168.3.0/255.255.255.0

GNS - Grid Naming Service
note: GNS provides dynamic DHCP allocated addresses for the SCAN and nodes VIPs. 
         There are two options for defining the SCAN: Round Robin DNS (Domain Name Service ) or GNS
srvctl status gns
srvctl start gns
note: just run in the server cluster, not client cluster
srvctl remove gns
srvctl remove gns -f -v
srvctl update gns
-deletalias alias Delete an alias
-createsrv service Create a service that is described by the record
-target target Specify a name that is associated with the service
-protocol protocol Specify which protocol is used to connect to the service
-weight weight Specify the weight of the record
-priority priority Specify the priority of the record, with a value ranging from 0 to 65535
-port port_number Specify the port number used to connect to the service, with a value ranging from 0 to 65535
-instance instance_name Instance name of service
-deletesrv service Name of the service record to be deleted
-createtxt name Add a text (TXT) record using the specified name
-namettl name_ttl Time to live for the name, specified in seconds
-deletetxt name Delete a text (TXT) record of the specified name
-createptr name Add a pointer (PTR) record for the specified name
-deleteptr name Delete a pointer (PTR) record for the specified name
srvctl update gns -advertise name -address ip_address [-timetolive time_to_live] [-verbose]
srvctl update gns -delete name [-address address] [-verbose]
srvctl update gns -alias alias -name name [-timetolive time_to_live] [-verbose]
srvctl update gns -deletealias alias [-verbose]
srvctl update gns -createsrv service -target target -protocol protocol [-weight weight] [-priority priority] [-port port_number] 
  [-timetolive time_to_live] [-instance instance_name] [-verbose]
srvctl update gns -deletesrv service_name -target target -protocol protocol [-verbose]
srvctl update gns -createtxt name -target target [-timetolive time_to_live] [-namettl name_ttl] [-verbose]
srvctl update gns -deletetxt name -target target [-verbose]
srvctl update gns -createptr name -target target [-timetolive time_to_live] [-namettl name_ttl] [-verbose]
srvctl update gns -deleteptr name -target target [-verbose]
srvctl update gns -advertise myname -address 192.168.1.45



SRVCTL DISABLE 
srvctl disable cvu Disables the Cluster Verification Utility
srvctl disable cvu -node crmnode1
srvctl disable database Disables the cluster database
srvctl disable database -db mydb1
srvctl disable diskgroup Disables a disk group on a number of specified nodes
srvctl disable diskgroup -diskgroup dgroup1 -node "mynode1,mynode2"
srvctl disable filesystem Disables an Oracle ACFS volume
srvctl disable filesystem -device /dev/asm/racvol1
srvctl disable gns Disables GNS
srvctl disable gns -node crm7
srvctl disable havip Prevents an HAVIP resource from running on a number of specified nodes
srvctl disable havip -id myhavip -node myNode1,myNode3
srvctl disable instance Disables an instance
srvctl disable instance -db crm -instance "crm1,crm3"
srvctl disable listener Disables a listener
srvctl disable listener -listener listener_crm -node node5
srvctl disable mgmtdb Disables the management database
srvctl disable mgmtdb
srvctl disable mgmtlsnr Disables the management listener
srvctl disable mgmtlsnr
srvctl disable nodeapps Disables a node application and GSD
srvctl disable nodeapps -gsdonly -verbose
srvctl disable oc4j Disables OC4J instances
srvctl disable oc4j -node crm3
srvctl disable ons Disables the Oracle Notification Service daemon
srvctl disable ons [-verbose]
srvctl disable scan Disables SCAN VIPs
srvctl disable scan -scannumber 1
srvctl disable scan_listener Disables SCAN listeners
srvctl disable scan_listener -scannumber 1
srvctl disable service Disables a service
srvctl disable service -db crm -service "crm,marketing"
srvctl disable service -db crm -service crm -instance crm1
srvctl disable vip Disables a VIP
srvctl disable vip -vip vip1 -verbose
srvctl disable volume Disables a volume
srvctl disable volume -volume VOLUME1 -diskgroup DATA

SRVCTL ENABLE
srvctl enable asm Enables an Oracle ASM instance
srvctl enable asm -node crmnode1
srvctl enable cvu Enables the Cluster Verification Utility
srvctl enable cvu -node crmnode1
srvctl enable database Enables the database resource
srvctl enable database -db mydb1
srvctl enable diskgroup Enables a specified disk group on a number of specified nodes
srvctl enable diskgroup -diskgroup diskgroup1 -node "mynode1,mynode2"
srvctl enable filesystem Enables an Oracle ACFS volume
srvctl enable filesystem -device /dev/asm/racvol1
srvctl enable gns Enables GNS
srvctl enable gns
srvctl enable havip Allows an HAVIP resource to run on a number of specified nodes
srvctl enable havip -id myhavip -node myNode1
srvctl enable instance Enables the instance
srvctl enable instance -db crm -instance "crm1,crm2"
srvctl enable listener Enables a listener
srvctl enable listener -listener listener_crm -node node5
srvctl enable mgmtdb Enables the management database for Oracle Clusterware management.
srvctl enable mgmtdb -node node5
srvctl enable mgmtlsnr Enables the management listener for Oracle Clusterware management
srvctl enable mgmtlsnr -node node5
srvctl enable nodeapps Enables node applications and GSD
srvctl enable nodeapps -gsdonly -verbose
srvctl enable oc4j Enables OC4J instances
srvctl enable oc4j -node crm3
srvctl enable ons Enables the Oracle Notification Service daemon
srvctl enable ons
srvctl enable scan Enables SCAN VIPs
srvctl enable scan -scannumber 1
srvctl enable scan_listener Enables SCAN listeners
srvctl enable scan_listener -scannumber 1
srvctl enable service Enables a service
srvctl enable service -db crm -service crm
srvctl enable service -db crm -service crm -instance crm1
srvctl enable vip Enables a VIP
srvctl enable vip -vip crm1-vip -verbose
srvctl enable volume Enables a volume
srvctl enable volume -volume VOLUME1 -diskgroup DATA

SRVCTL EXPORT GNS
The srvctl export gns command exports Grid Naming Service (GNS) instance data to a file that you can use when you are either moving GNS from one server cluster to another or when you are creating a client cluster

srvctl export gns -clientdata /temp/gnsdata/gns.txt

SRVCTL GETENV
Gets and displays values for the environment variables from the configuration file. Use SRVCTL with the setenv, getenv, and unsetenv verbs to administer the environment configurations for databases, instances, services, and node applications
srvctl getenv asm Gets the Oracle ASM environment values
srvctl getenv asm
srvctl getenv database Gets the database environment values
srvctl getenv database -db crm
srvctl getenv listener Gets the listener environment values
srvctl getenv listener
srvctl getenv mgmtdb Gets the management database environment variables
srvctl getenv mgmtdb
srvctl getenv mgmtlsnr Gets the management listener resource environment variables
srvctl getenv mgmtlsnr
srvctl getenv nodeapps Gets the node application environment values
srvctl getenv nodeapps -viponly
srvctl getenv vip Gets the service environment values
srvctl getenv vip -vip node1-vip

SRVCTL IMPORT GNS
The srvctl import gns command imports data from a file that you create when you run the Syntax and Parameters command. Use this command when you want to locate GNS to a different server cluster.

srvctl import gns -instance /temp/gnsdata/gns.txt


SRVCTL MODIFIED 
srvctl modify asm Modifies the configuration for Oracle ASM
srvctl modify asm -listener lsnr1
srvctl modify cvu Modifies the check interval of the Cluster Verification Utility
srvctl modify cvu -checkinterval 240
srvctl modify database Modifies the configuration for a database
changes the role of a database to a logical standby:
srvctl modify database -db crm -role logical_standby
Database to use the SYSFILES, LOGS, and OLTP Oracle ASM disk groups.
srvctl modify database -db racTest -diskgroup "SYSFILES,LOGS,OLTP"
srvctl modify filesystem Modifies the user authorized to mount and unmount the Oracle ACFS volume
srvctl modify filesystem -device /dev/asm/racvol1 -user sysad
srvctl modify gns Modifies the GNS configuration
srvctl modify gns -vip 192.0.2.15
srvctl modify havip Modifies a highly available VIP resource
srvctl modify havip -id myhavip -address 192.168.16.17 -netnum 2
srvctl modify instance Modifies the configuration for an instance
The following example to changes the configuration of an administrator-managed database, amdb, so that the database instance, amdb1, runs on the specified node, mynode:
srvctl modify instance -db amdb -instance amdb1 -node mynode
The following example causes the policy-managed database pmdb, when and if it runs on mynode, to use the instance name pmdb1:
srvctl modify instance -db pmdb -instance pmdb1_1 -node mynode
The following example removes the directive established by the previous example:
srvctl modify instance -db pmdb -instance pmdb1_1 -node ""
srvctl modify listener Modifies the listener configuration
srvctl modify listener -endpoints "TCP:1521,1522"
srvctl modify mgmtdb Modifies the management database configuration
srvctl modify mgmtdb -diskgroup "SYSFILES"
srvctl modify mgmtlsnr Modifies the management listener configuration
srvctl modify mgmtlsnr -endpoints "TCP:2521,2522"
srvctl modify network Modifies the configuration for a network
The following example changes the subnet number, netmask, and interface list:
srvctl modify network -subnet 192.168.2.0/255.255.255.0/eth0
The following example changes the second network to DHCP:
srvctl modify network -netnum 2 -nettype dhcp
The following example adds an IPv6 subnet and netmask to the default network:
srvctl modify network -subnet 2606:b400:400:18c0::/64
The following example removes the IPv4 configuration from a network:
srvctl modify network -iptype ipv6
srvctl modify nodeapps Modifies the configuration for a node application
srvctl modify nodeapps -node mynode1 -addr 100.200.300.40/255.255.255.0/eth0
srvctl modify oc4j Modifies the RMI port for an OC4J instance
srvctl modify oc4j -rmiport 5385
srvctl modify ons Modifies the network configuration for the Oracle Notification Service daemon
srvctl modify ons [-onslocalprt ons_local_port] [-onsremoteport ons_remote_port] [-emport em_port] [-remoteservers host[:port][,host[:port]][...]] [-verbose]
srvctl modify scan Modifies the SCAN VIP configuration to match that of a specific SCAN VIP
srvctl modify scan -scanname scan_name1
srvctl modify scan_listener Updates the SCAN listener configuration to match that of the current SCAN VIP configuration
srvctl modify scan_listener -update
srvctl modify scan_listener -p 1523
srvctl modify service Modifies the configuration for a service
An example of moving a service member from one instance to another is:
srvctl modify service -db crm -service crm -oldinst crm1 -newinst crm2
An example of changing an available instance to a preferred instance is:
srvctl modify service -db crm -service crm -available crm1 -toprefer
The following command exchanges a preferred and available instance:
srvctl modify service -db crm -service crm -modifyconfig -preferred "crm1" \
-available "crm2"
srvctl modify srvpool Modifies a specific server pool
srvctl modify srvpool -serverpool srvpool1 -importance 0 -min 2 -max 4
srvctl modify vip Modifies the VIP to use a different IP address type
srvctl modify vip -node node7 -address 192.168.16.17/255.255.255.0 -netnum 2

SRVCTL PREDICT
The predict command predicts what happens when a resource fails and cannot be restarted on the same node. This command does not make any modifications to the system.
srvctl predict asm Predicts the consequences of Oracle ASM failure
srvctl predict asm -node crmnode2
srvctl predict database Predicts the consequences of database failure
srvctl predict database -db racdb
srvctl predict diskgroup Predicts the consequences of diskgroup failure
srvctl predict diskgroup -diskgroup data
srvctl predict filesystem Predicts the consequences of filesystem failure
srvctl predict filesystem -device /dev/asm/volume1-123
srvctl predict listener Predicts the consequences of listener failure
srvctl predict listener -listener NODE3_CRMAPP_LISTENER
srvctl predict network Predicts the consequences of network failure
srvctl predict network -netnum 2
srvctl predict oc4j Predicts the consequences of OC4J failure
srvctl predict oc4j
srvctl predict scan Predicts the consequences of SCAN failure
srvctl predict scan -scannumber 1 -verbose
srvctl predict scan_listener Predicts the consequences of SCAN listener failure
srvctl predict scan_listener -scannumber 1
srvctl predict service Predicts the consequences of service failure
srvctl predict service -db racdb -service "crm"
srvctl predict vip Predicts the consequences of VIP failure
srvctl predict vip -vip racdb1_vip

SRVCTL RELOCATE
The relocate command causes the specified object to run on a different node. The specified object must be running already.
The relocation of the object is temporary until you modify the configuration. The previously described modify command permanently changes the configuration.
srvctl relocate asm Relocate an Oracle Flex ASM instance from one node of an Oracle Flex Cluster to another
srvctl relocate asm -currentnode hubnode1 -targetnode hubnode2
srvctl relocate cvu Temporarily relocates the Cluster Verification Utility
srvctl relocate cvu -node crmnode2
srvctl relocate database Relocates an Oracle RAC One Node database to a different node
srvctl relocate database -db rac1 -node node7
srvctl relocate gns Relocates GNS to a different node
srvctl relocate gns -node node1
srvctl relocate havip Relocates a highly available VIP resource
srvctl relocate havip -id myhavip -node node3
srvctl relocate mgmtdb Relocates the management database to a different node
srvctl relocate mgmtdb -node crsNode2
srvctl relocate oc4j Relocates an OC4J instance to a different node
srvctl relocate oc4j -node crsNode01 -verbose
srvctl relocate scan Relocates a SCAN VIP from its current hosting server to another server within the cluster
srvctl relocate scan -scannumber 1 -node node1
srvctl relocate scan_listener Relocates a SCAN listener from its current hosting server to another server within the cluster
srvctl relocate scan_listener -scannumber 3
srvctl relocate server Relocates named servers to another server pool
srvctl relocate server -servers "server1, server2" -serverpool sp3
srvctl relocate service Relocates the named service names from one named instance to another named instance
srvctl relocate service -db crm -service crm -oldinst crm1 -newinst crm3
srvctl relocate vip Relocates a specific VIP from one node to another node within the cluster

srvctl relocate vip -vip vip1 -node node3