How to find driver and port number from Windows Server for Progress database 11 - windows

I'm getting an error from report:
The OLE DB provider "MSDASQL" for linked server "linkname" reported an error. The provider reported an unexpected catastrophic failure.
I'm checking to find out the installed driver and port number from the Windows server 2008 R2. I checked in "C:\Windows\System32\drivers\etc" services file, but unable to get which exact service I need to check?
My ODBC data source administrator window is listing below drivers:
1. MySQL ODBC driver
2. Oracle in OraClient 10g
3. SQL Server
4. SQL Server native client
How can I find the detailed information; what is the current driver installed on what port number ? Is the current driver installed is compatible with Progress DB ? If it's not compatible, which latest driver I need to install to make it compatible with Progress 11?

You will need to download the SQL Client Access software from Progress web site.
https://www.progress.com/support/evaluation/download-resources/download-center
Look for the SQL Client Access:

Related

Unable to connect to Oracle database from SSAS

I am attempting to create a Sql Server Analysis Services Tabular Model and am having trouble accessing an Oracle database for importing data. I am using the following:
OS
-Windows 10 Enterprise (I am administrator of machine)
Tools to create tabluar cube:
-Visual Studio Community 2022 (64 bit) - Current Version 17.2.5
-SQL Server Analysis Services 15.0.2000.5 - Developer Edition (installed on localhost, services running)
Oracle database:
Oracle Database 21c Enterprise Edition Release 21.0.0.0.0 Production Version 21.3.0.0.0 - Developer Edition (installed on localhost), up and running and able to connect with other tools (e.g. Toad, Sqlplus, SqlDeveloper, cx_python, etc..)
I have a 64-Bit System Data Source Name created for ODBC connections, using Oracle Instant Client. This data source works just fine with other tools mentioned in the Oracle databse section above.
When creating a SSAS tabular model in Visual Studio and attemping to import a data source, I try the following:
Models
-TabularProject (my project)
-Data Sources > New Data Source > Oracle Database
At this point I get the following message:
Oracle Database
The recommended provider ('Oracle.DataAccess.Client') is not installed. You can continue with your current provider, however, it has been deprecated and may not work correctly.
and I click 'OK'.
From here, I enter the connection string of my locally hosted oracle database (localhost:1521/MY_DB.
When prompted for credentials, I select 'Database' and then enter the correct username/password to connect to my locally hosted oracle database.
Then I receive an error stating:
Unable to connect
We encountered an error while trying to connect.
Details: "An error happened while reading data from the provider: 'Attempt to load Oracle client libraries threw BadImageFormatException. This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed.'"
I've also tried the following method:
Models
-TabularProject (my project)
-Data Sources > New Data Source > ODBC
Then I choose my ODBC datasource for my locally hosted database (which seems to work fine for other apps) and I receive the following error:
Unable to connect
We encountered an error while trying to connect.
Details: "ODBC: ERROR [IM014] The specified DSN contains an architecture mismatch between the Driver (64-bit) and Application (32-bit)"
I have installed various Oracle Drivers including:
-64-bit ODAC: ODAC122010Xcopy_x64.zip
-64-bit instantclient basic: instantclient-basic-windows.x64-21.6.0.0.0dbru.zip
-64-bit instantclient odbc: instantclient-odbc-windows.x64-21.6.0.0.0dbru.zip
-64-bit instantclient sqlplus: instantclient-sqlplus-windows.x64-21.6.0.0.0dbru.zip
I have also tried these same steps for a remote hosted Oracle database (using both ezconnect string and a ODBC DSN) and even though the connections work just fine with other apps, it doesn't work with SSAS for some reason.
Any and all insight advice to get my SSAS tabular model connected to Oracle databases would be very much appreciated.
EDIT:
I have tried following a solution from this similar question and create a dsn, suffixed with _64, using only the 64-bit ODBC manager, yet I get the same results when trying to use that DSN with SSAS.
I have also tried the following steps, per Microsoft:
From https://learn.microsoft.com/en-us/sql/reporting-services/report-data/oracle-connection-type-ssrs?view=sql-server-ver16#64-bit-and-32-bit-drivers-for-power-bi-desktop:
2. Register ODP.NET Unmanaged Client to GAC:
C:\Oracle\odp.net\bin\4\OraProvCfg.exe /action:gac /providerpath:C:\Oracle\odp.net\bin\4\Oracle.DataAccess.dll
3. Add ODP.NET Unmanaged Client entries to machine.config:
C:\Oracle\odp.net\bin\4\OraProvCfg.exe /action:config /force /product:odp /frameworkversion:v4.0.30319 /providerpath:C:\Oracle\odp.net\bin\4\Oracle.DataAccess.dll
Yet, I still receive all errors shown above.

SSMA for Oracle "Connect to Oracle" error

i tried to connect to Oracle using Sql server migration assistant for oracle(SSMA for oracle).
and specified parameters like this
provider: Oracle Client Provider
mode: standard mode
and connection info(servername, port ...)
but i got a error message
"Unable to find specified provider.
Compatible Oracle Data Access Connectivity libraries were not found on the machine. You can install them from Oracle product media or download it from Oracle web site."
so i installed Oracle Data Access Components(ODAC),
http://www.oracle.com/technetwork/database/windows/downloads/index-090165.html
but same error message appeared.
what is Compatible Oracle Data Access Connectivity library?
I faced the same problem, Oracle Data Access Components (ODAC) are required for applications to connect to the database, to use "SSMA" you need to install Oracle instant client,
1) Download http://www.oracle.com/technetwork/database/database-technologies/instant-client/overview/index.html
2) Unzip, then add the folder to the path, open control panel > system > Advanced > Environment Vriables > choose Path and Edit it to add a new entry with your folder.
3) Connect with the 'system' user (user id = system)
see also this answer it helped me https://stackoverflow.com/a/26439785/4542599

