jueves, 26 de junio de 2008

Oracle XE en Oracle Interprise Linux

Primeramente, es muy importante prestar mucha atención a los prerequisitos de instalación de Oracle XE. Hay que tener en cuenta tener libre, al menos, 1,5Gb en disco duro, y una partición Swap de, al menos, 1024Mb. Si no se cumplen estos requisitos, no se instalará.

La instalación de Oracle Interprise Linux es igual que la de cualquier distribución Red Hat.

Una vez instalado, nos bajamos de la página oficial de Oracle el fichero de instalación en rpm (Red hat Package Management): http://www.oracle.com/technology/software/products/database/xe/index.html.

En otras versiones de linux deberíamos comprobar que están instaladas algunas librerias(Agregar el repositorio (http://oss.oracle.com/), pero como nosotros disponemos del propio linux de Oracle, no nos hará falta. Vienen instaladas de serie.

Una vez descargado el rpm es hora de instalar el producto lo cual no es cosa del otro mundo porque basta con el siguiente comando:

rpm -ivh oracle-xe-10.2.0.1-0.1.i386.rpm

Entonces, si no se ha hecho caso a los prerequisitos, y no has dejado la suficiente swap, dará el siguiente error:

Preparing… ########################################### [100%]
This system does not meet the minimum requirements for swap space. Based on he amount of physical memory available on the system, Oracle Database 10g Express Edition requires 988 MB of swap space. This system has 800 MB of swap space. Configure more swap space on the system and retry the installation.
error: %pre(oracle-xe-10.2.0.1-0.1.i386) scriptlet failed, exit status 1
error: install: %pre scriptlet failed (2), skipping oracle-xe-10.2.0.1-0.1

Pues toca incrementar temporalmente el swap de Linux:

su - root
dd if=/dev/zero of=extraswap bs=1k count=900000
chmod 600 extraswap
mkswap extraswap
swapon extraswap

Para verificar que el swap se haya asignado se puede digitar el siguiente comando:

grep SwapTotal /proc/meminfo

Si luego deseas desabilitar este swap temporal :

su - root
swapoff extraswap
rm extraswap

Ahora si:

rpm -ivh oracle-xe-10.2.0.1-1.0.i386.rpm
Preparing… ########################################### [100%]
1:oracle-xe warning: /etc/init.d/oracle-xe saved as /etc/init.d/oracle-xe.rpmorig ########################################### [100%]

Executing Post-install steps…

oracle-xe 0:off 1:off 2:off 3:on 4:off 5:on 6:off
You must run ‘/etc/init.d/oracle-xe configure’ as the root user to configure the database.

Y luego ejecutamos el script de configuración:

/etc/init.d/oracle-xe configure

Oracle Database 10g Express Edition Configuration
————————————————-
This will configure on-boot properties of Oracle Database 10g Express Edition. The following questions will determine whether the database should be starting upon system boot, the ports it will use, and the passwords that will be used for database accounts. Press to accept the defaults. Ctrl-C will abort.

Specify the HTTP port that will be used for Oracle Application Express [8080]:

Specify a port that will be used for the database listener [1521]:

Specify a password to be used for database accounts. Note that the same password will be used for SYS and SYSTEM.
Oracle recommends the use of different passwords for each database account. This can be done after initial
configuration:

Confirm the password:

Do you want Oracle Database 10g Express Edition to be started on boot (y/n) [y]:n

Starting Oracle Net Listener…Done

Configuring Database…Done

Starting Oracle Database 10g Express Edition Instance…Done

Installation Completed Successfully.

To access the Database Home Page go to “http://127.0.0.1:8080/apex”

Y listo con estos pasos ya tenemos el Oracle XE y APEX en nuestro equipo.

No hay comentarios:

Powered By Blogger

Datos personales