Install Oracle11g in Ubuntu11.0432bit Environment

Source: Internet
Author: User
Install Oracle11g in Ubuntu11.0432bit Environment

Install Oracle 11g in Ubuntu 11.04 32bit Environment

Oracle 11g has been installed in your Ubuntu environment. We hereby record the installation process and keep it as a memorandum.


1. system update sudo

Sudo apt-get update
Sudo apt-get upgrade

2. packagesudo required for system installation

Sudo su-
Apt-get install build-essential
Apt-get install libaio1
Apt-get install libaio-dev
Apt-get install unixODBC
Apt-get install unixODBC-dev
Apt-get install pdksh
Apt-get install expat
Apt-get install sysstat
Apt-get install libelf-dev
Apt-get install elfutils
Apt-get install lsb-cxx
Apt-get install ksh
Apt-get install libmotif3
Apt-get install alien
Apt-get install libtool
Apt-get install lsb-rpm

3. To avoid linking ctx/lib/ compilation errors, download libstdc ++ 5_3.3.6-25ubuntui386.deb and install it.

4. To avoid link errors during compilation, run the following command:

Sudo ln-s/usr/bin/awk
Sudo ln-s/usr/bin/rpm
Sudo ln-s/usr/bin/basename

Sudo ln-s/usr/lib/i386-linux-gnu/libc_nonshared.a/usr/lib
Sudo ln-s/usr/lib/i386-linux-gnu/libpthread_nonshared.a/usr/lib
Sudo ln-s/usr/lib/i386-linux-gnu/libstdc ++. so.5/usr/lib
Sudo ln-s/usr/lib/i386-linux-gnu/libstdc ++. so.6/usr/lib
Sudo ln-s/lib/i386-linux-gnu/

5. Modify system parameters

Sudo su-
# Backup
Cp/etc/sysctl. conf/etc/sysctl. original

Vi/etc/sysctl. conf, add the following content
# Oracle 11gR2 entries
Fs. aio-max-nr = 1048576
Fs. file-max = 6815744
Kernel. shmall = 2097152
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
Kernel. shmmax = 2147483648

Note: kernel. shmmax = max possible value, e.g. size of physical memory in bytes

# Start the new system parameter Load new kernel parameters

6. Create users and groups

Sudo groupadd oinstall
Sudo groupadd dba
Sudo groupadd nobody
Sudo usermod-g nobody
Sudo useradd-g oinstall-G dba-d/home/oracle-s/bin/bash oracle
Sudo password oracle
Chown-R oracle: dba/home/oracle

7. Modify/etc/security/limits. conf and add the following content:

Oracle soft nproc 2047
Hard nproc 16384
Oracle soft nofile 1024
Oracle hard nofile 65536

8. Create an oracle Installation Directory

Chown-R oracle: oinstall/u01/app/oracle
Chmod-R 775/u01/app/oracle
Chown-R oracle: oinstall/u01/app/oraInventory
Chmod-R 775/u01/app/oraInventory


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: 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.