Oracle客户端安装

0    848    5

Tags:

👉 本文共约3060个字,系统预计阅读时间或需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 的末尾,如下:

Oracle客户端安装

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:

本人提供Oracle(OCP、OCM)、MySQL(OCP)、PostgreSQL(PGCA、PGCE、PGCM)等数据库的培训和考证业务,私聊QQ646634621或微信db_bao,谢谢!
  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.

  16. To use binaries such as sqlplus from the SQL*Plus package, unzip the package to the same directory as the Basic package and then update your PATH environment variable, for example:

  17. export PATH=/opt/oracle/instantclient_19_3:$PATH

  18. Start your application.

Installation of RPM files:

  1. Download the desired Instant Client RPM packages. All installations require a Basic or Basic Light RPM.

  2. Install the packages with yum. For example:

  3. sudo yum install oracle-instantclient19.3-basic-19.3.0.0.0-1.x86_64.rpm

  4. Note that from 19.3, by default only one version of the Instant Client RPM libraries can be installed at a time.

  5. Prior to 19.3, if Instant Client is the only Oracle Software installed on this system then update the runtime link path, for example:

  6. For Instant Client 19.3 RPM packages, these commands are automatically run.

  7. An alternative to using ldconfig for older versions, is to set the LD_LIBRARY_PATH environment variable in each shell prior to running applications. For example:

  8. export LD_LIBRARY_PATH=/usr/lib/oracle/18.3/client64/lib:$LD_LIBRARY_PATH

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

  10. 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:

  11. sudo mkdir -p /usr/lib/oracle/12.2/client64/lib/network/admin

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

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

  14. To use binaries from the tools package, use yum to install the package and then update your PATH environment variable, for example:

  15. export PATH=/usr/lib/oracle/19.3/client64/bin:$PATH

  16. Start your application.

yum方式安装客户端

可以安装18、19、21的客户端!!!

https://docs.oracle.com/en/database/oracle/oracle-database/21/lacli/install-instant-client-using-rpm.html#GUID-2E81E2AE-E94C-413F-99B2-AE9A3949F05D

https://yum.oracle.com/

https://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient21/x86_64/

https://github.com/oracle/container-images/pkgs/container/oraclelinux

https://hub.docker.com/_/oraclelinux?tab=tags

https://yum.oracle.com/getting-started.html#installing-from-oracle-linux-yum-server

标签:

头像

小麦苗

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

您可能还喜欢...

发表回复

嘿,我是小麦,需要帮助随时找我哦
  • 18509239930
  • 个人微信

  • 麦老师QQ聊天
  • 个人邮箱
  • 点击加入QQ群
  • 个人微店

  • 回到顶部
返回顶部