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