Download Oracle Instant Client For Linux

0 views
Skip to first unread message

Helen Francke

unread,
Aug 4, 2024, 2:27:33 PM8/4/24
to stocadgiden
OracleInstant Client enables development and deployment of applications that connect to Oracle Database, either on-premise or in the Cloud. The Instant Client libraries provide the necessary network connectivity and advanced data features to make full use of Oracle Database. The libraries are used by the Oracle APIs of popular languages and environments including Python, Node.js, Go, PHP and Ruby, as well as providing access for Oracle Call Interface (OCI), Oracle C++ Call Interface (OCCI), JDBC OCI, ODBC and Pro*C applications. Tools included in Instant Client, such as SQL*Plus, SQL*Loader and Oracle Data Pump, provide quick and convenient data access.

Instant Client RPM packages for Oracle Linux can now be installed from yum.oracle.com for Oracle Linux 8 and Oracle Linux 7. Older releases are available for Oracle Linux 9, Oracle Linux 8, Oracle Linux 7 and Oracle Linux 6.


Whether your applications are in the cloud or on-premise, you can install Instant Client and connect to cloud databases. Follow the normal installation process for your operating system. Some cloud-specific references are shown below.


DigiCert retired the Organizational Unit (OU) field for all public TLS/SSLcertificates to comply with industry standards as of August 2022. This meansthat public TLS/SSL certificates issued by DigiCert will no longer have an OUfield. Refer to MOS note 2911553.1for details.



To avoid disruption to applications connecting to Oracle Autonomous Database onShared Exadata Infrastructure (ADB-S) during the server side certificatechange, you must use hostname based matching of the server certificate.



The following versions of Oracle Instant Client automatically support hostnamebased matching:



Versions: 18.19 (or later), 19.2 (or later), 21 (base release or later), 23.4 (or later)

Oracle Call Interface (OCI), Oracle C++ Call Interface (OCCI) or ODBCapplications must use one of the above client versions.Oracle Database drivers based on Oracle Instant Client or Oracle DatabaseClient (e.g ODPI-C, python-oracledb Thick mode, cx_Oracle, node-oracledb Thick mode,godror, PHP OCI8, PHP PDO_OCI, ruby-oci8, ROracle, and rust-oracle) must usethe driver with a compatible client version from the list above.An additional step is required if you have changed the ADB-S connection string.



ADB-S connection strings contain a hostname "...(HOST=xyz)..." which depends onthe region. For example, in the Chicago region the hostname would be"adb.us-chicago-1.oraclecloud.com". If you have replaced the default hostnamewith an IP address or a custom hostname, then hostname based DN matching willfail. The solution is to add a new entry to your /etc/hosts file using theoriginal ADB-S domain suffix. Your connection string should then use this newname. For example an entry "localtunnel.adb.us-chicago-1.oraclecloud.com"could be created and used.


Download the desired Oracle Instant Client RPM packages. Select the correct platform, architecture, and packages of your choice. For example, if your application is 64-bit, then ensure that you select 64-bit Instant Client and download the Basic Package RPM file.


If you intend to colocate optional Oracle configuration files such as tnsnames.ora, sqlnet.ora, ldap.ora, or oraaccess.xml with Oracle Instant Client, then move these files to the /usr/lib/oracle/21/client64/lib/network/admin subdirectory.


Hi Community,

I have seen that the Oracle Instant Client in Version 19.17 is already available for download on this page: -client/linux-x86-64-downloads.html

I can see versions from 19.9 to 19.16 in the Oracle Linux 8 Yum Repository here: _64/index.html

My question is, when will the Instant Client 19.17 packages be added to this Oracle Linux 8 Yum Repository for Instant Client 19?

Thank you.


The Oracle Instant Client is a light-weight, freely distributable implementation of an Oracle client. A big advantage of the Instant Client is it does not need a formal installation. Instead, it can be unzipped and used without any fuss.


Since September 2018 the instant client RPMs have been freely available on yum.oracle.com. If you are using Oracle Linux and have root access you can install the instant client using Yum with a few simple commands.


There are a number of downloads available, depending on which features you require. The Linux versions also come with an RPM option, but as this requires root privilege to install, it may not be considered so desirable. The basic download provides all the core functionality necessary to make basic connections from Java. In this case, I wanted to make SQL*Plus connections, so I downloaded the following zip files.