Oracle SQL Developer - Issue with JDBC Driver

I've:
Windows 7 x64
My 11G Oracle client as per below
C:\Oracle\product\11.2.0\client_1
My SQL Developer (downloaded the kit with JDK 8 included, but installed the JSK separately just in case) dir as per below
C:\sqldeveloper
When I try to connect using TNS I have
no ocijdbc12 in java.library.path
If I go to Settings -> Database -> Advanced and choose my Oracle dir manually I get this:
Testing the Oracle Home located at C:\Oracle\product\11.2.0\client_1
Testing client directory ... OK Testing loading Oracle JDBC driver ...
OK Testing checking Oracle JDBC driver version ... Failed: Minimum
driver version 11.2.0.3 required, specified driver version is
11.2.0.1.0
So I looked into upgrading the JDBC driver, but I can't use the check for updates feature, since it appears to be blocked in my virtual machine.
I got the ojdbc7.jar from the SQL developer directory and copied it to C:\Oracle\product\11.2.0\client_1\jdbc\lib, and now I get the error below:
Testing the Oracle Home located at C:\Oracle\product\11.2.0\client_1
Testing client directory ... OK Testing loading Oracle JDBC driver ...
OK Testing checking Oracle JDBC driver version ... OK Driver
version: 12.1.0.2.0 Testing testing native OCI library load ...
Failed: Error loading the native OCI library The native OCI driver
could not be loaded. The system propertyjava.library.path contains the
entries from the environment variable PATH. Check it to verify that
the expected native library directory
C:\Oracle\product\11.2.0\client_1\bin is present and precedes any
other client installations. java.library.path =
C:\sqldeveloper\jdk\jre\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Oracle\product\10.2.0\client_1\bin;C:\Oracle\product\11.2.0\client_1\bin;C:\Oracle\product\11.2.0\client_2;C:\Oracle\product\11.2.0\client_2\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\ARQDISP\;C:\Program
;.
Have no idea what I'm doing at this point. Could you please help?
Its missing drivers. So in my case I installed Oracle Client from http://www.oracle.com/technetwork/topics/winx64soft-089540.html
and set the path variable accordingly.
Here's a blog post that shows how to tell SQL Developer where and which installed client to use :
https://www.thatjeffsmith.com/archive/2014/01/oracle-sql-developer-4-and-the-oracle-client/
Restart your SQL Developer.
I had similar issue. Moving from sqldeveloper 4.0 to 4.1, imported all my connections, but in 4.1, I would get 'no ocijdbc12 in java.library.path'.
I opened up my current connections (right-click on any connection and choose properties) all of which the connection Type is TNS. The 'Connect Identifier' was checked with the connections network alias name entered there. I checked on the 'Network Alias' check box and selected the same name and then the connection worked.
I went back to 4.0 to examine my connections there and it appears that the alias name works fine with the 'Connect Identifier' selected but not in 4.1
I had to update all my many connections to use 'Network Alias'.
Error loading the native OCI libraryThe native OCI driver could not be loaded and when trying to connect to a database i was getting no ocijdbc12 in java.library.path
For me the error was solved after i have created a new variable ORACLE_HOME with the value ....(path of the folder where the sql developer was insataled)\jdk\jre. Then i have added at the begging of the Path variable %ORACLE_HOME%\bin.
At first i have created a system variable that was pointing to the folder of the installation of the dev express and that was not working
For database selecting the connection properties and changing the connection type from TNS to Basic and providing the other details (Service name/SID) for the connection resolved the issue for me
Maybe it helps having a look into answer of my post about similar topic:
How to get Sqldeveloper 19.1 64-bit working with instantclient_12_2 on Windows enterprise PC without admin privileges?
The mentioned .bat file shows all you need.
If you have admin privileges or permissions to change any environment variables, then it will probably be the better way without using .bat file.
When I try to connect using TNS I have
no ocijdbc12 in java.library.path
It is so stupid and funny, at the same time, what I found.
I get the same error and the only difference between when it is OK and when is not is...
the TNS definition in tnsnames.ora
Simply add (maybe once again if it disappeared) the TNS definition of your database, like:
XE.WORLD=
(DESCRIPTION=
(ADDRESS=
(PROTOCOL=TCP)
(HOST=localhost)
(PORT=1521)
)
(CONNECT_DATA=
(SERVICE_NAME=XE.WORLD)
(SERVER = DEDICATED)
)
)
and restart SQL Developer.
Connection configuration will keep the name (XE.WORLD) even if it is already gone from tnsnames.ora. If it is not there, on the connection attempt, it will return that misleading error.
My setup: SQL Developer 4.1.4.21, ojdbc8.jar, connection to Oracle 19c.

