linux下oracle 11g r2的安装(二)

7.创建安装目录:

[root@localhost software]# mkdir /u01

[root@localhost u01]# mkdir app/oracle/product/11.2.0/dbhome_1

[root@localhost ~]# chown -R oracle:oracle /u01

8.修改oracle用户配置文件:

[root@localhost oracle]# vim .bash_profile //设置环境变量

export PATH

export ORACLE_BASE=/u01/app/oracle

export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1

export ORACLE_SID=devdb

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib

export PATH=$PATH:$ORACLE_HOME/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin

执行以下命令让配置马上生效或以oracle用户登录使设置生效

[oracle@localhost ~]$ source $HOME/.bash_profile

9.上传解压oracle:

[root@localhost ~]# yum install -y lrzsz //准备上传软件

[root@localhost ~]# cd /opt/software/

[root@localhost software]# rz linux.x64_11gR2_database_1of2.zip

[root@localhost software]# rz linux.x64_11gR2_database_2of2.zip

[root@localhost ~]# cd 01

[root@localhost u01]# cd database/

[root@localhost database]# unzip /opt/software/linux.x64_11gR2_database_1of2.zip && unzip /opt/software/linux.x64_11gR2_database_2of2.zip

[root@localhost ~]# chown -R oracle:oracle /u01/database

[root@localhosthost database]# ll

total 36

drwxr-xr-x. 12 oracle oracle 4096 Aug 17  2009 doc

drwxr-xr-x.  4 oracle oracle 4096 Aug 15  2009 install

drwxrwxr-x.  2 oracle oracle 4096 Aug 15  2009 response

drwxr-xr-x.  2 oracle oracle 4096 Aug 15  2009 rpm

-rwxr-xr-x.  1 oracle oracle 3226 Aug 15  2009 runInstaller

drwxrwxr-x.  2 oracle oracle 4096 Aug 15  2009 sshsetup

drwxr-xr-x. 14 oracle oracle 4096 Aug 15  2009 stage

-rw-r--r--.  1 oracle oracle 5402 Aug 18  2009 welcome.html

10.安装oracle:

使用oracle用户登录

[root@localhosthost database]# su - oracle

[oracle@localhosthost ~]$ cd /u01/database/

[oracle@localhosthost database]$ ./runInstaller

进入图形化安装过程。

你可能感兴趣的:(oracle,linux,R2,11g)