Hi Msoro,
Please note your earlier screenshot had error:
tns listener does not currently know of SID given in connect descriptor
So as per example below ensure this correct!
A sample entry for the alias C11 and default domain WORLD could be, for example:
C11.WORLD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = c11host) (PORT = 1527)
)
)
(CONNECT_DATA =
(SID = PRD)
)
)
With regard to ORA-12154, only the first line is important. tnsnames.ora must contain this type of line, comprising the alias used and the default domain. If this entry is missing, ORA-12154 is issued. Even if the line <sid>.WORLD is indented (that is, starting with blank spaces or tabs), ORA-12154 occurs.
Avoid using the "@" character in passwords for database users. Otherwise, ORA-12154 errors may occur because Oracle may interpret the part behind "@"as a TNS alias. This is particularly difficult to analyze if the password defined in the SAPUSER table contains an "@" for SAPR3 or SAP<sid>
Johan