记录一次Oracle Linux7上安装RDBMS 11.2.0.4的问题

news2025/6/2 9:54:40

参考文档:
文档1 
OHASD fails to start on SuSE 11 SP2 on IBM: Linux on System z (Doc ID 1476511.1)
As part of the root.sh, roothas.pl or rootcrs.pl is called and an entry is placed in /etc/inittab

h1:35:respawn:/etc/init.d/init.ohasd run >/dev/null 2>&1 </dev/null

文档2 
Install of Clusterware fails while running root.sh on OL7 - ohasd fails to start (Doc ID 1959008.1)
Because Oracle Linux 7 (and Redhat 7) use systemd rather than initd for starting/restarting processes and runs them as a service the current software install of both 11.2.0.4 & 12.1.0.1 will not succeed because the ohasd process does not start properly.

In OL7 it needs to be set up as a service and patch fix  for Bug 18370031 needs to be applied for this , BEFORE you run root.sh when prompted .
Need to apply the  patch 18370031 for 11.2.0.4 .


文档3 
https://docs.oracle.com/cd/E11882_01/relnotes.112/e23558/toc.htm#CJAJEBGG

文档4
I Fails to Start as Process "init.ohasd run" is not Running (Doc ID 1680406.1)
cd <location-of-init.ohasd>
nohup ./init.ohasd run & 

文档5 
Grid Infrastructure Configuration: Error In OUI "SSH Connectivity" Section (Doc ID 1997480.1)  -- bug 

文档6 :
DBCA fails in the middle of database creation with ORA-13516 / ORA-06512 (Doc ID 1929718.1)


尝试如下方法启动集群。

1. 杀掉刚才执行的 /bin/sh /etc/init.d/init.ohasd run >/dev/null 2>&1 </dev/null
并确保没有相关的ohasd进程运行。
ps -ef | grep ohasd

2. 使用root执行
nohup /etc/init.d/init.ohasd run &

3. 启动集群 (root)
./crsctl start crs

OS:Oracle Linux 7.9
RDMBS:11.2.0.4 

问题1 
在节点1上运行root.sh 的时候,失败。集群无法启动。主要错误信息:ohasd failed to start ,Failed to start the Clusterware. Last 20 lines of the alert log follow:  
[client(16819)]CRS-2101:The OLR was formatted using version 3.

[root@oradb01 grid]# sh root.sh
Performing root user operation for Oracle 11g 

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /u01/app/11.2.0/grid

Enter the full pathname of the local bin directory: [/usr/local/bin]: 
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.

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.
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
User ignored Prerequisites during installation
Installing Trace File Analyzer
Adding Clusterware entries to inittab
ohasd failed to start
Failed to start the Clusterware. Last 20 lines of the alert log follow: 
2023-01-12 09:16:42.043: 
[client(16819)]CRS-2101:The OLR was formatted using version 3.

^CINT at /u01/app/11.2.0/grid/crs/install/crsconfig_lib.pm line 1446.
/u01/app/11.2.0/grid/perl/bin/perl -I/u01/app/11.2.0/grid/perl/lib -I/u01/app/11.2.0/grid/crs/install /u01/app/11.2.0/grid/crs/install/rootcrs.pl execution failed
Oracle root script execution aborted!
[root@oradb01 grid]# 
[root@oradb01 grid]# 

卸载GI后,重新安装,提示CRS-4046,CRS-4000 

[root@oradb01 grid]# sh root.sh
Performing root user operation for Oracle 11g 

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /u01/app/11.2.0/grid

Enter the full pathname of the local bin directory: [/usr/local/bin]: 
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.


Creating /etc/oratab file...
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.
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
User ignored Prerequisites during installation
Installing Trace File Analyzer
CRS-4046: Invalid Oracle Clusterware configuration.
CRS-4000: Command Create failed, or completed with errors.
Failure initializing entries in /etc/oracle/scls_scr/oradb01
/u01/app/11.2.0/grid/perl/bin/perl -I/u01/app/11.2.0/grid/perl/lib -I/u01/app/11.2.0/grid/crs/install /u01/app/11.2.0/grid/crs/install/rootcrs.pl execution failed
[root@oradb01 grid]# 

