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 under the current directory.
2. Patch unzip into 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: After the preceding two commands are executed, check the changes in/etc/sysctl. conf. # 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. Installation # xhost localhost
# Su-oracle
# Cd/opt/source/Disk1
#./RunInstaller
Note:
Select software only
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 is incorrect.
/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
# Hdparm-d 1/dev/hda enable the DMA function and add it to the/etc/rc. local file.