Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Oracle rac 11.0.2.4 brief installation steps for beginners

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

# 12 c rac has an extra grid base directory and needs to prepare a 40 G disk to do GIMR disk, the other is roughly the same.

# start with a question mark full of questions about what rac is. Before you do it, Baidu understands what rac is and what the basic structure is. This is probably what it looks like in the picture below. Baidu is more detailed.

# prepare the oracle installation package and download it on the Oracle official website. The package is free.

# p13390677_112040_Linux-x86-64_1of7/p13390677_112040_Linux-x86-64_2of7/p13390677_112040_Linux-x86-64_3of7

1.VMware environment: two virtual machines with linux installed. This time I use red hat 6.8, each with two network cards public/private.

Get some shared disks out.

Cmd changes to the VMware installation directory and performs the creation of a shared disk.

Vmware-vdiskmanager.exe-c-s 1G-a lsilogic-t 2 C:\ share_disk\ ocr01.vmdk

Vmware-vdiskmanager.exe-c-s 1G-a lsilogic-t 2 C:\ share_disk\ ocr02.vmdk

Vmware-vdiskmanager.exe-c-s 1G-a lsilogic-t 2 C:\ share_disk\ ocr03.vmdk

Vmware-vdiskmanager.exe-c-s 5G-a lsilogic-t 2 C:\ share_disk\ data.vmdk

Vmware-vdiskmanager.exe-c-s 5G-a lsilogic-t 2 C:\ share_disk\ backup.vmdk

Change the .vmx file of the virtual machine and add the virtual disk you just created at the end of the file.

Scsi1.present = "TRUE"

Scsi1.virtualDev = "lsilogic"

Scsi1.sharedBus = "virtual"

Scsi1:1.present = "TRUE"

Scsi1:1.mode = "independent-persistent"

Scsi1:1.filename = "C:\ share_disk\ ocr01.vmdk"

Scsi1:1.deviceType = "disk"

Scsi1:2.present = "TRUE"

Scsi1:2.mode = "independent-persistent"

Scsi1:2.filename = "C:\ share_disk\ ocr02.vmdk"

Scsi1:2.deviceType = "disk"

Scsi1:3.present = "TRUE"

Scsi1:3.mode = "independent-persistent"

Scsi1:3.filename = "C:\ share_disk\ ocr03.vmdk"

Scsi1:3.deviceType = "disk"

Scsi1:4.present = "TRUE"

Scsi1:4.mode = "independent-persistent"

Scsi1:4.filename = "C:\ share_disk\ backup.vmdk"

Scsi1:4.deviceType = "disk"

Scsi1:5.present = "TRUE"

Scsi1:5.mode = "independent-persistent"

Scsi1:5.filename = "C:\ share_disk\ data.vmdk"

Scsi1:5.deviceType = "disk"

Disk.locking = "false"

Disk.EnableUUID = "true"

DiskLib.dataCacheMaxSize = "0"

DiskLib.dataCacheMaxReadAheadSize = "0"

DiskLib.DataCacheMinReadAheadSize = "0"

DiskLib.dataCachePageSize = "4096"

DiskLib.maxUnsyncedWrites = "0"

two。 Power on and check that both hosts can see the shared disk you just added and check the swap space.

Memory

Swap

1-2 GB

1.5 times memory

2-16GB

Equal to memory

> 16GB

16 GB

3. Operating system configuration

3.1 turn off selinux

Sed-I's etc/selinux/config SelinuxplenforcingAccording to SELINUXAfter

3.2 close iptables

Rhel6

Service iptables stop

Chkconfig ip6tables off

Chkconfig iptables off

Rhel7

Systemctl stop firewalld.service

Systemctl disable firewalld.service

Firewall-cmd-state

3.3 change IP address, change hosts file

Cat > > / etc/hosts / etc/sysctl.conf / etc/security/limits.conf / etc/pam.d/login

3.7 profile

Cat > > / etc/profile / etc/udev/rules.d/99-oracle.rules; cat / etc/udev/rules.d/99-oracle.rules

Start_udev

Ll / dev/asm*

Scp / etc/udev/rules.d/99-oracle.rules 2.2.2.20:/etc/udev/rules.d/99-oracle.rules

Rac2:

Start_udev

Ll / dev/asm*

Rhel7

For i in b c d e f

Do

UUID= `/ usr/lib/udev/scsi_id-- whitelisted-- replace-whitespace-- device=/dev/sd$ i`

Echo 'KERNEL== "sd?", SUBSYSTEM== "block", PROGRAM== "/ usr/lib/udev/scsi_id-- whitelisted-- replace-whitespace-- device=/dev/$name", RESULT== "' $UUID'", SYMLINK+= "asm-disk'$i'", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"'

Done > > / etc/udev/rules.d/99-oracle.rules

/ sbin/udevadm trigger-type=devices-action=change

Udevadm control-reload-rules

5. Upload files, install dependency packages, install grid,oracle database software in graphical interface, and build DBCA database.

5.1 install the dependency package and install it with yum

Yum install-y binutils compat-libstdc++-33 glibc ksh libaio libgcc libstdc++ make compat-libcap1 gcc gcc-c++ glibc-devel libaio-devel libstdc++-devel sysstat elfutils-libelf-devel

5.2 graphical interface grid user runs. / runInstaller

Installation type chooses the senior.

Add rac2 and configure two-node grid user trust

Pay attention to the path selection and select the three ocr disks just now

Finally, the installation check will report the asm disk warning, check that both nodes can access the asm disk and directly ignore the next step.

Dd if=/dev/zero f=/dev/asm-sda bs=1024 count=1

5.3 run the root script after installation, first on the first node, and then sequentially on the other nodes, not at the same time

/ u01/app/oraInventory/orainstRoot.sh

/ u01/11.2.0/grid/root.sh

5.4 verify the cluster

[root@rac1] # / oracle/11.2.0/grid/bin/crs_stat-t

Name Type Target State Host

Ora.DATA.dg ora....up.type ONLINE ONLINE rac1

Ora....N1.lsnr ora....er.type ONLINE ONLINE rac1

Ora.asm ora.asm.type ONLINE ONLINE rac1

Ora.cvu ora.cvu.type ONLINE ONLINE rac1

Ora.gsd ora.gsd.type OFFLINE OFFLINE

Ora....network ora....rk.type ONLINE ONLINE rac1

Ora.oc4j ora.oc4j.type ONLINE ONLINE rac1

Ora.ons ora.ons.type ONLINE ONLINE rac1

Ora....SM1.asm application ONLINE ONLINE rac1

Ora.rac1.gsd application OFFLINE OFFLINE

Ora.rac1.ons application ONLINE ONLINE rac1

Ora.rac1.vip ora....t1.type ONLINE ONLINE rac1

Ora....SM2.asm application ONLINE ONLINE rac2

Ora.rac2.gsd application OFFLINE OFFLINE

Ora.rac2.ons application ONLINE ONLINE rac2

Ora.rac2.vip ora....t1.type ONLINE ONLINE rac2

Ora....ry.acfs ora....fs.type ONLINE ONLINE rac1

Ora.scan1.vip ora....ip.type ONLINE ONLINE rac1

5.5 graphical interface oracle user runs. / runInstaller

Install only database software

Add rac2 and set oracle user trust

5.6 next step until the installation is complete, execute the root script as well

5.7DBCA builds database, graphical interface Oracle user executes dbca

Select rac database

Customization

Select two nodes

Using ASM disk to store data

The later configuration depends on the requirements, and the test environment can all try.

End.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report