<fieldset id='ctqy4'></fieldset>

    <ins id='ctqy4'></ins>

      <dl id='ctqy4'></dl>

    1. <tr id='ctqy4'><strong id='ctqy4'></strong><small id='ctqy4'></small><button id='ctqy4'></button><li id='ctqy4'><noscript id='ctqy4'><big id='ctqy4'></big><dt id='ctqy4'></dt></noscript></li></tr><ol id='ctqy4'><table id='ctqy4'><blockquote id='ctqy4'><tbody id='ctqy4'></tbody></blockquote></table></ol><u id='ctqy4'></u><kbd id='ctqy4'><kbd id='ctqy4'></kbd></kbd>
      1. <i id='ctqy4'><div id='ctqy4'><ins id='ctqy4'></ins></div></i>
      2. <span id='ctqy4'></span>

        <code id='ctqy4'><strong id='ctqy4'></strong></code>

          <acronym id='ctqy4'><em id='ctqy4'></em><td id='ctqy4'><div id='ctqy4'></div></td></acronym><address id='ctqy4'><big id='ctqy4'><big id='ctqy4'></big><legend id='ctqy4'></legend></big></address>
          <i id='ctqy4'></i>

          linux安装oracle客户端

          • 时间:
          • 浏览:20
          • 来源:124软件资讯网

              1、准备好所需要的安装包

              oracle-instantclient-basic-10.2.0.5-1.i386.rpm

              oracle-instantclient-devel-10.2.0.5-1.i386.rpm

              oracle-instantclient-jdbc-10.2.0.5-1.i386.rpm

              oracle-instantclient-sqlplus-10.2.0.5-1.i386.rpm

              先安装oracle-instantclient-basic-10.2.0.5-1.i386.rpm  ,其他依次安装

              2、建立用户、组和目录

              [root@wxcs-2 oracle]# groupadd oinstall

              [root@wxcs-2 oracle]# groupadd dba

              [root@wxcs-2 oracle]# useradd -g oinstall -G dba oracle

              [root@wxcs-2 oracle]# passwd oracle

              Changing password for user oracle.

              New UNIX password:

              BAD PASSWORD: it is based on a dictionary word

              Retype new UNIX password:

              passwd: all authentication tokens updated successfully.

              [root@wxcs-2 oracle]# mkdir -p /home/oracle/network/admin

              [root@wxcs-2 oracle]# chown -R oracle:oinstall /home/oracle

              [root@wxcs-2 oracle]# chmod -R 755 /home/oracle

              3、将oracle服务器上面的tnsnames.ora拷贝出来  ,放到/home/oracle/network/admin目录下面  。

              4、修改情况变量

              [oracle@wxcs-2 ~]$ vi .bash_profile

              export ORACLE_HOME=/home/oracle

              export SQLPATH=/home/oracle/network/admin

              export TNS_ADMIN=/home/oracle/network/admin

              export NLS_LANG="SIMPLIFIED CHINESE_CHINA.ZHS16GBK"

              export LD_LIBRARY_PATH=/usr/lib/oracle/10.2.0.5/client/lib/:/usr/lib/oracle/10.2.0.5/client/lib:$LD_LIBRARY_PA

              TH

              export PATH=$PATH:$ORACLE_HOME:$LD_LIBRARY_PATH

              [oracle@wxcs-2 ~]$ source .bash_profile 情况变量立刻生效

              5、可以正常毗连oracle服务器了