jueves, setiembre 29, 2011

Oracle Grid Infrastructure en Oracle Linux 6 (OL6)

Debo comenzar diciendo que por ahora Oracle no ha certificado la instalacion en OL6, motivo por el cual apunto las consideraciones a tomar en caso de esta instalacion.

1. Libreria pdksh: No se encuentra en el disco de instalacion. Aqui la explicacion (...) y el link de descarga(...) .

2. La ejecucion del script roothas.pl, me mostro el sgte error : Failed to start the Clusterware. Encontre en un foro la solucion:
https://forums.oracle.com/forums/thread.jspa?threadID=2209435

User : mbobak
Posts: 1,111
Registered: 11/27/07

Hi everyone,

I did get this to work. but it's a bit painful. OEL6 (and RHEL6) move away from using inittab and go to using a system called upstart. This is why the execution of root.sh fails.

When you run root.sh, it adds a line to '/etc/inittab', that looks like this:

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


and then it calls 'init 3', which should start the daemon.

Problem is, with OEL6/RHEL6, this line is meaningless, since the software that would use it, and start that process at boot time, is no longer used.

Instead, OEL6/RHEL6 have moved to a system called 'upstart'.

To do the same thing in upstart, you need to create a file in the '/etc/init' directory, I named it 'oracle.conf', and the contents of the file should be:

#start init.ohasd

start on runlevel [35]
stop on runlevel [016]

respawn
exec /etc/init.d/init.ohasd run >/dev/null 2>&1


If you put this file into place before you run root.sh, then, when root.sh is executed, it will still update the '/etc/inittab' file, but that's harmless, and then it will do an 'init 3' to start the daemon.

Hope that helps,

-Mark