The setup routines for the Oracle in instantclient_12_1 ODBC driver could not be loaded due to system error code 998 - sql

I am trying to connect with oracle database by using oracle instant client 32 bit because i have 32 bit pc installed i have installed oracle instant client 32 bit successfully and configure Environment variable but when i try to configure instant client in ODBC ADMINISTRATOR i am getting this error
"The setup routines for the Oracle in instantclient_12_1 ODBC driver could not be loaded due to system error code 998".i have installed microsoft redistribute c++ for 32 bit also still it is not working please advise me.

Quick note since this is one of the first entries when you google the problem:
I was getting the same error (but on Server 2008R2). Checked the registry paths and C++ redists. Turns out the error was because I had a space in the name of the folder I installed to (and so the PATH variable had a space). Doh!

I just copied the working dlls sqlora32.dll , sqoras32.dll, sqlresus.dll and it worked for me but before that make sure you have correct entry in Registry, Environment variables are very well set also.
On Windows 64-bit OS,
32-bit AND 64-bit USER ODBC data sources are stored in the registry under HKEY_CURRENT_USER\Software\ODBC\ODBC.INI
64-bit SYSTEM ODBC data sources are stored in the registry under HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI
32-bit SYSTEM ODBC data sources are stored in the registry under HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC\ODBC.INI

Related

Microsoft.ACE.OLEDB not registered on local machine

I'm having an issue with Visual Studio 2005. I'm writing an application in VB.net using Microsoft.ACE.OLEDB.12.0. I've got a couple of applications using that provider already and they all run fine. I can Publish them again or run them in the IDE and they work fine. When I try to run the new application I get the message that "The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on local machine. I've started the application over several times with no change. Under Data Connections inside VS, I can open the database and see the tables, views and procedures. But it still gives me this message. I've tried to reinstall the driver and nothing changes. I've uninstalled in and reinstalled it, no change. Any ideas?
Access drivers are, as far as I know, bit-specific. If you have the 32 bit driver installed and your compile/run your app in x64 it will fail to find the driver. Match the bitness of your project to the bitness of your installed drivers (or cycle all the options). Remember that the Prefer32bit setting can influence the resulting bitness chosen in an AnyCPU situation (e.g. if you have 64bit drivers, and have AnyCPU+Prefer32=Y then you may encounter a fail)

Converting Access Database to MSSQL Database Using Microsoft SQL Server Migration Assistant for Access

I am trying to convent a Ms Access Database to MS SQL 2012, using Microsoft SQL Server Migration Assistant for Access version 6.0
but each time i try to convert it an error pops up. any ideas how i can solve the problem i reinstall the program Microsoft SQL Server Migration Assistant for Access , and it worked just ones and after that i have the same error.
any help will be most appreciated
Access Object Collector error: Database
Retrieving the COM class factory for component with CLSID {CD7791B9-43FD-42C5-AE42-8DD2811F0419} failed due to the following
error: 80040154 Class not registered (Exception from HRESULT:
0x80040154 (REGDB_E_CLASSNOTREG)). This error may be a result of
running SSMA as 64-bit application while having only 32-bit
connectivity components installed or vice versa. You can run 32-bit
SSMA application if you have 32-bit connectivity components or 64-bit
SSMA application if you have 64-bit connectivity components, shortcut
to both 32-bit and 64-bit SSMA can be found under the Programs menu.
You can also consider updating your connectivity components from
http://go.microsoft.com/fwlink/?LinkId=197502.
An error occurred while loading database content.
Just to complete the other side of the story...
If you have a 64-bit setup, you might have to go the other direction
and install the 64-bit MSAccess 2010 engine.
I'm running Access 2013, and I believe it is 64-bit.
But the SMAA tool threw the 80040154 error.
I think SMAA can't or doesn't use the 64-bit connectivity drivers that come with 64-bit Access 2013.
So using the 32-bit SMAA didn't help.
Installing the 64-bit 2010 engine did.
I got it as a free standalone download here:
https://www.microsoft.com/en-us/download/details.aspx?id=13255
After the quick install of this, I simply started
SMAA 64-bit again,
and the wizard was successful the first time.
thanks to :
https://social.technet.microsoft.com/Forums/itmanagement/en-US/0249eebf-14bd-45f6-9bca-3b42395a3d13/ssma-60-error-retrieving-the-com-class-factory-for-component-failed-due-to-the-following-error?forum=sqlservermigration
I remember this error. I had to find the EXE for 32-bit SSMA even though I was running 64-bit windows. The default installed location was:
C:\Microsoft SQL Server Migration Assistant for Access\bin
And the filename was:
SSMAforAccess32.exe
[SOLVED]
I encountered the same error while using SSMA v7.7.0 for migrating from MS-Access 2016 DB to SQL Server 2017. Fortunately, I got it fixed by installing Microsoft Access Database Engine 2016 Redistributable
with regards to installing the runtime environment of Access to get around the 80040154 error from SSMA: With Access 2016, I found that the runtime environment would not install because I already had Access installed. I needed to deinstall Access, then install the runtime only version. Then, SSMA would run without the 80040154 error. Total pain tho.
If you're trying to read/write data from/to MS Access database file via .NET application, try to switch the project to x86 architecture. It helps in my case

