Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Enable/DIsable Services in RAC Database using srvctl

884084Aug 23 2011 — edited Aug 23 2011
Hello,

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!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 20 2011
Added on Aug 23 2011
5 comments
5,357 views