CentOS 6.4 Install Oracle Client

Source: Internet
Author: User

Environment:

CentOS Release 6.4 (Final)

First, download the file

1. To view the Oracle version first, the corresponding SQL is as follows:
SELECT * from V$version;

2, according to Oracle version download the corresponding version, first download the following three files, note that the version is consistent:

Instantclient-sqlplus-linux.x64-11.2.0.4.0.zip

Instantclient-sdk-linux.x64-11.2.0.4.0.zip

Instantclient-basic-linux.x64-11.2.0.4.0.zip

Download

Note: Different versions, or different operating systems, please go to the official website to download, there are detailed instructions

Second, create the directory and upload files

1. Create the installation directory for the client, but you need to configure the environment variables to be consistent.

[[Email protected] ~] #mkdir-P/opt/oracle

[Email protected] ~]# cd/opt/oracle/

2. Upload the three files downloaded above to the directory you just created, and view the directory structure as follows:

[email protected] oracle]# LL

Third, decompression

1, first unzip the above downloaded three files

[[Email protected] Oracle] #unzip instantclient-basic-linux.x64-11.2.0.4.0.zip
[[Email protected] Oracle] #unzip instantclient-sqlplus-linux.x64-11.2.0.4.0.zip
[[Email protected] Oracle] #unzip instantclient-sdk-linux.x64-11.2.0.4.0.zip

Note that all three files are extracted to the same directory under the current directory: Instantclient_11_2

Access to the catalog for viewing

[[Email protected] Oracle] #cd instantclient_11_2

IV. Configuring environment variables

[[email protected] instantclient_11_2] #vi/etc/profile //Note that this is an environment variable for all users, and only the user's profile can be edited for a user.
At the end of the join

Export oracle_home=/opt/oracle/instantclient_11_2/
Export Ld_library_path= $LD _library_path:/opt/oracle/instantclient_11_2/

Save and exit.
[[email protected] instantclient_11_2] #source/etc/profile //Make the configuration file effective immediately
[[email protected] instantclient_11_2] #echo $ORACLE _home //See if the configured environment variable is successful
/opt/oracle/instantclient_11_2/

The Oracle client in the OK,LINUX environment is installed.

CentOS 6.4 Install Oracle Client

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.