1. Obtain the Oracle 10g Installation File
2. Configure the installation environment for Debian
2.1 configure sysctl. conf
# Vi/etc/sysctl. conf
Add the following content to the end of the 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
Make the modification take effect:
#/Sbin/sysctl-p
Check whether it takes effect:
#/Sbin/sysctl-a | grep sem
#/Sbin/sysctl-a | grep shm
#/Sbin/sysctl-a | grep file-max
#/Sbin/sysctl-a | grep ip_local_port_range
2.2 edit the pam. d File
# Vi/etc/pam. d/login
Append session required/lib/security/pam_limits.so to the end of the file
2.3 disable SELINUX items
# Vi/etc/selinux/config
Set SELINUX = disabled
2.4 users required to add oracle
# Groupadd oinstall
# Groupadd dba
# Useradd-d/home/oracle-s/bin/sh-m oracle
# Passwd oracle
2.5 create a directory required for oracle Installation and grant permissions
# Mkdir-p/opt/data1/app
# Chown-R oracle. oinstall/opt/data1/app/
# Chmod-R 755/opt/data1/app/
# Mkdir/DISCARD
# Chown-R oracle. oinstall/DISCARD
# Chmod-R 755/DISCARD