Debian7 install Oracle11g notes. Read more: Install debian7.0wheezywww.linuxidc.comlinux2013-0584647.htm Debian7
Debian7 install Oracle 11g notes. About: U disk installation Debian 7.0 Wheezy http://www.linuxidc.com/Linux/2013-05/84647.htm Debian 7
Debian7 install Oracle 11g notes.
Related reading:
Install Debian 7.0 Wheezy on a USB flash drive
Debian 7.0 Wheezy released!
1. Installation Package is required
Apt-get install gcc g ++ make binutils libc6 libc6-dev libstdc ++ 6 libstdc + + 5 rpm gawk alien ksh lesstif2 libaio1 linux-headers elfutils libaio-dev sysstat unixodbc-bin unixodbc-dev pdksh
The java package is still missing. Go to the official website and install it.
2. Add users and groups
Groupadd oinstall
Groupadd dba
Useradd oracle-m-d/home/oracle-g oinstall-G dba-s/bin/bash
Passwd oracle
3. Check the installation environment. A small script is written here.
Echo "sem:"; echo "min 250 32000 100 128"; echo "is" 'cat/proc/sys/kernel/sem '; echo ;\
Echo "shmall:"; echo "min 2097152"; echo "is" 'cat/proc/sys/kernel/shmall'; echo ;\
Echo "shmmax-shocould be able to hold the SGA-max 4G-1byte:"; echo "is" 'cat/proc/sys/kernel/shmmax '; echo ;\
Echo "shmmni:"; echo "min 4096"; echo "is" 'cat/proc/sys/kernel/shmmni'; echo ;\
Echo "file-max:"; echo "min 6815744"; echo "is" 'cat/proc/sys/fs/file-max '; echo ;\
Echo "ip_local_port_range:"; echo "min/max 9000 65500"; echo "is" 'cat/proc/sys/net/ipv4/ip_local_port_range '; echo ;\
Echo "rmem_default:"; echo "min 262144"; echo "is" 'cat/proc/sys/net/core/rmem_default '; echo ;\
Echo "rmem_max:"; echo "min 4194304"; echo "is" 'cat/proc/sys/net/core/rmem_max '; echo ;\
Echo "wmem_default:"; echo "min 262144"; echo "is" 'cat/proc/sys/net/core/wmem_default '; echo ;\
Echo "wmem_max:"; echo "min 1048576"; echo "is" 'cat/proc/sys/net/core/wmem_max '; echo ;\
Echo "aio-max-nr:"; echo "max 1048576"; echo "is" 'cat/proc/sys/fs/aio-max-nr '; echo;
4. Check required parameters.
Echo "kernel. sem = 250 32000 100 128">/etc/sysctl. conf
Echo "kernel. shmall = 2097152">/etc/sysctl. conf
#!!!! Needs to fit your sga (= main memory for database, be sure to have enough ram for PGA etc .)!!!!
Echo "kernel. shmmax = 1200000000">/etc/sysctl. conf
# Echo "kernel. shmmni = 4096">/etc/sysctl. conf
Echo "fs. file-max = 6815744">/etc/sysctl. conf
# Echo "net. ipv4.ip _ local_port_range = 1024 65000">/etc/sysctl. conf
Echo "net. core. rmem_default = 262144">/etc/sysctl. conf
Echo "net. core. rmem_default = 262144">/etc/sysctl. conf
Echo "net. core. rmem_max = 4194304">/etc/sysctl. conf
Echo "net. core. wmem_default = 262144">/etc/sysctl. conf
Echo "net. core. wmem_max = 1048576">/etc/sysctl. conf
Echo "fs. aio-max-nr = 1048576">/etc/sysctl. conf
5. set limit
Echo "oracle soft nproc 2047">/etc/security/limits. conf
Echo "oracle hard nproc 16384">/etc/security/limits. conf
Echo "oracle soft nofile 1024">/etc/security/limits. conf
Echo "oracle hard nofile 65536">/etc/security/limits. conf
Echo "oracle soft stack 10240">/etc/security/limits. conf
6. Create the installation directory. Put the directory where my/datadisk has the largest space.
Mkdir-p/datadisk/u01/app/oracle
Mkdir-p/datadisk/u01/oradata
Mkdir-p/datadisk/u01/flash_recovery_area
Chown-R oracle: oinstall/datadisk/u01
Chmod-R 775/datadisk/u01/
To prevent errors, add the following link directory
Ln-s/usr/bin/awk
Ln-s/usr/bin/basename
7. Set the DISPLAY variable to display gui installation.
Switch to your current desktop login user and execute: xhost +. This command allows other users to use the current desktop environment
Switch back to the oracle user, export DISPLAY =: 0 (this is set in debian7), and then execute xclock to check the effect.
8. Install
./Datadisk/oracle11g/database/runInstaller
9. Some problems encountered during installation
Basically, there are some connection problems. It is okay to use ln-s/usr/lib/xxxx. so/lib64. Solve the problem by checking the error log!