Oracle客户端安装

0    1069    5

Tags:

👉 本文共约3074个字,系统预计阅读时间或需12分钟。

下载连接

下载连接:

32位:https://www.oracle.com/database/technologies/instant-client/downloads.html

64位:https://www.oracle.com/database/technologies/instant-client/linux-x86-64-downloads.html

https://www.oracle.com/database/technologies/instant-client.html

安装

官方方式

参考 https://www.oracle.com/database/technologies/instant-client/linux-x86-64-downloads.html 的末尾,如下:

Instant Client Installation for Linux x86-64 (64-bit)

For general Instant Client information, see the Home Page.

ODBC users should follow the ODBC Installation Instructions.

The "Database Client Installation Guide for Linux" chapter on Installing Oracle Instant Client is here.

Instant Client RPMs are also available without click-through from yum.oracle.com for Oracle Linux 8 and Oracle Linux 7. Older RPM packages are available for Oracle Linux 8, Oracle Linux 7 and Oracle Linux 6.

Client-server version interoperability is detailed in Doc ID 207303.1. For example, Oracle Call Interface 19.3 can connect to Oracle Database 11.2 or later. Some tools may have other restrictions.

Installation of ZIP files:

  1. Download the desired Instant Client ZIP files. All installations require a Basic or Basic Light package.

  2. Unzip the packages into a single directory such as /opt/oracle/instantclient_19_3 that is accessible to your application. For example:

  3. The various packages install into subdirectories of /usr/lib/oracle, /usr/include/oracle, and /usr/share/oracle.

  4. Prior to version 18.3, create the appropriate links for the version of Instant Client. For example:

  5. Install the operating system libaio package. This is called libaio1 on some Linux distributions. On Oracle Linux 8 prior to Instant Client 21 you also need the libnsl package.

  6. For example, on Oracle Linux, run:

  7. sudo yum install libaio

  8. If Instant Client is the only Oracle Software installed on this system then update the runtime link path, for example:

  9. Alternatively, set the LD_LIBRARY_PATH environment variable prior to running applications. For example:

  10. export LD_LIBRARY_PATH=/opt/oracle/instantclient_19_3:$LD_LIBRARY_PATH

  11. The variable can optionally be added to configuration files such as ~/.bash_profile and to application configuration files such as /etc/sysconfig/httpd.

  12. If you intend to co-locate optional Oracle configuration files such as tnsnames.ora, sqlnet.ora, ldap.ora, or oraaccess.xml with Instant Client, put them in the network/adminsubdirectory. This needs to be created for 12.2 and earlier, for example:

  13. mkdir -p /opt/oracle/instantclient_12_2/network/admin

  14. This is the default Oracle configuration directory for applications linked with this Instant Client.

  15. Alternatively, Oracle configuration files can be put in another, accessible directory. Then set the environment variable TNS_ADMIN to that directory name.

    本人提供Oracle(OCP、OCM)、MySQL(OCP)、PostgreSQL(PGCA、PGCE、PGCM)等数据库的培训和考证业务,私聊QQ646634621或微信dbaup66,谢谢!
    AiDBA后续精彩内容已被站长无情隐藏,请输入验证码解锁本文!
    验证码:
    获取验证码: 请先关注本站微信公众号,然后回复“验证码”,获取验证码。在微信里搜索“AiDBA”或者“dbaup6”或者微信扫描右侧二维码都可以关注本站微信公众号。

标签:

Avatar photo

小麦苗

学习或考证,均可联系麦老师,请加微信db_bao或QQ646634621

您可能还喜欢...

发表回复