Oracle 11g r2 Rac Installation

Source: Internet
Author: User

View the operating system version:

[Root @ rac1 ~] # Cat/etc/issue
Enterprise Linux AS release 4 (October Update 7)
Kernel \ r on an \ m

View the kernel version:

[Root @ rac1 ~] # Cat/proc/version
Linux version 2.6.9-78.0.0.0.1.ELsmp (mockbuild@ca-build15.us.Oracle.com) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-10) #1 SMP Fri Jul 25 14:41:56 EDT 2008

Vi/etc/hosts


127.0.0.1 localhost
192.168.10.11 rac1
192.168.10.12 rac1-vip
10.10.10.11 rac1-priv

192.168.10.21 rac2
192.168.10.22 rac2-vip
10.10.10.21 rac2-priv

192.168.10.31 rac-cluster

Groupadd-g 1000 oinstall
Groupadd-g 1031 dba
Useradd-u 1101-g oinstall-G dba oracle
Mkdir-p/u01/app/11.2.0/grid
Mkdir-p/u01/app/oracle
Chown-R oracle: oinstall/u01
Chmod-R 775/u01/

Using any text editor, create or edit/etc/sysctl.confFile, and add or edit lines similar to the following:

Note:

Include lines only for the kernel parameter values that you want to change. For the semaphore parameters ( kernel.sem), You must specify all four values. If any of the current values are larger than the minimum value, then specify the larger value. view plaincopy to clipboardprint?
  1. Fs. aio-max-nr = 1048576
  2. Fs. file-max = 6815744
  3. Kernel. shmall = 2097152
  4. Kernel. shmmax = 536870912
  5. Kernel. shmmni = 4096
  6. Kernel. sem = 250 32000 100 128
  7. Net. ipv4.ip _ local_port_range = 9000 65500
  8. Net. core. rmem_default = 262144
  9. Net. core. rmem_max = 4194304
  10. Net. core. wmem_default = 262144
  11. Net. core. wmem_max = 1048586


Note:

The minimum value required shmmaxIs 0.5 GB. Oracle recommends that you set the value shmmaxTo 2.0 GB for optimum performance of the system.

By specifying the values in/etc/sysctl.confFile, they persist when you restart the system. On SUSE Linux Enterprise Server systems, enter the following command to ensure that the system reads/etc/sysctl.confFile when it restarts:

# /sbin/chkconfig boot.sysctl on

Enter the following command to change the current values of the kernel parameters:

# /sbin/sysctl -p


If necessary, update the resource limits in/etc/security/limits.confConfiguration file for the installation owner. For example, add the following lines to/etc/security/limits.confFile:

View plaincopy to clipboardprint?
  1. Oracle soft nproc 2047
  2. Hard nproc 16384
  3. Oracle soft nofile 1024
  4. Oracle hard nofile 65536
  5. Oracle soft stack 10240

Sendmail is the most important mail transmission agent. Understanding the working mode of email is very important. Generally, the email program is divided into user agents, transmission agents, and delivery agents. The specific command to Disable Sendmail is as follows:

Disable sendmail

(1) [root @ sample ~] #/Etc/rc. d/init. d/sendmail stop messages disable the sendmail service
Or [root @ sample ~] # Service sendmail stop messages disable the sendmail service
Shutting down sendmail: [OK]
Shutting down sm-client: [OK]

(2) [root @ sample ~] # Chkconfig sendmail off startup Disable sendmail from startup

(3) [root @ sample ~] # Chkconfig -- list sendmail enabled: Make sure that sendmail has been disabled since it was started (it is OK if it is all off)
Sendmail 0: off 1: off 2: off 3: off 4: off 5: off 6: off

In most Linux versions, the old mail system package sendmail is installed by default. After the system is installed, many of the brothers encounter a restart during the startup process, when the sendmail service is started, it stops. Friends Without patience and experience may think that the system is faulty or the system is not properly installed. In fact, it is neither a system fault, generally, this is not because the system is not properly installed, but when the system starts sendmail, It queries the record or Reverse Domain Name Record of the host name you set. Because the nine Global DNS root systems are in the United States, at this time, the dns A record corresponding to the Host Name of the local machine will be queried.

Once you know the crux of the problem, you can take the right medicine. For example, you can modify the system configuration file/etc/hosts.

Let sendmaill bypass the query remote host. Here is the simplest method.

Modify/etc/hosts. Before Modification

127.0.0.1 localhost. localdomain localhost

Modify

127.0.0.1 localhost. localdomain localhost Host Name

The above operation should be executed under the root permission. Check the host name command: hostname.

When I restart, I find that sendmail and sm-client are started in seconds.

NTP

To do this, on Oracle Linux, Red Hat Linux, and Asianux systems, edit
/Etc/sysconfig/ntpd file to add the-x flag, as in the following example:
# Drop root to id 'ntp: ntp 'by default.
OPTIONS = "-x-u ntp: ntp-p/var/run/ntpd. pid"
# Set to 'yes' to sync hw clock after successful ntpdate
SYNC_HWCLOCK = no
# Additional options for ntpdate
NTPDATE_OPTIONS = ""
Then, restart the NTP service.
#/Sbin/service ntp restart

 

#/Sbin/chkconfig ntpd on

Linux hard disk partitioning

# Fdisk-l

# Fdisk/dev/sdb

# Mkfs-t ext3/dev/sdb1

# Mount/dev/sdb1/u01

# Df-lh

# Vi/etc/fstab

/Dev/sdb1/u01 ext3 defaults 1 2

In this case, the RedHat Enterprise AS 4 Update 2 system is used, and the kernel version is 2.6.9-22. ELsmp. Therefore,
The OCFS2 kernel module to be downloaded must also be of the following version:
Http://oss.oracle.com/projects/ocfs2/

Download OCFS2 tools (command and startup script) and OCFS2 console:
Http://oss.oracle.com/projects/ocfs2-tools

O2cb_ctl: Unable to access cluster service while creating node

After ocfs2 is installed, run # ocfs2console

Configure Nodes --> Add --> enter the Private Node name and Private IP --> OK --> Apply
The following error occurs:
O2cb_ctl: Unable to access cluster service while creating node
Cocould not add node node1

Later I found some articles and found that all nodes need/Etc/ocfs2/ViewCluster. confWhether the content exists. If yes, delete all the content and reconfigure it once. Or delete the cluster. conf file and reconfigure it. 

[Root @ rac1 app] # mounted. ocfs2-f
Device FS Nodes
/Dev/sdc1 ocfs2 rac1, rac2
/Dev/sdc2 ocfs2 rac1, rac2

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