07/29/2014 12:05 | | Posted by VladStar |
How to to install Oracle 11g database on top of the Oracle Linux 6 (based on my experience).
First, Oracle 11g DB by default was intended to be installed on for Oracle Linux 4. If you want to install it on top of one of the most recent OL versions, prior to running "runInstall" script, you have to change the following line in "stage/cvu/cv/admin/cvu_config" file, i.e.:
CV_ASSUME_DISTID=OEL6
Also, when the installer asks you to run "root.sh" - you have to perform the following steps prior to calling it, otherwise this step will fail with "Inappropriate ioctl for device at roothas.pl" message.
(instructions are taken from the following link)
Problem is indeed because of upstart/init incompatibility. Here is the working way:
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 or 1015 (you should find a code like: if ($srv eq "ohasd") { # Start OHASD).
3) Insert a following snippet before starting OHASD part (line 1015 for version 11.2.0)
---
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 roll it back:
$GRID_HOME/crs/install/roothas.pl -deconfig -force -verbose
Make changes above and continue.
Comments: none (click here to reply) Tags: How-to | Oracle db | Работа
|