Inicio > Oracle > Oracle 11g sobre Solaris 10 en virtualbox

Oracle 11g sobre Solaris 10 en virtualbox

El software que usare es:

  1. Oracle 11gR2 for Solaris (x86-64). Descargalo  aqui.
  2. Oracle Solaris (x86-64). Descargalo aqui.
  3. Oracle VM VirtualBox 4.1.6. Descargalo aqui.

Una vez instalado el Virtualbox creamos una nueva maquina virtual. Yo la hice con 2048Mb de ram Disco duro SCSI de 60gb de tamaño fijo, la red como NAT . La asignacion de espacio quedo:

/ 20480Mb

swap 3072Mb

/u01  27648Mb

/export/home 10240Mb

Una vez concluida la instalacion. Se procede a instalar el Guest Additions. Esto iniciara el cd de virtualbox. Abrimos una terminal y ejecutamos:

#cd /cdrom/vboxadditions_4.1.6_74713

#sh autorun.sh

Cambiamos la configuracion del teclado a español; editamos el archivo xorg.conf :

#gedit /etc/X11/xorg.conf

y agregamos en la seccion del teclado la siguiente linea:

Option “XkbLayout” “es”

quedaria asi:

Section “InputDevice”
Identifier “Keyboard0″
Driver “kbd”
Option “XkbLayout” “es”
EndSection

guardamos y reiniciamos :

#reboot

Creamos una carpeta compartida para pasar los archivos que configuraran lo necesario para instalar la base oracle 11g.

luego la levantamos desde el terminal:

#pfexec mount -F vboxfs software /export/home/software/

Si deseamos que sea un montaje permanente editamos el archivo /etc/vfstab

software – /export/home/software/ vboxfs – yes -

copiamos los siguientes archivos a /export/home: orainst.sh y system

Contenido de orainst.sh

cp system /etc/system
groupadd oracle
groupadd oinstall
groupadd dba
groupadd oper
useradd -d /export/home/oracle -m -s /bin/bash -g oinstall -G dba,oracle oracle
echo ‘ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE’>/export/home/oracle/.profile
echo ‘ORACLE_SID=orcl; export ORACLE_SID’>>/export/home/oracle/.profile
cp oramin.profile /export/home/oracle/.profile
chown -R oracle:oinstall /export/home/oracle
chmod -R 755 /export/home/oracle
mkdir -p /u01/app/oracle
chown -R oracle:oinstall /u01
chmod -R 755 /u01

Contenido del archivo system:

*ident “@(#)system 1.18 97/06/27 SMI” /* SVR4 1.5 */
*
* SYSTEM SPECIFICATION FILE
*

* moddir:
*
* Set the search path for modules. This has a format similar to the
* csh path variable. If the module isn’t found in the first directory
* it tries the second and so on. The default is /kernel /usr/kernel
*
* Example:
* moddir: /kernel /usr/kernel /other/modules

* root device and root filesystem configuration:
*
* The following may be used to override the defaults provided by
* the boot program:
*
* rootfs: Set the filesystem type of the root.
*
* rootdev: Set the root device. This should be a fully
* expanded physical pathname. The default is the
* physical pathname of the device where the boot
* program resides. The physical pathname is
* highly platform and configuration dependent.
*
* Example:
* rootfs:ufs
* rootdev:/sbus@1,f8000000/esp@0,800000/sd@3,0:a
*
* (Swap device configuration should be specified in /etc/vfstab.)

* exclude:
*
* Modules appearing in the moddir path which are NOT to be loaded,
* even if referenced. Note that `exclude’ accepts either a module name,
* or a filename which includes the directory.
*
* Examples:
* exclude: win
* exclude: sys/shmsys

* forceload:
*
* Cause these modules to be loaded at boot time, (just before mounting
* the root filesystem) rather than at first reference. Note that
* forceload expects a filename which includes the directory. Also
* note that loading a module does not necessarily imply that it will
* be installed.
*
* Example:
* forceload: drv/foo

* set:
*
* Set an integer variable in the kernel or a module to a new value.
* This facility should be used with caution. See system(4).
*
* Examples:
*
* To set variables in ‘unix’:
*
* set nautopush=32
* set maxusers=40
*
* To set a variable named ‘debug’ in the module named ‘test_module’
*
* set test_module:debug = 0×13
*
* Variables del Kernel de Oracle
*
set noexec_user_stack=1
set semsys:seminfo_semmni=100
set semsys:seminfo_semmns=1024
set semsys:seminfo_semmsl=256
set semsys:seminfo_semvmx=32767
set shmsys:shminfo_shmmax=4294967295
set shmsys:shminfo_shmmni=100
set rlim_fd_max = 65536
set rlim_fd_cur = 65536

set maxuprc=16384

set max_nprocs=30000

Ejecutamos el archivo orainst.sh desde el terminal:

#sh orainst.sh

Revisamos que tengamos todos lo paquetes requeridos de Oracle en Solaris:

#pkginfo -i SUNWarc SUNWbtool SUNWhea SUNWlibC SUNWlibms SUNWsprot SUNWtoo

SUNWi1of SUNWi1cs SUNWi15cs SUNWxwfnt

Si faltan paquetes, cargar el cd de instalacion y ejecutar:

#pkgadd -d /cdrom/sol_10_910_x86/Solaris_10/Product  SUNWi15cs

Aqui solo me falto el paquete SUNWi15cs.

Realizamos ajustes al kernel; ejecutando el archivo ajustakernel.sh que contiene:

projadd -U oracle -K “project.max-shm-memory=(priv,4g,deny)” oracle
projmod -sK “project.max-sem-nsems=(priv,256,deny)” oracle
projmod -sK “project.max-sem-ids=(priv,100,deny)” oracle
projmod -sK “project.max-shm-ids=(priv,100,deny)” oracle

#sh ajustakernel.sh

Asignamos password al usuario oracle:

#passwd oracle

Damos logout a root y Nos logeamos como oracle. Copiamos los zips de la base a /export/home/oracle. Y luego extraemos la informacion de ellos:

#unzip solaris.x64_11gR2_database_1of2.zip

#unzip solaris.x64_11gR2_database_2of2.zip

#cd database

#./runInstaller

y comenzamos la instalacion del software.

Advertisement
Categorías:Oracle
  1. Aún no hay comentarios.
  1. Aún no hay trackbacks

Deja un comentario

Fill in your details below or click an icon to log in:

Logo de WordPress.com

You are commenting using your WordPress.com account. Log Out / Cambiar )

Twitter picture

You are commenting using your Twitter account. Log Out / Cambiar )

Facebook photo

You are commenting using your Facebook account. Log Out / Cambiar )

Connecting to %s

Seguir

Get every new post delivered to your Inbox.