Oracle installs the summary under the Linux operating system

Source: Internet
Author: User
Tags chmod dba i18n mkdir oracle database
Oracle claims to install the Oracle9i database under Linux at least 512MB of memory and at least 1GB or twice times the memory size of the swap space, for the system memory is greater than 2GB of servers, swap space can be between 2gb-4gb.

If you are trying to try oracle9i on a normal PC with only 256M of memory, you can run the Oracle database normally if you have a 1GB swap space allocated.

To check the memory space, log on to Linux, and execute the following commands on the command line (Bash environment): grep memtotal/proc/meminfo

To check the swap space, execute the following command at the command line: grep swaptotal/proc/meminfo

1. Extract. cpio files

#cpio-IDVM < Lnx_920_disk1.cpio

#cpio-IDVM < Lnx_920_disk2.cpio

#cpio-IDVM < Lnx_920_disk3.cpio

Generates DISK1 and DISK2,DISK3 three directories under the current directory.

2. Patching

Unzip Oraclerpm.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 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=1k 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 128" >>/etc/sysctl.conf

#echo "kernel.shmmax= ' expr \* 1024 \* 1024 '" >>/etc/sysctl.conf

Note: Check the/etc/sysctl.conf changes after the last two lines are executed. #echo 65536 >/proc/sys/fs/file-max

#ulimit-N 65536

#ulimit-U 16384

Note: The three line command is System optimized and is recommended to be added to the/etc/rc.local file, which automatically optimizes every time the system starts

5. Installation

#xhost localhost

#su-oracle

#cd/opt/source/disk1

#./runinstaller

Here are a few things to note

Select Software only

Then use the command DBCA to create the database

1. Installation font Problem Resolution: #unset LANG

If the above instructions do not work, then modify/root/.i18n and/etc/sysconfig/i18n #vi/root/.i18n

Note: The root user's locale, comment out all items and add a row lang= "en_US" #vi/etc/sysconfig/i18n

Note: The new user's language environment is added to the system (each additional user copies it to its host directory generation. i18n)

2. Error during installation:

The first few follow the instructions for the error message,

Only the last/opt/oraclhome/oracle9i/ctx/lib/under a certain file error, should be modified

/OPT/ORACLHOME/ORACLE9I/CTX/LIB/ENV_CTX.MK file

Add a record $ (ldlibflag) DL to the inso_link= line

3.oracle user Shell has problems #userdel Oracle

#adduser-U 499-d/opt/oraclehome/-G DBA Oracle

Small cheats:

#hdparm-t/dev/hda view hard drive Read and write speed, if only 2 m or so, then execute

#hdparm-D 1/dev/hda turn on the DMA feature and add it to the/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.