For the installation process of Oracle 9i in Ubuntu, refer to this article. This article is mainly based on kubuntu to install Oracle 10g. Refer to this article to easily install 10g, however, oracle 9204 has encountered many obstacles and the installation is complete.
The installation process is as follows:
1. Space Requirements
/Tmp> 512 M boot 128 M swap 1024 M/2G/home 2 GB
2. Install the required software:
Gcc, libaio1, libc6, libstdc ++ 5, make, rpm, lesstif2, lesstif2-dev
Vufuture @ ubuntu :~ $ For I in gcc libaio1 libc6 libstic ++ 5 make rpm lesstif2 lesstif2-dev
> Do
> Sudo apt-get install $ I
> Done
3. Add the required users and groups:
Root @ ubuntu :~ # Groupadd dba
Root @ ubuntu :~ # Useradd-g dba-G dba-d/home/oracle-s/bin/bash oracle
Root @ ubuntu :~ # Passwd oracle
Enter new UNIX password:
Retype new UNIX password:
Passwd: password updated successfully
4. Create the installation directory and grant the following permissions:
Root @ ubuntu :~ # Mkdir-p/home/oracle/product/9.2.0
Root @ ubuntu :~ # Chown-R oracle: dba/home/oracle
Root @ ubuntu :~ # Mkdir/var/opt/oracle
Root @ ubuntu :~ # Chown-R oracle: dba/var/opt/oracle
Root @ ubuntu :~ # Chmod 755/var/opt/oracle
5. Set oracle environment variables:
Vi/home/oracle/. bash_profile
Add:
Export ORACLE_BASE =/home/oracle
Export ORACLE_HOME = $ ORACLE_BASE/product/9.2.0 export ORACLE_SID = ora9i
Export PATH = $ PATH: $ ORACLE_HOME/bin
Export DISPLAY = localhost: 0.0
6. Modify core parameters:
Root @ ubuntu :~ # Vi/etc/sysctl. conf
# Kernel. shmall = 2097152
Kernel. shmmax = 2147483648
# Kernel. shmmni = 4096
Kernel. sem = 250 32000 100 128
Net. core. rmem_default = 262144
Net. core. rmem_max = 262144
Net. core. wmem_default = 262144
Net. core. wmem_max = 262144
# Fs. file-max = 65536
Net. ipv4.ip _ local_port_range = 1024 65000