The configuration data for Net Service Names is stored in the $ORACLE_HOME/network/admin/tnsnames.ora
file.
Oracle Net Manager is one of several GUIs that can be used to edit and maintain the Net Service Name configuration data
in tnsnames.ora
.
When the Oracle multitenant database was created, DBCA automatically added the CDB (container database) name
as a Net Service Name to the tnsnames.ora
file on the DBMS host.
However, DBCA does not automatically add to tnsnames.ora
a Net Service Name for the PDB
(pluggable database) created as part of the multitenant database creation or for additional PDBs created
later. So you need to add a Net Service Name entry for each PDB to the tnsnames.ora
file on
the DBMS host. If you have a split system, you should also add a Net Service
Name entry for each PDB to the tnsnames.ora
file on the application host.
% netmgr
Prompt Value Net Service Name net-service-name-for-PDB
Protocol TCP/IP
Host Name DBMS-hostname
Port Number 1521
Service Name PDB-name.domain-name
Connection Type Dedicated Server
LeasePak requires Oracle dedicated server connections. Do not use Oracle shared server connections.
There is a bug in Oracle 19c whereby world users cannot access the
tnsnames.ora
file on the DBMS host due to insufficient Unix permissions. As a workaround, manually grant read-only Unix permission to world users.
Grant world users (i.e. "other" users) read-only Unix permission for the tnsnames.ora
file
on the DBMS host:
% chmod o+r $ORACLE_HOME/network/admin/tnsnames.ora