目录

oracle11.2.0.4-RAC-保姆级静默安装二-DB数据库软件

oracle11.2.0.4 RAC 保姆级静默安装(二) DB数据库软件

[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

[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”

https://i-blog.csdnimg.cn/direct/2266b32e1d0f42409e9555a74b37d00a.png

[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

观察日志:

https://i-blog.csdnimg.cn/direct/775d6ed387574a75a94ab501106f82da.png

安装完成

https://i-blog.csdnimg.cn/direct/3df218c9a1894063ae63e59faf158e3c.png

https://i-blog.csdnimg.cn/direct/90fcf3524502430f868a1e18f69c4255.png

[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