RHEL5.7 Step 7 install Oracle 11g R2

Source: Internet
Author: User

Oracle Installation on Linux has become a nightmare for many engineers due to its tedious process and high error rate. Some time ago, due to work needs, we installed oracle several times on HP's PC servers and minicomputers. The process was as bad as it was, and it was almost killing people ~ If you don't have a complete installation process, and you only need to go to Baidu on a temporary basis, I think anyone will have the following problems: Keep reporting errors, keep getting stuck, and keep on going ...... At last, the system may have to be reinstalled. As a result, I have to sum up my lessons. Now I have summarized the most detailed installation tutorials in history for my own forgetting and sharing them with you.

This tutorial applies to a 32-bit RHEL5 system and oracle11g R2.
1. Before installing oracle, run the command to check whether the required RPM software package is installed.
The command is as follows:
Rpm-q binutils compat-libstdc ++-33 elfutils-libelf-devel gcc-c ++ glibc-common glibc-devel glibc-headers kernel-headers ksh libaio libaio-devel libgcc libgomp libstdc ++-devel make numactl-devel sysstat unixODBC-devel
If the RPM package is fully installed
650) this. width = 650; "border = 0>
If not installed, the system will display XXX is not installed. In this case, you can find the appropriate RPM package for installation in the Server folder by attaching the RHEL5.4 CD or image.
2. Create oracle system users and installation Directories
Create a master group oracle and a sub-group dba
Groupadd oinstall
Groupadd dba
Create an oracle Installation Folder
Mkdir-p/oracle
Add an oracle user. The root directory is/oracle. The master group is the dba group used by oinstall.
Useradd-g oinstall-G dba-d/oracle
Copy the file containing environment variables to the installation directory.
Cp/etc/skel/. bash_profile/oracle
Cp/etc/skel/. bashrc/oracle
Cp/etc/skel/. bash_logout/oracle
Set Password 123456 for oracle users
Passwd oracle
Set installation directory User Permissions
Chown-R oracle: oinstall/oracle
Check whether nobody exists
Id nobody
By default, the uid, gid, and groups of nobody are displayed. The default value is 99. If not, enter the following command:
/Usr/sbin/useradd-g nobody
3. Modify Kernel Parameters
Vi/etc/sysctl. conf
Add the following content to the sysctl. conf file. I add it to the end of the file.
Fs. aio-max-nr = 1048576
Fs. file-max = 6815744
Kernel. shmall = 2097152
Kernel. shmmax = 536870912
Kernel. shmmni = 4096
Kernel. sem = 250 32000 100 128
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 = 1048586
650) this. width = 650; "border = 0>
4. Set shell limit for oracle users
Vi/etc/security/limits. conf
Add the following content to limits. conf and put it at the end,
Oracle soft nproc 2047
Hard nproc 16384
Oracle soft nofile 1024
Oracle hard nofile 65536
650) this. width = 650; "border = 0>
Add the following content to the file/etc/pam. d/login to make the shell limit take effect.
Vi/etc/pam. d/login
Session required pam_limits.so 

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 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.