Ubuntu 12.04 (32-bit) install Oracle 11g (32-bit)

Source: Internet
Author: User
Tags addgroup

The installation process (the main process is to copy someone else's tutorial directly) and questions:

1. Update the system to the latest :

sudo apt-get update
sudo apt-get dist-upgrade

2. If you are using Ubuntu that is not a desktop version (such as Ubuntu Server), you need to install a desktop program because the graphical interface is required for Oracle installation:

sudo apt-get install Gnome-core

Believe that a lot of the use of the desktop version, then this step is not required.

3. installing the Missing packages

1). sudo apt-get install gcc make binutils lesstif2 libc6 libc6-dev rpm libmotif3 libaio1 Alien

2). sudo apt-get install rpm libaio1 ksh libtool libstdc++5 build-essential

4. Modify the Ubuntu version to spoof the Oracle Setup program. (Oracle itself does not support Ubuntu to install, so you have to cheat Oracle for installation)

need to create a file in the/etc/directory redhat-release, need permission to create, and then add the following content

$ sudo gedit/etc/redhat-release

Add the following line after saving.

Red Hat Linux Release 3.1 (Drupal)

5. create a user.

1) login root User: Su-

(If your root password is not set manually, use the sudo passwd root command to set it up and log in again).

2) Create an Oracle user and two groups for the setup program.

First check if they already exist:

$grep Oinstall/etc/group

$grep Dba/etc/group

$grep Nobody/etc/group

If they are not yet in the system, create them.

$sudo AddGroup Oinstall

$sudo AddGroup dba

$sudo AddGroup Nobody

$sudo useradd-m-G oinstall-g dba-p passwd-d/home/oracle-s/bin/bash Oracle

$sudo Usermod-g Nobody nobody

Note: If you do not understand the above parameters, please use the command: Man Useradd view.

Assigning Passwords to Oracle Users

sudo passwd Oracle

6 , adding users to the Sudoer list

sudo gedit/etc/sudoers

Under Root all= (All), add the following line:

Oracle All= (All) all

Save.

Note: Linux defaults to not adding users to the Sudoers list, and requires root to manually add the account to the Sudoers list for the normal account to execute the sudo command.

7 , create an Oracle installation directory.

#mkdir-P/OPT/ORA10

#chown-R oracle:oinstall/opt/ora*
#chmod-R 775/opt/ora*

You generate the run-time path for Oracle and grant write permissions to the Oracle user to execute permissions to the DBA group.

8 , and system environment configuration.

1) Add the following line to the/etc/sysctl.conf file:

Execute the sudo gedit/etc/sysctl.conf command to edit the 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 to run:

$sudo sysctl-p

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

* Soft Nproc 2407

* Hard Nproc 16384

* Soft Nofile 1024

* Hard Nofile 65536

3) Establish a soft connection:

$sudo ln-s/usr/bin/awk/bin/awk

$sudo ln-s/usr/bin/rpm/bin/rpm

$sudo ln-s/usr/bin/basename/bin/basename

4) Modify the environment variables for Ubuntu Oracle users.

Edit: GEDIT/HOME/ORACLE/.BASHRC file, add:

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/apache/bin: $PATH

9. Install Oracle

Log off after completion and sign in with the Oracle user. After extracting the downloaded zip file, the database folder is generated.

CD into database.

Execution:./runinstaller

After you start the installation graphical interface, you may find text garbled

At this point, you can close the interface, first in the terminal input:

Export Lang=en_us

And then execute./runinstalle Step-by-step installation is complete!

Ubuntu 12.04 (32-bit) install Oracle 11g (32-bit)

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.