I began posting about ORA-12514 after database migration involving DNS adjustment.
Then, to make it more clear I wrote about How to Flush DNS Cache.
Now, just a complementar information that can be usefull:
# To invalidade DNS Cache:
ls /var/db/nscd/ group hosts netgroup passwd services nscd --invalidate=hosts (or -i hosts)