Lista de chequeo para instalar linux.
: Bajo root
Mem : 512MB
Swap : 1GB
Disk space in /tmp : 400MB
Disk space for software file: 2.5GB
Disk space for data file: 1.2GB
Para verificar la memoria total:
grep MemTotal /proc/meminfo
Para Swap
grep SwapTotal /proc/meminfo
df –k /tmp
Para verificar la versión de linux:
cat /etc/issue
Para verificar el kernel
uname –r
rpm –q glibc
Crear oinstall y dba groups
Para verificar si existe:
grep oinstall /etc/group
grep dba /etc/group
/usr/abin/groupadd oinstall
/usr/abin/groupadd dba
Para verificar el usuario oracle
id oracle
Par crearlo:
useradd -g oinstall –G dba oracle
Si ya existe ejecutar
usermod –g oinstall –G dba oracle
passwd oracle
Crear directories
/u01/app/oracle
/u02/oradata
mkdir –p /u01/app/oracle
mkdir /u02/oradata
chown –R oracle:oinstall /u01/app/oracle /u02/oradata
chmod –R 775 /u01/app/oracle /u02/oradata
Kernel parameters
Semmsl 250 /proc/sys/kernel/sem
Semmns 32000
Semopm 100
Semmni 128
Shmall 2097152 /proc/sys/kernel/shmall
Shmmax la mitad del total de la memoria /proa/sys/kernel/shmmax
Shmmni 4096 /proc/sys/kernel/shmmni
File-max 65536 /proa/sys/fs/file-max
Nota: si existe un parametro con un valor mayor dejarlo y no modificar
Para ver los parametros
semmsl, semmns, semopm, and
semmni # /sbin/sysctl -a | grep sem
This command displays the value of the semaphore
parameters in the order listed.
semopm, and
semmni
shmall, shmmax,
and shmmni
# /sbin/sysctl -a | grep shm
file-max # /sbin/sysctl -a | grep file-max
ip_local_port_range # /sbin/sysctl -a | grep ip_local_port_
Using any text editor, create or edit the /etc/sysctl.conf
file and add or edit lines similar to the following:
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
By specifying the values in the /etc/sysctl.conf file, they
persist when you reboot the system.
b. Enter the following command to change the current values of
the kernel parameters:
# /sbin/sysctl -p
To increase the shell limits:
1. Add the following lines to /etc/security/limits.conf file:
* soft nproc 2047
* hard nproc 16384
* soft nofile 1024
* hard nofile 65536
2. Add the following line to the /etc/pam.d/login file, if it does not
already exist:
session required /lib/security/pam_limits.so
To set the oracle user’s environment, follow these steps:
1. Start another terminal session.
2. Enter the following command to ensure that X Window
applications can display on this system:
$ xhost +
3. Complete one of the following steps:
■ If the terminal session is not connected to the system where
you want to install the software, log in to that system as the
oracle user.
32 Oracle Database
■ If the terminal session is connected to the system where you
want to install the software, switch user to oracle:
$ su - oracle
4. To determine the default shell for the oracle user, enter the
following command:
$ echo $SHELL
5. Open the oracle user’s shell startup file in any text editor:
■ Bash shell (bash) on Red Hat:
$ vi .bash_profile
■ Bourne shell (sh), Bash shell on UnitedLinux, or Korn shell
(ksh):
$ vi .profile
■ C shell (csh or tcsh):
% vi .login
Oracle Database 33
6. Enter or edit the following line in the shell startup file, specifying
a value of 022 for the default file creation mask:
umask 022
7. Save the file and exit from the editor.
8. To run the shell startup script, enter the following command:
■ Bash shell on Red Hat:
$ . ./.bash_profile
■ Bourne shell, Bash shell on UnitedLinux, or Korn shell:
$ . ./.profile
■ C shell:
% source ./.login
9. If you determined that the /tmp directory had insufficient free
disk space when checking the hardware requirements, enter the
following commands to set the TEMP and TMPDIR environment
variables. Specify a directory on a file system with sufficient free
disk space.
■ Bourne, Bash, or Korn shell:
$ TEMP=/directory
$ TMPDIR=/directory
$ export TEMP TMPDIR
■ C shell:
% setenv TEMP /directory
% setenv TMPDIR /directory
10. If you are not installing the software on the local system, enter the
following command to direct X applications to display on the
local system:
■ Bourne, Bash, or Korn shell:
$ DISPLAY=local_host:0.0 ; export DISPLAY
■ C shell:
% setenv DISPLAY local_host:0.0
In this example, local_host is the host name or IP address of
the system you want to use to display the Installer (your
workstation or PC).
Oracle Database 35
11. Enter commands similar to the following to set the ORACLE_
BASE and ORACLE_SID environment variables:
■ Bourne, Bash, or Korn shell:
$ ORACLE_BASE=/u01/app/oracle
$ ORACLE_SID=sales
$ export ORACLE_BASE ORACLE_SID
■ C shell:
% setenv ORACLE_BASE /u01/app/oracle
% setenv ORACLE_SID sales
In these examples, /u01/app/oracle is the Oracle base directory
that you created earlier and sales is the name that you want to
call the database (typically no more than five characters).
12. Enter the following commands to ensure that the ORACLE_
HOME and TNS_ADMIN environment variables are not set:
■ Bourne, Bash, or Korn shell:
$ unset ORACLE_HOME
$ unset TNS_ADMIN
Installing J2EE and Web Cache (Java Developer Topology)
Installing Portal and Wireless Developer Topology (includes
OracleAS Infrastructure and Portal and Wireless Middle Tier)