Oracle 10g installation in Ubuntu 10.10

Source: Internet
Author: User
Tags addgroup

Software environment: Ubuntu 10.10, Java1.6u22

Hardware configuration: Core-core CPU, 2 GB memory, 4 GB swap partition, GB hard disk

1. Installation preparation

Before the installation starts, it is best to install java first. Do not use the jdk that comes with Oracle. In this way, make sure that your system meets the minimum installation requirements of Oracle:

? 512 MB memory

? 1 GB swap Partition

? Make sure you have installed gcc, make, binutils, lesstif2, libc6, libc6-dev, libstdc +

+ 5, libaio1, mawk, and rpm packages. Note: libstdc + is installed by default in ubuntu 10.10.

+ 6, instead of libstdc ++ 5, so sudo apt-get libstdc ++ 5 is required (STRANGE: libstdc ++ 5 is not found in 9.10, and 10.10 is back again)

Run the following command to verify the system memory, swap partition, and disk status:

# Grep MemTotal/proc/meminfo

# Grep SwapTotal/proc/meminfo

# Df-h

1.1. Set users

We need to create an oracle user for the installer and two groups. www.bkjia.com first check whether they already exist:

$ Grep oinstall/etc/group

$ Grep dba/etc/group

$ Grep nobody/etc/group

If they are not in the system, create them.

$ Sudo su

# Addgroup oinstall

# Addgroup dba

# Addgroup nobody

# Useradd-g oinstall-G dba oracle

# Passwd oracle

# Usermod-g nobody

Note: The password given with the useradd-p option is not easy to use, so I use a separate command passwd to specify the oracle user password.

1.2. Create a directory and Set permissions

Note: The default oracle directory is in/home/oracle. For management considerations, we recommend that you install oracle on an independent partition, here change to/opt/ora10g and/opt/oradata:

# Mkdir-p/opt/ora10g

# Mkdir-p/opt/oradata

# Chown-R oracle: oinstall/opt/ora *

# Chmod-R 775/opt/ora *

1.3. Change configuration

1. Modify the sysctl. conf file.

# Gedit/etc/sysctl. conf

Add the following lines to the/etc/sysctl. conf file:

Kernel. shmall = 2097152

Kernel. shmmax = 2147483648

Kernel. shmmni = 4096

Kernel. sem = 250 32000 100 128

Fs. file-max = 65536

Net. ipv4.ip _ local_port_range = 1024 65000

Update the system and run:

# Sysctl-p

  • 1
  • 2
  • 3
  • Next Page

Related Article

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.