To add TNS and LISTENER entries you will need to use the netca utility. The <ORACLE_HOME\network\admin\netca.rsp file needed for the netca utility is created by the Oracle Database Configuration Utility. It's content, based on a server called <HOSTNAME> and ORACLE_SID called <ORACLE_SID> looks like the following:
[oracle.net.ca]
INSTALLED_COMPONENTS={"server","net8"}
INSTALL_TYPE=""custom""
LISTENER_NUMBER=1
LISTENER_NAMES={"LISTENER"}
LISTENER_PROTOCOLS={"TCP;1521"}
LISTENER_START=""LISTENER""
NAMING_METHODS={"TNSNAMES","EZCONNECT"}
NSN_NUMBER=1
NSN_NAMES={"PPM"}
NSN_SERVICE={"<ORACLE_SID>"}
NSN_PROTOCOLS={"TCP;<HOSTNAME>;1521"}
Note: The netca.rsp file must exist before running the netca utility.
- From the Command window, execute the following command:
<ORACLE_HOME>\bin\netca /silent /responsefile <ORACLE_HOME>\network\admin\netca.rsp - A new entry is appended to the
<ORACLE_HOME>\network\admin\tnsnames.orafile at the instance creation stage by means of the netca utility.This entry, based on a server called <HOSTNAME> and ORACLE_SID called <ORACLE_SID> appears as follows:
PPM =(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = <HOSTNAME>)(PORT = 1521)))(CONNECT_DATA =(SERVICE_NAME = <ORACLE_SID>)))Where:
<HOSTNAME>:The name of the host where the database is installed.<ORACLE_SID>:A Primavera Portfolio Management Oracle Instance name which was created. For example, ORCL. - A new entry is appended to the <ORACLE_HOME>\network\admin\listener.ora file at the instance creation stage by means of netca utility.
This entry, based on a server called <HOSTNAME> and ORACLE_HOME called <ORACLE_HOME> appears as follows:
SID_LIST_LISTENER =(SID_LIST =(SID_DESC =(SID_NAME = CLRExtProc)(ORACLE_HOME = <ORACLE_HOME>)(PROGRAM = extproc)(ENVS = "EXTPROC_DLLS=ONLY:<ORACLE_HOME>\bin\oraclr11.dll")LISTENER =(DESCRIPTION_LIST =(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP)(HOST = <HOSTNAME>)(PORT = 1521))))Where:
<HOSTNAME>:The name of the host where the database is installed.<ORACLE_HOME>:A path to Oracle Home. For example,“C:\oracle\product\11.2.0\db_1”. - Ensure the
AUTHENTICATION_SERVICESentry is not commented in the<ORACLE_HOME>\network\admin\sqlnet.orafile.SQLNET.AUTHENTICATION_SERVICES= (NTS)