Summary of Oracle Installation in Linux

Source: Internet
Author: User
Tags i18n

Oracle claims that the installation of the Oracle9i database in Linux requires at least MB of memory and at least 1 GB or two times of memory swap space. For servers with a system memory larger than 2 GB, the swap space can be between 2 gb-4gb.

If you want to try Oracle9i on a general PC with only MB of memory, you can run the Oracle database normally when 1 GB of swap space is allocated.

To check the memory space, log on to Linux and run the following command in the command line mode (bash environment:

Grep MemTotal/proc/meminfo

To check the swap space, run the following command on the command line:

Grep SwapTotal/proc/meminfo

1. decompress the. cpio file.

# Cpio-idvm <lnx_920_disk1.cpio
# Cpio-idvm <lnx_920_disk2.cpio
# Cpio-idvm <lnx_920_disk3.cpio

Generate three directories: Disk1, Disk2, and Disk3 in the current directory:

2. Patch

Unzip lerpm.zip
# Rpm-ivh *. i586.rpm -- nodeps -- force

3. Create users and groups

# Groupadd dba
# Mkdir/opt/OracleHome
# Adduser-u 499-d/opt/OracleHome/-g dba oracle

Note:-u can be 1-500 (system user)-g after being added to the private group dba

# Chown oracle. dba/opt/OracleHome/
# Mkdir/opt/OracleHome/Ora9i
# Chown oracle. dba/opt/OracleHome/Ora9i
# Touch/etc/rac_on
# Mkdir/opt/tmp
# Chmod 1777/opt/tmp
# Cp oracle. bashrc/opt/OraclHome/. bashrc

4. linux System Optimization
# Dd if =/dev/zero of =/opt/tmpswap bs = 1 k count = 1024000
# Chmod 600/opt/tmpswap
# Mkswap/opt/tmpswap
# Swapon-v/opt/tmpswap
# Sysctl-w kernel. sem = "250 32000 100 128"
# Sysctl-w kernel. shmmax = 'expr 512 \ * 1024 \ * 1024'
# Echo "kernel. sem = 250 32000 100 128">/etc/sysctl. conf
# Echo "kernel. shmmax = 'expr 512 \ * 1024 \ * 1024 '">/etc/sysctl. conf

Note: Check the changes in/etc/sysctl. conf after the preceding two lines are executed.

# Echo 65536>/proc/sys/fs/file-max
# Ulimit-n 65536
# Ulimit-u 16384

Note: The above three lines of commands are system optimization. We recommend that you add them to the/etc/rc. local file. The system is automatically optimized at each startup.

5. Install

# Xhost localhost
# Su-oracle
# Cd/opt/source/Disk1
#./RunInstaller

Note the following:

Select software only and run the dbca command to create a database.

1. Solution to font problems during installation:

# Unset LANG

If the preceding command cannot be executed, modify/root/. i18n and/etc/sysconfig/i18n.

# Vi/root/. i18n

NOTE: For the root user's language environment, comment out all the items and add a line of LANG = "en_US"

# Vi/etc/sysconfig/i18n

Note: Add a new user's language environment in the system (each time a user is added, copy it to its home directory to generate. i18n)

2. Errors During installation:

The first few errors are indicated by the error message. Only the last/opt/OraclHome/Oracle9i/ctx/lib/file has an error and should be modified.

/Opt/OraclHome/Oracle9i/ctx/lib/env_ctx.mk File

Add a record in INSO_LINK = $ (LDLIBFLAG) dl

3. oracle User SHELL Problems

# Userdel oracle
# Adduser-u 499-d/opt/OracleHome/-g dba oracle

TIPS:

# Hdparm-t/dev/hda: Check the read/write speed of the hard disk. If it is only about 2 MB, run the command. # hdparm-d 1/dev/hda: Enable the DMA function, you can add it to/etc/rc. local file.

(

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.