oracle11.2.0.4 RAC 保姆级静默安装(二) DB数据库软件
1.响应文件配置
[root@db11g1 software]# su - oracle
[oracle@db11g1 ~]$ cd /software/database/
[oracle@db11g1 database]$ cd response/
[oracle@db11g1 response]$
vi db_install.rsp
oracle.install.option=INSTALL_DB_SWONLY
ORACLE_HOSTNAME=db11g1
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/u01/app/oraInventory
SELECTED_LANGUAGES=en
ORACLE_HOME=/u01/app/oracle/product/11.2.0.4/dbhome_1
ORACLE_BASE=/u01/app/oracle
oracle.install.db.InstallEdition=EE
oracle.install.db.DBA_GROUP=dba
oracle.install.db.OPER_GROUP=oper
oracle.install.db.CLUSTER_NODES=db11g1,db11g2
oracle.install.db.config.starterdb.type=GENERAL_PURPOSE
oracle.install.db.config.starterdb.globalDBName=orcl
oracle.install.db.config.starterdb.SID=orcl
oracle.install.db.config.starterdb.password.ALL=oracle_4U
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=true
2.静默安装
[oracle@db11g1 ~]$ cd /software/database/
[oracle@db11g1 database]$ ./runInstaller -silent -ignoreSysPrereqs -force -ignorePrereq -responseFile /software/database/response/db_install.rsp
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 120 MB. Actual 117613 MB Passed
Checking swap space: must be greater than 150 MB. Actual 10239 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2025-03-12_11-52-18AM. Please wait ...[oracle@db11g1 database]$ MoTTY X11 proxy: Unsupported authorisation protocol
[FATAL] [INS-35354] The system on which you are attempting to install Oracle RAC is not part of a valid cluster.
CAUSE: Before you can install Oracle RAC, you must install Oracle Grid Infrastructure on all servers (Oracle Clusterware and Oracle ASM) to create a cluster.
ACTION: Oracle Grid Infrastructure is not installed. Install it either from the separate installation media included in your media pack, or install it by downloading it from Electronic Product Delivery (EPD) or the Oracle Technology Network (OTN). Oracle Grid Infrastructure normally is installed by a different operating system user than the one used for Oracle Database. It may need to be installed by your system administrator. See the installation guide for more details.
处理报错:
[oracle@db11g1 ContentsXML]$ cd /u01/app/oraInventory/ContentsXML
[oracle@db11g1 ContentsXML]$ vi inventory.xml
两个节点修改该文件增加CRS=”true”
3.继续安装
[oracle@db11g1 database]$ ./runInstaller -silent -ignoreSysPrereqs -ignorePrereq -responseFile /software/database/response/db_install.rsp
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 120 MB. Actual 117610 MB Passed
Checking swap space: must be greater than 150 MB. Actual 10239 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2025-03-12_11-57-55AM. Please wait ...[oracle@db11g1 database]$ MoTTY X11 proxy: Unsupported authorisation protocol
You can find the log of this install session at:
/u01/app/oraInventory/logs/installActions2025-03-12_11-57-55AM.log
观察日志:
安装完成
4.执行root脚本
[root@db11g1 ~]# /u01/app/oracle/product/11.2.0.4/dbhome_1/root.sh
Check /u01/app/oracle/product/11.2.0.4/dbhome_1/install/root_db11g1_2025-03-12_12-08-07.log for the output of root script
[root@db11g1 ~]# tail -f /u01/app/oracle/product/11.2.0.4/dbhome_1/install/root_db11g1_2025-03-12_12-08-07.log
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Finished product-specific root actions.
/u01/app/oracle/product/11.2.0.4/dbhome_1/root.sh: line 14: /u01/app/oracle/product/11.2.0.4/dbhome_1/rdbms/install/rootadd_rdbms.sh: No such file or directory
/u01/app/oracle/product/11.2.0.4/dbhome_1/root.sh: line 16: /u01/app/oracle/product/11.2.0.4/dbhome_1/rdbms/install/rootadd_filemap.sh: No such file or directory
[root@db11g2 ~]# /u01/app/oracle/product/11.2.0.4/dbhome_1/root.sh
Check /u01/app/oracle/product/11.2.0.4/dbhome_1/install/root_db11g2_2025-03-12_12-08-49.log for the output of root script
[root@db11g2 ~]# tail -f /u01/app/oracle/product/11.2.0.4/dbhome_1/install/root_db11g2_2025-03-12_12-08-49.log
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Finished product-specific root actions.
/u01/app/oracle/product/11.2.0.4/dbhome_1/root.sh: line 14: /u01/app/oracle/product/11.2.0.4/dbhome_1/rdbms/install/rootadd_rdbms.sh: No such file or directory
/u01/app/oracle/product/11.2.0.4/dbhome_1/root.sh: line 16: /u01/app/oracle/product/11.2.0.4/dbhome_1/rdbms/install/rootadd_filemap.sh: No such file or directory