"Provider cannot be found" error after migrating from IIS 6.0 to IIS 8.5

I have a ASP site which is working fine on Windows Server 2003 & IIS 6.0.
I migrated to Windows Server 2012 R2 IIS 8.5
I am getting an error when it tries to connect to a database:
Provider cannot be found. It may not be properly installed
Error Details:
2014-11-05 10:33:06 10.30.62.21 POST _main.asp |50|800a0e7a|Provider_cannot_be_found._It_may_not_be_properly_installed. 80 - XX.XX.XX.XX Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.1;+WOW64;+Trident/5.0;+SLCC2;+.NET+CLR+2.0.50727;+.NET+CLR+3.5.30729;+.NET+CLR+3.0.30729;+.NET4.0C;+.NET4.0E;+.NET+CLR+1.1.4322;+InfoPath.3) /bottomright.asp?sAction=assist 500 0 0 1859
My connection string is as below:
GetConnectionString = "Provider=SQLNCLI.1;Data Source=" & m_DALServer & _
";User Id=user;Password=pwd;Connect Timeout=3;"
I have checked the ODBC Data Source Administrator (32 bit) on new server(2012) and found below two related drivers
SQL Native Client 2005.90.4035.00 Microsoft Corporation SQLNCLI.DLL
SQL Server 6.03.9600.163.84 Microsoft Corporation SQLSRV32.DLL
I have enabled my app pool to 32 bit and Managed Pipeline to Classic.
Some drivers where installed by Tech Support Team. Which drivers I am not sure. But because of the patches I saw SQL Server Native Client 10 available in ODBC sources and my issue was resolved without any code change.
If any one having same problem kindly check if the correct drivers are installed on the server. You can also verify by going to ODBC Sources(32 bit) and check if the SQL Server Native Client 10 is available.
Thanks all for your time.
Try SQLCNCLI and SQLOLEDB as your data provider.
These are both OLEDB drivers, rather than ODBC.
Here's a list of the connection strings for each version of SQL from http://www.connectionstrings.com/sql-server/:
SQLNCLI - for SQL Server 2005
SQLNCLI10 - for SQL Server 2008
SQLNCLI11 - for SQL Server 2012

Oracle client can't connect to remote server

On win7 64 bit, PL/SQL Developer client login message: "Initailization error, SQL*Net not properly installed, OracleHomeKey: ;OracleHomeDir:".
The server is a remote server, I only have a sql client, because I can access database via java code, so thought that the tnslistener has been started on that server, am I right?
The listener is on the server, if you can connect to the server via java, the listener is running. So not a listener problem. The error states that your client is not properly installed. The PL/SQL developer software it trying to use sqlnet via the oracle client to access the oracle database. The sqlnet driver is reporting that your installation is either not configured or is not properly installed. What oracle client is installed on your win7 box? Did you install the instant client from oracle 10g/11? Did you install the full client for oracle 10g/11? Uninstall the bad install client, reinstall and configure/run the client software to test sqlnet.

Resources