To associate the database with the listener
These parameters are created during installation or database creation.
Run the following SQL command:
SQL> ALTER SYSTEM SET LOCAL_LISTENER='<listener_alias>' scope=spfile;
OR
Add the following entry to the initialization parameter file (pfile or spfile):
LOCAL_LISTENER = <listener_alias>
tnsnames.ora
, edit the file as instructed below. The default location of tnsnames.ora
is %ORACLE_HOME%\NETWORK\ADMIN.Add the following to tnsnames.ora
file:
<listener_alias>= (DESCRIPTION = (ADDRESS=(Protocol=TCP)(HOST=virtual_IP_address)(Port=1521)) )
The listener_alias parameter gets appended by the default domain name that is specified in the file sqlnet.ora
.