Oracle client and networking components were not found

I created SSIS will do task like get data from oracle to sql server.i run ssis package run in my local system.it is working fine but i deployed ssis package in remote system and trying access from sql procedure. I'm getting error like below.
Oracle client and networking components were not found. These components are supplied by Oracle Corporation and are part of the Oracle Version on 7.3.3 or later client software installation.
Please let know if any solution there?
Simplest solution: The Oracle client is not installed on the remote server where the SSIS package is being executed.
Slightly less simple solution: The Oracle client is installed on the remote server, but in the wrong bit-count for the SSIS installation. For example, if the 64-bit Oracle client is installed but SSIS is being executed with the 32-bit dtexec executable, SSIS will not be able to find the Oracle client.
The solution in this case would be to install the 32-bit Oracle client side-by-side with the 64-bit client.
Technology used: Windows 7, UFT 32 bit, Data Source ODBC pointing out to 32 bit C:\Windows\System32\odbcad32.exe, Oracle client with both versions installed 32 bit and 64 bit.
What worked for me:
1.Start -> search for Edit the system environment variables
2.System Variables -> Edit Path
3.Place the path for Oracle client 32 bit in front of the path for Oracle Client 64 bit.
Ex:
C:\APP\ORACLE\product\11.2.0\client_32\bin;C:\APP\ORACLE\product\11.2.0\client_64\bin
1.Go to My Computer Properties
2.Then click on Advance setting.
3.Go to Environment variable
4.Set the path to
F:\oracle\product\10.2.0\db_2\perl\5.8.3\lib\MSWin32-x86;F:\oracle\product\10.2.0\db_2\perl\5.8.3\lib;F:\oracle\product\10.2.0\db_2\perl\5.8.3\lib\MSWin32-x86;F:\oracle\product\10.2.0\db_2\perl\site\5.8.3;F:\oracle\product\10.2.0\db_2\perl\site\5.8.3\lib;F:\oracle\product\10.2.0\db_2\sysman\admin\scripts;
change your drive and folder depending on your requirement...
After you install Oracle Client components on the remote server, restart SQL Server Agent from the PC Management Console or directly from Sql Server Management Studio. This will allow the service to load correctly the path to the Oracle components. Otherwise your package will work on design time but fail on run time.
In my case this was because a file named ociw32.dll had been placed in c:\windows\system32. This is however only allowed to exist in c:\oracle\11.2.0.3\bin.
Deleting the file from system32, which had been placed there by an installation of Crystal Reports, fixed this issue

jdbc connectivity with MS ACCESS

i am trying to establish a connection with access database using java...
But while trying to configure the database it showing the error as architecture mismatch between driver and the application..
My OS is 64 bit and office is 32 bit.... I resovled the same problem in oracle by placing the jar files C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jar and C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jar in class path. But How can i solve this problem with access....
A 32-bit ODBC Administrator utility (%WINDIR%\SysWOW64\odbcad32.exe) supplied by Microsoft for its 64-bit OS does not solve the archirecture incompatibility since DSNs defined through it are usable only by apps also running in 32-bit mode.
Fortunately, Microsoft realized the issue and provided a component called “Microsoft Access Database Engine 2010 Redistributable”. You can download it from Microsoft site. After executing AccessDatabaseEngine_X64.exe you will be able to see the MS-Access driver under the normal 64-bit ODBC Administrator.

NULL values reading from excel file

i am not getting the integer values in dataset while reading from an excel files
the field which is integer will be showing as NULL.wht should i do to solve this probelm?
Thanks in Advance
If you are using OleDB (ADO.NET) then you need to read this article:
http://blog.lab49.com/archives/196
You will probably find solution to your problem there.
Another issue that you might run into is the 32-bit vs 64-bit. This may not come up on your local machine if you're on 32-bit OS, but you'll see this problem when you deploy your app to a 64-bit OS (i.e. if you have ASP.NET app deploed to IIS on 64-bit Windows).
Below is some more info on the subject, but basically if boils down to the fact that your application will have to target 32-bit only (there's no 64-bit version of Jet)
http://social.msdn.microsoft.com/Forums/en-US/adodotnetdataproviders/thread/45aa44dd-0e6f-42e5-a9d6-9be5c5c8fcd1
How set this up properly on IIS:
http://www.telerik.com/support/kb/aspnet-ajax/general/error-on-64-bit-windows-machines-the-microsoft-jet-oledb-4-0-provider-is-not-registered-on-the-local-machine.aspx