Install Oracle 11g on Lubuntu 12.10 Desktop

Source: Internet
Author: User
Tags addgroup

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

  • 1
  • 2
  • 3
  • 4
  • Next Page

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.