On the Internet, find information about the successful installation of Oracle11g on the LUbuntu 12.10 desktop. Recorded.
1. Install Dependencies
Sudo apt-get install gcc make binutils libc6 libc6-dev lesstif 2 RPM libmotif3 libstdc ++ 5 libaio1 libaio-dev
2. Create an ORACLE 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. Create an ORACLE Installation Directory
Sudo mkdir/opt/oracle
Sudo mkdir/opt/oraInventory
Sudo chown-R oracle: oinstall/opt/oracle
Sudo chown-R oracle: oinstall/opt/oraInventory
4. Modify/etc/sysctl. conf and linux kernel parameters.
Add sudo gedit/etc/sysctl. conf at 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
Run the following command to update kernel parameters:
Sudo sysctl-p
5. Add kernel restrictions for oracle users,
Add sudo gedit/etc/security/limits. conf at the end of the file:
Oracle soft nproc 2047
Hard nproc 16383
Oracle soft nofile 1023
Oracle hard nofile 65535
6,
Check/etc/pam. d/login and add the following lines (you do not need to add them 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
7. Because Oracle's default Linux system 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
Sudo ln-s/usr/lib/x86_64-linux-gnu/usr/lib64
Sudo mkdir/etc/rc. d
Sudo ln-s/etc/rc0.d/etc/rc. d/rc0.d
Sudo ln-s/etc/rc1.d/etc/rc. d/rc1.d
Sudo ln-s/etc/rc2.d/etc/rc. d/rc2.d
Sudo ln-s/etc/rc3.d/etc/rc. d/rc3.d
Sudo ln-s/etc/rc4.d/etc/rc. d/rc4.d
Sudo ln-s/etc/rc5.d/etc/rc. d/rc5.d
Sudo ln-s/etc/rc6.d/etc/rc. d/rc6.d
Sudo ln-s/etc/init. d/etc/rc. d/init. d
Edit/etc/RedHat-release.
Su
Echo 'Red Hat Linux release 5'>/etc/redhat-release