ORA-12514 Listener Error on server
How come I keep getting a error message that the TNS Listener does not currently know of service error (ORA-12514) only on my server when trying to connect from the same server as the 10G 10.2.0.3. database is running on? If I do not use the @ connection it works fine as the ORACLE_SID environment variable is set to the instance name in the tnsnames.ora file. My 8i and 9i clients have no problem connecting to this server and the 10g database using the @ in the connection string but I believe their .net services files (tnsnames.ora and sqlnet.ora) are configured native to the versions configured on the clients (8i or 9i).
This is the error from the server and a sucessful connection not using the @ sign in the connection string:
SQL> connect sys@prod as sysdba
Enter password:
ERROR:
ORA-12514: TNS:listener does not currently know of service requested in
descriptor
Warning: You are no longer connected to ORACLE.
SQL> connect [email protected] as sysdba
Enter password:
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified
SQL> connect sys as sysdba
Enter password:
Connected.
SQL>
Is there something wrong with the listener.ora file on my server? Here is the current listener.ora file current on the host server (10g 10.2.0.3), it's tnsnames.ora file and below this a 9i client tnsnames.ora file which is sucessfully using a tnsnames.ora connection using username@server_name/password.
Any help would be greatly appreciated:
10g 10.2.0.3 Server's .net services files:
tnsnames.ora
# tnsnames.ora Network Configuration File: E:\oracle\ora10g\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
PROD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = victory)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = PROD)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
listener.ora
# listener.ora Network Configuration File: E:\oracle\ora10g\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = E:\oracle\ora10g)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = PROD.ORACLE)
(ORACLE_HOME = E:\oracle\ora10g)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = victory)(PORT = 1521))
sqlnet.ora
# 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)
And finnaly the tnsnames.ora for the 9i client connecting to the 10g database on the server (Windows 2003):
# TNSNAMES.ORA Network Configuration File: c:\ora9i\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
PROD.ORACLE =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = VICTORY)(PORT = 1521))
(CONNECT_DATA = (SERVICE_NAME = PROD.ORACLE))
)
hello, please try to comment the line in the sqlnet.ora file on the client and try again. If it works do the same on the server. Or you can set the value to NONE instead of (NTS).
Try this and let me know - this can be the reason why you cannot login without password as sysdba. When you are not using @ in sqlplus from the server these files are not read that's why it works.
If it does not work yet in the same file try adding the line:
NAMES.DIRECTORY_PATH= (TNSNAMES)
enrico
Similar Messages
-
Ora-12514: listener error in Toad
Hi
In my computer i installed oracle 10g.
it is working forfectly. i am able to connect oracle server with sql * plus.
to day i installed Toad software. when i am trying to connect with toad i am getting ora-12514 listener error.
how can i solve this problem
thanks in advance.Eat your heart out.
Millions like you couldn't read the documentation and asked the same question
http://forums.oracle.com/forums/search.jspa?threadID=&q=ora-12514&objID=f75&dateRange=all&userID=&numResults=15&rankBy=10001
Sybrand Bakker
Senior Oracle DBA -
ORA-12514:listener does not currently know of service requested in connect
I am not able to connect to oracle 10g xe database....
Can any one of you help me in resolving this error
last time I was able to login when I installed Oracle 10g XE on my
windows xp machine but I dont know wht has happen...now i didnt change
any setting... just restarted m/c..
C:\Documents and Settings\ak>sqlplus scott/tiger@XE
SQL*Plus: Release 10.2.0.1.0 - Production on Mon Nov 19 17:11:24 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR:
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptor
regards,
aak.## below is my listner.ora file
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(ADDRESS = (PROTOCOL = TCP)(HOST = ak.com)(PORT = 1521))
DEFAULT_SERVICE_LISTENER = (XE)
### below is sqlnet.ora
# 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)
### below is tnsnames.ora
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = ak.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
) -
ORA-12514 & Listener Status Instance status Unknown issue
Dear All,
Database Version - 10.2.0.5.0
Operating System - Windows XP
I am using Oracle 10g version, which has two services (bit10g and ora10g) installed on it.
Service ora10g was working before upgradation of Database to 10.2.0.5.0 and it was fine.
On upgradation I was unable to start and connect using ora10g so I created another that is bit10g.
Service bit10g was working fine for quite a long time. The last I worked and connected was on thu and it was connecting with no issues.
Now when I am trying to connect to database today I am unable to connect as I am getting
ORA12514 - TNS:listener does not currently know of service.
Secondly I tried to search forums which guided me to check the Listener Status.
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Admin>lsnrctl status
LSNRCTL for 32-bit Windows: Version 10.2.0.5.0 - Production on 12-JAN-2013 11:42
:54
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=toshiba-arif)(PORT=1521)
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.5.0 - Produ
ction
Start Date 12-JAN-2013 11:18:12
Uptime 0 days 0 hr. 24 min. 43 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\ora10g\product\10.2.0\db_1\network\admin\listener.o
ra
Listener Log File C:\ora10g\product\10.2.0\db_1\network\log\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=toshiba-arif)(PORT=1521)))
Services Summary...
Service "Oracle8" has 1 instance(s).
Instance "bit10g", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfullyFollowing is my listener.ora file
# listener.ora Network Configuration File: C:\ora10g\product\10.2.0\db_1\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = Oracle8)
(SID_NAME = bit10g)
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = toshiba-arif)(PORT = 1521))
)Please note that I am a developer with no DBA exposure.
So please guide me so that I will be able to resolve my issue.
Thanks & Regards
Arif KhadasOnce again Thanks Paul for your quick response.
I also have Oracle 9i installed on my machine but the service and Listener for 9i is stopped.
Following is the tnsnames.ora for 9i
# TNSNAMES.ORA Network Configuration File: C:\oracle\ora92\NETWORK\ADMIN\tnsnames.ora
# Generated by Oracle configuration tools.
BIT10G =
(DESCRIPTION =
(ADDRESS =
(PROTOCOL = TCP)
(HOST = toshiba-arif)
(PORT = 1521)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = bit10g)
BIT_ORA9I =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = IAS)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ORA9I)
ORA10G =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = toshiba-arif)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ora10g)
ORA9I =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = toshiba-arif)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ora9i)
INST1_HTTP =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = AH-IBM)(PORT = 1521))
(CONNECT_DATA =
(SERVER = SHARED)
(SERVICE_NAME = MODOSE)
(PRESENTATION = http://HRService)
CRCPROD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.1.1.185)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = bridges)
IAS_ORA10G =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = IAS)(PORT = 1522))
(CONNECT_DATA =
(SID = ORA10G)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
BIT_ORA10G =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = IAS)(PORT = 1522))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ORA10G)
) -
ORA-12560 listener error WIN XP ora10g
I connect database by sqlplus / nolog normaly, but my listener cant start. I get ORA-12560 error.
1- I my tnsnames.ora_OLD and listener.ora_OLD and crate new one but still error;
2- i do
net stop oracleserviceora10g
net start oracleserviceoa10gBut still error.
3- i set ORACLE_HOME and ORACLE_SID and still error...
Someone can help me??
Tks,
Elber.Elber,
You can turn trace on and see what's wrong. This is the first step for you solve your problem.
Put the following line in your listener.ora file and then try start again. After this, look into trace file.
TRACE_LEVEL_listener_name=user
TRACE_DIRECTORY_listener_name (By default the directory is ORACLE_HOME\network\trace on Windows NT, and the file name is listener.trc)
Jonathan Ferreira
Brazil -
ORA-12514 Listener does not currently know of service
I am trying to connect a client workstation to the Oracle server. OS for the server is Windows Server 2008 (64 bit) and OS for the client is Windows XP (32 bit).
Oracle Database on the server is 11g 64-bit (11.2.0.1.0) and the Client software is 11g 32 bit (11.2.0.1.0).
I have set up the client (using the Net Manager tool) with the following parameters:
Service Name: drsdb_server
SID: greyed out
Connection Type: Database Default
Address:
Protocol: TCP/IP
Host Name: [IP address of the server]
Port Number: 1521
I also set up listener parameters (though I don't know that it is necessary) with the Net Manager tool:
General Parmeters:
Listener Name: LISTENER (this is the Alias retrieved with lsnrctl on the server)
Listening Locations:
Protocol: TCP/IP
Host Name: [IP address of the server]
Port Number: 1521
Database Services:
Global Database Name: drsdb
DB_NAME is not set on the server
DB_UNIQUE_NAME on the server is defined as "drsdb"
SID on the server is "drsdb"
These parameters are not defined on the client.
Everything works as expected on the host (server) machine as expected (SQL*Plus, SQLDeveloper, etc.)
Any ideas?
Thanks.Results (Please excuse anything that is not formatted as expected -- the network is isolated so I have to transfer all of this information by hand):
lsnrctl status
Alias LISTENER
Listener Parameter File C:\app\oracle\product\11.2.0\dbhome_1\network\admin\listener.ora
Listener Log File C:\app\oracle\diag\tnslsnr\FDRSDB\listener\alert\log.xml
Listening Enpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=FDRSDB)PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=icp)(PIPENAME=\\.\pipe\EXTPROC1521.ipc)))
Services Summary...
Service "drsdb.workgroup" has 1 instance(s).
Instance "drsdb", status READY, has 1 handler(s) for this service...
Service "drsdbXDB.workgroup" has 1 instance(s).
Instance "drsdb", status READY, has 1 handler(s) for this service...
The command completed successfullylsnrctl services
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=FDRSDB)(PORT=1521)))
Services Summary...
Service "drsdb.workgroup" has 1 instance(s).
Instance "drsdb", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:17544 refused:0 state:ready
LOCAL SERVER
Service "drsdbXDB.workgroup" ahs 1 instance(s).
Iinstance "drsdb", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 state:ready
DISPATCHER <machine: FDRSDB, pid:2224>
(ADDRESS=(PROTOCOL=tcp)(HOST=FDRSDB)(PORT=49201))
The command completed successfullyEdited by: DBelt on Jun 7, 2012 12:44 PM -
Sqldeveloper: ORA-12514, TNS:listener does not currently know of service re
Hello everybody.
I want to connect with Sqldeveloper and I have the error :
ORA-12514, TNS:listener does not currently know of service re
But with SQL*PLUS, I connect correctly.
I have Windows Vista.
My tsnames.ora is
# tnsnames.ora Network Configuration File: C:\app\HP_Propietario\product\11.2.0\dbhome_3\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
LISTENER_ORCL =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.10.10)(PORT = 1521))
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.10.10)(PORT = 1521))
(CONNECT_DATA =
(SERVER = SHARED)
(SERVICE_NAME = orcl)
(INSTANCE_NAME = orcl)
PRUEBA =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.10.10)(PORT = 1521))
(CONNECT_DATA =
(SERVER = SHARED)
(SERVICE_NAME = PRUEBA)
My listener.ora
# listener.ora Network Configuration File: C:\app\HP_Propietario\product\11.2.0\dbhome_3\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\app\HP_Propietario\product\11.2.0\dbhome_3)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:C:\app\HP_Propietario\product\11.2.0\dbhome_3\bin\oraclr11.dll")
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.10.10)(PORT = 1521))
ADR_BASE_LISTENER = C:\app\HP_Propietario
I write the host 10.10.10.10 because I have installed a loopback adapter with address 10.10.10.10
The information in SQLDeveloper is:
Conection Type: BASIC
Host Name: 10.10.10.10 (address of loopback adapter in file of windows hosts)
Port 1521
Service Name : orcl
Could somebody help me?
Thanks in advance
Carlota Viña Sirgouser3096536 wrote:
Hello,
I send more information:
SQL> select value from v$parameter where name='service_names'
2 ;
VALUE
orcl
SQL> show parameter listener;
NAME TYPE VALUE
listener_networks string
local_listener string LISTENER_ORCL
remote_listener string
SQL>
SQL> select instance_name, status, database_status from v$instance;
INSTANCE_NAME STATUS DATABASE_STATUS
orcl OPEN ACTIVE
LSNRCTL> status
Conectßndose a (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
ESTADO del LISTENER
Alias LISTENER
Versi¾n TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Produ
ction
Fecha de Inicio 22-MAY-2013 07:01:44
Tiempo Actividad 0 dÝas 4 hr. 45 min. 39 seg.
Nivel de Rastreo off
Seguridad ON: Local OS Authentication
SNMP OFF
Parßmetros del Listener C:\app\HP_Propietario\product\11.2.0\dbhome_3\NETWORK\
ADMIN\listener.ora
Log del Listener c:\app\hp_propietario\diag\tnslsnr\carlota\listener\al
ert\log.xml
Recibiendo Resumen de Puntos Finales...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.10.10.10)(PORT=1521)))
Resumen de Servicios...
El servicio "CLRExtProc" tiene 1 instancia(s).
La instancia "CLRExtProc", con estado UNKNOWN, tiene 1 manejador(es) para este
servicio...
El comando ha terminado correctamente ok
LSNRCTL>
LSNRCTL> services
Conectßndose a (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
Resumen de Servicios...
El servicio "CLRExtProc" tiene 1 instancia(s).
La instancia "CLRExtProc", con estado UNKNOWN, tiene 1 manejador(es) para este
servicio...
Manejador(es):
"DEDICATED" establecido:5 rechazado:0
LOCAL SERVER
El comando ha terminado correctamente
LSNRCTL>
C:\app\HP_Propietario\product\11.2.0\dbhome_3\BIN>tnsping orcl
TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 22-MAY-2
013 11:49:07
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Archivos de parßmetros utilizados:
C:\app\HP_Propietario\product\11.2.0\dbhome_3\NETWORK\ADMIN\sqlnet.ora
Adaptador TNSNAMES utilizado para resolver el alias
Intentando contactar con (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.10
.10.10)(PORT = 1521)) (CONNECT_DATA = (SERVER = SHARED) (SERVICE_NAME = orcl) (I
NSTANCE_NAME = orcl)))
Realizado correctamente (290 mseg) ok
C:\app\HP_Propietario\product\11.2.0\dbhome_3\BIN>
Thanks in advance
Carlota Viña SirgoYour marked the thread as 'answered', yet this post looks like additional information seeking additional help.
see: [url http://edstevensdba.wordpress.com/2011/03/19/ora-12514/] ora-12514 Listener does not know of requested service -
Data Guard Broker teasing error ORA-12514: TNS:listener
Hello,
I have spent many hours but don't understand what little thing I am missing or confusing me.. Please help to fix the issue.
Physical Standb db created successfully, but now facing following issue: Though it should be and must be fixed but really making me mad
DGMGRL> SHOW CONFIGURATION;
Configuration - DATA GUARD
Protection Mode: MaxPerformance
Databases:
dg - Primary database
Fast-Start Failover: DISABLED
Configuration Status:
DISABLED
DGMGRL> ADD DATABASE DG_DB2
> AS CONNECT IDENTIFIER IS DG_DB2
> MAINTAINED AS PHYSICAL;
Error: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
Failed.
PRIM:
db_name: DG
db_unique_name: dg
service_names: dg
STBY:
db_name: DG
db_unique_name: dg_db2
service_names: dg_db2
# TNSNAMES same entries on both Primary and Standby: HOSTNAMES are different.
DG =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = db01.domain)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = dg)
DG_DB2 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = db02.domain)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = dg_db2)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = db01.domain)(PORT = 1521)) db02.domain for Standby on standby machine.
# Listener.ora on PRIMARY:
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = db01.domain)(PORT = 1521))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = dg_DGMGRL.domain)
(ORACLE_HOME = /oracle/app/11g/db)
(SID_NAME = dg)
(SERVICE_NAME = dg.domain)
# Listener.ora on Standby:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = dg_db2_DGMGRL.domain)
(ORACLE_HOME = /oracle/app/11g/db)
(SID_NAME = dg_db2)
(SERVICE_NAME = dg_db2.domain)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = db02.domain)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
I created Stby DB with the minimum parameters required, so that I configure BROKER and see it magic, but badly stuck in this situation here. I have read many docs related to this..but can not fix it unfortunately.
Please guide me from your own experience as note ids, blogs are not helping me here...
Bundle of thanks.
Best RegardsHi,
Your listener.ora file has SERVICE_NAME = dg_db2.domain whereas tnsnames.ora file has SERVICE_NAME = dg_db2.
Check in your database for exact service name and reflect the same in both the files.
SQL> sho parameter service_names
Restart the listener and try connecting.
Thank you!! -
TNS listener error "ORA-12514: TNS:listener..."
Hi all,
I have a problem with my listener on Oracle 11.2.0.2.
I am more of a developer than a DBA, and I do not have a DBA to consult, so I hope you can address me, please.
I have 2 DB instances running on the same machine ORCL and ORCL2 on port 1521, both using the same listener "LISTENER" as well on port 1521.
In my TNSnames I had to add yesterday as well a new entry to a DB (ORCL3) hosted on a different machine.
Since then, I can connect to ORCL and ORCL3 without problem via sqlplus, but I get the below error when I connect to ORCL2:
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptor
I think the answer is to have to separate listeners for ORCL and ORCL2, but I have had several failed attempts.
Can you please advise on what I need to do? I have looked at various sites, but if you are not too experienced with listeners, they are not really very clear.
ThanksHi, thanks.
ORANAMES:
# tnsnames.ora Network Configuration File: C:\oracle\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
LISTENER_ORCL =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
ORCL2 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl2)
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl.xxx.xxx.net)
ORCL3 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 1.2.3.4)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl.2.3.4)
STATUS:
LSNRCTL> status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 11.2.0.2.0 - Production
Start Date 28-JAN-2012 10:14:06
Uptime 0 days 2 hr. 19 min. 26 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\oracle\product\11.2.0\dbhome_1\network\admin\listener.ora
Listener Log File C:\oracle\diag\tnslsnr\xxx\listener\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "orcl.xxx.xxx.net" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB.xxx.xxx.net" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully -
ERROR: ORA-12514: TNS:listener does not currently know of service requested
My Data base in Linux box, I have default SID as ORCL, and i have created 3 more instances of DB (TST1,TST2 and TST3) . As long as my system has not restated, I am bale connect to the instances. Once my system restated i am unable to connect to the new instances of DB.. Pl adivice..Thanks..
In sqlplus: username/password @ ORCL - working fine...
username/password @TST1 or other services ...i am getting ..error .. ERROR: ORA-12514: TNS:listener does not currently know of service requested
I have created all instances of DB by using below command:
dbca -silent -createDatabase -templateName General_Purpose.dbc -gdbname TST1 -sid TST1 -responseFile NO_VALUE -characterSet AL32UTF8 -memoryPercentage 40 -emConfiguration LOCAL
Edited by: user10980939 on Jul 20, 2011 2:16 PM-- Below is my tnsnames.ora and listner.ora files....Pl let me know how to add different ports...
cat tnsnames.ora
# tnsnames.ora Network Configuration File: /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
LISTENER_BHPT =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.245)(PORT = 1521))
TFOCUS =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.245)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = TFOCUS)
BDO_PDB =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.153)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = BDO_PDB)
LISTENER_BDOT =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.245)(PORT = 1521))
LISTENER_TFOCUS =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.245)(PORT = 1521))
BHPT =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.245)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = BHPT)
BDOAIX61 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.224)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = bdo)
BDOT =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.245)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = BDOT)
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.245)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = ORCL)
Listner.ora file
[oracle@WBE07180 admin]$ cat listener.ora
# listener.ora Network Configuration File: /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = ORCL)
(SID_NAME = ORCL)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.245)(PORT = 1521))
ADR_BASE_LISTENER = /home/oracle/app/oracle -
Hi All,
While restarting the hyperion service we see this exception. Nothing was changed on the hyperion server. Checking with DB team if anything was change on their end.
Caused By: weblogic.common.ResourceException: weblogic.common.ResourceException: Could not create pool connection. The DBMS driver exception was: Listener refused the connection with the following error:ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:283)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1310)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1227)
at weblogic.common.resourcepool.ResourcePoolImpl.start(ResourcePoolImpl.java:250)
at weblogic.jdbc.common.internal.ConnectionPool.doStart(ConnectionPool.java:1330)
Truncated. see log file for complete stacktrace
We don't have oracle client on our end, so this is not a tnsnames issue. This is preventing all the hyperion services coming up.
Thanks,The listener is up , the message is from the listener indicating the listener does not know of SID/SERVICE name that you are giving it. Manually connect to the db using sqldeveloper in order to make sure the parameters you are providing are working. Pay special attention to SID vs SERVICE_NAME. Then try to open config tool and go back to your database connection info. Reconfigure your database connection. It will likely you will find your connection error there. Also sometimes the config tool has trouble figuring out whether you mean SID or SERVICE_NAME. You can open advanced properties on the connection in configtool and specify / or : in the url.
Java JDBC - How to connect to Oracle using Service Name instead of SID - Stack Overflow -
Good Day,
I'm encountering this problem
java.sql.SQLException: Listener refused the connection with the following error:
ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
here's the java code
Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
String url = "jdbc:oracle:thin:@//10.143.85.21/UCSL";
String userName = "mssoriano";
String passWord = "mssoriano_4319";
conn = DriverManager.getConnection(url, userName, passWord);
and here's my tnsnames.ora
UCSL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.143.85.21)(PORT = 1521))
(CONNECT_DATA =
(SID = psusldb11)
Please do let me know if what may the cause of the problem and how to solve this. Thank you and God bless.Hi,
see this example
Connect to Oracle DB via JDBC driver
Frank -
ORA-12514 error while connecting to server
I am using instantclient to connect to Oracle 9i server.
The connection string is given using this format
//host:[port][service name].
In our development environment we can successfully connect to the server. But the connection fails in the production environment giving ORA-12514 error. This occurs even when we copy the instant client dll's onto separate folder and set the library loading path to this folder.
Can u please help me in resolving this problem.Vinay,
Since you are using Windows, are you setting PATH (the lib loading path of Windows)? -
TNS Listener -ORA-12514 error following database shutdown - Oracle 11g
Hi
I have hit a problem with my oracle development database.
When in sqlplus I executed the shutdown command, but nothing happened for several minutes and it was just hanging. No messages were displayed to the screen. The only thing was to close the command window. When I open sqlplus again and enter in the user name password as sysdba I am getting ORA 12514 TNS Listener could not resolve service in descriptor. This is odd as I could log on before and use the database. So I thought that the services were still shutting down I waited, and using the Windows snap on tool for Oracle 11g, I restarted the services on the database, but this has had no effect.
Even using EM made no difference because I couldn't log on to perform a startup or recovery.
So, please does anyone know how I can fix this?
Thanksuser633278 wrote:
Hi
I have hit a problem with my oracle development database.
When in sqlplus I executed the shutdown command, but nothing happened for several minutes and it was just hanging. No messages were displayed to the screen. The only thing was to close the command window. When I open sqlplus again and enter in the user name password as sysdba I am getting ORA 12514 TNS Listener could not resolve service in descriptor. This is odd as I could log on before and use the database. So I thought that the services were still shutting down I waited, and using the Windows snap on tool for Oracle 11g, I restarted the services on the database, but this has had no effect.
Even using EM made no difference because I couldn't log on to perform a startup or recovery.
So, please does anyone know how I can fix this?
open Command Window & do EXACTLY as below; line for line
sqlplus
/ as sysdba
shutdown abort
startup
exit
COPY command & results from above then PASTE all back here -
ORA-12514: TNS:listener does not currently know of service requested
While connecting "sqlplus SYSADM/SYSADM@HCM" I am getting the below error:
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
Installation background:
Windows 7 l(64-bit) laptop.
Created linux virtualbox to installl peoplesoft VM templates.
so far installed: Oracle11gR2.vdi and HCMDB.vdi on the linux virtualbox.
Followed the steps exactly what it is in the link below: Got the above error in page 4 of the link at connecting to database via sqlplus.
http://bloggingaboutoracleapplications.org/running-oracle-vm-templates-oracle-enterprise-linux-guide-part-1-7/
Below provided initHCM.ora, tnsnames.ora, listerner.ora and some responses I tried. I could not figure out what causing the issue even after researching in web.
Your help would be highly appreciated.
tnsnames.ora:
=============
# tnsnames.ora Network Configuration File:
HCM =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = hcmdb91)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = HCM)
Listener.ora:
=============
# listener.ora Network Configuration File:
/u01/app/oracle/product/11.2.0.x/db_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = hcmdb91)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
initHCM.ora:
============
DB_FILES =256
OPEN_CURSORS = 1000
db_block_size = 8192
remote_login_passwordfile = NONE
undo_tablespace=PSUNDOTS
NLS_LENGTH_SEMANTICS=CHAR
# Cache and I/O
#db_block_size=
db_file_multiblock_read_count=16
# Database Identification
# db_domain=us.oracle.com
# db_name=
# Diagnostics and Statistics
#background_dump_dest=
#core_dump_dest=
#user_dump_dest=
# Job Queues
job_queue_processes=10
# Processes and Sessions
processes=150
# SGA Memory
sga_target=287309824
# Security and Auditing
#audit_file_dest=
#remote_login_passwordfile=EXCLUSIVE
# Shared Server
dispatchers="(PROTOCOL=TCP) (SERVICE=XDB)"
# Sort, Hash Joins, Bitmap Indexes
pga_aggregate_target=95420416
# System Managed Undo and Rollback Segments
undo_management=AUTO
#undo_tablespace=
unnestsubquery=false
# Miscellaneous
compatible=11.2.0.2.0
control_files=(/u01/app/oracle/oradata/HCM/control01.ctl)
DB_NAME=HCM
[oracle@hcmdb91 ~]$ tnsping hcm
TNS Ping Utility for Linux: Version 11.2.0.2.0 - Production on 28-MAR-2013
07:40:37
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST =
hcmdb91)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME =
HCM)))
OK (20 msec)
[oracle@hcmdb91 ~]$
[oracle@hcmdb91 ~]$ tnsping hcm
TNS Ping Utility for Linux: Version 11.2.0.2.0 - Production on 28-MAR-2013
07:40:37
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST =
hcmdb91)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME =
HCM)))
OK (20 msec)
[oracle@hcmdb91 ~]$ lsnrctl start
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 28-MAR-2013 07:41:32
Copyright (c) 1991, 2010, Oracle. All rights reserved.
TNS-01106: Listener using listener name LISTENER has already been started
[oracle@hcmdb91 ~]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 28-MAR-2013 07:42:20
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=hcmdb91)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Start Date 28-MAR-2013 07:29:21
Uptime 0 days 0 hr. 13 min. 1 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File
/u01/app/oracle/product/11.2.0.x/db_1/network/admin/listener.ora
Listener Log File
/u01/app/oracle/product/11.2.0.x/db_1/log/diag/tnslsnr/hcmdb91/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=hcmdb91.example.com
)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
The listener supports no services
The command completed successfully
[oracle@hcmdb91 ~]$ lsnrctl services
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 28-MAR-2013 07:42:44
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=hcmdb91)(PORT=1521)))
The listener supports no services
The command completed successfully
[oracle@hcmdb91 ~]$
[oracle@hcmdb91 ~]$ sqlplus SYSADM/SYSADM@HCM
SQL*Plus: Release 11.2.0.2.0 Production on Thu Mar 28 07:44:25 2013
Copyright (c) 1982, 2010, Oracle. All rights reserved.
ERROR:
ORA-12514: TNS:listener does not currently know of service requested in
connect descriptor
My guess is that the database service "HCM" is not up and running but not sure how to make up and running. Even I could not find it listed in the linux services list.
Note: Able to login sqlplus using "sqlplus sys/sys as sysdba" but failing to access database table as "select * from PSRECDEFN;"
thanks
Espii.
Edited by: 995437 on Mar 28, 2013 6:52 AM
Edited by: 995437 on Mar 28, 2013 6:59 AMHi Nicolas,
I have no luck and the error still persists.
I have set the "export ORACLE_SID=HCM" from root user and oracle user too.
I guess, I have already loaded database when I ran the "cd /opt/oracle/psft/vm
./oraclevm-template.sh"
The outcome of the above script as similar as below:
Creating
ovm_configure_pre
CreateVirtualEnvironment
/u01/scripts/db-reconfig.sh: line 238: ovm_set_password: command not found
/u01/scripts/db-reconfig.sh: line 239: ovm_configure_network: command not found
INFO:
Starting Oracle database reconfiguration.
Oracle Database Configuration
This will configure on-boot properties of Oracle Database.
The following questions will determine whether the database should be
starting upon system boot, the ports it will use.
Press <Enter> to accept the defaults.
Do you want to relink binaries? (y/n) [n] y
Specify a port that will be used for the database listener [1521]:
Do you want Oracle Database to be started on boot (y/n) [y]:y
Wrote to /etc/sysconfig/oracle11g
Relinking Oracle Binaries...
Oracle Relinking Completed Successfully
Logs: /home/oracle/relink.log
Running orainstRoot.sh and root.sh...
set 2GB tmpfs
Enabling Oracle Database service
Configuration Completed Successfully.
Enter the name of the database SID [TESTDB]:HCM
ORACLE instance started.
Total System Global Area 288104448 bytes
Fixed Size 2225832 bytes
Variable Size 104859992 bytes
Database Buffers 176160768 bytes
Redo Buffers 4857856 bytes
Control file created.
Database altered.
Tablespace altered.
Tablespace altered.
Tablespace altered.
1 row updated.
160 rows updated.
Commit complete.
Kumar - I have found no sqlnet.ora file exist in the $ORACLE_HOME/NETWORK/ADMIN
Edited by: 995437 on Mar 28, 2013 9:15 AM
Maybe you are looking for
-
How do I add a song to my favorites Playlist without removing that playlist from iCloud
I just purchased a song on my computer and tried to copy the song into my "favorite songs" playlist but I get a warning that adding the song to the playlist will remove the playlist from iCloud and will only be available on the computer. I don't und
-
IPhone 3GS wont install apps!!
iPhone 3Gs Is on iOS 6.1 and every time I try to install/sync apps onto my friends phone it wont sync or install the apps, but when I download them from the store using data or wifi it will download and install them. Anyone know why this is happening
-
if two tables r given, i want a code which should tell tat ,in which table foreign key is available. so please kindly help out in this problem. is there is any query or code avalible to find out which table as foreign key.
-
3G active on iPad but safari & email not working
3G active on iPad but safari not working. It says "safari could not open the page because the server stopped responding". Had the iPad for ages & just suddenly stopped working. It has been almost a week now, tried a few things but nothing is working
-
Hi, During Intercompany Billing document (VF01), a KR is created via idoc. However, in Cost of Sales account, I get the sales order number but the material is not getting populated when I click on the More data. The material field is empty. Any idea