11.以Oracle用户登录,在用户目录下解压安装文件
zcat 10201_database_linux_x86_64.cpio.gz | cpio-idmv > /dev/null 2>&1
12.编辑/home/oracle/database/install/oraparam.ini,增加红色部分
[Certified Versions]
Linux=RedHat-6,redhat-3,SUSE-9,redhat-4,UnitedLinux-1.0,asianux-1,asianux-2
13.执行export LANG=en_US,执行安装程序/home/oracle/database/runInstaller
产品语言选择Simplified Chinese,选项Install database Software only.
链接过程报ins_emdb.mk错误则选择Continue忽略
根据提示,执行如下脚本
/opt/oracle/oraInventory/orainstRoot.sh
/opt/oracle/product/10201/root.sh
安装完成后退出,执行/opt/oracle/product/10201/bin/relink all
14.执行id,查看oracle用户组的id信息
uid=501(oracle) gid=501(oinstall) 组=501(oinstall),502(dba) 环境=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
将dba组添加到系统内核中(否则在dbca时会有共享内存错误),root用户执行echo 501 > /proc/sys/vm/hugetlb_shm_group
15.oracle用户执行dbca建库,指定ORACLE_SID(与环境变量设置的一致),数据库字符集选择ZHS16GBK*,最后Finish、OK
漫长的等待过程,直到创建过程结束,执行netca配置监听
16.开机启动服务,编辑/etc/rc.d/rc.local,在其后追加如下内容
echo 501 > /proc/sys/vm/hugetlb_shm_group
su - oracle -c “/opt/oracle/product/10201/bin/lsnrctl start"
su - oracle -c "/opt/oracle/product/10201/bin/dbstart start"
#su - oracle -c "isqlplusctl start"
#su - oracle -c "emctl start dbconsole
编辑/etc/oratab内容:orcl:/opt/oracle/product/10201:Y
更多CentOS相关信息见CentOS 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=14
更多CentOS相关信息见CentOS 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=14
