如何在linux中安装SQL * PLUS客户端 [英] How to install SQL * PLUS client in linux

查看:592
本文介绍了如何在linux中安装SQL * PLUS客户端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用AWS服务。我有一个 ec2(centos)实例。我需要在这台centos机器上配置SQL * Plus客户端。

I am working on AWS services. I have an ec2 ( centos ) instance. I need to configure SQL*Plus client on this centos machine.

我要连接的服务器位于某些偏远地区。服务器版本为 oracle-se(11.2.0.2)

The server with whom I want to connect is at some remote area. The server version is oracle-se(11.2.0.2)

请帮助我将客户端安装在centos机器。

Kindly help me getting the client installed on the centos machine.

提前感谢。

推荐答案

href =http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html> Oracle Linux x86-64即时客户端 下载页

Go to Oracle Linux x86-64 instant clients download page

下载匹配的客户端

oracle-instantclient11.2-basic-11.2.0.2.0.x86_64.rpm
oracle-instantclient11.2-sqlplus-11.2.0.2.0.x86_64.rpm

安装

rpm -ivh oracle-instantclient11.2-basic-11.2.0.2.0.x86_64.rpm
rpm -ivh oracle-instantclient11.2-sqlplus-11.2.0.2.0.x86_64.rpm

〜/ .bash_profile

ORACLE_HOME=/usr/lib/oracle/11.2/client64
PATH=$ORACLE_HOME/bin:$PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib
export ORACLE_HOME
export LD_LIBRARY_PATH
export PATH

重新载入 .bash_profile 只需键入 source〜/ .bash_profile (由jbass建议)或注销用户并重新登录。

Reload your .bash_profile by simply typing source ~/.bash_profile (suggested by jbass) or Log-out user and log-in again.

现在您可以使用SQL * Plus并连接您的服务器。输入:

Now you're ready to use SQL*Plus and connect your server. Type in :

sqlplus "username/pass@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.2.1)(PORT=1521))(CONNECT_DATA=(SID=YOURSID)))"

这篇关于如何在linux中安装SQL * PLUS客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