当前位置: 首页 > article >正文

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


http://www.kler.cn/a/582765.html

相关文章:

  • Linux信号之捕捉信号
  • 【网络编程】事件选择模型
  • 蚂蚁灵波科技挂牌,蚂蚁具身智能大动作怎么看?
  • ViM-UNet模型详解及代码复现
  • 拥抱AI让你的项目具有响应能力
  • Java线程安全
  • 如何用C#编写一个可以验证登录信息的简单登录页面?
  • Java基础语法精讲:类型转换、常用运算符与用户输入处理引言
  • Spring 框架学习
  • 深入Flink运行时架构:JobManager与TaskManager协作全解析
  • Scala的初步使用
  • 基于扩展方法实现C#安全集合操作工具包(含完整源码)
  • C++中string的模拟和实现
  • java登神之阶之顺序表
  • 桂链:什么是区块链排序服务?
  • macOS 安装 Homebrew、nvm 及安装切换 node 版本
  • Java项目启动后无日志输出
  • 动态规划详解(四):线性DP原理深度剖析
  • Node.js 技术原理分析系列5——理解 Node.js 中的 ABI 稳定
  • 抖音全案代运营公司-品融电商