srvctl relocate service
SRVCTL RELOCATE SERVICE
With the article “srvctl relocate service,” we provide the command to relocate an Oracle service registered in the cluster from one node to another in the RAC using CRS.
It may happen that for some reason, such as hardware failure, maintenance activity, or updates, one of the nodes in the RAC needs to be shut down for some time.
So, we’ll be required to disable the automatic start of CRS and shut down the instances on the machine.
The best solution is definitely to shut down the Oracle instances and, if there are any services present, perform the relocation of the service to another node in the RAC.
If we don’t execute the command, it wouldn’t be a big problem because the service would still be relocated during the machine shutdown phase, but it’s always good to execute it manually.
Command to relocate the CRS service
Before executing the stop, check the status of resources with the command:
crsctl status res -t
The command to execute srvctl relocate service is:
srvctl relocate service -d <database> -s <service> -i <nome_istanza_provenienza> -t <nome_istanza_destinazione>
Example:
srvctl relocate service -d DBTESTp -s DB_TEST_SERVICE -i DBTESTp1 -t DBTESTp2
Once the prompt is returned, check the status of resources with the command:
crsctl status res -t
To view my guides on CRS Commands click here!
At this LINK, instead, you’ll find the SQL queries.
Stay updated on our activities by joining our community (make sure to like our pages, let’s connect, and stay updated on each of our new guides!):
Facebook
Youtube
Linkedin
For those who haven’t done so yet, we recommend saving this site among your bookmarks.
So you’ll always have our solutions to the most common database problems at your fingertips,
especially Oracle databases.
0 Comments