linux CentOS7最小化安装环境静默安装Oracle11GR2数据库(执行安装_07)
原创
©著作权归作者所有:来自51CTO博客作者gblfy的原创作品,请联系作者获取转载授权,否则将追究法律责任
接上一篇:linux CentOS7最小化安装环境静默安装Oracle11GR2数据库(修改配置文件_06)
执行安装前的准备工作:
创建ORACLE实例前提,准备下面6项工作
序号
| 说明
| 链接
|
①
| 安装操作系统
|
|
②
| 安装常用工具
|
|
③
| 安装依赖包
|
|
④
| oracle基础配置
|
|
⑤
| 上传安装包并解压
|
|
⑥
| 修改配置文件
|
|
切换到解压的安装包目录:
cd /data/u01/software/database/
执行:
./runInstaller -silent -responseFile /home/oracle/response/db_install.rsp -ignorePrereq


已开始安装;等待安装成功;

安装成功日志:
[WARNING] [INS-32055] The Central Inventory is located in the Oracle base.
CAUSE: The Central Inventory is located in the Oracle base.
ACTION: Oracle recommends placing this Central Inventory in a location outside the Oracle base directory.
You can find the log of this install session at:
/data/u01/app/oracle/inventory/logs/installActions2020-02-23_04-26-14PM.log
The following configuration scripts need to be executed as the "root" user.
#!/bin/sh
#Root scripts to run
/data/u01/app/oracle/inventory/orainstRoot.sh
/data/u01/app/oracle/product/11.2.0/dbhome_1/root.sh
To execute the configuration scripts:
1. Open a terminal window
2. Log in as "root"
3. Run the scripts
4. Return to this window and hit "Enter" key to continue
Successfully Setup Software.
软件安装成功,sqlplus试一下是否进去,可以进去,只是没有实例。

安装后操作,按照要求执行脚本
打开新的终端,以root身份登录,执行脚本:
/data/u01/app/oracle/inventory/orainstRoot.sh
/data/u01/app/oracle/product/11.2.0/dbhome_1/root.sh

[root@localhost ~]# /data/u01/app/oracle/inventory/orainstRoot.sh
Changing permissions of /data/u01/app/oracle/inventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /data/u01/app/oracle/inventory to oinstall.
The execution of the script is complete.
[root@localhost ~]# /data/u01/app/oracle/product/11.2.0/dbhome_1/root.sh
Check /data/u01/app/oracle/product/11.2.0/dbhome_1/install/root_localhost.localdomain_2020-02-23_18-30-01.log for the output of root script
下一篇:linux CentOS7最小化安装环境静默安装Oracle11GR2数据库(静默创建实例_08)