Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 8117
  • Last Modified:

Oracle 10g instant client

Hi All:

I have been trying to get Oracle 10g instant client running on my computer for hours.

The platform is Windows Server2003,it is running within a PC Client and the Oracle installation directory is "c:\oracle". After the basic installation it is suggested that:
1. A system variable called TNS_ADMIN be created and pointed at the directory where the tnsnames.ora is placed.
2. The latest files mfc71.dll and msvcrt.dll where located and pathed and for extra caution they were also placed in the bin directory.
3. The accompanying ODBC drivers have been installed and appears as an option in the ODBC administrator.
4. I have gone so far as to check the registries for any odd paths, classes, or ODBC variations that could be affecting things and, 'yes' even rebooted.

Now everything should work but... The following error continues to popup:

“The setup routines for the Oracle in instantclient10_2 ODBC Driver could not be loaded due to system error code 126″
 ...followed by:
“Could not load the setup or translator library”

Same issue from the start to finish...

MTIA Jim
0
jlawrence1
Asked:
jlawrence1
  • 3
  • 2
1 Solution
 
Pierrick LOUBIERCommented:
Try to copy mfc71.dll and msvcrt.dll in your Instant Client directory.
You can also register these libraries using regsvr32.
0
 
jlawrence1Author Commented:
Good thought. That has been tried. I also made sure they were loaded in the system32 directory.
0
 
Pierrick LOUBIERCommented:
Is InstantClient directory in your PATH ?
0
 
Pierrick LOUBIERCommented:
Sounds like you miss msvcr71.dll... See below MetaLink note 336693.1 :

Subject:  Cannot Create DSN With Oracle Instant Client and ODBC Driver
  Doc ID:  Note:336693.1 Type:  PROBLEM
  Last Revision Date:  07-SEP-2006 Status:  PUBLISHED
--------------------------------------------------------------------------------

Applies to: Oracle ODBC Driver - Version: 10.2.0.1.0
Microsoft Windows
Microsoft Windows (32-bit)
SymptomsUnable to create an ODBC DSN with Oracle Instant Client and ODBC Driver for Instant Client Version 10.2.0.1.0. Receiving the following error messages.

"The setup routines for the Oracle in instantclient10_2 ODBC Driver could not be loaded due to system error code 126"
Then clicking ok on this message gives another one
"Could not load  the setup or translator library"

ChangesThe installation of Oracle Instant Client and Oracle ODBC Driver for Instant Client version 10.2.0.1.0 CauseThis error may occur for the following two reasons.

1. There is not a mfc71.dll, msvcrt.dll and msvcr71.dll   located on the pc that the Instant Client is installed on.

2. The directory that mfc71.dll  , msvcrt.dll and msvcr71.dll  is in is not included in the path environment variable.

SolutionTo implement the solution, please execute the following steps:

1. Find the mfc71.dll , msvcrt.dll and msvcr71.dll if it on your pc and include the directory in which it is in in the path variable. It is normally found in the C:\WINDOWS\system32 directory. Or copy mfc71.dll, msvcrt.dll and msvcr71.dll   to the directory where the instant client is installed.

2. If you have installed the full Oracle Client and ODBC Drivers for version 10.2.0.1 mfc71.dll , msvcrt.dll and msvcr71.dll   are located in the ORACLE_HOME\bin directory


0
 
jlawrence1Author Commented:
Thanks for the tip. The one issue that I had missed was the requirement for the dll named msvcr71.dll which appears to be a 16bit dlll as it is stored in the Windows System directory... curious.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now