Installing Oracle Instant Client Using the Setup Wizard

Use the runInstaller command to start the Oracle Instant Client installation.

  1. Log in as the Oracle installation owner user account (oracle).
  2. Use any browser to access the Oracle Database Software Downloads page:
  3. Download the Oracle Database Client installation zip file to a directory of your choice. For example, you can download the zip file to the /tmp directory.
  4. Extract the client zip file and use the runInstaller command to start the installation.
    $ ./runInstaller
  5. In the Select Installation Type screen, select Instant Client. Click Next.
  6. In the Specify Installation Location screen, enter an OFA-compliant Oracle home directory path like /u01/app/oracle/product/21.0.0/client_1. Click Next.
  7. Follow the installation screens and respond to the configuration prompts as needed.
  8. The Finish screen displays the status of the Oracle Instant Client installation. Click Close to complete the installation and exit the installer.
  9. The Oracle Instant Client shared libraries like libociei.so, libclntsh.so.21.1, libclntshcore.so.21.1, and libnnz21.so are available in the Oracle client home directory /u01/app/oracle/product/21.0.0/client_1
  10. If Oracle Instant Client is the only Oracle software installed on your system, then update the runtime link path, for example:
    $ sudo sh -c "echo /u01/app/oracle/product/21.0.0/client_1 > \
          /etc/ld.so.conf.d/oracle-instantclient.conf"
      $ sudo ldconfig

    Alternatively, set the LD_LIBRARY_PATH environment variable to the Oracle client home directory. For example:

    $ export LD_LIBRARY_PATH=/u01/app/oracle/product/21.0.0/client_1:$LD_LIBRARY_PATH
  11. 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 network/admin subdirectory. This is the default Oracle configuration directory for applications linked with this Oracle Instant Client.
    Alternatively, you can move the Oracle configuration files to another, accessible directory. Then set the environment variable TNS_ADMIN to that directory name.
  12. To use the Oracle Instant Client binaries, update your PATH environment variable. For example:
    $ export PATH=/u01/app/oracle/product/21.0.0/client_1:$PATH
  13. Start your application.

To remove this Oracle Instant Client installation use the runInstaller command along with the -deinstall -home options:

$ ./runInstaller -deinstall -home /u01/app/oracle/product/21.0.0/client_1