ITPub博客

首页 > 数据库 > Oracle > linux安装10g/11g

linux安装10g/11g

原创 Oracle 作者:daydayupliq 时间:2015-03-15 10:22:48 0 删除 编辑
一、操作系统准备 
首先virtual box安装加强功能,把操作系统分辨率提高。

mount Oracle Linux 5.7的iso文件作为yum源,我的做法如下:
[root@db media]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/sr0 on /media/OL5.7 x86_64 dvd 20110728 type iso9660 (ro,nosuid,nodev,uid=0)
[root@db media]# umount /media/OL5.7\ x86_64\ dvd\ 20110728/
[root@db media]# mkdir /media/iso
[root@db media]# mount /dev/sr0 /media/iso
mount: block device /dev/sr0 is write-protected, mounting read-only
[root@db ~]# vi  /etc/yum.repos.d/ol5.repo
[root@db ~]# cat /etc/yum.repos.d/ol5.repo 
[OL5]
name=OL 5
enabled=1
gpgcheck=0
baseurl=file:///media/iso/Server/

然后执行yum -y install oracle-validated
二、oracle准备
# /usr/sbin/groupadd -g 501 oinstall 
# /usr/sbin/useradd -u 501 -g oinstall oracle

例子:
groupadd -g 200 dba
groupadd -g 201 oinstall
useradd -u 200 -g oinstall -G dba oracle
passwd oracle

创建目录、修改操作系统核心参数,编辑环境变量参数文件.bash_profile等等

vi /etc/security/limits.conf
oracle soft nproc 2047 
oracle hard nproc 16384 
oracle soft nofile 1024 
oracle hard nofile 65536

vi /etc/sysctl.conf
kernel.SHMMAX= 4294967295
kernel.shmmni = 4096 
kernel.shmall = 2097152
kernel.sem = 250 32000 100 128 
fs.file-max = 65536 
net.ipv4.ip_local_port_range = 1024 65000 
net.core.rmem_default = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144 
net.core.wmem_max = 262144 
net.ipv4.tcp_wmem = 262144 262144 262144
net.ipv4.tcp_rmem = 262144 262144 262144 


.bash_profile
export ORACLE_SID=db1
export ORACLE_BASE=/u01/app/oracle/
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db
export ORA_CRS_HOME=$ORACLE_BASE/product/10.2.0/crs
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export PATH=$ORACLE_HOME/bin:$ORA_CRS_HOME/bin:$PATH
export NLS_LANG="AMERICAN_AMERICA.ZHS16GBK"
umask 022

三、开始安装
解压缩介质之后,可能有操作系统没有认证,可以修改此文件:
./database/install/oraparam.ini
[Certified Versions]
    Linux=redhat-3,SuSE-9,redhat-4,UnitedLinux-1.0,asianux-1,asianux-2,redhat-5

./runInstaller
安装就略过了。

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/89196/viewspace-1460208/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: BBED安装部署
请登录后发表评论 登录
全部评论

注册时间:2015-03-12

  • 博文量
    11
  • 访问量
    12516