Ubuntu 10.10 Oracle 10g Installation Guide

Source: Internet
Author: User

Ubuntu 10.10 Oracle 10g Installation Guide

Ubuntu 10.10 Oracle 10g Installation Guide

Step 1: Download The oracle10 installation package (server and client)
Http://download.oracle.com/otn/linux/oracle10g/10201/10201_client_linux32.zip
Http://download.oracle.com/otn/linux/oracle10g/10201/10201_database_linux32.zip

Step 2: install the required package

32-bit: apt-get install gcc make binutils lesstif2 libc6 libc6-dev rpm libmotif3 libaio1 libstdc ++ 6 alien

64-bit: sudo apt-get install gcc libaio1 lesstif2 lesstif2-dev make libc6 libc6-i386 libc6-dev-i386 libstdc + + 5 lib32stdc + + 6 lib32z1 ia32-libs

When you use Ubuntu10.10 to install oracle, an error is reported. This indicates that libstdc ++ 6 is installed on Ubuntu by default, while libstc ++ 5 is used for oracle installation, you can use sudo apt-get install libstdc ++ 5.

Step 3: create a user

# Adduser oracle
Adding User "oracle "...
Adding new group "oracle" (1001 )...
Adding new user "oracle" (1002) to group "oracle "...
Create a home directory "/home/oracle "...
Copying file from "/etc/skel...
Enter a new UNIX Password:
Re-enter the new UNIX Password:
Passwd: the password is successfully updated.
Changing the user information for oracle
Enter the new value, or press ENTER for the default
Full Name []: oracle
Room Number []:
Work Phone []:
Home Phone []:
Other []:

Step 4: Modify settings

1) set the swap area

Oracle 10 Gb requires at least MB of memory and MB of swap space. You can use cat/proc/meminfo to view the swap space. If the swap space is smaller than MB, you need to increase the swap size.

Dd if =/dev/zero of = tmp_swap bs = 1 k count = 900000
Chmod 600 tmp_swap
Mkswap tmp_swap
Swapon tmp_swap

After installation, you can release the space.

Swapoff tmp_swap
Rm tmp_swap

The count value depends on the size of the SWAp zone.

2) Modify sysctl. conf.

Add the following row to/etc/sysctl. conf:

Kernel. shmmax = 3147483648
Kernel. shmmni = 4096
Kernel. shmall = 2097152
Kernel. sem = 250 32000 100 128
Fs. file-max = 65536
Net. ipv4.ip _ local_port_range = 1024 65000

Note: shmmax (maximum shared memory) is a very important parameter. It is set according to the memory of the machine, generally half of the physical memory.

3) Modify limits. conf

Add the following line to/etc/security/limits. conf:

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

4) Modify pam. d.

Add the following row to/etc/pam. d/login.

Session required pam_limits.so
Session required/lib/security/pam_limits.so

5) Make the modification take effect

Restart the system, or use sudo sysctl-p

6) generate the corresponding soft connection

Create ch. sh with the following content:

#! /Bin/bash
Ln-s/usr/bin/awk
Ln-s/usr/bin/rpm
Ln-s/usr/bin/basename
Mkdir/etc/rc. d
Ln-s/etc/rc0.d/etc/rc. d/rc0.d
Ln-s/etc/rc2.d/etc/rc. d/rc2.d
Ln-s/etc/rc3.d/etc/rc. d/rc3.d
Ln-s/etc/rc4.d/etc/rc. d/rc4.d
Ln-s/etc/rc5.d/etc/rc. d/rc5.d
Ln-s/etc/rc6.d/etc/rc. d/rc6.d
Ln-s/etc/init. d/etc/rc. d/init. d

After creation, use sudo chmod u + x ch. sh to change to executable, and sudo ch. sh to execute.

7) create a version declaration File

Add a declaration using sudo vi/etc/RedHat-release so that the installer considers it to be installed on a RedHat system, and redhat-release does not exist in Ubuntu. It is newly added.

Red Hat Linux release 3.1 (drupal)

8) Modify Environment Variables

Edit/home/oracle/. bashrc and add the following content.

Export ORACLE_HOME =/opt/ora10
Export ORACLE_OWNER = oracle
Export ORACLE_SID = ora1
Export ORACLE_TERM = xterm
Export PATH = $ ORACLE_HOME/bin: $ ORACLE_HOME/Apache/bin: $ PATH

For more details, please continue to read the highlights on the next page:

  • 1
  • 2
  • 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.