When using the Instant Client, we need to make sure the LD_LIBRARY_PATH environment variable is set to point to the location where the software was unzipped. In this case, I also set the PATH environment variable.


If you would prefer to use a "tnsnames.ora" file, you can do that too. Just set the TNS_ADMIN environment variable to the directory holding the file and it will work as expected. For example, imagine I had a "tnsnames.ora" file in my home directory with the following contents.


You are downloading instant client zip files from oracle's product download page and installing to Operating system such as AIX, Linux and would like to get the MD5, SHA hashcode to verify zip file integrity.

Download link such as



-client/linux-x86-64-downloads.html


The cx_Oracle module loads Oracle Client libraries which communicateover Oracle Net to an existing database. Oracle Net is not a separateproduct: it is how the Oracle Client and Oracle Database communicate.


Add Oracle 21, 19, 18, 12 or 11.2 client libraries to your operating systemlibrary search path such as PATH on Windows or LD_LIBRARY_PATH onLinux. On macOS use init_oracle_client() in yourapplication to pass the Oracle Client directory name, seeUsing cx_Oracle.init_oracle_client() to set the Oracle Client directory. This is also usable on Windows.


Instant Client on Windows requires an appropriate Microsoft WindowsRedistributables, see Installing cx_Oracle on Windows. On Linux, the libaio(sometimes called libaio1) package is needed. Oracle Linux 8 alsoneeds the libnsl package.


Version 21 client libraries can connect to Oracle Database 12.1 or greater.Version 19, 18 and 12.2 client libraries can connect to Oracle Database 11.2or greater. Version 12.1 client libraries can connect to Oracle Database 10.2or greater. Version 11.2 client libraries can connect to Oracle Database 9.2or greater.


Locate your Oracle Database username and password, and the databaseconnection string. The connection string is commonly of the formathostname/servicename, using the hostname where the database isrunning, and using the service name of the Oracle Database instance.


cx_Oracle requires Oracle Client libraries. The libraries provide thenecessary network connectivity to access an Oracle Database instance.They also provide basic and advanced connection management and datafeatures to cx_Oracle.


cx_Oracle uses the shared library loading mechanism available on eachsupported platform to load the Oracle Client libraries at runtime. Itdoes not need to be rebuilt for different versions of the libraries.Since a single cx_Oracle binary can use different client versions andalso access multiple database versions, it is important yourapplication is tested in your intended release environments. NewerOracle clients support new features, such as the oraaccess.xml external configurationfile available with 12.1 or later clients, session pool improvements,improved high availability features, call timeouts, and other enhancements.


The cx_Oracle function clientversion() can be used todetermine which Oracle Client version is in use. The attributeConnection.version can be used to determine which Oracle Databaseversion a connection is accessing. These can then be used to adjust applicationbehavior accordingly. Attempts to use Oracle features that are not supported bya particular client/server library combination will result in runtime errors.


This will download and install a pre-compiled binary if one isavailable for yourarchitecture. If a pre-compiled binary is not available, the sourcewill be downloaded, compiled, and the resulting binary installed.Compiling cx_Oracle requires the Python.h header file. If you areusing the default python package, this file is in the python-develpackage or equivalent.


If you use optional Oracle configuration files such as tnsnames.ora,sqlnet.ora or oraaccess.xml with Instant Client, then put the filesin an accessible directory, for example in/opt/oracle/your_config_dir. Then use:


Alternatively, put the files in the network/admin subdirectory of InstantClient, for example in /opt/oracle/instantclient_21_1/network/admin.This is the default Oracle configuration directory for executables linkedwith this Instant Client.


Alternatively, for version 18 and earlier, every shell runningPython will need to have the environment variableLD_LIBRARY_PATH set to the appropriate directory for theInstant Client version. For example:


Alternatively, put the files in the network/admin subdirectory of InstantClient, for example in /usr/lib/oracle/21/client64/lib/network/admin.This is the default Oracle configuration directory for executables linkedwith this Instant Client.


This will download and install a pre-compiled binary if one isavailable for yourarchitecture. If a pre-compiled binary is not available, the sourcewill be downloaded, compiled, and the resulting binary installed.


Using cx_Oracle requires Oracle Client libraries to be installed.These provide the necessary network connectivity allowing cx_Oracleto access an Oracle Database instance. Oracle Client versions 19, 18,12 and 11.2 are supported.

3a8082e126
Reply all
Reply to author
Forward
0 new messages