温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

如何安装Linux oracle 9i

发布时间:2021-09-27 11:22:10 来源:亿速云 阅读:122 作者:柒染 栏目:系统运维

如何安装Linux oracle 9i,针对这个问题,这篇文章详细介绍了相对应的分析和解答,希望可以帮助更多想解决这个问题的小伙伴找到更简单易行的方法。

配置Oracle安装的环境.其中包括安装必须的软件包,创建相应的用户和组,增加相应的系统参数,编辑必须的环境参数. 
一:创建相应的用户(以root用户登陆)

  groupadd dba
  useradd -g dba -d /usr/Oracle -s /bin/bash oracle
  passwd oracle
注意:在图中没有"passwd oracle"这一条,因为忘记截图了,这个是必须的,因为后面用oracle这个用户登陆如果没有密码会登陆不了.  

如何安装Linux oracle 9i


二:设置系统参数:

  编辑/etc/sysctl.conf文件,增加以下内容
  kernel.sem=250 32000 100 128
  kernel.shmmax=4294967295
  kernel.shmmni=128
  kernel.msgmnb=65536
  kernel.msgmni=2878
  fs.file-max=65536
  net.ipv4.ip_local_port_range=1024 65000

如何安装Linux oracle 9i

  输入命令"sysctl -p"或重启电脑使设置生效
  sysctl -p

如何安装Linux oracle 9i

  编辑/etc/security/limits.conf文件,增加以下内容
  * - nproc 16384
  * - nofile 16384

如何安装Linux oracle 9i

如何安装Linux oracle 9i

三:创建应用文件夹及设置相应的权限

  mkdir -p /usr/Oracle/product/9.2.0
  chown -R oracle.dba /usr/Oracle/product/9.2.0
  chmod -R 777 /usr/Oracle/product/9.2.0

如何安装Linux oracle 9i

  注销"root"用户,以"oracle"用户登陆

如何安装Linux oracle 9i

如何安装Linux oracle 9i


四:编辑.bash_profile文件(登陆进来后本地文件应是/usr/Oracle)
  具体文见附件.

如何安装Linux oracle 9i


  加载配置文件及查看已生效的配置

  source .bash_profile
  set |more

如何安装Linux oracle 9i如何安装Linux oracle 9i

五:下载和安装JAVAhttp://java.sun.com/products/archive/index.html
  将下载下来的文件放至/usr下面.

  su -
  chmod +x j2re-1_3_1_19-linux-i586.bin
  ./jere-1_3_1_19-linux-i586.bin
  mv jre1.3.1_19 /usr/jre1.3.1
  java -version  

如何安装Linux oracle 9i

如何安装Linux oracle 9i

如何安装Linux oracle 9i

如何安装Linux oracle 9i

六: 查询所需的软件包

   su -
   rpm -q compat-db compat-gcc-32 compat-gcc-32-c++ compat-libcom_err compat-libcwaitcompat-libgcc-296 compat-libstdc++-296 compat-libstdc++-33 gcc gcc-c++ glibc glibc-common glibc-devel glibc-headers glibc-kernheaders libgcc make

如何安装Linux oracle 9i

  安装缺少的软件包,具体的安装各位自已搞定了,有很大一部份系统的安装光盘上有,给几个下载地址.http://ftp.chinalinuxpub.com/redhat/enterprise/os/i386/RedHat/RPMS/ http://mirror.centos.org/centos/4/updates/i386/RPMS/
http://oss.oracle.com/projects/compat-oracle/files/RedHat/;如果实在不行的话可以找我联系,其中除了上述的软件外,还要安装 compat-oracle-rhel4-1.0-5.i386.rpm.

如何安装Linux oracle 9i

如何安装Linux oracle 9i

如何安装Linux oracle 9i

如何安装Linux oracle 9i

如何安装Linux oracle 9i

如何安装Linux oracle 9i

七:更改GCC

  su -
  cd /usr/bin
  mv ./gcc ./gcc34
  mv ./gcc32 ./gcc

如何安装Linux oracle 9i

关于如何安装Linux oracle 9i问题的解答就分享到这里了,希望以上内容可以对大家有一定的帮助,如果你还有很多疑惑没有解开,可以关注亿速云行业资讯频道了解更多相关知识。

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI