Error while trying to retrieve text for error ora 12557

ErrorORA-12557 TNS:protocol adapter not loadable SolutionFor solving the error you have to check the following points: Check ORACLE_HOME Environment Variable.Main cause of this error is set the ora…

Error
ORA-12557 TNS:protocol adapter not loadable

Solution
For solving the error you have to check the following points:

  1. Check ORACLE_HOME Environment Variable.
    Main cause of this error is set the oracle home of different version and we are using different version for TNSPING or SQLPLUS command. We have oracle database and client binaries at same machine and set the environment variable ORACLE_HOME with database binaries and execute command TNSPING or SQLPLUS from Client binaries which will cause error.

To fixed this problem:
On Windows, remove the entry of ORACLE_HOME from environment variable.

1. Right-click on 'My Computer' and choose 'Properties'
2. Click "Advanced System Settings"
3. Click "Environment Variables"
4. Inside the "System Variables" section, look for an entry for 'ORACLE_HOME'
5. Delete this entry

On Linux, remove entry of ORACLE_HOME from user profile.

Second alternative is set the ORACLE_HOME manually:

-- In Windows
SET ORACLE_HOME=D:oracleproduct11.2.0db_1
--In Linux
EXPORT ORACLE_HOME=/u01/app/dbhome_1
  1. Issue may be you are using 32 bit application with 64 bit database.
1. You need to install 32-bit Oracle Client on machine and use 32-bit client string for making connection.
2. Set ORACLE_HOME to the Oracle 32-bit client location and add the same to the PATH environment variable in first position.

3. Check the PATH Environment variable.

On installation of Oracle software or client, software automatically update the PATH environment variable. Window will use Oracle software which will point first in PATH Variable.
So, We need to update the PATH variable if we are facing issue in connectivity by removing first one or change the position to first one of Oracle binary location.

-- Check PATH variable in Windows
ECHO %PATH%
-- Check PATH variable in Linux/Unix
echo $PATH

--Example: Change the position of PATH 
Tried to TEST the connectivity by move the PATH of Oracle software to First position. By default first position PATH is used by application.

ECHO %PATH%
D:oracleproduct11.2.0db_1bin;D:oracleproduct11.2.0client_1bin;
--Change client path at first position
D:oracleproduct11.2.0client_1bin;D:oracleproduct11.2.0db_1bin;

Verify the Oracle is 32-bit or 64-bit.
It will give you the result in first line it is 64 bit or 32 bit.

tnsping service_name

--Example
C:Usersoracle>tnsping
TNS Ping Utility for 64-bit Windows: Version 11.2.0.2.0 - Production on 22-FEB-2019 14:56:19
Copyright (c) 1997, 2014, Oracle. All rights reserved.

Problem

User launches Controller client. An error appears.

Symptom


ORA-12557: TNS:protocol adapter not loadable

Cause

Controller application server’s Oracle client environment has not been configured correctly.

  • In one real-life example, the problem was triggered by having a system variable ‘ORACLE_HOME’ defined (on the Controller application server). This is unnecessary for most environments.

Example:

In one real-life example, there was a system variable ‘ORACLE_HOME’ defined:

Resolving The Problem

Make sure that all the Oracle-client-related configuration (on the Controller application server) is correct.

  • For most environments, there is no need to have a ‘ORACLE_HOME’ system variable.

    
Steps

To delete the ‘ORACLE_HOME’ system variable, perform the following steps:
1. Logon to the Controller application server as a Windows administrator
2. Right-click on ‘My Computer‘ and choose ‘Properties
3. Click «Advanced System Settings»
4. Click «Environment Variables»
5. Inside the «System Variables» section, look for an entry for ‘ORACLE_HOME
6. Delete this entry
7. Restart the Controller application server
8. Test.

[{«Business Unit»:{«code»:»BU059″,»label»:»IBM Software w/o TPS»},»Product»:{«code»:»SS9S6B»,»label»:»IBM Cognos Controller»},»Component»:»Controller»,»Platform»:[{«code»:»PF033″,»label»:»Windows»}],»Version»:»All Versions»,»Edition»:»»,»Line of Business»:{«code»:»LOB10″,»label»:»Data and AI»}}]

May 8, 2020

Hi,

Sometimes You can get “ORA-12557: TNS:protocol adapter not loadable ” error.

Details of error are as follows.

ORA-12557: TNS:protocol adapter not loadable

Cause: On some platforms (such as OS/2) protocol adapters are loaded at run-time. If the shared library 
(or DLL) for the protocol adapter is missing or one of its supporting libraries is missing then this error is returned.
Action: For further details, turn on tracing and reexecute the operation. The trace file will include the 
name of the shared library (or DLL) that could not be loaded.

