ORA-12514: TNS [message #673388] |
Mon, 19 November 2018 06:20 |
|
petar97
Messages: 120 Registered: October 2018
|
Senior Member |
|
|
When I tried to connect as sqlplus / as sysdba
I get this error ORA-12514: TNS: the listener currently does not know about the service requested in the connect descriptor
This looks like a listener.ora
# tnsnames.ora Network Configuration File: /u01/app/oracle/product/12.2/db_1/network/adm$
# Generated by Oracle configuration tools
ORCL12C =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 0.0.0.0)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl12c)
)
)
LISTENER_ORCL12C =
(ADDRESS = (PROTOCOL = TCP)(HOST = 0.0.0.0)(PORT = 1521))
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 0.0.0.0)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
I guess I need to change something here, but I do not know what I do not have experience with the linux operating system
I have read that this problem can come in many ways, I tried to sql developer to connect as a sqlplus and since then I have this error.
|
|
|
|
|
|
Re: ORA-12514: TNS [message #673394 is a reply to message #673393] |
Mon, 19 November 2018 06:50 |
|
petar97
Messages: 120 Registered: October 2018
|
Senior Member |
|
|
For lsnrctl status I get
LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 19-NOV-2018 07:47:32
Copyright (c) 1991, 2016, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 12.2.0.1.0 - Production
Start Date 19-NOV-2018 06:54:14
Uptime 0 days 0 hr. 53 min. 19 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service orcl12c
Listener Parameter File /u01/app/oracle/product/12.2/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=0.0.0.0)(PORT=1521)))
Services Summary...
Service "orcl12c" has 2 instance(s).
Instance "orcl12c", status UNKNOWN, has 1 handler(s) for this service...
Instance "orcl12c", status READY, has 1 handler(s) for this service...
The command completed successfully
For lsnrctl status I get
LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 19-NOV-2018 07:49:35
Copyright (c) 1991, 2016, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 12.2.0.1.0 - Production
Start Date 19-NOV-2018 06:54:14
Uptime 0 days 0 hr. 55 min. 22 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service orcl12c
Listener Parameter File /u01/app/oracle/product/12.2/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=0.0.0.0)(PORT=1521)))
Services Summary...
Service "orcl12c" has 2 instance(s).
Instance "orcl12c", status UNKNOWN, has 1 handler(s) for this service...
Instance "orcl12c", status READY, has 1 handler(s) for this service...
The command completed successfully
Through the listener.log, a similar text is repeated
TNS-01106: Listener using listener name LISTENER has already been started
/u01/app/oracle/product/12.2/db_1/bin/dbshut: Stoping Oracle Net Listener
LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 12-JUN-2017 16:58:04
Copyright (c) 1991, 2016, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=0.0.0.0)(PORT=1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
/u01/app/oracle/product/12.2/db_1/bin/dbstart: Starting Oracle Net Listener
LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 22-OCT-2018 11:50:16
Copyright (c) 1991, 2016, Oracle. All rights reserved.
[Updated on: Mon, 19 November 2018 06:58] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
Re: ORA-12514: TNS [message #673404 is a reply to message #673402] |
Mon, 19 November 2018 07:23 |
|
petar97
Messages: 120 Registered: October 2018
|
Senior Member |
|
|
[oracle@localhost ~]$ env | grep ORA | sort
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/app/oracle/product/12.2/db_1
ORACLE_SID=orcl12c
ORACLE_UNQNAME=orcl12c
[oracle@localhost ~]$ sqlplus / as sysdba
SQL*Plus: Release 12.2.0.1.0 Production on Mon Nov 19 08:21:33 2018
Copyright (c) 1982, 2016, Oracle. All rights reserved.
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified
Enter user-name: system
Enter password:
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified
[Updated on: Mon, 19 November 2018 07:37] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|