Configuring the network service name of the database

After the database installation is complete, the system automatically creates a default network service name, which is the same as the global database name.

You can configure the network service name by modifying the tnsnames.ora file, or by using Oracle Net Manager. For the configuration procedure using Oracle Net Manager, see "Configuring the Oracle client."

To configure the network service name by modifying the tnsnames.ora file:

  1. Open a terminal window and open the file.

    cd $ORACLE_HOME/network/admin/
    vi tnsnames.ora
    
  2. Add the network service name configuration to the file, as shown in Figure 31.

    • PDBORCL is the network service name for connecting to the database. If the database is a remote database for IMC, make sure you configure the same network service name on the Oracle database server and client.

    • Set SERVICE_NAME to the service name of a pluggable database. This example uses pdborcl.

    Figure 31: Configuring a network service name