Install oracle in Linux:
Oracle claims that the installation of Oracle9i Database in Linux requires at least MB of memory and at least 1 GB or twice
Swap space with a memory size. For servers with a system memory greater 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 and allocate about 1 GB of swap space, you can also run Oracle
Database.
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 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/* 100'
# 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:
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.
Reference: http://www.chinaunix.net/jh/19/446039.html