Steps for installing Oracle 11gR2 in vmwarevm

Source: Internet
Author: User

1. You can download the Oracle software and installation documents for free on the oracle official website. If you install the software on a linux system in a virtual machine, you can use FileZilla Client to send the software to the system.

Recommended reading:

Installing Oracle 11g R2 ON Rad Hat Enterprise Linux 5.5

Linux_11gR2_database_1of2.zip
Linux_11gr2_databasesilicate f2.zip

Ii. Hardware requirements

1. The oracle11g memory must be at least 1 GB. Do not select the default 20 GB for the disk in the Virtual Machine. make it larger (30, 40 ).

Virtual Memory capacity, check Command

Memory
# Grep MemTotal/proc/meminfo

Swap space
# Grep SwapTotal/proc/meminfo

Disk Space
# Df-ah

Iii. software requirements

1. kernel check: cat/proc/version (generally, CentOS meets the document requirements)

2. Check and install required software packages

By viewing the Package Requirements listed in the Oracle Installation documentation, you can view the required software packages on different platforms. The following lists the Requirements of Asianux 3, Oracle Enterprise Linux 5.0, and Red Hat Enterprise Linux 5.0, check whether these packages have been installed in the system. If the corresponding rpm packages are not found and installed on the system disk.

Check: run the following software packages in sequence: rpm-qa | grep

Binutils-2.17.50.0.6-2.el5
Compat-libstdc ++-33-3.2.3-61
Elfutils-libelf-0.125-3.el5
Elfutils-libelf-devel-0.125
Glibc-2.5-12
Glibc-common-2.5-12
Glibc-devel-2.5-12
Gcc-4.1.1-52
Gcc-c ++-4.1.1-52
Libaio-0.3.106
Libaio-devel-0.3.106
Libgcc-4.1.1-52
Libstdc ++-4.1.1
Libstdc +-devel-4.1.1-52.e15
Make-3.81-1.1
Sysstat-7.0.0
UnixODBC-2.2.11
UnixODBC-devel-2.2.11

The missing package can be found in the CentOS-5.8-i386-bin-DVD-1of2.iso and can be sent to the system using FileZilla Client, as shown in

Generally, the following is missing:

Elfutils-libelf-devel-0.137-3.el5.i386.rpm
Libaio-devel-0.3.106
Sysstat-7.0.0
UnixODBC-2.2.11
UnixODBC-devel-2.2.11

Then install the software package. The command is as follows:
Rpm-ivh *. rpm

An error is prompted during installation because other software packages are required.

In addition
UnixODBC-libs-2.2.11-10.el5.i386.rpm
Elfutils-libelf-devel-static-0.137-3.el5.i386.rpm

Install it.

3. Create a user group and installation directory


Root User: Create Oracle Installation group oinstall, Database Administrator Group dba, and oracle users, as well as Directories


Groupadd oinstall


Groupadd dba


Mkdir-p/u01/oracle

Useradd-g oinstall-G dba oracle-d/u01/oracle (main group oinstall, other group: dba, default root directory is/u01/oracle)

However, when oracle11g is installed in RHEL 5 or CentOS5, the following error occurs,

Useradd: warning: the home directory already exists.
Not copying any file from skel directory into it.
 
Enter the/u01/oracle directory without. bash_profile ',. bashrc, bash_logout
 
Cause:
 
Standard procedure for adding a user to the System
1. edit/etc/passwd and/etc/group
2. Create a user's home directory
3. Copy files and directories from/etc/skel
4. grant new users the permission to their home directories and files.
5. Give the new user a password.
 

Solution:
Still use the above script to create the user, and then manually copy the configuration file to/u01/oracle.
 
Cp/etc/skel/. bash_profile/u01/oracle
 
Cp/etc/skel/. bashrc/u01/oracle
 
Cp/etc/skel/. bash_logout/u01/oracle
 
This is acceptable.

Users and user groups with passwords added and/u01 modified

Passwd oracle
Chown-R oracle: oinstall/u01

4. Modify Kernel Parameters

Root User: Modify the/etc/sysctl. conf file and add the following parameters:

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

To make the preceding configuration take effect without restarting the system, run the following command:
#/Sbin/sysctl-p

5. Modify user restrictions

Root User: Modify the/etc/security/limits. conf file and add the following parameters
Oracle soft nproc 2047
Hard nproc 16384
Oracle soft nofile 1024
Oracle hard nofile 65536

 


6. Modify user authentication options


Root User: Add the following parameters to the/etc/pam. d/login file:


Session required pam_limits.so
Session required/lib/security/pam_limits.so

 

7. Modify the user configuration file

Root User: Add the following parameters to the/etc/profile file:


If [$ USER = "oracle"]; then
If [$ SHELL = "/bin/ksh"]; then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Fi

8. Modify the user bash shell

Switch su-oracle to oracle user

$ Vi. bash_profile

Add the following content, mainly to modify

Unset USERNAME
ORACLE_BASE =/u01
ORACLE_HOME = $ ORACLE_BASE/oracle
ORACLE_SID = wilson
PATH = $ ORACLE_HOME/bin: $ PATH

Export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH

Here, ORACLE_SID is the oracle sid you want to set.

After completion, log out of the orcle user, and then enter,

# Su-oracle

# Env | grep ORA check whether environment variables are complete

Continue reading the highlights on page 1

  • 1
  • 2
  • 3
  • Next Page

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.