ORA-12154: TNS: could not resolve the connect identifier specified (but Net Manager tests fine!) - oracle12c

I am running Lyris ListManager on a Win 2008 server. It connects to Oracle 12c on another machine.
I have successfully configured and tested the connection using the Net Manger (or Net Configuration Assistant). However, when I run ListManger, I receive this Oracle error (TNS: could not resolve the connect identifier specified).
I checked the configuration file for the ListManager (lmcfg.txt), which correctly specifies everything.
Previously, we had Oracle 11g database, and 11g client on this server, which worked fine. DB upgrade to 12c was successful (other applications, on other servers, work fine), and I removed 11g client and installed 12c. It successfully connects to the Oracle server with the correct service ID, but Lyris ListManger application can't connect.
What am I missing here?

The root of the problem was in multiple client installations. At some point during the troubleshooting, I installed, and then uninstalled 64-bit client. After that, I installed 32-bit client and got it to connect through the Net Manager. However, that 64-bit client wasn't correctly and completely removed, and the ODBC driver was still looking at its original path for DLL libraries (which weren't there anymore).
I had to add a new ODBC driver entry for the 32-bit Oracle client. Once this was properly configured, the ListManager application was able to connect to Oracle server.

Related

How can I tell SQLDeveloper which version of JDBC to use?

I need to connect to an Oracle 9i server from my machine using SQLDeveloper. I already have a functioning version of SQLDeveloper 18.2 + Oracle Client 12 for more modern databases, but for this connection I want a separate older version of SQLDeveloper.
I've installed SQLDeveloper 3.2.20.09 in a separate folder on my machine and can launch it, but it defaults to finding the ojdbc6.jar file from Oracle Client 12. if I go to Help > About and select properties, the jdbc.library says jdbc.library /C:/app/client/product/12.1.0/client_1/jdbc/lib/ojdbc6.jar
and if I try to connect I get the error ORA-01460: unimplemented or unreasonable conversion requested
I tried putting the path to the SQL Developer 3.2 install first in the PATH variable, but no difference. Is there a way to tell SQL Developer which jdbc driver to use for Oracle ? (maybe in sqldeveloper.conf)
The official answer is:
use the jar (driver) we ship with the product OR
use a Thick Client, and we'll pull the jdbc driver from an Instant Client or Oracle HOME on your machine
The 2nd option will work so long as you don't try to go back back or forward in time to the point that the software will recognize/support the driver.
In other words, you can't tell SQL Developer 18.x to use a 9i Home, we have a hard dependency to require at least a 11gR2 client (I believe, it could actually be a 12c based client which is required).
You'd be better off getting your data out of that ancier 9i Database and into a modern 12 or 19c Oracle instance.
but it defaults to finding the ojdbc6.jar file from Oracle Client 12.
Sounds like you've managed to get a thick connection defined, go into preferences and disabled on the advanced page any reference to OCI or Thick, then it will use the jdbc driver shipped with SQLDev.

DB2 connectivity without client drivers

I'm using EF 6 (Code first) with the IBM.Data.DB2.EntityFramwork nuget package to access a db2 database server. Working locally it all works as expected, but when deployed to a test server I get an exception: "System.MissingMethodException: Method not found: 'Void IBM.Data.DB2.InternalStruct6.SetDefault()"
I'm no DB2 wizard but I think the issue is related to a incompatible version of the db2 client drivers installed on the test server (9.7?). Entity framework 6 support needs version > 10.5. (I must have installed the 10.5 version locally at some point).
It would be nice to be able to run the application on any pc without additional dependencies, so my question is: Are there any way of skipping the db2 clients/drivers installation, and rather reference certain db2 dll's (or other nuget packages), to access db2 db servers?
Ok, I think asking the question resulted in a moment of enlightenment.
I guess the answer is NO, as the db2 clients/drivers actually installs the db2 odbc data source driver for db2. (Located in Administrative Tools -> Data Sources (ODBC)).

MYSQL workbench connection not starting

I have windows 8.1 and I am trying to install MYSQL workbench 5.2CE.
But it is showing this error :"Can't connect to MySQL server on 'localhost' (10061)".In program files under mysql there is no bin folder and even in services.msc there is no process for mysql.
What should I do.
Thanks in advance
MySQL Workbench is only a client program and needs a server to work against. If you want to work with MySQL locally on Windows I recommend to use the MySQL Installer for Windows, which not only installes MySQL Workbench, but also a server of your choice (by default: the current GA version).
Once that is installed MySQL Workbench will automatically detect the server and you can immediately start a connection to it.

sonarqube 4 server migration

I'm trying to move a sonarqube 4.4 installation from one machine to another. What's more we would also like to change the database server from Oracle to Postgres 9.3.
What my plan was initially is that I would shutdown the sonar server, the database adminstrator would dump existing database, migrate it to postgres in the new server and I would zip the existing server installation and move it along to the new server. Then I would start the server.
However I've run into problems, even though sonarqube 4.4 booted fine, when I hit
http://new-server:9001/sonar4
I was getting a 404 response from sonar.
At some point I tried unzipping the server file anew in which case I managed to see the projects and the dashboards but no analysis data existed, even though last analysis time was available.
Any ideas or clues what am I missing?
Also, the driver in sonarqube for postgres is 9.1.xxx can I update this or should we use postgres 9.1 to make sure the driver is compatible with the database?
How is your ..\conf\sonar.properties? Normally, you should have changed:
sonar.jdbc.url=jdbc:oracle:thin:#localhost/XE
Did you use some tool to migrate Oracle to Postgress? I thought it was not possible.
Do not hesitate to ask for further precision.
Regards.

DB2 Transport Component is not registered correctly

I'm trying to test the DB2 adapter for BizTalk 2006 (not R2).
While trying to configure an instance in an application, I get an error stating:
DB2 Transport Component is not registered correctly
The enivronment is 2 BizTalk servers sharing a messagebox.
The DB2 adapter works fine on the first server. It is the second server I am having problems with.
I've exported the .msi files from the first server, then installed them onto the second server and imported them into BizTalk. All of the other adapters that I'm using work fine on both servers.
Google searches don't bring up a whole lot regarding troubleshooting the BizTalk DB2 adapter.
Further troubleshooting has shown that MS BizTalk Adapters for Host Systems is installed on both machines. However, it was only configured on the machine that is giving me the issue.
I've unconfigured it, but that still has not helped.
I've double checked tht version numbers of the .dll's for the DB2 adapter are the same on both servers, and made sure that they are installed in the GAC.
None of this has helped.
Has anyone run into an issue like this before, or point me in the direction of where to look for BizTalk DB2 adapter troubleshooting guidence?
When the "registered" word appears, I think about the registration of COM components, not the installation of .NET assemblies. The underlying driver the DB2 adapter uses is the Microsoft ODBC Driver for DB2. You may want to check if your ODBC DSN control panel shows up that particular driver for you to configure a DSN.
I'd recommend a reinstallation for the Adapter pack for Host Systems.