srvctl

1. add new service

srvctl add service -d dbName -s serviceName -r ins1, ins2 -a ins3

 

2. add a new instance to service

srvctl add service -d dbName -s serviceName -u -r ins4 -a ins5

 

3. remove service 

srvctl remove service -d dbName -s serviceName -i ins1

 

4. remove instance from service

srvctl remove service -d dbName -s serviceName-i ins1

-- Below 2 failed cases:

PRKP-1067 : Instance ins1 is the last available instance for service  serviceName. Try modify service instead.

PRKP-1075 : Instance ins1 is the last preferred instance for service  serviceName.

 

5. Upgrade instance to preferred

srvctl modify service -d dbName -s serviceName -i ins1 -r

你可能感兴趣的:(VC)