Red Hat Enterprise Linux6.4-64位 安装Oracle11.2.0.3-64位(二)
最新学讯:近期OCP认证正在报名中,因考试人员较多请尽快报名获取最近考试时间,报名费用请联系在线老师,甲骨文官方认证,报名从速!
我要咨询(二)软件安装环境准备
操作系统:Red Hat Enterprise Linux6.4-64位
软件及安装包:
VirtualBox-4.3.12-93733-Win.exe
SecureCRT
xmanagerenterprise3.0/4.0/5.0
p13390677_112040_Linux-x86-64_1of7.zip
p13390677_112040_Linux-x86-64_2of7.zip
pdksh-5.2.14-36.el5.x86_64.rpm
rhel-server-6.4-x86_64-dvd.iso
rlwrap-0.37.tar.gz

1.1 软件安装环境准备
1.1.1 创建用户和组
创建组
[root@rhel64 ~]# groupadd oinstall
[root@rhel64 ~]# groupadd DBA
[root@rhel64 ~]# groupadd oper

创建用户 设置密码 Oracle:Oracle
[root@rhel64 ~]# useradd -g oinstall -G DBA,oper Oracle
[root@rhel64 ~]# passwd Oracle

SecureCRT创建连接 使用Oracle用户登录测试
[Oracle@rhel64 ~]$ id

1.1.2 创建目录
[root@rhel64 ~]# mkdir -p /u01/app/oracle
[root@rhel64 ~]# chown -R Oracle:oinstall /u01
[root@rhel64 ~]# chmod -R 775 /u01/app/oracle

1.1.3 设置环境变量
使用Oracle用户连接 编辑/home/oracle/.bash_profile
[Oracle@rhel64 ~]$ vi .bash_profile
unset TNS_ADMIN
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export ORACLE_SID=PROD
export PATH=$ORACLE_HOME/bin:$PATH

[Oracle@rhel64 ~]$ source .bash_profile
验证
[Oracle@rhel64 ~]$ echo $ORACLE_BASE
[Oracle@rhel64 ~]$ echo $ORACLE_HOME
[Oracle@rhel64 ~]$ echo $ORACLE_SID
[Oracle@rhel64 ~]$ echo $PATH

1.1.4 解压软件,修改属主属组 权限
root用户解压软件包 先后解压1、2
[root@rhel64 db]# cd /software/db
[root@rhel64 db]# ls

[root@rhel64 db]# unzip p10404530_112030_Linux-x86-64_1of7.zip
[root@rhel64 db]# unzip p10404530_112030_Linux-x86-64_2of7.zip
解压得到database目录 约2.5G

修改属主 属组 权限
[root@rhel64 db]# chown -R Oracle:oinstall database/
[root@rhel64 db]# chmod -R +x database/


1.1.5 启动Xmanager-passive 执行安装
启动Xmanager - Passive
Oracle用户设置DISPLAY 将图形化界面显示在宿主机
[Oracle@rhel64 ~]$ export DISPLAY=192.168.6.6:0.0
[Oracle@rhel64 ~]$ echo $DISPLAY

在Oracle用户home目录执行安装操作
[Oracle@rhel64 ~]$ cd /software/db/database/
[Oracle@rhel64 database]$ ll

[Oracle@rhel64 database]$ ./runInstaller
