Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the pit of installing Oracle 11g RAC in CentOs 7.x

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article focuses on "how to solve the pit of CentOs 7.x installation of Oracle 11g RAC", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "how to solve the problem of CentOs 7.x installing Oracle 11g RAC".

1. The ohasd process does not start properly when GI is installed to execute the root.sh script

Ohasd failed to start

Failed to start the Clusterware. Last 20 lines of the alert log follow:

2018-04-19 09Partition 54

[client (19244)] CRS-2101:The OLR was formatted using version 3.

Alert:

Oracle High Availability Service has timed out waiting for init.ohasd to be started.

Because Oracle Linux 7 (and Redhat 7) uses systemd instead of initd to start / restart processes and run them as services, the current software installation of 11.2.0.4 and 12.1.0.1 will not succeed because the ohasd process does not start properly.

Solution 1:

Patch before root.sh execution: 18370031.

Solution 2: manually add ohasd services to systemd

(1)。 Create an empty service file: / usr/lib/systemd/system/ohasd.service

Touch / usr/lib/systemd/system/ohasd.service

(2)。 Edit the file ohasd.service to add the following

Vi / usr/lib/systemd/system/ohasd.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

(3)。 Add and start services

Systemctl daemon-reload

Systemctl enable ohasd.service

Systemctl start ohasd.service

View the running status:

[root@rac1 system] # systemctl status ohasd.service

● ohasd.service-Oracle High Availability Services

Loaded: loaded (/ usr/lib/systemd/system/ohasd.service; enabled; vendor preset: disabled)

Active: active (running) since Thu 2018-04-19 14:10:19 CST; 1h 16min ago

Main PID: 1210 (init.ohasd)

CGroup: / system.slice/ohasd.service

└─ 1210 / bin/sh / etc/init.d/init.ohasd run > / dev/null 2 > & 1 Type=simple

Apr 19 14:10:19 bms-75c8 systemd [1]: Started Oracle High Availability Services.

Apr 19 14:10:19 bms-75c8 systemd [1]: Starting Oracle High Availability Services...

(4)。 Re-execute the root.sh script

Note: to prevent the rest of the nodes from experiencing this error, you can execute systemctl start ohasd.service to start the ohasd service after the init.ohasd file is generated in the / etc/init.d/ directory during root.sh execution. If there is no / etc/init.d/init.ohasd file, systemctl start ohasd.service will fail to start.

two。 An error will be reported when installing database software:

Error in invoking target 'agent nmhs' of makefile' / u01qapplash oracleActionproduct 11.2.0According to sysmanAccording to SysmanAccorde

Copy the code

Solution 1:

Select Continue to continue, and then patch: 19692824

Solution 2:

Edit the file $ORACLE_HOME/sysman/lib/ins_emagent.mk

Copy the code

Vi / u01/app/oracle/product/11.2.0/db_1/sysman/lib/ins_emagent.mk

Copy the code

Find the line $(MK_EMAGENT_NMECTL) and add-lnnz11 at the end as follows:

Copy the code

$(MK_EMAGENT_NMECTL)-lnnz11

Then click retry.

At this point, I believe you have a deeper understanding of "how to solve the pit in which CentOs 7.x installs Oracle 11g RAC". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report