This error is related with the TNS_ADMIN and bin directory are different in PATH  variable for Windows.

To solve this error, add TNS_ADMIN directory to the PATH variable on windows then save it and try it again.

Check PATH variable in Windows

ECHO %PATH%

Check PATH variable in Linux/Unix

echo $PATH

Or This error is caused by  32 bit application with 64 bit database, so try to use same client version for 64 bit database.

Or Check your Oracle Home and Oracle SID if they are set correctly or not.

Do you want to learn more details about RMAN, then read the following articles.

https://ittutorial.org/rman-backup-restore-and-recovery-tutorials-for-beginners-in-the-oracle-database/

 2,277 views last month,  1 views today

About Mehmet Salih Deveci

I am Founder of SysDBASoft IT and IT Tutorial and Certified Expert about Oracle & SQL Server database, Goldengate, Exadata Machine, Oracle Database Appliance administrator with 10+years experience.I have OCA, OCP, OCE RAC Expert Certificates I have worked 100+ Banking, Insurance, Finance, Telco and etc. clients as a Consultant, Insource or Outsource.I have done 200+ Operations in this clients such as Exadata Installation & PoC & Migration & Upgrade, Oracle & SQL Server Database Upgrade, Oracle RAC Installation, SQL Server AlwaysOn Installation, Database Migration, Disaster Recovery, Backup Restore, Performance Tuning, Periodic Healthchecks.I have done 2000+ Table replication with Goldengate or SQL Server Replication tool for DWH Databases in many clients.If you need Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS Consultancy and Training you can send my email adress [email protected].-                                                                                                                                                                                                                                                 -Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS ve linux Danışmanlık ve Eğitim için  [email protected] a mail atabilirsiniz.

Я пытаюсь разработать приложение c# Windows Forms, ориентированное на .NET 4 framework. Программа выполнит хранимую процедуру для базы данных Oracle, и при попытке открыть соединение с базой данных я получаю следующую ошибку.

ORA-12557 TNS: адаптер протокола не загружается

Я разрабатываю это в Visual Studio 2012 и сумел сделать Server Explorer подключиться к базе данных успешно, однако я продолжаю получать эту ошибку через мой приложение.

У меня есть два клиента Oracle 11g на моей машине. Один-32bit, а другой-64bit. Мне нужны оба для разных приложений, поэтому удалить их невозможно. Я также попытался изменить порядок домашних каталогов Oracle в переменной PATH. В настоящее время у меня есть 64bit один первый, с которым я хотел бы соединиться.

я подключаю свое приложение к базе данных, используя ODP.NET и ссылались на dll из 64bit приложение.

насколько я могу сказать я сделал то, что было предложено и не удалось заставить его работать. Если кто может помочь буду признателен.

3 ответов


ошибка ORA-12577 связана с средой Windows или Oracle Home PATH, потому что команда sqlplus работает плавно, когда я выполняю ее внутри ORACLE_HOMEbin .
Его из-за двух или более установок oracle (скажем, database и companion) в отдельных ORACLE_HOMEs на этой машине снимите значение ORACLE_HOME в вашем окне
Для получения подробной информации, пожалуйста, выполните следующие действия и надеюсь, что вы получите решение.
http://www.dba-oracle.com/t_ora_12577.htm


основная проблема заключается в том, что в установке Oracle instant client отсутствуют библиотеки DLL, которые существуют в установке сервера СУБД, требуемой приложением. Вот почему переключение Oracle homes с client_1 на db_1 работает, а не является чисто проблемой пути.

sqlplus работает в любой ситуации, потому что он использует минимальный набор DLL, которые существуют в обеих установках Oracle.


вот несколько вещей, чтобы проверить. Не забудьте попробовать #3 при необходимости, это исправить проблему для меня!

  1. убедитесь, что все службы Oracle запускаются
  2. убедитесь, что переменные окружения установлены (путь, oracle_sid, вам нужно будет=ORALOCAL, TNS_ADMIN=с:ДевОракулпродукта11.2.0dbhome сети\админ)
  3. попробуйте изменить значения переменных среды Path, например:
    «D:DevOracleproduct11.2.0dbhomebin» быть до
    «D:devOracleproduct11.2.0client_32bin» в приказ

Fissh


Понравилась статья? Поделить с друзьями:
  • Error while trying to retrieve text for error ora 12154
  • Error while trying to retrieve text for error ora 01804 pl sql developer
  • Error while trying to read from file достигнут конец файла
  • Error while trying to play the video
  • Error while trying to open file перевод