- 先下载客户端rpm包并安装
[root@app224 script]# ll -rt 总计 92628 -rw-r--r-- 1 root root 792165 09-13 14:26 oracle-instantclient11.2-sqlplus-11.2.0.3.0-1.i386.rpm -rw-r--r-- 1 root root 1564153 09-13 14:27 oracle-instantclient11.2-jdbc-11.2.0.3.0-1.i386.rpm -rw-r--r-- 1 root root 57765315 09-13 14:55 oracle-instantclient11.2-basic-11.2.0.3.0-1.i386.rpm -rw-r--r-- 1 root root 608961 09-13 14:58 oracle-instantclient11.2-devel-11.2.0.3.0-1.i386.rpm
- 用rpm -ivh oracle-instantclient11.2*安装后配置环境变量,添加下面几行
[root@app224 ~]# more .bashrc # .bashrc # User specific aliases and functions alias rm='rm -i' alias cp='cp -i' alias mv='mv -i' # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi ##添加下面5行 export ORACLE_HOME=/usr/lib/oracle/11.2/client(64位要加64) export TNS_ADMIN=$ORACLE_HOME/network/admin export NLS_LANG='simplified chinese_china'.ZHS16GBK export LD_LIBRARY_PATH=$ORACLE_HOME/lib export PATH=$ORACLE_HOME/bin:$PATH
- 使生效
[root@app224 ~]# source .bashrc
- 测试
[root@app224 ~]# sqlplus /nolog SQL*Plus: Release 11.2.0.3.0 Production on 6 14:57:22 2012 Copyright (c) 1982, 2011, Oracle. All rights reserved. SQL>
-
OK,安装完成
centos下oracle11g精简版客户端32位安装(简单5步)(64位下换成相应的64位)
最新推荐文章于 2024-09-05 16:47:48 发布