安装 Oracle 即时客户端

发布于 2024-11-03 20:21:04 字数 230 浏览 1 评论 0原文

我似乎不知道如何在 Windows Server 2008 上安装 Oracle 客户端。

我下载了 x64 版本 (列表中的第一个文件)位于此处。该页面底部有安装说明:

步骤 2(“instantclient”)

我应该运行哪个可执行文件?

I can't seem to figure out how to install the Oracle client on Windows Server 2008.

I downloaded x64 version (the first file on the list) here. There are installation instructions on the bottom of that page:

Step 2 ("instantclient")

Which executable should I run?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

玉环 2024-11-10 20:21:04

Instantclient 通过在 Windows PATH 环境变量中定义文件夹来工作。 但您可以手动“安装”以在 Windows 注册表中创建一些项。 如何?

1) 下载 instantclient (http://www.oracle.com/technetwork/topics/winsoft-085727.html">http:// /www.oracle.com/technetwork/topics/winsoft-085727.html)

2) 解压缩 ZIP 文件(例如 c:\oracle\instantclient)。

3) 将上述路径包含在 PATH 中。
Set PATH in Windows

4) 创建注册表项:

  • Windows 32 位:[HKEY_LOCAL_MACHINE \SOFTWARE\ORACLE]
  • Windows 64 位: [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ORACLE]

5) 在上述注册表项中,创建一个以“KEY_”开头的子项,后跟您想要的安装名称:

  • Windows 32 位: [HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_INSTANTCLIENT]
  • Windows 64 位: [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ORACLE\KEY_INSTANTCLIENT]

6) 现在在上述键中至少创建三个字符串值:

Oracle Home 的注册表密钥

对于那些使用 Quest SQL Navigator 或 Quest Toad for Oracle 的人来说,它会起作用。显示消息“Home is valid.”:

在 Quest Toad(或 SQL Navigator)中显示消息“Home is valid.” )

现在显示用于选择 Oracle 客户端的注册表项:

在 Quest SQL 中选择 Oracle 客户端导航器

The instantclient works only by defining the folder in the windows PATH environment variable. But you can "install" manually to create some keys in the Windows registry. How?

1) Download instantclient (http://www.oracle.com/technetwork/topics/winsoft-085727.html)

2) Unzip the ZIP file (eg c:\oracle\instantclient).

3) Include the above path in the PATH.
Set PATH in Windows

4) Create the registry key:

  • Windows 32bit: [HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE]
  • Windows 64bit: [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ORACLE]

5) In the above registry key, create a sub-key starts with "KEY_" followed by the name of the installation you want:

  • Windows 32bit: [HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_INSTANTCLIENT]
  • Windows 64bit: [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ORACLE\KEY_INSTANTCLIENT]

6) Now create at least three string values ​​in the above key:

registry keys for Oracle Home

For those who use Quest SQL Navigator or Quest Toad for Oracle will see that it works. Displays the message "Home is valid.":

Displays the message "Home is valid." in Quest Toad (or SQL Navigator)

The registry keys are now displayed for selecting the oracle client:

selecting the oracle client in Quest SQL Navigator

终弃我 2024-11-10 20:21:04

我能够在 32 位 Windows 7 PC 上设置 Oracle Instant Client(基本)11g2 和 Oracle ODBC(32 位)驱动程序。注意:您需要一个“tnsnames.ora”文件,因为它没有附带该文件。您可以 Google 示例并复制/粘贴到文本文件中,更改您环境的参数。

设置 Oracle Instant Client-Basic 11g2(Win7 32 位)
(我认为如果您使用 64 位,还需要执行一两个步骤)

Oracle Instant Client

  • 解压 Oracle Instant Client - Basic
  • 将内容放入“C:\instantclient”等文件夹中
  • 编辑 PATH 环境变量,添加路径Instant Client 文件夹到变量值。
  • 添加名为“TNS_ADMIN”的新变量,指向与即时客户端相同的文件夹。
  • 我必须创建一个“tnsnames.ora”文件,因为它没有附带该文件。将其放在与客户端相同的文件夹中。
  • 重新启动或使用任务管理器杀死“explorer.exe”并重新启动以刷新 PATH 环境变量。

