RedHat5.2下Linux Oracle 10g ASM 安装详细实录-第一篇-环境准备
作者 佚名技术
来源 Linux系统
浏览
发布时间 2012-04-09
|
一、硬件环境检查
1、至少1G内存
# grep MemTotal /proc/meminfo
2、交换空间设置
# grep SwapTotal /proc/meminfo
# free
RAM
|
Swap Space
|
Up to 512 MB
|
2 times the size of RAM
|
Between 1024 MB and 2048 MB
|
1.5 times the size of RAM
|
Between 2049 MB and 8192 MB
|
Equal to the size of RAM
|
More than 8192 MB
|
0.75 times the size of RAM
|
3、/tmp目录需要400 MB以上空间
# df -k /tmp
4、根据安装类型不同需要为安装目录准备1.5 GB-3.5 GB空闲空间
# grep "model name" /proc/cpuinfo
二、系统环境检查
1、LINUX版本查询
# cat /proc/version
2、内核查询
# uname –r
3、RPM包查询安装
# rpm -q package_name
注:通过LINUX安装光盘的/media/cdrom/Server目录找RPM包,网上找的容易出问题,如果说远程安装,不具备光驱条件,则你本地采用虚拟光驱提取响应文件后传到远程服务器上.
# rpm -Uvh setarch-2*
# rpm -Uvh make-3*
# rpm -Uvh glibc-2*
# rpm -Uvh libaio-0*
# rpm -Uvh compat-libstdc -33-3*
# rpm -Uvh compat-gcc-34-3*
# rpm -Uvh compat-gcc-34-c -3*
# rpm -Uvh gcc-4*
# rpm -Uvh libXp-1*
# rpm -Uvh openmotif-2*
# rpm -Uvh compat-db-4*
4、 Verify that the /etc/hosts file is used for name resolution. You can do this by
checking the hosts file entry in the nsswitch.conf file as follows:
# cat /etc/nsswitch.conf | grep hosts
The output of this command should contain an entry for files.
5、Verify that the host name has been set by using the hostname command as follows:
# hostname
The output of this command should be similar to the following:
myhost.mycomputer.com
6、Verify that the domain name has not been set dynamically by using the
domainname command as follows:
# domainname
This command should not return any results.
三、环境配置
1、修改/etc/redhat-release 文件, Oracle 数据库暂不支持 RHEL5
# vi /etc/redhat-release
# Red Hat Enterprise Linux Server release 5.2 (Tikanga)
redhat-4
2、Oracle 数据库在 Oracle 用户下才能安装,因此需建立相应的用户群组、用户,以及设置相应的目录属主、目录权限以及 Oracle 用户设置密码
# groupadd oinstall
# groupadd dba
# useradd -g oinstall -G dba oracle
# mkdir -p /home/oracle
# chown -R oracle.oinstall /home/oracle
# chmod -R 775 /home/oracle
# passwd oracle
3、配置内核相关参数,以便支持 Oracle 数据库
# vi /etc/sysctl.conf
# For Oracle
kernel.shmall=2097152
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 |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn
为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!
|