RH6 installation Oracle11g+asm

Source: Internet
Author: User
Tags chmod file permissions

Installation steps I skipped here, mainly on the installation process encountered problems or important steps:

1. Udev binding:

For i in B c D e;
Do
echo "kernel==\" sd*\ ", bus==\" scsi\ ", program==\"/sbin/scsi_id--whitelisted--replace-whitespace--device=/dev/\$ Name\ ", result==\" '/sbin/scsi_id--whitelisted--replace-whitespace--device=/dev/sd$i ' \ ", NAME=\" asm-disk$i\ ", Owner=\ "grid\", group=\ "asmadmin\", mode=\ "0660\" ">>/etc/udev/rules.d/99-oracle-asmdevices.rules
Done
4 disk SDB, SDC, SDD, SDE


2, RH6 installation 11.2.1.0 version Execution root.sh Error resolution (this is the 11.2.1.0 bug Doc ID 1557677.1):
Today, someone in the QQ group asked this question, hi configured Oracle Grid Infrastructure for a Standalone Server (11.2. 0.1) on RHEL 6.4,restarting the server Oracle-has not starts and shows the next Ohas error:

# Crsctl Start has
Crs-4124:oracle High Availability Services startup failed.
Crs-4000:command Start failed, or completed with errors.

# CRSCTL Check has
Crs-4639:could not contacted Oracle high availability Services

Cause
======================================
The root cause is because the Oracle Grid infrastructure 11.2.0.1 does do support rel 6,we can use the Rel 6 compatible V Ersion 11.2.0.3 and higher

Solution
======================================
[Email protected] ~]$ Ps-ef | grep INIT.OHASD
Grid 8203 0 18:47 pts/0 00:00:00 grep init.ohasd

INIT.OHASD is used to control OHASD (which runs as a binary ' Ohasd.bin '). If INIT.OHASD is not running OHASD won ' t being able to start.

Cat/etc/inittab|grep INIT.OHASD

[Email protected] has]$ Cat/etc/inittab|grep INIT.OHASD
H1:35:RESPAWN:/ETC/INIT.D/INIT.OHASD Run >/dev/null 2>&1

Manually Start INIT.OHASD

#/etc/init.d/init.ohasd start
Or
#/sbin/init Q

# CRSCTL Check has
Crs-4638:oracle High Availability Services is online

Other ways:

In RHEL 6 inittab is no longer supported, it uses upstart insted.
See more info in page:http://searchenterpriselinux.techtarget.com/tip/ Rhel-6-ditches-system-v-init-for-upstart-what-linux-admins-need-to-know

To solve the issue do the following:
Create the file:/etc/init/init-oracle.conf

* #start oracle*
Start on RunLevel [0123456]
Stop on RunLevel [016]

Respawn
EXEC/ETC/INIT.D/INIT.OHASD Run >/dev/null 2>&1
After the file is created, reboot and Oracle should start normaly

Or

Problem is indeed because of upstart/init incompatibility. Here is the working to:
1) Proceed with the installation as usual until root.sh invocation.
2) before root.sh edit $GRID _home/crs/install/s_crsconfig_lib.pm, go to line 1173 (you should find a code like:if ($srv E Q "OHASD") {# Start OHASD).
3) Insert a following snippet before starting OHASD part (line 1173)

My $UPSTART _ohasd_service = "ORACLE-OHASD";
My $INITCTL = "/sbin/initctl";

($status, @output) = System_cmd_capture ("$INITCTL start $UPSTART _ohasd_service");
if (0! = $status)
{
Error ("Failed to start $UPSTART _ohasd_service, Error: $!");
return $FAILED;
}
4) Create a file/etc/init/oracle-ohasd.conf with the following content inside

# Oracle OHASD Startup

Start on RunLevel [35]
Stop on RunLevel [!35]
Respawn
EXEC/ETC/INIT.D/INIT.OHASD Run >/dev/null 2>&1
5) Invoke root.sh
6) Finish the installation.

If you previously ran root.sh (not successfully), simply rolled it back:
$GRID _home/crs/install/roothas.pl-deconfig-force-verbose
Make changes above and continue.

unsupported:11.2.0.1/11.2.0.2 GI root.sh fails on ol6/rhel6 with OHASD failed to start:inappropriate IOCTL for device (D OC ID 1557677.1)

3. DBCA The ASM disk is not found during installation of Oracle software because Oracle file permissions are incorrect, perform chmod +s Oracle or chmod 6751 Oracle Solution
Cd/u01/app/oracle/product/grid/bin
[[email protected] bin]$ ll Oracle
-rwsrwsr-x 1 grid oinstall 203972923 June 22:20 Oracle

The main is the directory is not well planned, resulting in later to modify the directory permissions.
When installing GI, remember not to put $ORACLE _base and $oracle_home directory has a parent-child directory relationship.

RH6 installation Oracle11g+asm

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.