Deploy oracle 11g R2 on CentOS 6.3 x86-64 (1)

We need to download the required oracle 11g R2 from the official website and

uncompress it in the system directory such as /opt.

1. create user and group which are need of oracle,user name is oracle,

group name is oinstall and dba ,and you should set password for oracle user.

groupadd oinstall

groupadd dba

useradd -g oinstall -G dba oracle

passwd oracle

2. create oracle base dictionary,for example /opt/oracle ,

modify owner to oracle, and ower group is oinstall,afterwards set permission for

the dictionary.

mkdir/opt/oracle

chown R oracle:oinstall/opt/oracle

chmod -R 775 /opt/oracle

3. configure environment variables

vim ~oracle/.bash_profile

add the following content to the end of .bash_profile:

umask022

export ORACLE_BASE=/opt/oracle

export ORACLE_SID=orcl

export DISPLAY=0.0export.UTF8

4. configure the limit of kernel and session.

vim /etc/sysctl.conf

add the following content to the end of sysctl.conf

fs.aiomaxnr=1048576

fs.filemax=6815744

kernel.shmni=4096

kernel.sem=25032000100128

net.ipv4.ip_local_port_range=900065500

net.core.rmem_default=262144

net.core.rmem_max=4194304

net.core.wmem_default=262144

net.core.wmem_max=1048576

save and exit

5. execute “sysctl –p” to make the kernel configuration take effect.

6. edit file /etc/pam.d/login

vim /etc/pam.d/login

add “session required pam_limits.so” to the end of file login.

save and exit.

7. set resource restrictions for oracle users

vim /etc/security/limits.conf

add the following parameter to the end of file limits.conf

Oracle soft nprc 8192

Oracle hard nprc 16384

Oracle soft nofile 32768

Oracle hard nofile 65536

save and exit.

8. Dependency package preparation

The following is the oracle 11g R2 official documentation for the RHEL 6 x86_64 series dependency package requirements

binutils-2.20.51.0.2-5.11.el6 (x86_64)

compat-libcap1-1.10-1 (x86_64)

compat-libstdc++-33-3.2.3-69.el6 (x86_64)

compat-libstdc++-33-3.2.3-69.el6.i686

gcc-4.4.4-13.el6 (x86_64)

gcc-c++-4.4.4-13.el6 (x86_64)

glibc-2.12-1.7.el6 (i686)

glibc-2.12-1.7.el6 (x86_64)

glibc-devel-2.12-1.7.el6 (x86_64)

glibc-devel-2.12-1.7.el6.i686

ksh

libgcc-4.4.4-13.el6 (i686)

libgcc-4.4.4-13.el6 (x86_64)

libstdc++-4.4.4-13.el6 (x86_64)

libstdc++-4.4.4-13.el6.i686

libstdc++-devel-4.4.4-13.el6 (x86_64)

libstdc++-devel-4.4.4-13.el6.i686

libaio-0.3.107-10.el6 (x86_64)

libaio-0.3.107-10.el6.i686

libaio-devel-0.3.107-10.el6 (x86_64)

libaio-devel-0.3.107-10.el6.i686

make-3.81-19.el6

sysstat-9.0.4-11.el6 (x86_64)

Find the dependent packages and install them with the command “rpm -ivh”

9. The formal installation

Log out the root user, log in with the oracle user, and execute./runInstall to start the installation.

 

正式安装前检测,缺少的而且全是i386依赖包。


Download to the missing i386 dependency packages, as follows:

compat-libstdc++-33-3.2.3-61.i386.rpm

libaio-0.3.105-2.i386.rpm

libaio-devel-0.3.105-2.i386.rpm

libgcc-3.4.6-3.1.i386.rpm

libstdc++-3.4.6-11.i386.rpm

pdksh-5.2.14-1.i386.rpm

unixODBC-2.2.11-7.1.i386.rpm

unixODBC-devel-2.2.11-7.1.i386.rpm

 

Upload them to the system and install them separately by rpm-ivh package,

which can be completed successfully.

Log out the root user and switch to oracle user to execute./runInstall

You are prompted to execute both scripts as root.

After the script executes successfully, click OK

Browser input: https://localhost:1158/em, the user name is “sys” and password is “Test-oracle3”

Connect As is: SYSDBA;And then I’m gonna login

By now CentOS 6.3 x86_64 platform, oracle 11g R2 is basically installed.

For oracle ,add system service, let oracle boot automatically, will be introduced in the future.

One Reply to “Deploy oracle 11g R2 on CentOS 6.3 x86-64 (1)”

  1. I truly love your website.. Very nice colors & theme. Did you develop this site yourself?
    Please reply back as I’m attempting to create my very own blog and want
    to learn where you got this from or exactly what the theme is named.
    Cheers!

Leave a Reply