解决方法
方法1 (该方法来自互联网),建立ohas.service,启动服务ohas.service。然后再次运行root.sh成功,节点2也可以使用类似的方法。

# touch /usr/lib/systemd/system/ohas.service
chmod 777 /usr/lib/systemd/system/ohas.service

# vi /usr/lib/systemd/system/ohas.service

[Unit]
Description=Oracle High Availability Services
After=syslog.target

[Service]
ExecStart=/etc/init.d/init.ohasd run >/dev/null 2>&1 Type=simple
Restart=always

[Install]
WantedBy=multi-user.target


systemctl daemon-reload
systemctl enable ohas.service
systemctl start ohas.service
systemctl status ohas.service

方法2 (本次没有使用,个人推测,是可以解决问题的,方法1和方法2的目的都是启动集群)
kill 掉init.ohasd进程,然后手工执行nohup /etc/init.d/init.ohasd run & 启动集群,再次运行root.sh  (没有用这个方法,应该可以。后面打PSU的时候,集群起不来,使用的是这个方法,尽管已经有ohas.service服务了)


再次运行root.sh 成功

[root@oradb01 grid]# sh root.sh 
Performing root user operation for Oracle 11g 

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /u01/app/11.2.0/grid

Enter the full pathname of the local bin directory: [/usr/local/bin]: 
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.

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.
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
User ignored Prerequisites during installation
Installing Trace File Analyzer
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'oradb01'
CRS-2676: Start of 'ora.cssdmonitor' on 'oradb01' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'oradb01'
CRS-2672: Attempting to start 'ora.diskmon' on 'oradb01'
CRS-2676: Start of 'ora.diskmon' on 'oradb01' succeeded
CRS-2676: Start of 'ora.cssd' on 'oradb01' succeeded

ASM created and started successfully.

Disk Group OCR created successfully.

clscfg: -install mode specified
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-4256: Updating the profile
Successful addition of voting disk 64c89ffd73894f2cbf3daaed270c4c4f.
Successful addition of voting disk 2d17b7e81bbd4f7dbfff241c36fb2f75.
Successful addition of voting disk 38ad14b3a3214f33bfe77d52a49418f8.
Successfully replaced voting disk group with +OCR.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   64c89ffd73894f2cbf3daaed270c4c4f (/dev/asm-ocr01) [OCR]
 2. ONLINE   2d17b7e81bbd4f7dbfff241c36fb2f75 (/dev/asm-ocr02) [OCR]
 3. ONLINE   38ad14b3a3214f33bfe77d52a49418f8 (/dev/asm-ocr03) [OCR]
Located 3 voting disk(s).
CRS-2672: Attempting to start 'ora.asm' on 'oradb01'
CRS-2676: Start of 'ora.asm' on 'oradb01' succeeded
CRS-2672: Attempting to start 'ora.OCR.dg' on 'oradb01'
CRS-2676: Start of 'ora.OCR.dg' on 'oradb01' succeeded
Configure Oracle Grid Infrastructure for a Cluster ... succeeded
[root@oradb01 grid]# 
[root@oradb02 grid]# sh root.sh
Performing root user operation for Oracle 11g 

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /u01/app/11.2.0/grid

Enter the full pathname of the local bin directory: [/usr/local/bin]: 
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.

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.
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
User ignored Prerequisites during installation
Installing Trace File Analyzer
CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node oradb01, number 1, and is terminating
An active cluster was found during exclusive startup, restarting to join the cluster
Configure Oracle Grid Infrastructure for a Cluster ... succeeded
[root@oradb02 grid]#

问题2 
安装PSU的时候,安装过程中,提示CRS-4124: CRS-4000: ,集群无法启动,尽管此时已经有ohasd.service服务 

