Install Oracle10gRAC with 64-bit RedHat4.8 _ in VMware -- simple script

Source: Internet
Author: User
Install Oracle10gRAC in the RedHat4.8 _ 64-bit VMware -- simple script 1. Preparation 1. system information [root @ r4r4o10n1 ~] # Uname-aLinuxr4r4o10n12.6.9-89.EL #1MonApr2010: 22: 29EDT2009x86_64x86_64x86_64GNU/LinuxVM: vmwareworkstat

Install Oracle 10g RAC with 64-bit redhat4.8_64 under VMware-simple script

I. Preparations

1. System Information

[Root @ r4r4o10n1 ~] # Uname-

Linux r4r4o10n1 2.6.9-89.EL #1 Mon Apr 2010:edt 2009 x86_64 x86_64 x86_64 GNU/Linux

VM: vmware workstation9

OS: redhat4.8

DATABASE: ORACLE10201

2. Configure the network

[Root @ r4o10n1 ~] # System-config-network

[Root @ r4o10n1 ~] # More/etc/hosts

# Do not remove the following line, orvarious programs

# That require network functionality willfail.

127.0.0.1 localhost. localdomain localhost

192.168.150.61 r4o10n1

192.168.150.62 r4o10n2

172.16150.61 r4o10n1-priv

172.16150.62 r4o10n2-priv

192.168.150.63 r4o10n1-vip

192.168.150.64 r4o10n2-vip

3. packages to be installed

Mount/dev/cdrom/media/cdrom

Red Hat Enterprise Linux 4.0:

Install the following packages

Binutils-2.15.92.0.2-10.EL4

Compat-db-4.1.25-9

Control-center-2.8.0-12

Gcc-3.4.3-9.EL4

Gcc-c ++-3.4.3-9. EL4

Glibc-2.3.4-2

Glibc-common-2.3.4-2

Gnome-libs-1.4.1.2.90-44.1

Libstdc ++-3.4.3-9. EL4

Libstdc +-devel-3.4.3-9.EL4

Make-3.80-5

Pdksh-5.2.14-30

Sysstat-5.0.5-1

Xscreensaver-4.18-5.rhel4.2

Dependent

Rpm ivhglibc-kernheaders-2.4-9.1.103.EL.x86_64.rpm

Rpm ivhglibc-headers-2.3.4-2.43.x86_64.rpm

Rpm-ivh glibc-devel-2.3.4-2.43.x86_64.rpm

Rpm-ivh gcc-3.4.6-11.x86_64.rpm

Rpm-ivhlibstdc ++ devel-3.4.6-11.x86_64.rpm

Rpm-ivh gcc-c ++-3.4.6-11. x86_64.rpm

Other packages

Rpm-ivh rsh-server-0.17-25.4.x86_64.rpm

Rpm-ivh glibc-devel-2.3.4-2.43.i386.rpm

Required by wlrap

Rpm-ivh readline-4.3-13.i386.rpm

Rpm ivhlibtermcap-devel-2.0.8-39.x86_64.rpm

Rpm-ivh readline-devel-4.3-13.x86_64.rpm

[Root @ r4r4o10n1 RPMS] # rpm-ivhlibtermcap-2.0.8-39.i386.rpm

Required by asmlib

Rpm-ivh kernel-smp-2.6.9-89.EL.x86_64.rpm

Rpm ivhoracleasm-support-2.1.7-1.el4.x86_64.rpm

Rpm ivhoracleasm-2.6.9-89.EL-2.0.5-1.el4.x86_64.rpm

Rpm-ivh oracleasm-2.6.9-89.ELsmp-2.0.5-1.el4.x86_64.rpm

Rpm ivhoracleasmlib-2.0.4-1.el4.x86_64.rpm

4. Modify Kernel Parameters

[Root @ r4o10n1 ~] # Vi/etc/sysctl. conf

Add the following content

Kernel. shmall = 2097152

Kernel. shmmax = 2147483648

Kernel. shmmni = 4096

# Semaphores: semmsl, semmns, semopm, semmni

Kernel. sem = 250 32000 100 128

Fs. file-max = 65536

Net. ipv4.ip _ local_port_range = 1024 65000

Net. core. rmem_default = 262144

Net. core. rmem_max = 262144

Net. core. wmem_default = 262144

Net. core. wmem_max = 262144

Make the modified kernel effective immediately

[Root @ r4o10n1 ~] #/Sbin/sysctl-p

5. Set User resource limits and modify limits. conf

[Root @ r4o10n1 ~] # Vi/etc/security/limits. conf

Add the following content (Be sure to bring stars, otherwise an error will be reported in source. bash_profile)

* Soft nproc 2047

* Hard nproc 16384

* Soft nofile 1024

* Hard nofile 65536

6. Modify login

[Root @ r4o10n1 ~] # Vi/etc/pam. d/login

Add the following content

Session required/lib/security/pam_limits.so

7. Modify modprobe. conf

[Root @ r4o10n1 ~] # Vi/etc/modprobe. conf

Options hangcheck-timer hangcheck_tick = 30hangcheck_margin = 180

Make the modification take effect

[Root @ r4o10n1 ~] # Modprobe-vhangcheck-timer

Insmod/lib/modules/2.6.9-89. ELsmp/kernel/drivers/char/hangcheck-timer.kohangcheck_tick = 30 hangcheck_margin = 180

8. Create an oracle group, user, and installation directory

Groupadd oinstall

Groupadd dba

Groupadd rule

Useradd-g oinstall-G dba oracle

Passwd oracle

Mkdir-p/oracle/product/10.2.0/crs

Mkdir-p/oracle/product/10.2.0/asm

Mkdir-p/oracle/product/10.2.0/db_1

Chown-R oracle: oinstall/oracle

9 Open remote rsh rlogin

Rpm-ivh rsh-server-0.17-25.4.x86_64.rpm

Chkconfig rsh on

Chkconfig rlogin on

Service xinetd reload

10. Set oracle environment variables

Export PS1 = "'/bin/hostname-S'->"

Export EDITOR = vi

Export TMP =/tmp

Export TMPDIR = $ TMP

Export ORACLE_BASH =/oracle

ExportORA_CRS_HOME =/oracle/product/10.2.0/crs

ExportORACLE_HOME =/oracle/product/10.2.0/db_1

Export ORACLE_SID = t10g

Export PATH = $ ORACLE_HOME/OPatch: $ ORACLE_HOME/bin: $ ORA_CRS_HOME/bin:/usr/sbin: $ PATH

ExportLD_LIBRARY_PATH = $ ORACLE_HOME/lib:/usr/lib

ExportCLASSPATH = $ ORACLE_HOME/JRE: $ ORACLE_HOME/jlib: $ ORACLE_HOME/rdbms/jlib

Alias sqlplus = "rlwrap sqlplus"

Alias rman = "rlwrap rman"

Stty erase ^ H

Umask 022

For more details, refer to the highlights on the next page.: Http://www.linuxidc.com/Linux/2013-12/93788p2.htm

Recommended reading:

RedHat Linux 5 & CentOS 5 Oracle 10g Installation Details http://www.linuxidc.com/Linux/2013-08/88928.htm

Install Oracle 10g R2 http://www.linuxidc.com/Linux/2012-11/74253.htm under CentOS 6.3 (x32)

Installing Oracle 12C notes Linux-6-64 under http://www.linuxidc.com/Linux/2013-07/86805.htm

For more information about RedHat, see RedHat topic page http://www.linuxidc.com/topicnews.aspx? Tid = 10

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.