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

devtools/2025/3/14 21:06:09/

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


http://www.ppmy.cn/devtools/167111.html

相关文章

设计模式之桥接模式:原理、实现与应用

引言 桥接模式(Bridge Pattern)是一种结构型设计模式,它将抽象部分与实现部分分离,使它们可以独立变化。桥接模式通过组合而不是继承来实现抽象与实现的解耦,从而提高了系统的灵活性和可扩展性。本文将深入探讨桥接模…

通用验证码邮件HTML模版

<!DOCTYPE html> <html><head><meta charset"utf-8"><title>您的登录验证码</title><style type"text/css">/* 内联样式确保邮件客户端兼容性 */.container {max-width: 600px;margin: 0 auto;font-family: Hel…

TCP网络协议

TCP粘包 1. TCP在接收数据时&#xff0c;多包数据粘在了一起 2. 原因&#xff1a; 1. TCP发送数据时&#xff0c;没有及时发走&#xff0c;会根据缓冲区数据的情况进行重新组包&#xff1b; 2. TCP接收方&#xff0c;没有及时读走缓冲区数据&#xff0c;导致缓冲区大量数…

CSDN统计个人创作总字数

前言 不是很懂爬虫&#xff0c;所以就叫deepseek写了一个 用起来很简单&#xff0c;但是有一个小问题&#xff0c;就是统计的是总字符数。代码片会被统计进去&#xff0c;Markdown语法也会被统计进去。 不过我没有太多需求&#xff0c;能大概统计一下满足以下小小的好奇心和成…

SSM视频点播系统

&#x1f345;点赞收藏关注 → 添加文档最下方联系方式咨询本源代码、数据库&#x1f345; 本人在Java毕业设计领域有多年的经验&#xff0c;陆续会更新更多优质的Java实战项目希望你能有所收获&#xff0c;少走一些弯路。&#x1f345;关注我不迷路&#x1f345; 项目视频 SS…

基于Python+Vue开发的电影订票管理系统源码+运行步骤

项目简介 该项目是基于PythonVue开发的电影订票管理系统&#xff08;前后端分离&#xff09;&#xff0c;这是一项为大学生课程设计作业而开发的项目。该系统旨在帮助大学生学习并掌握Python编程技能&#xff0c;同时锻炼他们的项目设计与开发能力。通过学习基于Python的电影订…

k8s集群----helm部署wordpress

采用pv pvc模式 1、配置nfs存储 yum -y install nfs-utils cat /etc/exports cat /etc/exports /nfs/data/wordpress 192.168.0.0/24(rw,sync,no_subtree_check,no_root_squash) /nfs/data/mariadb 192.168.0.0/24(rw,sync,no_subtree_check,no_root_squash)systemctl rest…

ArcGIS Pro字段编号相关代码

一、引言 在地理信息系统&#xff08;GIS&#xff09;的数据管理与分析中&#xff0c;字段操作是不可或缺的一环。 SHP文件作为常见的地理数据存储格式&#xff0c;其字段的灵活运用对于数据的组织、展示和分析具有重要意义。 在实际工作中&#xff0c;常常需要对字段进行编…