(点击查看大图)图28.10 【概要】对话框
在之后进入的【安装】对话框中会显示当前的安装进度,如图28.11所示。如果要中止安装,可单击【停止安装】按钮。
安装过程中的日志信息默认会被记录到\日期时间>.log\文件中。下面是该日志文件的一个内容截取。
Using paramFile: /software/linux_11gR1_database_ 1013/database/install/or- aparam.ini //检查临时空间
Checking Temp space: must be greater than 80 MB. Actual 1547 MB Passed
//检查swap空间
Checking swap space: must be greater than 150 MB. Actual 1315 MB Passed //检查监视器
Checking monitor: must be configured to display at least 256 colors. Actual 16777216 Passed //unzip的命令行
The commandline for unzip:
/software/linux_11gR1_database_1013/database/ install/unzip -qqqo ../stage/Components/oracle.jdk/ 1.5.0.1.1/1/DataFiles/\\*.jar -d /tmp /OraInstall2008-10-28_10-39-09AM 使用 oraparam.ini 中提供的 umask 值 '022' //启动Java图形界面
Execvp of the child jre : the cmdline is
/tmp/OraInstall2008-10-28_10-39-09AM/jdk/jre/bin/ java, and the argv is
/tmp/OraInstall2008-10-28_10-39-09AM/jdk/jre/bin/java -Doracle.installer.library_loc=/tmp/OraInstall2008- 10-28_10-39-09AM/oui/lib/linux
-Doracle.installer.oui_loc=/tmp/OraInstall2008-10-28_10-39-09AM/oui -Doracle.installer.bootstrap=TRUE
完成后会弹出如图28.12所示的【执行配置脚本】对话框,用户需要手动执行对话框中列出的脚本文
件。
(点击查看大图)图28.11 安装进程
图28.12 【执行配置脚本】对话框
打开一个终端窗口,以root身份执行上述两个脚本,运行结果如下所示。 # /u01/app/oraInventory/orainstRoot.sh //执行/u01/app/oraInventory/orainstRoot.s脚本 更改权限/u01/app/oraInventory 到 770.
//更改/u01/app/oraInventory目录的访问权限为770 更改组名/u01/app/oraInventory 到 oinstall. //更改/u01/app/oraInventory目录的属主为oinstall
脚本的执行已完成
# /u01/app/oracle/product/11.1.0/db_1/root.sh
//执行/u01/app/oracle/product/11.1.0/db_1/root.sh脚本 Running Oracle 11g root.sh script...
The following environment variables are set as:
//在系统中设置ORACLE_OWNER和ORACLE_HOME环境变量 ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/product/11.1.0/db_1 Enter the full pathname of the local bin directory:
[/usr/local/bin]: //回车接受默认选项
Copying dbhome to /usr/local/bin ... //复制文件到/usr/local/bin目录下 Copying oraenv to /usr/local/bin ... Copying coraenv to /usr/local/bin ...
Entries will be added to the /etc/oratab file as needed by //更新/etc/oratab文件的内容 Database Configuration Assistant when a database is created Finished running generic part of root.sh script. Now product-specific root actions will be performed. Finished product-specific root actions.
脚本运行完成后,在图28.12所示的对话框中单击【确定】按钮进入图28.13所示的【安装结束】对话框。
在该对话框中单击【退出】按钮,完成并退出Oracle图形安装程序。
(点击查看大图)图28.13 【安装结束】对话框
安装结束后更改oracle用户的配置文件
在\配置文件,加入如下的内容: ORACLE_HOME=/u01/app/oracle/product/11.1.0/db_1 export ORACLE_HOME
PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin export PATH
【把SELinux的安全策略设置为警告。
# getenforce //查看当前的SELinux安全策略 Enforcing
# setenforce 0 //把SELinux的安全策略设置为警告