Sei sulla pagina 1di 2

Repositorio yum root# cd /etc/yum.repos.d root# wget root# vi /etc/yum.repos.d/public-yum-el5.

repo // podemos usar gedit o vi para ed itar [ol5_u6_base] name=Oracle Linux $releasever - U6 - $basearch - base baseurl=$basearch/ gpgkey= gpgcheck=1 enabled=1 [el5_addons] name=Enterprise Linux $releasever - $basearch - addons baseurl=$basearch/ gpgkey= gpgcheck=1 enabled=1 [el5_oracle_addons] name=Enterprise Linux $releasever - $basearch - oracle_addons baseurl= $basearch/ gpgkey= gpgcheck=1 enabled=1 root# yum list --> debe actualizar la lista de paquetes. PAQUETE ORACLE-VALIDATED root# yum install oracle-validated CONFIGURACION DEL USUARIO ORACLE Para cambiar la contrasea como el usuario root: root# passwd oracle Para crear los directorios y cambiar los permisos: root# mkdir -p /u01/app/oracle root# chown oracle:oinstall /u01 -R Para agregar el grupo oper, que no ha creado el paquete oracle-validated, ejecut amos los siguientes comandos: root# groupadd -g 54323 oper root# usermod -G dba,oper oracle VARIABLES DE ENTORNO DE ORACLE [oracle@localhost ~]$ gedit /home/oracle/.bash_profile # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi #oracle ORACLE_SID=orcl export ORACLE_SID ORACLE_BASE=/u01/app/oracle export ORACLE_BASE ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1 export ORACLE_HOME EDITOR=vi

export EDITOR # User specific environment and startup programs PATH=$ORACLE_HOME/bin:$PATH:$HOME/bin export PATH [oracle@localhost ~]$ . .bash_profile [oracle@localhost ~]$ env | grep ORACLE ORACLE_SID=orcl ORACLE_BASE=/u01/app/oracle ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1 ORACLEASM Y PARTICIONAMIENTO [oracle@localhost ~]$ su Password: [root@localhost ~]# yum install oracleasm [root@localhost~]# /etc/init.d/oracleasm configure Configuring the Oracle ASM library driver. This will configure the on-boot properties of the Oracle ASM library driver. The following questions will determine whether the driver is loaded on boot and what permissions it will have. The current values will be shown in brackets ('[]'). Hitting <ENTER> without typing an answer will keep that current value. Ctrl-C will abort. Default user to own the driver interface []: oracle Default group to own the driver interface []: oinstall Start Oracle ASM library driver on boot (y/n) [n]: y Scan for Oracle ASM disks on boot (y/n) [y]: y Writing Oracle ASM library driver configuration: done Initializing the Oracle ASMLib driver: [ OK ] Scanning the system for Oracle ASMLib disks: [ OK ] ETIQUETAR DISCOS [root@localhost ~]# fdisk /dev/sdb Command (m for help): p Disk /dev/sdb: 3221 MB, 3221225472 bytes 255 heads, 63 sectors/track, 391 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System Command (m for help): n Command action e extended p primary partition (1-4) p Partition number ( 1-4): 1 First cylinder (1-391, default 1): Using default value 1 - presionamos intro para aceptar el valor por defecto Last cylinder or +size or +sizeM or +sizeK (1-391, default 391): Using default value 391 - presionamos intro para aceptar el valor por defecto Command (m for help): w The partition table has been altered! //lo anterior para cada disco b,c,d,e...etc etc