Instalar Oracle 9i en Centos 5
Instalar Oracle 9i en Centos 5
for the oracle environment variables, i've copied all defined from the rhel4 system.
here it is:
# export LD_ASSUME_KERNEL=2.4.19
# Oracle Environment
export ORACLE_BASE=/apps/oracle
export ORACLE_HOME=$ORACLE_BASE/9270
export ORACLE_TERM=xterm
export NLS_LANG=AMERICAN;
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/lib
export LD_LIBRARY_PATH
here are some of the packages from my centos 5.3 x86_64 system.
these are part of my kickstart scripts. not all are needed if you are going to move or
copy and oracle install as there's no linking involved there.
compat-gcc-34-3.4.6.4 (x86_64)
compat-gcc-34-c++-3.4.6.4 (x86_64)
compat-glibc-2.3.4.2.26 (i386)
compat-glibc-2.3.4.2.26 (x86_64)
compat-glibc-headers-2.3.4.2.26 (x86_64)
compat-libgcc-296-2.96.138 (i386)
gcc-4.1.2.44.el5 (x86_64)
gcc-c++-4.1.2.44.el5 (x86_64)
glibc-2.5.34 (i686)
glibc-2.5.34 (x86_64)
glibc-common-2.5.34 (x86_64)
glibc-devel-2.5.34 (i386)
glibc-devel-2.5.34 (x86_64)
glibc-headers-2.5.34 (x86_64)
libaio-0.3.106.3.2 (i386)
libaio-0.3.106.3.2 (x86_64)
libaio-devel-0.3.106.3.2 (i386)
libaio-devel-0.3.106.3.2 (x86_64)
libcap-1.10.26 (x86_64)
libgcc-4.1.2.44.el5 (i386)
libgcc-4.1.2.44.el5 (x86_64)
hth.
UPDATE:
i've just tested this with RHEL5 update 4 x86_64 - works perfectly fine.
sysctl.conf
# Oracle settings
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586
net.ipv4.tcp_wmem = 262144 262144 262144
net.ipv4.tcp_rmem = 4194304 4194304 4194304
Note: You may find the parameters mentioned above already present in the
/etc/sysctl.conf file. If they have a value lower then mentioned above then make sure
you change it, but if they have a larger value then perhaps its safe to leave it as is.
Now setup User that we will use as Oracle owner and the groups that it will need for
installing and managing Oracle.
/usr/sbin/groupadd oinstall
/usr/sbin/groupadd dba
/usr/sbin/groupadd oper
/usr/sbin/useradd -g oinstall -G dba,oper oracle
/usr/bin/passwd oracle
Create directories where the Oracle Software and database will be installed.
mkdir -p /u01/app/oracle/product/11.2.0/db_1
chown -R oracle:oinstall /u01
chmod -R 0775 /u01
/*
The above directory structure is designed to comply with OFA
(Oracle Flexible Architecture) i.e. a directory structure to
support multiple oracle software installations.
ORACLE_BASE=/u01/app/oracle
-- Base directory for all oracle installations.
and so on....
*/
Where "nproc" is the maximum number of processes available to the user and "nofiles"
is the number of open file descriptors.
Open /etc/pam.d/login and add the following line if it is already not there.
SELINUX=disabled
If you leave SELINUX=enforcing then you may get an error later while starting sqlplus:
sqlplus: error while loading shared libraries:
/usr/lib/oracle/default/client64/lib/libclntsh.so.11.1: cannot restore segment
prot after reloc: Permission denied
Now we need to make sure we have all necessary packages for Oracle. Put your Linux
Media into DVD and go to the "Server" directory.