[root@oradb01 psu]# /u01/app/11.2.0/grid/OPatch/opatch auto /psu/31718723 
Executing /u01/app/11.2.0/grid/perl/bin/perl /u01/app/11.2.0/grid/OPatch/crs/patch11203.pl -patchdir /psu -patchn 31718723 -paramfile /u01/app/11.2.0/grid/crs/install/crsconfig_params

This is the main log file: /u01/app/11.2.0/grid/cfgtoollogs/opatchauto2023-01-12_14-10-18.log

This file will show your detected configuration and all the steps that opatchauto attempted to do on your system:
/u01/app/11.2.0/grid/cfgtoollogs/opatchauto2023-01-12_14-10-18.report.log

2023-01-12 14:10:18: Starting Clusterware Patch Setup
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params

Stopping RAC /u01/app/oracle/product/11.2.0/dbhome_1 ...
Stopped RAC /u01/app/oracle/product/11.2.0/dbhome_1 successfully

patch /psu/31718723/29938455/custom/server/29938455  apply successful for home  /u01/app/oracle/product/11.2.0/dbhome_1 
patch /psu/31718723/31537677  apply successful for home  /u01/app/oracle/product/11.2.0/dbhome_1 

Stopping CRS...
Stopped CRS successfully

patch /psu/31718723/29938455  apply successful for home  /u01/app/11.2.0/grid 
patch /psu/31718723/31537677  apply successful for home  /u01/app/11.2.0/grid 
patch /psu/31718723/29509309  apply successful for home  /u01/app/11.2.0/grid 

Starting CRS...
Installing Trace File Analyzer
CRS-4124: Oracle High Availability Services startup failed.
CRS-4000: Command Start failed, or completed with errors.

Starting RAC /u01/app/oracle/product/11.2.0/dbhome_1 ...
Started RAC /u01/app/oracle/product/11.2.0/dbhome_1 successfully

opatch auto succeeded.
[root@oradb01 psu]# 

解决方法: 
PSU的过程不要中断,重新开一个终端,kill掉ohad进程,然后手工启动ohasd, nohup /etc/init.d/init.ohasd run &   ./crsctl start crs .随后打补丁正常 。
不过节点2 打补丁成功,无此问题和操作 
 

问题3 
CentOS 7 ,RDBMS 11.2.0.4 ,OUI上配置SSH互信失败,报错 INS-06001] Failed to perform operation due to internal driver error.
随后,在配置的时候,发现ssh还是有一些问题,最终解决方法,换Oracle Linux 7 

 

问题4 
在dbca建库的时候,报 ORA-13516:AWR Operation failed:CATPROC not valid 
解决方法,Oracle的sys,system密码设置的过于复杂,设置个简单的即可。

问题5 
安装完毕PSU后,重启集群,./crsctl start crs hung住 
解决方法,因为安装完毕PSU后,相应的补丁已经应用(主要是OS上的调用init的代码),但是此时还是无法启动crs 。重启OS即可调用补丁后的init代码。重启OS,启动crs正常。
之前碰到过,11.2.0.4安装完毕后,没有安装PSU补丁,重启OS后,发现无法启动crs,随后使用nohup /etc/init.d/init.ohasd run &   ./crsctl start crs 可以启动。
随后打了PSU后,重启OS后,一切正常。
 

 总结,其实Linux7上安装RDBMS 11.2.0.4的RAC,最大的问题,还是LInux 7调用的是systemd的问题。

EDN

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/161347.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

cmake入门之二:调用外部共享库和头文件

cmake入门之二&#xff1a;调用外部共享库和头文件1.创建外部共享库1.1 创建相关文件或文件夹1.1.1 ext目录下的CMakeLists.txt1.1.2 ext目录lib文件夹下1.1.2.1 hello.h1.1.2.2 hello.c1.1.2.3 CMakeLists.txt1.2 编译、安装2.创建当前项目2.1 创建相关文件或文件夹2.1.1 proj…

