srvctl relocate fails
Had a bit of an odd problem with a RAC One Node database.
The command
srvctl relocate database -d -d ORCL -node linux1
failed
PRCD-1222 : Online relocation of database "ORCL" failed but database was restored to its original state
PRKH-1001 : HASContext Internal Error
PRKH-3005 : Entity orcl_1 was not registered with CSS
CLSS return code=12
The more traditional srvctl commands (stop/start) for this database worked fine.
It turns out that RAC One Node is sensitive to the .database "db_unique_name" parameter.
This was not set to ORCL but to its default - the db_name ORC.
So the database would not relocate.