N
N
Nikolay Baranenko2017-08-09 13:14:40
linux
Nikolay Baranenko, 2017-08-09 13:14:40

How to solve the problem with opening SERVICE_NAME?

Hello.
Did my first install of Oracle 12.2.0.1 today under linux CeontOS 7
installation went fine with no errors
BUT there was a problem: listener persists in connecting db instance (TNSNAME not allowed)
checking status shows the following

[[email protected] ~]$ lsnrctl status

LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 09-AUG-2017 12:51:47

Copyright (c) 1991, 2016, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.0.32)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 12.2.0.1.0 - Production
Start Date                09-AUG-2017 12:51:29
Uptime                    0 days 0 hr. 0 min. 17 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /app/oracle/product/12.2.0/db_1/network/admin/listener.ora
Listener Log File         /app/oracle/diag/tnslsnr/dboracle01/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.32)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
  Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully

Connecting to the database locally from under sql plus goes fine
SQL> select sysdate from dual
  2  ;

SYSDATE
--------
09.08.17

listener.ora text
SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = CLRExtProc)
      (ORACLE_HOME = /app/oracle/product/12.2.0/db_1)
      (PROGRAM = extproc)
    )
  )

LISTENER =
  (DESCRIPTION_LIST =
#    (DESCRIPTION =
#      (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
#      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
#    )
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.32)(PORT = 1521))
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    )
  )

and sqlnet.ora
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
Restart through the stop of the listener, the database, and the launch of the listener's database did not help.
What could be the problem and how to solve it?

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
N
Nikolay Baranenko, 2017-08-09
@drno-reg

the problem was that in the db the service_name was in lowercase
SQL> show parameter service_names
NAME TYPE VALUE
----------------------- ------- -----------------------------------------
service_names string dboracle

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question