Enable/DIsable Services in RAC Database using srvctl
884084Aug 23 2011 — edited Aug 23 2011Hello,
I am using Oracle Database 11g on a two node RAC. For the service management on the RAC I use srvctl and I have problems in understanding why the tool offers redundant information for some services.
To be more exact, let's say I have a two node RAC, one database called DB_NAME and one instance on each node called DB_NAME1 and DB_NAME2.
I create a service called DB_SRV using srvctl like this:
srvctl add service -d DB_NAME -s DB_SRV -r DB_NAME1 -a DB_NAME2
Then I run srvctl config to see service parameters like this:
srvctl config service -d DB_NAME -s SRV_NAME
And I get the output:
Service name: DB_SRV
Service is enabled
[...]
Preferred instances: DB_NAME1
Available instances: DB_NAME2
So I can see that the the service DB_SRV is enabled by default, and I want to disable the service, like this:
srvctl disable service -d DB_NAME -s DB_SRV -i DB_NAME1
After than I run srvctl config again:
srvctl config service -d DB_NAME -s SRV_NAME
And I get the output:
Service name: DB_SRV
Service is enabled
[...]
Preferred instances: DB_NAME1
Available instances: DB_NAME2
Service is disabled on instances: DB_NAME1
So far,it all makes sense. The service is enabled to all the instances, but disabled for DB_NAME1 so this means the the service is enabled on DB_NAME2. All ok.
But then, I want to enable the service on DB_NAME2 (although it is already enabled there) and I run:
srvctl enable service -d DB_NAME -s DB_SRV -i DB_NAME2
After than I run srvctl config again:
srvctl config service -d DB_NAME -s SRV_NAME
And I get the output:
Service name: DB_SRV
Service is enabled
[...]
Preferred instances: DB_NAME1
Available instances: DB_NAME2
Service is enabled on instances: DB_NAME2
Service is disabled on instances: DB_NAME1
So my real question is:
Why isn't oracle giving me an error when I run
srvctl enable service -d DB_NAME -s DB_SRV -i DB_NAME2
and instead adds this line (redundant, I would say)
Service is enabled on instances: DB_NAME2
in the srvctl config output?
Thank you in advance!