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

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.dtcms.com/a/67736.html

相关文章:

  • 零信任身份安全的基本原则
  • leetCode求两数之和(第一题)
  • Qt6.8.2中JavaScript调用WebAssembly的js文件<1>
  • linux-Openmanus本地部署-AI-Agent初探
  • 【农业大数据处理与应用】实验二 随机森林算法与LSTM循环神经网络
  • Linux文件系统管理
  • Spark;scp命令,rsync命令,ssh命令
  • 技术解析与实战指南:MySQL性能优化与高效数据库迁移工具推荐
  • 深度剖析《数理化学习》期刊:数理化教育领域的学术明珠
  • JAVA使用jar包外前端
  • 统一 Elastic 向量数据库与 LLM 功能,实现智能查询
  • 文档在线协同工具ONLYOFFICE教程:如何使用宏对 PDF 表单中的特定字段执行计算
  • 设计模式之美
  • LeetCode-移动零
  • 如何配置Socks5代理
  • 56.HarmonyOS NEXT 登录模块开发教程(十):总结与展望
  • 游戏引擎学习第156天
  • [leetcode] 面试经典 150 题——篇1:数组/字符串
  • 【redis】redis的单线程模型为什么效率高?
  • 为什么使用 XML Schema?
  • Linux websocket服务器、配网方法、QT客户端程序
  • deepseek+kimi做ppt教程记录
  • 我的创作纪念日 打造高效 Python 日记本应用:从基础搭建到功能优化全解析
  • 深度学习篇---Opencv中的Haar级联分类器
  • 【Python运维】用Python编写云服务监控工具:实时监测和报警
  • Android 列表页面终极封装:SmartRefreshLayout + BRVAH 实现下拉刷新和加载更多
  • PGSQL基本使用
  • 深圳南柯电子|净水器EMC测试整改:水质安全与电磁兼容性的双赢
  • Word文档标题关联图片提取工具实现原理
  • React学习笔记15