为什么这么努力,还是赚不到钱?你不能不知道赚钱的三个模型

大部分人赚钱&#xff0c;都是通过能力努力运气&#xff0c;这种需要付出自己的大量时间和精力&#xff0c;并且赚到的钱也是有上限的。小部分人赚钱是通过&#xff0c;个人IP的商业模式来赚钱&#xff0c;并且跟我们传统的生意不一样的是&#xff0c;这个亏钱是有下限的&#…

OpenHarmony轻量级设备xts认证大致流程

因为最近公司在做openharmony开发板xts认证&#xff0c;这里对认证过程和过程中遇到的坑做下记录&#xff0c;也给大家探探路。 1. 开发板适配 OpenHarmony轻量系统的移植比较简单&#xff0c;代码中解耦做得非常好。从代码的设计理念上来看&#xff0c;移植主要是3部分的内容…

.vscode/extensions.json和setting.json 是项目用到的插件推荐列表和设置

文章目录前言一、extensions.json安装推荐插件编辑推荐插件二、setting.json总结前言 在前端项目&#xff0c;文件目录中存在.vscode文件夹&#xff0c;文件夹下一般存在两个文件extensions.json和setting.json。作用是保持所有开发者安装了相同的插件和相同的配置&#xff0c…

访问学者J1签证通常准备那些材料?

访问学者J1签证通常准备那些材料&#xff1f;知识人网小编马上整理一下分享出来作为参考&#xff1a;材料准备1、VISA部分&#xff1a;护照&#xff0c;护照照片&#xff0c;160确认页&#xff0c;签证费收据两联都带&#xff0c;DS2019&#xff0c;D7002&#xff0c;sevis费收…

Linux应用基础——监控与管理进程

目录 一、进程 1.定义 2.组成 3.进程环境包括 4.进程的生命周期 二、描述进程状态 三、相关命令 1.top命令 2.ps命令 二、中断进程 1.基本进程管理信号 2.每个信号的默认操作 3.相关命令 &#xff08;1&#xff09;kill命令 &#xff08;2&#xff09;killall命…

助力不文明行文识别,基于YOLOv7融合RepVGG的遛狗牵绳行为检测识别分析系统

不知道大家平时在路上走的时候或者在小区的时候有没有遇上过遛狗不牵绳子的行为&#xff0c;我在实际生活里面可是没少遇到过&#xff0c;有时候特别大的一只狗就这么冲过来&#xff0c;主人却还无动于衷&#xff0c;揍他的心都有了&#xff0c;这种行为的确是很不文明&#xf…

Java项目:仓库管理系统设计和实现(java+ssm+springboot+layui)

源码获取&#xff1a;博客首页 "资源" 里下载&#xff01; 主要功能模块 1.用户模块管理&#xff1a;用户登录、用户注册、用户的查询、添加、删除操作、 2.客户信息管理&#xff1a;.客户列表的展示、添加、修改、删除操作、 3.供应商管理&#xff1a;供应商详情…

Android MVVM之ViewModel的详解与使用

一、介绍 ViewModel 类是一种业务逻辑或屏幕级状态容器。它用于将状态公开给界面&#xff0c;以及封装相关的业务逻辑。 它的主要优点是&#xff0c;它可以缓存状态&#xff0c;并可在配置更改后持久保留相应状态。这意味着在 activity 之间导航时或进行配置更改后&#xff08;…

【UE4 第一人称射击游戏】45-使用线追踪进行破坏

上一篇&#xff1a;【UE4 第一人称射击游戏】44-瞄准时的武器线追踪步骤&#xff1a;打开“Weapon_Base”删除打印节点添加如下节点&#xff0c;表示追踪线命中目标时执行的逻辑对上面逻辑的解释&#xff1a;首先追踪线命中目标后&#xff0c;显示红色的那个准心然后让目标的健…

阿里云 - MaxCompute研究

