TNS NAMES ERROR [message #667616] |
Mon, 08 January 2018 13:21 |
|
fatfish
Messages: 20 Registered: January 2015
|
Junior Member |
|
|
I installed Oracle Forms 12C.
When I try to connect to the database, I get the following error:
ORA-12154: TNS could not resolve the connect identifier specified.
In the Environment Variables I put in the following:
oracle_home = C:\ORACLE\MIDDLEWARE\ORACLE_HOME
tns_admin = C:\ORACLE\MIDDLEWARE\NETWORK\ADMIN
In the Registry, I put in the following:
tns_admin = C:\ORACLE|MIDDLEWARE\NETWORK\ADMIN
forms_builder_classpath (Was already installed and on one line) =
C:\ORACLE\Middleware\Oracle_Home\jlib\frmbld.jar;
C:\ORACLE\Middleware\Oracle_Home\forms\doc\JA\fmdevhlp\importer.jar;
C:\ORACLE\Middleware\Oracle_Home\forms\doc\JA\fmdevhlp\debugger.jar;
C:\ORACLE\Middleware\Oracle_Home\jlib\utj.jar;
C:\ORACLE\Middleware\Oracle_Home\jlib\DFC.JAR;
C:\ORACLE\Middleware\Oracle_Home\jlib\ewt3.jar;
C:\ORACLE\Middleware\Oracle_Home\dmu\modules\oracle.bali.share_11.1.1\SHARE.JAR;
C:\ORACLE\Middleware\Oracle_Home\jlib\ohj.jar;
C:\ORACLE\Middleware\Oracle_Home\dmu\modules\oracle.help_5.0\help-share.jar;
C:\ORACLE\Middleware\Oracle_Home\dmu\modules\oracle.help_5.0\ oracle_ice.jar;
C:\ORACLE\Middleware\Oracle_Home\dmu\jlib\jewt4.jar;
C:\ORACLE\Middleware\Oracle_Home\forms\java\frmwebutil.jar;
C:\ORACLE\Middleware\Oracle_Home\forms\java\frmall.jar;
C:\ORACLE\Middleware\Oracle_Home\forms\doc\US\fmdevhlp\debugger.jar
|
|
|
|
|
|
|
|
|
|
Re: TNS NAMES ERROR [message #667748 is a reply to message #667744] |
Fri, 12 January 2018 12:22 |
joy_division
Messages: 4963 Registered: February 2005 Location: East Coast USA
|
Senior Member |
|
|
fatfish wrote on Fri, 12 January 2018 11:39TNSNAMES.ORA FILE:
#net_service_name =
ORCL =
#EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST =MASTER-PRO-PC)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = ORCL.HOME)
)
)
****************************************************************************************
SQLNET.ORA FILE:
# Every line that begins with # is a comment line
# You can modify the entry below for your own database.
# sqlnet.ora Network Configuration File
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
****************************************************************************************
TNSPING RESULTS:
C:\Users\MASTER-PRO>tnsping asset
TNS Ping Utility for 64-bit Windows: Version 12.2.0.1.0 - Production on 12-JAN-2018 11:34:00
Copyright (c) 1997, 2016, Oracle. All rights reserved.
Used parameter files:
C:\ORACLE\MIDDLEWARE\NETWORK\ADMIN\sqlnet.ora
TNS-03505: Failed to resolve name
****************************************************************************************
Why would you tnsping asset when there is no tns entry for it?
|
|
|
|
|
|
|
|
Re: TNS NAMES ERROR [message #667844 is a reply to message #667841] |
Sat, 20 January 2018 01:08 |
John Watson
Messages: 8962 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
I think you have a corrupted tnnames.ora file. Your tnsping of orcl return a TNS-12533, but there is nothing wrong with the entry.
Try this:tnsping "(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST =MASTER-PRO-PC)(PORT = 1521)) (CONNECT_DATA = (SERVICE_NAME = ORCL.HOME)))"
|
|
|
Re: TNS NAMES ERROR [message #667865 is a reply to message #667844] |
Mon, 22 January 2018 15:21 |
|
fatfish
Messages: 20 Registered: January 2015
|
Junior Member |
|
|
I tried the tnsping and got the following results:
C:\Users\MASTER-PRO>tnsping "(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST =MASTER-PRO-PC)(PORT = 1521)) (CONNECT_DATA = (SERVICE_NAME = ORCL.HOME)))"
TNS Ping Utility for 64-bit Windows: Version 12.2.0.1.0 - Production on 22-JAN-2018 16:15:24
Copyright (c) 1997, 2016, Oracle. All rights reserved.
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST =MASTER-PRO-PC)(PORT = 1521)) (CONNECT_DATA = (SERVICE_NAME = ORCL.HOME)))
TNS-12541: TNS:no listener
I checked the status of the listener:
C:\Users\MASTER-PRO>lsnrctl status
LSNRCTL for 64-bit Windows: Version 12.2.0.1.0 - Production on 22-JAN-2018 16:19:50
Copyright (c) 1991, 2016, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
64-bit Windows Error: 61: Unknown error
Here is the listener.ora file layout:
# listener.ora Network Configuration File: C:\ORACLE\MIDDLEWARE\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = MASTER-PRO-PC = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = plsextproc)
(ORACLE_HOME = C:\ORACLE_HOME\product\12.2.0\dbhome_2)
(PROGRAM = extproc)
)
)
[EDITED by LF: deleted duplicates, applied [code] tags to this message]
[Updated on: Tue, 23 January 2018 13:56] by Moderator Report message to a moderator
|
|
|
|
Re: TNS NAMES ERROR [message #667878 is a reply to message #667844] |
Tue, 23 January 2018 05:26 |
John Watson
Messages: 8962 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
Alsdo, your listener.ora file is wrong. This line(ADDRESS = (PROTOCOL = TCP)(HOST = MASTER-PRO-PC = 1521)) is missing the PORT clause.
|
|
|
Re: TNS NAMES ERROR [message #667881 is a reply to message #667616] |
Tue, 23 January 2018 07:59 |
joy_division
Messages: 4963 Registered: February 2005 Location: East Coast USA
|
Senior Member |
|
|
Same spam post as the previous 4 or 5. Why did you insist o doing this? It will just make people pissed off and to stop helping you.
|
|
|
|
|
|
Re: TNS NAMES ERROR [message #667925 is a reply to message #667904] |
Wed, 24 January 2018 08:54 |
|
fatfish
Messages: 20 Registered: January 2015
|
Junior Member |
|
|
I added to port name to the listener.
I put the listener back in.
I checked the status of the listener:
C:\Users\MASTER-PRO>lsnrctl status
LSNRCTL for 64-bit Windows: Version 12.2.0.1.0 - Production on 24-JAN-2018 09:50:09
Copyright (c) 1991, 2016, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for 64-bit Windows: Version 12.2.0.1.0 - Production
Start Date 23-JAN-2018 15:11:30
Uptime 0 days 18 hr. 38 min. 41 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Log File c:\app\MASTER-PRO\virtual\diag\tnslsnr\MASTER-PRO-PC\listener\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=MASTER-PRO-PC)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=MASTER-PRO-PC)(PORT=5500))(Security=(my_wallet_directory=C:\APP\MASTER-PRO\VIRTUAL\admin\o rcl\xdb_wallet))(Presentation=HTTP)(Session=RAW))
Services Summary...
Service "c94f716b4e514858a57b9f568b1cab6f.home" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orcl.home" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB.home" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclpdb.home" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully
C:\Users\MASTER-PRO>
|
|
|
|
|
Re: TNS NAMES ERROR [message #668518 is a reply to message #668517] |
Tue, 27 February 2018 18:01 |
|
BlackSwan
Messages: 26766 Registered: January 2009 Location: SoCal
|
Senior Member |
|
|
listener status
C:\Users\MASTER-PRO>lsnrctl status
LSNRCTL for 64-bit Windows: Version 12.2.0.1.0 - Production on 27-FEB-2018 18:19:59
Copyright (c) 1991, 2016, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for 64-bit Windows: Version 12.2.0.1.0 - Production
Start Date 23-FEB-2018 19:03:09
Uptime 3 days 23 hr. 16 min. 54 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Log File c:\app\MASTER-PRO\virtual\diag\tnslsnr\MASTER-PRO-PC\listener\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=MASTER-PRO-PC)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=MASTER-PRO-PC)(PORT=5500))(Security=(my_wallet_directory=C:\APP\MASTER-PRO\VIRTUAL\admin\o rcl\xdb_wallet))(Presentation=HTTP)(Session=RAW))
Services Summary...
Service "c94f716b4e514858a57b9f568b1cab6f.home" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orcl.home" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB.home" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclpdb.home" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully
************************************************************************
listener.ora file
# listener.ora Network Configuration File: C:\ORACLE\MIDDLEWARE\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.
# C:\ORACLE\MIDDLEWARE\NETWORK\ADMIN\LISTENER.ORA
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = plsextproc)
(ORACLE_HOME = C:\app\MASTER-PRO\virtual\product\12.2.0\dbhome_2)
(PROGRAM = extproc)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = MASTER-PRO-PC) (port = 1521))
)
)
************************************************************************
tnsnames.ora file
# tnsnames.ora Network Configuration File: C:\ORACLE\MIDDLEWARE\NETWORK\ADMIN\tnsnames.ora
# Generated by Oracle configuration tools.
#C:\ORACLE\MIDDLEWARE\NETWORK\ADMIN\tnsnames.ora
#net_service_name =
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = MASTER-PRO-PC)(PORT = 1521))
(CONNECT_DATA =
(server = dedicated)
(SERVICE_NAME=ORCL.HOME)
)
))
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
************************************************************************
sqlnet.ora file
# sqlnet.ora Network Configuration File: C:\ORACLE\MIDDLEWARE\NETWORK\ADMIN\sqlnet.ora
# Generated by Oracle configuration tools.
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
|
|
|
|
|
Re: TNS NAMES ERROR [message #668563 is a reply to message #668561] |
Thu, 01 March 2018 07:38 |
John Watson
Messages: 8962 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
I think you are confused about the database environment.
Your lsnrctl status on 24 January shows that you have a multitenant database. Presumably your application is in the pluggable container orclpdb. But your tnsnames entry is pointing to a service orcl.home, which is the root container. You would not want to connect to that with Middleware.
Better ask your DBA to expain how Multitenant works.
|
|
|
Re: TNS NAMES ERROR [message #668566 is a reply to message #668561] |
Thu, 01 March 2018 12:33 |
|
Littlefoot
Messages: 21823 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
fatfish wrote on Thu, 01 March 2018 14:27
The version of Oracle forms that used to work was version 8.
Forms version 8 never existed.
|
|
|