Skip to Main Content

Oracle Database Express Edition (XE)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

18c XE: ORA:12541 TNS: No Listener

SmithJohn45Sep 29 2021 — edited Sep 29 2021

installed 18c XE on Win-10, yesterday it was login to XEPDB1 but now it is showing error below but when not using connect string to XE or XEPDB1 it is connecting. please help what is wrong or i am missing something?

SQL*Plus: Release 18.0.0.0.0 - Production on Wed Sep 29 10:13:39 2021
Version 18.4.0.0.0

Copyright (c) 1982, 2018, Oracle. All rights reserved.

Enter user-name: bob@xepdb1
Enter password:
ERROR:
ORA-12541: TNS:no listener


Enter user-name: sys@xe as sysdba
Enter password:
ERROR:
ORA-12541: TNS:no listener


Enter user-name: sys as sysdba
Enter password:

Connected to:
Oracle Database 18c Express Edition Release 18.0.0.0.0 - Production
Version 18.4.0.0.0

SQL>

my all 3 files are as below:
# listener.ora Network Configuration File: C:\app\FaaizyApex\product\18.0.0\dbhomeXE\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.

DEFAULT_SERVICE_LISTENER = XE

SID_LIST_LISTENER =
 (SID_LIST =
  (SID_DESC =
   (SID_NAME = CLRExtProc)
   (ORACLE_HOME = C:\app\FaaizyApex\product\18.0.0\dbhomeXE)
   (PROGRAM = extproc)
   (ENVS = "EXTPROC_DLLS=ONLY:C:\app\FaaizyApex\product\18.0.0\dbhomeXE\bin\oraclr18.dll")
  )
 )

LISTENER =
 (DESCRIPTION_LIST =
  (DESCRIPTION =
   (ADDRESS = (PROTOCOL = TCP)(HOST = DESKTOP-G8MU04T.localdomain)(PORT = 1521))
   (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
  )
 )

-- ========================================

# sqlnet.ora Network Configuration File: C:\app\FaaizyApex\product\18.0.0\dbhomeXE\NETWORK\ADMIN\sqlnet.ora
# Generated by Oracle configuration tools.

# This file is actually generated by netca. But if customers choose to 
# install "Software Only", this file wont exist and without the native 
# authentication, they will not be able to connect to the database on NT.

SQLNET.AUTHENTICATION_SERVICES= (NTS)
SQLNET.ALLOWED_LOGON_VERSION=11
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)

-- =========================================

# tnsnames.ora Network Configuration File: C:\app\FaaizyApex\product\18.0.0\dbhomeXE\NETWORK\ADMIN\tnsnames.ora
# Generated by Oracle configuration tools.

XE =
 (DESCRIPTION =
  (ADDRESS = (PROTOCOL = TCP)(HOST = DESKTOP-G8MU04T.localdomain)(PORT = 1521))
  (CONNECT_DATA =
   (SERVER = DEDICATED)
   (SERVICE_NAME = XE)
  )
 )

LISTENER_XE =
 (ADDRESS = (PROTOCOL = TCP)(HOST = DESKTOP-G8MU04T.localdomain)(PORT = 1521))

XEPDB1 =
 (DESCRIPTION =
  (ADDRESS = (PROTOCOL = TCP)(HOST = DESKTOP-G8MU04T.localdomain)(PORT = 1521))
  (CONNECT_DATA =
   (SERVER = DEDICATED)
   (SERVICE_NAME = XEPDB1)
  )
 )

ORACLR_CONNECTION_DATA =
 (DESCRIPTION =
  (ADDRESS_LIST =
   (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
  )
  (CONNECT_DATA =
   (SID = CLRExtProc)
   (PRESENTATION = RO)
  )
 )

regards

This post has been answered by SmithJohn45 on Sep 29 2021
Jump to Answer
Comments
Post Details
Added on Sep 29 2021
2 comments
3,165 views