您的位置:首页 > 数据库 > Oracle

遥远视频讲座二:oracle 11G 在LINUX虚拟机上的安装录像

2012-05-15 19:55 369 查看
录像(15M): http://street.1dress.cn/install_11g.swf

作者:遥远 博客:http://street.loveunix.cn

请到http://street.loveunix.cn上查找安装笔记

到 otn.oracle.com 网站上下载 oracle 11g

将第一课中已经安装好的虚拟机拷贝到一个新的目录,启动新的虚拟机。

编辑 /etc/sysctl.conf :

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 = 4194304

net.core.rmem_max = 4194304

net.core.wmem_default = 262144

net.core.wmem_max = 262144

生效 /sbin/sysctl -p

编辑 /etc/security/limits.conf file:

oracle soft nproc 2047

oracle hard nproc 16384

oracle soft nofile 1024

oracle hard nofile 65536

编辑 /etc/pam.d/login

session required /lib/security/pam_limits.so

session required pam_limits.so

编辑 /etc/profile :

if [ $USER = "oracle" ]; then

if [ $SHELL = "/bin/ksh" ]; then

ulimit -p 16384

ulimit -n 65536

else

ulimit -u 16384 -n 65536

fi

fi

创建相关的用户和组:

/usr/sbin/groupadd oinstall

/usr/sbin/groupadd dba

/usr/sbin/useradd -g oinstall -G dba oracle

passwd oracle

创建目录:

mkdir -p /u01/app/

chown -R oracle:oinstall /u01/app/

chmod -R 775 /u01/app/

从windows网络邻居中mount oracle 11g的安装软件到linux

mount //192.168.2.1/database /mnt

切换成ORACLE用户

修改/home/oracle/.bash_profile,加入:

umask 022

ORACLE_BASE=/u01/app/oracle

ORACLE_SID=street

ORACLE_HOME=/u01/app/oracle/product/11.1.0/db_1

PATH=$PATH:$ORACLE_HOME/bin

export ORACLE_BASE ORACLE_SID ORACLE_HOME

运行runInstaller 运行安装。

在安装过程中,会提示缺少下面的包,从Centos的安装盘中安装:

rpm -ivh libaio-0.3.105-2.i386.rpm

rpm -ivh libaio-devel-0.3.105-2.i386.rpm

rpm -ivh elfutils-libelf-devel-0.97.1-4.i386.rpm

rpm -ivh unixODBC-devel-2.2.11-1.RHEL4.1.i386.rpm

rpm -ivh unixODBC-2.2.11-1.RHEL4.1.i386.rpm

rpm -ivh sysstat-5.0.5-14.rhel4.i386.rpm

运行netca创建listener,选一路选默认即可

用dbca创建数据库,注意密码的大小写,选sample schema,字符集要选unicode

好!11G安装完成,欢迎大家到我的博客上留言:http://street.loveunix.cn

或发邮件给我:street.yao(at)gmail.com
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: