Today, I sorted out the installation process of Oracle 10g on Ubuntu 9.04, encountered several problems during the installation process, and finally finished it after a long time. I will explain it during the installation process.
First, you need to install some necessary packages and install them using synaptic package manager (new ).
Alien binutils gcc ia32-libs lesstif2 lesstif2-dev lib32stdc + + 6 lib32z1 libaio1 libc6 libc6-dev libc6-dev-i386 libc6-i386 libmotif3 make libstdc + + 5 rpm jdk1.6
Some packages are associated. If OUI is not fully started after installation, an error occurs, resulting in no installation.
Create user
Since Oracle must be installed by an Oracle user, you must first create an Oracle user and the associated user group.
The blue text is the code
$ Sudo addgroup oinstall create an oinstall User Group
$ Sudo addgroup dba create dba User Group
$ Sudo addgroup nobody
$ Sudo useradd-g oinstall-G dba-d/home/oracle-m-s/bin/bash oracle
$ Sudo usermod-g nobody
# Create an oracle user password
$ Sudo passwd oracle
Create installation directory
$ Sudo mkdir-p/opt/oracle
$ Sudo chown-R oracle: oinstall/opt/oracle/
$ Sudo chmod-R 755/opt/oracle/
Modify the Linux kernel parameters. If the parameter value of the existing system is greater than the required value, you do not need to modify it.
$ Sudo vim/etc/sysctl. conf
# Press I to enter edit and add the following parameters
Kernel. shmmax = 3147483648
Kernel. shmmni = 4096
Kernel. shmall = 2097152
Kernel. sem = 250 32000 100 128
Fs. file-max = 65536
Net. ipv4.ip _ local_port_range = 1024 65000
After editing, Press esc to exit the editing, shift + ZZ to exit and save.
$ Sudo vim/etc/security/limits. conf
# Add the following parameters
Oracle soft nofile 65536
Oracle hard nofile 65536
Oracle soft nproc 16384
Hard nproc 16384
# Make the modified parameters take effect
$ Sudo sysct-p
Create link:
This configuration is required when $ sudo ln-s/usr/bin/awk finally executes the root. sh script.
$ Sudo ln-s/usr/bin/rpm
$ Sudo ln-s/usr/bin/basename