Error ora-012546 TNS: Permission denied [message #678129] |
Tue, 12 November 2019 08:57 |
|
Goldaxe
Messages: 36 Registered: September 2019
|
Member |
|
|
I try to connect from Oracle Forms 12c to a BBDD 12.1.0.2.0 and give "ORA-12546 TNS: permission denied".
The funny thing is, I do a tnsping on the BBDD alias and if I get there.
The Oracle Forms Builder versión is:
Forms [64 Bit] Versión 12.2.1.3.0 (Producción)
Oracle Toolkit Versión 12.2.1.3.0 (Producción)
PL/SQL Versión 12.1.0.2.0 (Producción)
Oracle Procedure Builder V12.2.1.3.0 - Production
PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
Oracle Query Builder 12.2.1.3.0 - Production
Oracle Virtual Graphics System Versión 12.2.1.3.0 (Producción)
Oracle Tools GUI Utilities Versión 12.2.1.3.0 (Producción)
Oracle Multimedia Versión 12.2.1.3.0 (Producción)
Oracle Tools Integration Versión 12.2.1.3.0 (Producción)
Oracle Tools Common Area Versión 12.2.1.3.0
Oracle CORE 12.1.0.2.0 Production
Java Version: Oracle Corporation, 1.8.0_131
I execute sqlpus and the result is:
c:\Oracle\Middleware\Oracle_Home\bin>sqlplus adm_azkar/adm_azkar@SAX
SQL*Plus: Release 12.1.0.2.0 Production on Mar Nov 12 15:38:46 2019
Copyright (c) 1982, 2016, Oracle. All rights reserved.
ERROR:
ORA-12546: TNS:permiso denegado
Introduzca el nombre de usuario:
ERROR:
ORA-12560: TNS:error del adaptador de protocolo
Introduzca el nombre de usuario:
ERROR:
ORA-12560: TNS:error del adaptador de protocolo
SP2-0157: no se puede CONNECT con ORACLE despuÚs de 3 intentos, saliendo de SQL*Plus
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Error ora-012546 TNS: Permission denied [message #678275 is a reply to message #678268] |
Fri, 22 November 2019 05:28 |
John Watson
Messages: 8963 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
You do need to have your ORACLE_HOME and PATH environment variables set appropriately. Where are you setting them? It looks as though you have at least two Oracle Homes, so relying on values picked up by your session from the registry is not going to be reliable. Better set them explicitly, in the cmd shell where you intend to run SQL*Plus and be sure, to run the correct copy of SQL*Plus.
These may help with diagnosis:
echo %ORACLE_HOME%
echo %PATH%
where sqlplus
|
|
|
|
|
|
|
Re: Error ora-012546 TNS: Permission denied [message #678331 is a reply to message #678328] |
Mon, 25 November 2019 02:43 |
John Watson
Messages: 8963 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
Goldaxe wrote on Mon, 25 November 2019 08:12I have 2 variables ORACLE_HOME (one for forms 6i and one for forms 12c). From the sql plus I connect perfectly. The problem is when connecting to the DB from forms 12c You can't have two variables with the same name.
You need these two variables: ORACLE_HOME and PATH. You need to set them in the same shell from which you are launching your client program. How are you doing this?
|
|
|
|
|