When setting Oracle DataGuard the primary database can be added but when validating instances the following error appears:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
Please replace the function content with the attached new script.
Attempt to add the Data Guard again using the Oracle installer wizard
Note : the installer will only be able to validate the connection using the service name
Enhancement ID FGDBORA-I-40 has been logged to include a failover to change to connection string of the client to SID if SERVICE_NAME does not work.