Oracle Client + ORA-12557: TNS:protocol adapter not loadable - database

Deat experts, We migrated from Oracle 12c to Oracle 19c in the windows server 2016 last week.
The DBA did not remove the previous version of oracle client - 12c and in addition installed the latest version of Oracle 19c.
Also I can see the environment variable has below 2 entry in addition to both the client installation
C:\Oracle\product\19.0.0\client_32\bin;
C:\Oracle\product\12.1.0\client_1\bin;
When we connect to the database using external connection, we get the below error. The DB was working fine prior to the oracle 19c installation.
The program has ended abnormally due to an unhandled exception.
Exception Code (OCI[DBConnectOCI.cpp[192]]
ORA-12557:TNS:protocol adapter not loadable)
Clarification:
I am not a DBA person but technically oracle has what it needs, why does it not getting connected to the DB using oracle client 19c?
Is it 100% true that we need to remove the previous version of the DB Client and always have only one client version?
Is the environment variable creating the issue ? or both env variable and oracle client ?

Related

Oracle DB - Connection Issue

I am not a Oracle DB expert.
I need to connect to a REMOTE Oracle 19c database server from VDI through Oracle Client or SQL*PLUS.
I only have the Database Name "Orcl" and the TNS Connect string "dev1".
Please advise what are all the pre-requisites that I need to have in my VDI, so I can connect to the remote DB.
What are the environmental variable I need to set in my VDI ?
Do I need to have Oracle client installed in my machine ? which version of Oracle client ?
If I have Oracle 12c client in my machine, will I be able to connect to Oracle 19C DB.
I don't think the vdi plays into it at all. You will be making a connection across a network interface (even if the client and database are on the same machine). Yes you will need an oracle client. I think a 12c client is the oldest client that is still certified for connection to 19c database. To be sure Refer to Oracle Support Document 207303.1. For the client, using a network connection, I believe the only environment variable required is ORACLE_HOME.

Install and configure Oracle 12c XE/Enterprise on Centos 7

Oracle provided descriptive documentation to deploy Oracle database/Manager/Clients. So, we have followed the link which summarise the things: https://www.howtoforge.com/tutorial/how-to-install-oracle-database-12c-on-centos-7/
There are a few pain points we are facing:
Remote connection to oracle not happening
Remote oracle manager link access on port 5500
Details on Remote JDBC connections to Oracle 12c is not in one place and how to build the connection from JBDC

Firebird ODBC Setup Error

I have a Firebird Database (v2.5) which lives on a server with hostname "FBDEVDB". I am working on a separate server on which I have installed SQL Server to begin the process of migrating the tables and data into a SQL Server database.
I saw several posts discussing that this can be done using the Import Data feature of SSMS with an ODBC connection to the Firebird DB. So, I have downloaded and installed the Firebird ODBC Driver 64-Bit. When I went to configure my DSN I first got an error regarding a missing gds32.dll. Looking into it further, I realized I needed the fbclient.dll from the Firebird files. I've copied it over to my SQL Server machine, and now the gds32.dll error is gone, and I can tell it is TRYING to connect to the Firebird instance because if I provide an incorrect username/password it tells me my login is incorrect.
However, when I use a valid login/password, I get the following error message
I have defined the following fields in the ODBC setup
Database: FBDEVDB::C:\Firebird\MYDATABASE.FDB
Client: C:\Temp\fbclient.dll
Database Account: SYSDBA with VALID PASSWORD
What am I missing? I can not seem to find any information on what this error means.
Thank you!!!!!

HP ALM 12.5 installation fails with 'Unable to validate DB connection parameters' error. Help needed

We are trying to install HP ALM 12.5 on a Windows Server 2012 OS.
We have pre-requisite components .Net framework 3.5,4.5, JRE 1.8
During installation, we face an error Unable to validate DB connection parameters.
Checked with vendor, but they are repeatedly pointing to DB only.
However, nothing seems to be wrong with the db. we were able to make connections using SQL Developer and Express. Able to view table schema
Tried installing with SYSDB role, however that also fails making connection. On the listener we find some traffic from the app machine, in which we are attempting an installation.
We are so confused as to whether it is a App server issue or DB server issue. Port checks were done and no question of firewall. All open.
Any suggestions here is much appreciated !!
Db details: Oracle 12.1.0.2 Enterprise
DB server: Unix
App server: Win 2012 Server standard
ALM: 12.5 for HP PC 12.5
Check, please, in ALM installation if you are using SID or Service Name of your Oracle instance.
By default you should provide service name - but you can use SID by modifying Connection string directly (put SID instead of ServiceName).
1 - see screenshot.
Also you can check installation log at User folder\IA_logo for additional information on specific issue you met.

Oracle AWS RDS database link ORA-12545

I'm trying to create a database link from my Oracle AWS RDS instance to another Oracle database outside my VPC. I created the database link this:
create database link test
connect to myusername
identified by "mypassword"
using '(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=my.db.com)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=servicenameame)))';
However when I run a query against that database link I get the following:
SQL> select sysdate from dual#test;
select sysdate from dual#test
*
ERROR at line 1:
ORA-12545: Connect failed because target host or object does not exist
I did some googling of ORA-12545 and the majority of the issues people are having with this error is either an intermittent connectivity failure (of which mine is not, it fails every time), or a misspelled hostname/incorrect port. My issue is also not an incorrect hostname/port because I am able to CONNECT to my.db.com using the same connection string and query the database that way.
Does anyone have any suggestions?
Source Oracle database is:
Oracle Database 11g Release 11.2.0.4.0 - 64bit Production
Destination Oracle database I am trying to connect to is:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
I (somewhat) found the answer I needed. The TLDR version is that after much googling and desk pounding I did an nslookup on the hostname of the database I am connecting to (the my.db.com portion of TNSNames). I modified the TNSNames to connect to the IPs returned by the nslookup. My final TNSNames looks something like the following:
(DESCRIPTION=
(ADDRESS_LIST= (LOAD_BALANCE=on)(FAILOVER=ON)
(ADDRESS=(PROTOCOL=tcp)(HOST=w.x.y.z1)(PORT=1521))
(ADDRESS=(PROTOCOL=tcp)(HOST=w.x.y.z2)(PORT=1521))
(ADDRESS=(PROTOCOL=tcp)(HOST=w.x.y.z3)(PORT=1521)))
(CONNECT_DATA=(SERVICE_NAME= servicenameame)))
The long version is that the Oracle host I am connecting to is configured with a Single Client Access Name (SCAN). After looking at the discussion on this post I went with just looking up the host name. I initially tried to modify the REMOTE_LISTENER in the AWS RDS Parameter Group, but that was not modifiable.

Resources