1、官网下载oracle 客户端(需登录)

http://download.oracle.com/otn/linux/instantclient/11204/oracle-instantclient11.2-basic-11.2.0.4.0-1.x86_64.rpm

http://download.oracle.com/otn/linux/instantclient/11204/oracle-instantclient11.2-sqlplus-11.2.0.4.0-1.x86_64.rpm

2、将下载的客户端上传到CentOS服务器,此处可选/opt

CentOS 64位 6.4 命令行安装 oracle 11g 客户端

3、安装软件包

CentOS 64位 6.4 命令行安装 oracle 11g 客户端

CentOS 64位 6.4 命令行安装 oracle 11g 客户端

注:默认安装位置为 /usr/lib/oracle/11.2

CentOS 64位 6.4 命令行安装 oracle 11g 客户端

4、配置环境变量 

vim ./bash_profile 

CentOS 64位 6.4 命令行安装 oracle 11g 客户端

source ./bash_profile

5、在TNS_ADMIN 对应位置新建tnsnames.ora

mkdir -p /usr/lib/oracle/11.2/network/admin/tnsnames.ora

CentOS 64位 6.4 命令行安装 oracle 11g 客户端

6、访问远程 oracle

CentOS 64位 6.4 命令行安装 oracle 11g 客户端

X、其他访问远程 oracle 方式

不配置tns访问远程服务器方法命令(参考):

CentOS 64位 6.4 命令行安装 oracle 11g 客户端

相关文章:

  • 2022-12-23
  • 2021-09-25
  • 2022-12-23
  • 2022-02-27
  • 2021-09-21
  • 2021-07-05
  • 2022-12-23
猜你喜欢
  • 2021-12-20
  • 2022-12-23
  • 2021-10-21
  • 2022-02-17
  • 2021-12-09
  • 2022-12-23
  • 2022-02-01
相关资源
相似解决方案