0% found this document useful (0 votes)
125 views4 pages

Instalar Oracle 9i en Centos 5

This document provides instructions for setting up an Oracle database environment on CentOS 5.3 x86_64. It explains that the only difference from an RHEL 4 environment is commenting out the LD_ASSUME line. It also lists packages needed and configuration changes like kernel parameters, user/group creation, directory structure, and SELinux settings.

Uploaded by

edisan2005
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
125 views4 pages

Instalar Oracle 9i en Centos 5

This document provides instructions for setting up an Oracle database environment on CentOS 5.3 x86_64. It explains that the only difference from an RHEL 4 environment is commenting out the LD_ASSUME line. It also lists packages needed and configuration changes like kernel parameters, user/group creation, directory structure, and SELinux settings.

Uploaded by

edisan2005
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 4

i've tried this on Centos 5.3 x86_64. it shold also work with RHEL 5.x installs.

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

# Set shell search paths


export PATH=$PATH:$ORACLE_HOME/bin:/apps/scripts
notice that the LD_ASSUME is commented out. that's the only difference between
centos 5.3 x86_64 and an rhel4 x86_64 oracle environment declarations.
if that line is enabled and used by the oracle account, i get errors like the ff:

[oracle@UX0107 ~]$ clear


clear: error while loading shared libraries: libdl.so.2: wrong ELF class:
ELFCLASS32
[oracle@UX107 ~]$ sqlplus
sqlplus: error while loading shared libraries: libdl.so.2: wrong ELF class:
ELFCLASS32

and that's basically it:

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.

CAUTION: Oracle 9i R2 on RHEL5 or CENTOS 5.x is not a supported combination.


so don't try running this in production and then call Oracle if you have problems. :)

UPDATE:
i've just tested this with RHEL5 update 4 x86_64 - works perfectly fine.

CAMBIOS A TENER EN CUENTA

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.

-- Make the kernel parameters changes effective immediately:


# /sbin/sysctl -p

-- Verify the parameters are changed or not?


# /sbin/sysctl -a | grep name_of_kernel_parameter -- e.g. shmall

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.

ORACLE_HOME=ORACLE_BASE/product/11.2.0/db_1 -- 11.2.0 installation 1.


ORACLE_HOME=ORACLE_BASE/product/11.2.0/db_2 -- 11.2.0 installation 2.
ORACLE_HOME=ORACLE_BASE/product/10.2.0/db_1 -- 10.2.0 installation 1.

and so on....
*/

Now set the shell limits for the user Oracle.


Open /etc/security/limits.conf and add these lines.

oracle soft nproc 2047


oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536

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.

session required pam_limits.so


Disable secure linux by editing the /etc/selinux/config file, making sure the SELINUX
flag is set as follows:

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.

You might also like