During Upgrade, DBUA Changes LOCAL_LISTENER Parameter Setting (Doc ID 737339.1)

Last updated on OCTOBER 27, 2016

Applies to:

Oracle Net Services - Version 10.1.0.2.0 to 12.1.0.2 [Release 10.1 to 12.1]
Oracle Database - Enterprise Edition - Version 12.1.0.1 and later
Information in this document applies to any platform.
Oracle Server - Enterprise Edition - Version: 10.1.0.2 to 12.1.0.2

Goal

After upgrading the  Oracle database using DBUA, you find that the value for LOCAL_LISTENER has been changed in the pfile:  

For example, the parameter might have been changed from:

LOCAL_LISTENER = '(ADDRESS = (PROTOCOL=TCP)(HOST=abc)(PORT=1532))'

to:

LOCAL_LISTENER = LISTENER_CYCLTEST


In addition, DBUA would have added a connect string to the local tnsnames.ora file that would make this value resolvable:

LISTENER_CYCLTEST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = abc)(PORT = 1532))

The DBUA upgrade log would have an entry similar to the following:

/opt/oracle/10g2cyc02/cfgtoollogs/dbua/cycltest/upgrade/PostUpgrade.log

      bestSoFar=(ADDRESS=(PROTOCOL=TCP)(HOST=abc)(PORT=1532)) 
    [Thread-30] [9:37:0:605] [NetworkUtils.getOneLocalListenerProtocolAddress:2856]  Returning 
    bestSoFar=(ADDRESS=(PROTOCOL=TCP)(HOST=abc)(PORT=1532)) 
    [Thread-30] [9:37:0:606] [NetworkUtils.getOneLocalListenerProtocolAddress:2856]  Returning 
    bestSoFar=(ADDRESS=(PROTOCOL=TCP)(HOST=abc)(PORT=1532)) 
    [Thread-30] [9:37:0:606] [EMConfiguration.run:228]  Setting LISTENER_NAME=CYCLTEST, 
    LISTENER_HOME=/opt/oracle/10g2cyc02, REP_DB_PORT=1532, REP_DB_HOST=abc, 
    REP_DB_SID=cycltest 

 DBUA is designed to use the tnsnames alias reference using the nomenclature "LISTENER_<sid>" rather than a full connect string for the LOCAL_LISTENER parameter. 

The goal of this Note is to answer the following questions:

1. What are the advantages of tnsnames.ora, over inline specification?
2. How to revert the changes done by DBUA to tnsnames.ora file?

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms