Preparations before installing Oracle 11g RAC in Linux

Source: Internet
Author: User

Preparations before installing Oracle 11g RAC in Linux

Installation environment
Operating System: RHEL6.2 64bit
Oracle Database Version: 11.2.0.3
Oracle Grid: 11.2.0.3
 
Software: RHEL6.2 64bit, linux_11gR2_grid, linux_11gR2_database
 
Configure rac ip

--------------------------------------------------------------------------------

[Root @ host1 ~] # Vim/etc/sysconfig/network-scripts/ifcfg-eth1

Add the following content:
 
DEVICE = eth1
# BOOTPROTO = dhcp
ONBOOT = yes
HWADDR = 00: 0c: 29: df: ed: d6
IPADDR = 10.0.0.101
NETMASK = 255.255.255.0

[Root @ host1 ~] # Vim/etc/hosts
 
Add the following content:
 
127.0.0.1 localhost. localdomain localhost
: 1 localhost6.localdomain6 localhost6
# Public Ip
192.168.80.101 rac1
192.168.80.102 rac2
# Private IP
10.0.0.101 rac1-pri
10.0.0.102 rac2-pri
# Public Virtual IP (VIP)
192.168.80.201 rac1-vip
192.168.80.202 rac2-vip
# Scan-ip
192.168.80.100

[Root @ host1 ~] # Service netowrk restart
 
The second node performs the same operation

Create 11g RAC users and groups

--------------------------------------------------------------------------------

1. Create grid users and groups
 
[Root @ host1 ~] # Groupadd-g 1000 oinstall
[Root @ host1 ~] # Groupadd-g 1200 asmadmin
[Root @ host1 ~] # Groupadd-g 1201 asmdba
[Root @ host1 ~] # Groupadd-g 1202 asmoper
[Root @ host1 ~] # Useradd-g oinstall-G asmadmin, asmdba, asmoper-d/home/grid-s/bin/bash grid
 
[Root @ host1 ~] # Passwd grid

2. Create oracle users and groups
 
[Root @ host1 ~] # Groupadd-g 1300 dba
[Root @ host1 ~] # Groupadd-g 1301 running
[Root @ host1 ~] # Useradd-g oinstall-G dba, role, asmdba-d/home/oracle-s/bin/bash oracle
 
[Root @ host1 ~] # Passwd oracle
 
The second node performs the same operation

Configure oracle, equivalent to ssh for grid users

--------------------------------------------------------------------------------

1. The first node
 
[Oracle @ host1 ~] $ Pwd
/Home/oracle
[Oracle @ host1 ~] $ Mkdir./ssh
 
[Oracle @ host1 ~] $ Chmod 700./ssh
 
[Oracle @ host1 ~] $ Ssh-keygen-t rsa
 
[Oracle @ host1 ~] $ Ssh-keygen-t dsa
 
[Oracle @ host1 ~] $ Cat ~ /. Ssh/id_rsa.pub> ~ /. Ssh/authorized_keys
[Oracle @ host1 ~] $ Cat ~ /. Ssh/id_dsa.pub> ~ /. Ssh/authorized_keys

2. Second Node
 
[Root @ host2 ~] # Su-oracle
[Oracle @ host2 ~] $ Mkdir./ssh
 
[Oracle @ host2 ~] $ Chmod 700./ssh
 
[Oracle @ host2 ssh] $ ssh-keygen-t rsa
 
[Oracle @ host2 ssh] $ ssh-keygen-t dsa

3. Return the first vertex.
 
[Oracle @ host1 ~] $ Ssh rac2 cat ~ /. Ssh/id_rsa.pub> ~ /. Ssh/authorized_keys
 
[Oracle @ host1 ~] $ Ssh rac2 cat ~ /. Ssh/id_dsa.pub> ~ /. Ssh/authorized_keys
 
[Oracle @ host1 ~] $ Scp ~ /. Ssh/authorized_keys rac2 :~ /. Ssh/authorized_keys

4. Verify
 
[Oracle @ host2. ssh] $ vim run. sh
 
Write the following content:
 
Ssh rac1 date
Ssh rac2 date
Ssh rac1-pri date
Ssh rac2-pri date

5. Repeat the grid user configuration
 
The second node performs the same operation

Partition shared Disk

--------------------------------------------------------------------------------

1. Partition after adding a shared Disk
 
View disk status
 
[Root @ host1 ~] # Fdisk-l
 
Partition target disk
 
[Root @ host1 ~] # Fdisk/dev/sdb
 
Verify to node 2
 
[Root @ host2 ~] # Fdisk-l

Create a bare Device

--------------------------------------------------------------------------------

Installing Oracle 12C in Linux-6-64

Install Oracle 11gR2 (x64) in CentOS 6.4)

Steps for installing Oracle 11gR2 in vmwarevm

Install Oracle 11g XE R2 In Debian

--------------------------------------------------------------------------------

Ps: a bare device is also called a raw partition. It is a special character device that is not formatted and not read by Unix/Linux Through the file system. A bare device can be bound to either a partition or a disk.
 
[Root @ host1 ~] # Ls-trl/dev/sd *
 
Edit a device file
 
[Root @ host1 ~] # Vim/etc/udev/rules. d/60-raw.rules
 
Add the following content:
 
ACTION = "add", KERNEL = "sdb1", RUN + = "/bin/raw/dev/raw/raw1% N"
ACTION = "add", KERNEL = "sdc1", RUN + = "/bin/raw/dev/raw/raw2% N"
KERNEL = "raw [1-2]", OWNER = "grid", GROUP = "asmadmin", MODE = "0660"

Start the service
 
[Root @ host1 ~] # Start_udev
Starting udev: [OK]
[Root @ host1 ~] # Raw-qa
/Dev/raw/raw1: bound to major 8, minor 17
/Dev/raw/raw2: bound to major 8, minor 33


[Root @ host1 ~] # Ls-trl/dev/raw
Total 0
Crw-rw ---- 1 grid asmadmin 162, 2 Jun 2 raw2
Crw-rw ---- 1 grid asmadmin 162, 1 Jun 2 raw1

Perform the same operation on the second node

Use LVM to create a/u01 mount point

--------------------------------------------------------------------------------

View physical volume information
 
[Root @ host1 ~] # Pvdisplay
 
View volume group information
 
[Root @ host1 ~] # Vgdisplay
 
View logical volume information
 
[Root @ host1 ~] # Pvdisplay
 
Create logical volume
 
[Root @ host1 ~] # Lvcreate-L 30G-n LogVol06 VolGroup00
 
Format the logical volume in ext3 format
 
[Root @ host1 ~] # Mkfs. ext3/dev/VolGroup00/LogVol06
 
Create the u01 directory in the root directory
 
[Root @ host1 ~] # Mkdir/u01
 
Mount the u01 directory
 
[Root @ host1 ~] # Mount/dev/VolGroup00/LogVol06/u01
 
You also need to modify the/etc/fstab file to set automatic mounting upon startup.
 
[Root @ host1 ~] # Vim/etc/fstab
 
Add the following content:
 
/Dev/VolGroup00/LogVol06/u01 ext3 defaults 1 2

For more details, please continue to read the highlights on the next page:

  • 1
  • 2
  • 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.