你好,游客 登录 注册 搜索
背景:
阅读新闻

Linux 下Oracle 10g的安装

[日期:2014-02-18] 来源:Linux社区  作者:Linux [字体:大 中 小]

设置完成后 使用/sbin/sysctl -p使配置生效

[root@localhost ~]# vi /etc/sysctl.conf
[root@localhost ~]# /sbin/sysctl -p
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144
kernel.shmall = 2097152

还需添加

# vi /etc/security/limits.conf


Oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536

 


# vi /etc/pam.d/login

session    required    /lib/security/pam_limits.so
session    required    pam_limits.so

 


# vi /etc/profile

if[$USER = "oracle"];then
  if[$SHELL="/bin/ksh"];then
    ulimit -p 16384
    ulimit -n 65536
  else
    ulimit -u 16384 -n 65536
  if
Fi

 

 

检查

# vi /etc/hosts


是否有下行内容 如果没有添加上

127.0.0.1              localhost.localdomain localhost


6.执行安装

使用unzip 解压安装包

执行如下命令 弹出图形安装界面

 


如果文字显示不正确

 # export LANG=en_US.UTF-8 设置字符集


[root@localhost opt]# xhost local:oracle non-network local connections being added to access control list
non-network local connections being added to access control list
xhost:  bad hostname "non-network"
xhost:  bad hostname "local"
xhost:  bad hostname "connections"
xhost:  bad hostname "being"
xhost:  bad hostname "added"
xhost:  bad hostname "to"
xhost:  bad hostname "access"
xhost:  bad hostname "control"
xhost:  bad hostname "list"
[root@localhost opt]# chown -R oracle:oinstall database
[root@localhost opt]# su oracle
[oracle@localhost opt]$ cd /opt/database
[oracle@localhost database]$ ls
doc  install  response  runInstaller  stage  welcome.html
[oracle@localhost database]$ ./runInstaller

7.将


#vi /etc/RedHat-relese

中的内容还原为

Red Hat Enterprise Linux Server release 5 (Tikanga)

更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12

linux
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款