Installation configuration for Oracle Connection client Sqlplus under Linux

Source: Internet
Author: User
Tags sqlplus

1. Download the installation package:        

oracle-instantclient11.2-basic-11.2.0.1.0-1.x86_64.rpm oracle-instantclient11.2-sqlplus-11.2.0.3.0-1.x86_64.rpm

2.RPM Installation

[[email protected] ~]# rpm -ihv oracle-instantclient11.2-basic-11.2.0.1.0-1.x86_64. rpm   --nodeps[[email protected] ~]# rpm -ihv  Oracle-instantclient11.2-sqlplus-11.2.0.3.0-1.x86_64.rpm --nodeps 

3. Configure connection Information  

[[email protected] ~]#  vi /usr/lib/oracle/11.2/client64/tnsnames.ora  oracletest=  #要连接Oracle库的库名    (description =     (address_list =        (address =  (protocol = tcp) (host =  110.103.211.310) (port = 1521))   #数据库IP, open ports     )      ( connect_data =       (service_name=oracletest )   #要连接Oracle库的库名     )   ) 

4. Environment variable configuration  

[Email protected] ~]# vi/etc/profile #在文件末尾添加下面配置export oracle_home=/usr/lib/oracle/11.2/client64export tns_admin=$ Oracle_homeexport path= $PATH: $ORACLE _home/binexport ld_library_path= $LD _library_path: $ORACLE _home/lib

5. Verifying the configuration

[[email protected] ~]# sqlplus account name/password as role name #登录进数据说明配置成功.


This article is from "Desert Camel" blog, please make sure to keep this source http://maomaochong.blog.51cto.com/9260445/1890711

Installation configuration for Oracle Connection client Sqlplus under Linux

Related Article

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.