Skip to Main Content

Database Software

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!

Relocating services using srvctl in 12c

2907274Mar 1 2016 — edited Mar 2 2016

How do I move a service from both nodes to only one node, and then back to both nodes again?

Let's say I have a service defined on nodes ORCL1 and ORCL2.

It looks like this

srvctl status service -db ORCL

Service myservice is running on instance(s) ORCL1,ORCL2

Move service to the second node

srvctl modify service -db ORCL -service myservice -modifyconfig -preferred ORCL2

Now it looks like this

srvctl status service -db ORCL

Service myservice is running on instance(s) ORCL2


I can take down ORCL1 and do my maintenance.

Now how do I get it back to the state it was in the beginning where it was running on both nodes? Relocate and modify only allow me to move it to one node it seems.


Thanks in advance

This post has been answered by JohnWatson2 on Mar 2 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 30 2016
Added on Mar 1 2016
7 comments
1,782 views