一、官方介绍MaxCompute是适用于数据分析场景的企业级SaaS&#xff08;Software as a Service&#xff09;模式云数据仓库&#xff0c;提供离线和流式数据的接入&#xff0c;支持大规模数据计算及查询加速能力。MaxCompute适用于100 GB以上规模的存储及计算需求&#xff0c;最大…

全国青少年软件编程(Scratch)等级考试一级考试真题2022年12月——持续更新.....

1.小明想在开始表演之前向大家问好并做自我介绍,应运行下列哪个程序?( ) A. B. C. D. 正确答案:D 答案解析: 外观积木配合显示时间,才能看清楚内容。 2.舞台有两个不同的背景,小猫角色的哪个积木能够切换舞台背景?( ) A.<

UVC静态杀菌模组的工作原理及应用

现代紫外线消毒技术是基于现代防疫学、光学、生物学和物理化学的基础上&#xff0c;利用特殊设计的高效率&#xff0c;高强度和长寿命的C波段紫外光发生装置&#xff0c;产生的强紫外C光照射空气或物体表面&#xff0c;当空气或固体表面中的各种细菌、病毒、寄生虫、水藻以及其…

C/C++ 三维数组和二维数组指针的结合

示例程序&#xff1a;#include <iostream> #include <stdio.h> int main() {int a[3][4] {{1,2,3,4},{2,3,4,5},{3,4,5,6}};int b[3][4] {{10,11,12,13},{11,12,13,14},{12,13,14,15}};int(*aa[2])[4] { a,b };int* p1[3] {a[0],a[1],a[2]};int* p2[3] {b[0],…

小学三年级奥数(和差倍问题)

例题5&#xff1a;学校合唱团成员中,女生人数是男生的3倍,而且女生比男生多80人&#xff0c;合唱团里男生有多少人&#xff1f;女生有多少人&#xff1f;思路分析&#x1f604;&#xff1a;抓住关键语句&#xff0c;女生人数是男生的3倍&#xff0c;那么把男生看成1份&#xff…

《图机器学习》-Graph as Matrix:Page Rnak,

Graph as Matrix一、Graph as Matrix二、PageRank三、PageRank&#xff1a;How to solve&#xff1f;四、Random Walk with Restarts and Personalized PageRank五、Matrix Factorization and Node Embedding一、Graph as Matrix 本小节将从矩阵的角度研究图形分析和学习。 把…

centos 一个ip绑定双网卡

nmcli con show (绿正常&#xff0c;黄白不正常) nmcli con del uuid &#xff08;eg&#xff1a;nmcli con del 585bdacc-314f-423e-a935-18295d0fb48b&#xff09; nmcli con add type bond ifname bond0 mode active-backup &#xff08;bond0只是一个名称&#xff0c;可以…

操作系统导论-并发

操作系统导论-并发 一.并发 操作系统为了进程能有多个执行点&#xff0c;为进程提供了一种抽象&#xff1a;线程。线程与进程类似&#xff0c;一个进程中的所有线程共享地址空间&#xff0c;但有自己独立的栈。 1.并发问题 线程的执行顺序也需要操作系统来进行调度。由于线程…

DeViSE:A Deep Visual-Semantic Embedding Model

这篇是2013年文章提出的DeViSEDeViSEDeViSE,主要是综合了传统视觉识别的神经网络和词向量处理word2vecword2vecword2vec中的Skip−gramSkip-gramSkip−gram模型&#xff0c;实现了一个视觉和语义兼顾的ZSLZSLZSL模型&#xff0c;取得了 较好的效果&#xff0c;时至今日&#xf…

【阶段三】Python机器学习21篇:机器学习项目实战:GBDT算法的核心思想、原理概述、原理举例与GBDT回归模型

本篇的思维导图: GBDT算法的核心思想 GBDT是Gradient Boosting Decision Tree(梯度提升树)的缩写。GBDT算法也是一种非常实用的Boosting算法,它与AdaBoost算法的区别在于:AdaBoost算法根据分类效果调整权重并不断迭代,最终生成强学习器;GBDT算法则将损失函数的…