I get this in cmd.
Here is with localhost
C:\Users\qwerty>lsnrctl status localhost
LSNRCTL for 64-bit Windows: Version 11.2.0.2.0 - Production on 14-GRU-2017 12:20
:40
Copyright (c) 1991, 2014, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=))(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521)))TNS-12541: TNS:no listenerTNS-12560: TNS:protocol adapter error TNS-00511: No listener 64-bit Windows Error: 61: Unknown error
And without localhost:
C:\Users\qwerty>lsnrctl statusLSNRCTL for 64-bit Windows: Version 11.2.0.2.0 - Production on 14-GRU-2017 12:23:40Copyright (c) 1991, 2014, Oracle. All rights reserved.Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))STATUS of the LISTENER------------------------Alias LISTENERVersion TNSLSNR for 64-bit Windows: Version 11.2.0.2.0 - ProductionStart Date 14-GRU-2017 09:36:05Uptime 0 days 2 hr. 47 min. 47 secTrace Level offSecurity ON: Local OS AuthenticationSNMP OFFDefault Service XEListener Parameter File I:\program\oracledb\app\oracle\product\11.2.0\server\network\admin\listener.oraListener Log File I:\program\oracledb\app\oracle\diag\tnslsnr\qwerty-Komputer\listener\alert\log.xmlListening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=qwerty-Komputer)(PORT=1522))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=qwerty-Komputer)(PORT=8081))(Presentation=HTTP)(Session=RAW))Services Summary...Service "CLRExtProc" has 1 instance(s). Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...Service "PLSExtProc" has 1 instance(s). Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...Service "XEXDB" has 1 instance(s). Instance "xe", status READY, has 1 handler(s) for this service...Service "xe" has 1 instance(s). Instance "xe", status READY, has 1 handler(s) for this service...The command completed successfully
I have oracle express edition db. I dont kknow what is cdb or pdb.
What doesn't work? If oracle services won't start then your installation/configuration is wrong.
I meant that starting oracle services doesn't help with connecting to db. I've found that solution somewhere.