Software environment: Ubuntu 10.10, Java1.6u22
Hardware configuration: Core-core CPU, 2 GB memory, 4 GB swap partition, GB hard disk
1. Installation preparation
Before the installation starts, it is best to install java first. Do not use the jdk that comes with Oracle. In this way, make sure that your system meets the minimum installation requirements of Oracle:
? 512 MB memory
? 1 GB swap Partition
? Make sure you have installed gcc, make, binutils, lesstif2, libc6, libc6-dev, libstdc +
+ 5, libaio1, mawk, and rpm packages. Note: libstdc + is installed by default in ubuntu 10.10.
+ 6, instead of libstdc ++ 5, so sudo apt-get libstdc ++ 5 is required (STRANGE: libstdc ++ 5 is not found in 9.10, and 10.10 is back again)
Run the following command to verify the system memory, swap partition, and disk status:
# Grep MemTotal/proc/meminfo
# Grep SwapTotal/proc/meminfo
# Df-h
1.1. Set users
We need to create an oracle user for the installer and two groups. www.bkjia.com first check whether they already exist:
$ Grep oinstall/etc/group
$ Grep dba/etc/group
$ Grep nobody/etc/group
If they are not in the system, create them.
$ Sudo su
# Addgroup oinstall
# Addgroup dba
# Addgroup nobody
# Useradd-g oinstall-G dba oracle
# Passwd oracle
# Usermod-g nobody
Note: The password given with the useradd-p option is not easy to use, so I use a separate command passwd to specify the oracle user password.
1.2. Create a directory and Set permissions
Note: The default oracle directory is in/home/oracle. For management considerations, we recommend that you install oracle on an independent partition, here change to/opt/ora10g and/opt/oradata:
# Mkdir-p/opt/ora10g
# Mkdir-p/opt/oradata
# Chown-R oracle: oinstall/opt/ora *
# Chmod-R 775/opt/ora *
1.3. Change configuration
1. Modify the sysctl. conf file.
# Gedit/etc/sysctl. conf
Add the following lines to the/etc/sysctl. conf 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 and run:
# Sysctl-p