I was working to setup a Data Guard in my test machine and noticed the following error when I was trying to change the db_unique_name parameter in the primary database -
SQL> alter system set db_unique_name=TESTPR scope=spfile sid='*';
alter system set db_unique_name=TESTPR scope=spfile
*
ERROR at line 1:
ORA-32017: failure in updating SPFILE
ORA-65500: could not modify DB_UNIQUE_NAME, resource exists