DEBIAN7 installation oracle11g

Source: Internet
Author: User

1, the installation must be package

Apt-get install gcc g++ make binutils libc6 libc6-dev libstdc++6 libstdc++5 rpm gawk Alien Ksh lesstif2 libaio1 Linux-he Aders elfutils libaio-dev sysstat unixodbc-bin unixodbc-dev Pdksh

There is also a lack of Java package, go to the official installation is OK.

2, adding users and groups

Groupadd Oinstall

Groupadd dba

Useradd oracle-m-d/home/oracle-g oinstall-g dba-s/bin/bash

passwd Oracle

3, check the installation environment, here directly written a small script

echo "SEM:"; echo "min 250 32000 100 128"; echo "is" ' Cat/proc/sys/kernel/sem '; Echo /

echo "Shmall:"; echo "min 2097152"; echo "is" ' Cat/proc/sys/kernel/shmall '; Echo /

echo "Shmmax-should be able-to-hold the Sga-max 4g-1byte:", echo "is" ' Cat/proc/sys/kernel/shmmax '; Echo /

echo "Shmmni:"; echo "min 4096"; echo "is" ' Cat/proc/sys/kernel/shmmni '; Echo /

echo "File-max:"; echo "min 6815744"; echo "is" ' Cat/proc/sys/fs/file-max '; Echo /

echo "Ip_local_port_range:"; echo "Min/max 9000 65500"; echo "is" ' Cat/proc/sys/net/ipv4/ip_local_port_range '; Echo /

echo "Rmem_default:"; echo "min 262144"; echo "is" ' Cat/proc/sys/net/core/rmem_default '; Echo /

echo "Rmem_max:"; echo "min 4194304"; echo "is" ' Cat/proc/sys/net/core/rmem_max '; Echo /

echo "Wmem_default:"; echo "min 262144"; echo "is" ' Cat/proc/sys/net/core/wmem_default '; Echo /

echo "Wmem_max:"; echo "min 1048576"; echo "is" ' Cat/proc/sys/net/core/wmem_max '; Echo /

echo "AIO-MAX-NR:"; echo "Max 1048576"; echo "is" ' Cat/proc/sys/fs/aio-max-nr '; Echo

4. Check the required parameters

echo "Kernel.sem = 32000" >>/etc/sysctl.conf

echo "Kernel.shmall = 2097152" >>/etc/sysctl.conf

# !!!! Needs to fit YOUR SGA (=main memory for database, is sure to has enough RAM for PGA etc.)!!!!

echo "Kernel.shmmax = 1200000000" >>/etc/sysctl.conf

#echo "Kernel.shmmni = 4096" >>/etc/sysctl.conf

echo "Fs.file-max = 6815744" >>/etc/sysctl.conf

#echo "Net.ipv4.ip_local_port_range = 65000" >>/etc/sysctl.conf

echo "Net.core.rmem_default = 262144" >>/etc/sysctl.conf

echo "Net.core.rmem_default = 262144" >>/etc/sysctl.conf

echo "Net.core.rmem_max = 4194304" >>/etc/sysctl.conf

echo "Net.core.wmem_default = 262144" >>/etc/sysctl.conf

echo "Net.core.wmem_max = 1048576" >>/etc/sysctl.conf

echo "FS.AIO-MAX-NR = 1048576" >>/etc/sysctl.conf

5, set limit

echo "Oracle soft Nproc 2047" >>/etc/security/limits.conf

echo "Oracle hard Nproc 16384" >>/etc/security/limits.conf

echo "Oracle Soft nofile 1024x768" >>/etc/security/limits.conf

echo "Oracle hard Nofile 65536" >>/etc/security/limits.conf

echo "Oracle Soft Stack 10240" >>/etc/security/limits.conf

6, set up the installation directory, my/datadisk space is the largest, put it in the face

Mkdir-p/datadisk/u01/app/oracle

Mkdir-p/datadisk/u01/oradata

Mkdir-p/datadisk/u01/flash_recovery_area

Chown-r oracle:oinstall/datadisk/u01

Chmod-r 775/datadisk/u01/

To prevent errors, add the following link directory

Ln-s/usr/bin/awk/bin/awk

Ln-s/usr/bin/basename/bin/basename

7, set display variable to show GUI installation

Switch to your current desktop login user execution: Xhost +, this command means allowing other users to use the current desktop environment

Switch back to Oracle user, export display=:0 (This is set under Debian7), then perform xclock to see the effect

8, for installation

./datadisk/oracle11g/database/runinstaller

9, the installation process encountered some problems

Basically are some links problem, with ln-s/usr/lib/xxxx.so/lib64 under basically OK. See Error log Resolution!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.