Oracle 11g installation references
1,
Install the dependency -------------- under the root user for Ubuntu12.04 32bit
Sudo apt-get update
Sudo apt-get dist-upgrade
Sudo apt-get install gcc make binutils libc6 libc6-dev lesstif 2 RPM libmotif3 libstdc ++ 5 libaio1 libaio-dev build-essential libaio1 gawk ksh libmotif3 alien libtool
If a package is not fully loaded in the future, you can view the error log/u01/app/oraInventory/logs/*. log
2. Create an ORACLE user under the root user
Sudo addgroup oinstall
Sudo addgroup dba
Sudo addgroup nobody
Sudo usermod-g nobody
Sudo useradd-g oinstall-G dba-m-d/home/oracle-s/bin/bash oracle
Sudo passwd oracle
3. Check System variables (by error log/u01/app/oraInventory/logs/*. log)
/Sbin/sysctl-a | grep sem
/Sbin/sysctl-a | grep shm
/Sbin/sysctl-a | grep file-max
/Sbin/sysctl-a | grep aio-max
/Sbin/sysctl-a | grep ip_local_port_range
/Sbin/sysctl-a | grep rmem_default
/Sbin/sysctl-a | grep rmem_max
/Sbin/sysctl-a | grep wmem_default
/Sbin/sysctl-a | grep wmem_max
Add the corresponding data in/etc/sysctl. conf according to the result.
Modify the linux Kernel Parameters in/etc/sysctl. conf as the root user.
Add sudo gedit/etc/sysctl. conf at the end of the file
Kernel. shmall = 2097152
Kernel. shmmax = 536870912
Kernel. shmmni = 4096
Kernel. sem = 250 32000 100 128
Fs. file-max = 6815744
Fs. aio-max-nr = 1048576
Net. ipv4.ip _ local_port_range = 9000 65500
Net. core. rmem_default = 262144
Net. core. rmem_max = 4194304
Net. core. wmem_default = 262144
Net. core. wmem_max = 1048576
Run the following command to update kernel parameters:
Sudo sysctl-p
4. Added kernel restrictions for oracle users
Add sudo gedit/etc/security/limits. conf at the end of the file:
Oracle soft nproc 2047
Hard nproc 16384
Oracle soft nofile 1024
Oracle hard nofile 65536
Oracle soft stack 10240
5. Check/etc/pam. d/login as the root user and add the following lines (you do not need to add the lines if they already exist)
Session required pam_limits.so
Check/etc/pam. d/su and add the following lines (you do not need to add them if they already exist)
Session required pam_limits.so
6. Create an installation folder
Rm-rf/u01
Mkdir-p/u01/app/oracle
Mkdir-p/u01/app/oracle/oradata
Chown-R oracle: oinstall/u01
Chmod-R 775/u01
7. Configure the user environment (for oracle Users)
$ Vim/home/oracle/. profile
# Write the folder you just created
Export ORACLE_BASE =/u01/app/oracle
# You can enter the following information as needed.
Export ORACLE_HOME = $ ORACLE_BASE/product/11.2.0/dbhome_1
# Database sid
Export ORACLE_SID = orcl
# Default Character Set
Export NLS_LANG =. AL32UTF8
Export ORACLE_OWNR = oracle
Export PATH = $ PATH: $ ORACLE_HOME/bin
$ Source ~ /. Profile
8. Cheat the installation package
In the root user, because the default Linux System of Oracle is Red Hat, it imitates Red Hat.
Create a file link so that the directory structure of Ubuntu is consistent with that of Red Hat.
Sudo ln-s/usr/bin/awk
Sudo ln-s/usr/bin/rpm
Sudo ln-s/usr/bin/basename
Ln-s/usr/lib/i386-linux-gnu/libc_nonshared.a/usr/lib/
Ln-s/usr/lib/i386-linux-gnu/libpthread_nonshared.a/usr/lib/
Ln-s/lib/i386-linux-gnu/libgcc_s.so.1/lib/
Ln-s/usr/lib/i386-linux-gnu/libstdc ++. so.6/usr/lib/
Echo 'Red Hat Linux release 5'>/etc/RedHat-release