ORA-12514 TNS:listener does not currently know of service requested in connect descri

ORA-12514 TNS:listener does not currently know of service requested in connect descri

  

Symptoms

When trying to execute start the OutSystems Configuration Tool. As the root user, execute: /opt/outsystems/platform/configurationtool.sh. The following error is presented.

ORA-12514, TNS:listener does not currently know of service requested in connect descriptor


=== Database Location ===

Host [localhost]: out01.localdomain

Port [1521]:

Service Name []: OUTSYSTE


=== Admin User ===

User [OSADMIN]:

Password:

Tablespace [OSSYS]:

Index Tablespace [OSIDX]:

Cannot get Connection from Datasource: java.sql.SQLRecoverableException: Listener refused the connection with the following error:

ORA-12514, TNS:listener does not currently know of service requested in connect descriptor

  With errorcode : 45257


Resolution:

Was added to the listener of Oracle, tag SID_LIST_LISTENER.

vi /u01/app/oracle/product/12.1.0.2/db_1/network/admin/listener.ora


# listener.ora Network Configuration File: /u01/app/oracle/product/12.1.0.2/db_1/network/admin/listener.ora

# Generated by Oracle configuration tools.


LISTENER =

  (DESCRIPTION_LIST =

    (DESCRIPTION =

      (ADDRESS = (PROTOCOL = TCP)(HOST = out01.localdomain)(PORT = 1521))

      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))

    )

  )


SID_LIST_LISTENER =

  (SID_LIST =

    (SID_DESC =

      (SID_NAME = OUTSYSTE)

      (GLOBAL_DBNAME = OUTSYSTE)

      (ORACLE_HOME = /u01/app/oracle/product/12.1.0.2/db_1)

    )

  )


ADR_BASE_LISTENER = /u01/app/oracle


Restart listener by command [oracle@pocoutsystems]$ lsnrctl start



Properties

Applies to Platform 10 and above, Java stack running on Oracle database.

Last reviewed under 10.0.200.0

Operation Systems Linux CentOs 6.8

This is a great tip, Guilherme!

Thanks for sharing!
R