ODBC 驱动程序

  • 解压 ODBC 驱动程序
  • 将所有文件复制到与客户端“C:\instantclient”相同的文件夹中
  • 使用命令提示符运行“odbc_install.exe”(应该说它是成功的)

注意:“未记录的“那些把我挂在哪里的东西......
- 所有文件(客户端和驱动程序)都需要位于同一文件夹中(子文件夹中没有任何文件)。
- 从命令提示符运行 ODBC 驱动程序将允许您查看它是否安装成功。双击安装程序只是在屏幕上闪烁了一个框,不知道它失败了,因为没有错误对话框。

完成此操作后,您应该能够使用 Oracle ODBC 驱动程序设置新的 DSN 数据源。
-希望这对其他人有帮助。

I was able to setup Oracle Instant Client (Basic) 11g2 and Oracle ODBC (32bit) drivers on my 32bit Windows 7 PC. Note: you'll need a 'tnsnames.ora' file because it doesn't come with one. You can Google examples and copy/paste into a text file, change the parameters for your environment.

Setting up Oracle Instant Client-Basic 11g2 (Win7 32-bit)
(I think there's another step or two if your using 64-bit)

Oracle Instant Client

  • Unzip Oracle Instant Client - Basic
  • Put contents in folder like "C:\instantclient"
  • Edit PATH evironment variable, add path to Instant Client folder to the Variable Value.
  • Add new Variable called "TNS_ADMIN" point to same folder as Instant Client.
  • I had to create a "tnsnames.ora" file because it doesn't come with one. Put it in same folder as the client.
  • reboot or use Task Manager to kill "explorer.exe" and restart it to refresh the PATH environment variables.

ODBC Drivers

  • Unzip ODBC drivers
  • Copy all files into same folder as client "C:\instantclient"
  • Use command prompt to run "odbc_install.exe" (should say it was successful)

Note: The "un-documented" things that were hanging me up where...
- All files (Client and Drivers) needed to be in the same folder (nothing in sub-folders).
- Running the ODBC driver from the command prompt will allow you to see if it installs successfully. Double-clicking the installer just flashed a box on the screen, no idea it was failing because no error dialog.

After you've done this you should be able to setup a new DSN Data Source using the Oracle ODBC driver.
-Hope this helps someone else.

甜警司 2024-11-10 20:21:04

指示指出:

  1. 下载适合您平台的即时客户端软件包。所有安装都需要基本包。
  2. 将包解压缩到单个目录中,例如“instantclient”。
  3. 将您环境中的库加载路径设置为步骤 2 中的目录(“instantclient”)。在许多 UNIX 平台上,LD_LIBRARY_PATH 是适当的环境变量。在 Windows 上,应使用 PATH。
  4. 启动您的应用程序并享受。

建议提取/解压缩到新目录。他们建议 instantclient,但您可以将目录命名为您喜欢的任何名称。如果您愿意,请将其命名为 C:\OracleInstantClient\

然后在步骤 3 中,打开 Windows 命令提示符。类型:

PATH C:\OracleInstantClient; %PATH%`

这就是全部了!

The directions state:

  1. Download the appropriate Instant Client packages for your platform. All installations REQUIRE the Basic package.
  2. Unzip the packages into a single directory such as "instantclient".
  3. Set the library loading path in your environment to the directory in Step 2 ("instantclient"). On many UNIX platforms, LD_LIBRARY_PATH is the appropriate environment variable. On Windows, PATH should be used.
  4. Start your application and enjoy.

Suggest extracting/unzipping into a new directory. They've suggested instantclient, but you can name the directory anything you like. Name it C:\OracleInstantClient\ if you choose.

Then in Step 3, open a Windows Command Prompt. Type:

PATH C:\OracleInstantClient; %PATH%`

That's all there is to it!

望笑 2024-11-10 20:21:04

If you want to use SQL Server Management Studio, you want to install the full Oracle client, not the Instant Client. The full Oracle client is on the same download page as the Oracle database. Assuming that you are installing on a 64-bit version of Windows, I expect you want the "Oracle Database 11g Release 2 Client (11.2.0.1.0) for Microsoft Windows (x64)" download. This is several hundred MB rather than a couple of MB for the Instant Client.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文