Installation environment: Ubuntu 7.10 and Oracle 10.2.0 Enterprise
I. Check hardware requirements and memory hard disk requirements.
Memory 512 M, swap partition 500 M
2. Install the required package
Sudo apt-get install gcc make binutils lesstif2 libc6 libc6-dev rpm libmotif3 libaio1 libstdc ++ 5 alien
3. Add users and groups
Sudo groupadd oinstall
Sudo groupadd dba
Sudo groupadd plugin
Sudo useradd-g oinstall-G dba oracle
Sudo passwd oracle
4. Copy the oracle Installation File to the/u01 directory and decompress the package to set permissions.
Sudo mkdir/u01
Sudo chown-R oracle/u01
Sudo chmod-R 777/u01
The Oracle decompression directory is/u01/ORACLE10GR2/database.
5. Modify sysctl. conf.
Sudo gedit/etc/sysctl. conf
Add the following lines:
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
Run sudo sysctl-p to make the settings take effect.
6. Modify limits. conf
Sudo gedit/etc/security/limits. conf
Add
* Soft nproc 2407
* Hard nproc 16384
* Soft nofile 1024
* Hard nofile 65536
7. Create an oracle Installation Directory
Sudo mkdir-p/u01/app/oracle/product/10.2.0/db_1
Sudo chown-R oracle. oinstall/u01
8. Create a/etc/RedHat-release file and add downstream
Redhat-4
Or Red Hat Linux release 4.1.
8. Set Environment Variables
Sudo gedit/home/oracle/. profile
Add the following lines
# Add for oracle
ORACLE_BASE =/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME = $ ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
ORACLE_SID = orcl; export ORACLE_SID
ORACLE_TERM = xterm; export ORACLE_TERM
PATH =/usr/sbin: $ PATH; export PATH
PATH = $ ORACLE_HOME/bin: $ PATH; export PATH
LD_LIBRARY_PATH = $ ORACLE_HOME/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH = $ ORACLE_HOME/JRE: $ ORACLE_HOME/jlib: $ ORACLE_HOME/rdbms/jlib; export CLASSPATH
If [$ USER = "oracle"]; then
If [$ SHELL = "/bin/ksh"]; then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Fi
# End add for oracle