PRKP-1024 : The service [service_name] is still running when removing a service

At times when you try to delete a service from CRS GI stack, you may the below error

PRKP-1024 : The service [service_name] is still running.

This is despite the fact that the service is definitely OFFLINE. While its not clear (to me at least) as  to why CRS has got itself into a twist, but a quick check using "crs_stat -t" may show that the service is indeed offline but a related entry ending with ".cs" may be online.

On our rig no amount of restarting CRS or rebooting the cluster helped us, goes to show the amount of muddle that went in before, therefore the following can be done in order to get rid of it

1. Use the crs_stat -p | grep .srv to obtain the full name of the service.
  e.g NAME=ora.[cluster_name].[service_name].cs

2. Use the crs_stop command to put offline the service
   e.g crs_stop ora.[cluster_name].[service_name].cs

3. Repeat steps 1 and 2 to stop all other related resources e.g. srv

You can now delete the service using the normal srvctl command as
  srvctl remove service -d [db_name] -i [service_name] -f

Comments

Popular posts from this blog

Recover Standby database from ORA-00332: archived log is too small

Check Active Dataguard Replication Status

Top CPU consuming oracle sessions