Monday, November 28, 2016

R12 AutoConfig failing with db connection issue

Application Tier Configuration Files To Look For.

    <$INST_TOP>/ora/10.1.2/network/admin/listener.ora

    <$INST_TOP>/ora/10.1.2/network/admin/tnsnames.ora

    <$INST_TOP>/appl/admin/<$CONTEXT_NAME>.xml

    <$FND_SECURE>/<sid>.dbc


Autoconfig is failing with dbConnection issue, to resolve it we update s_dbhost to dbhost1-vip


dbhost1.example.com is not pingable from MT tier.

dbhost1-vip.example.com is pingable from MT tier.


so we updated  s_dbhost to dbhost1-vip and ran autoconfig , autoconfig went smooth.

Not sure , why , because it is Exadata , but dbhost1-vip and dbhost1 will be on different NIC.


Below are message from autoconfig logfile before and after changing s_dbhost1

getConnection() -->
    sdbhost1    : dbhost1
    sDbexample  : example.com
    sDbPort    : 1521
    sDbSid     : VIS
    sDbUser    : APPS
    Trying to connect using SID...
getConnectionUsingSID() -->
    JDBC URL: jdbc:oracle:thin:@dbhost1.example.com:1521:VIS
    Exception occurred: java.sql.SQLException: The Network Adapter could not establish the connection
    Trying to connect using SID as ServiceName
getConnectionUsingServiceName() -->
    JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=dbhost1.example.com)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=VIS)))
    Exception occurred: java.sql.SQLException: The Network Adapter could not establish the connection
    Trying to connect using SID as ServiceName.exampleName
getConnectionUsingServiceName() -->
    JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=dbhost1.example.com)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=VIS.example.com)))
    Exception occurred: java.sql.SQLException: The Network Adapter could not establish the connection
    Connection could not be obtained; returning null


getConnection() -->
    sdbhost1    : dbhost1-vip
    sDbexample  : example.com
    sDbPort    : 1521
    sDbSid     : VIS
    sDbUser    : APPS
    Trying to connect using SID...
getConnectionUsingSID() -->
    JDBC URL: jdbc:oracle:thin:@dbhost1-vip.example.com:1521:VIS
    Exception occurred: java.sql.SQLException: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor

    Trying to connect using SID as ServiceName
getConnectionUsingServiceName() -->
    JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=dbhost1-vip.example.com)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=VIS)))
    Connection obtained


No comments:

Post a Comment