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

How to install oracle12c single Point grid and rdbms in RHEL7.3

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

Share

Shulou(Shulou.com)05/31 Report--

Editor to share with you how to install RHEL7.3 oracle12c single point grid and rdbms, I believe that most people do not know much, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

# # installing Desktop

Yum-y groupinstall "Server with GUI"

# start the desktop

Startx

# set startup mode

[root@localhost ~] # systemctl get-default

Multi-user.target

[root@localhost ~] # cat / etc/inittab

# inittab is no longer used when using systemd.

#

# ADDING CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.

#

# Ctrl-Alt-Delete is handled by / usr/lib/systemd/system/ctrl-alt-del.target

#

# systemd uses' targets' instead of runlevels. By default, there are two main targets:

#

# multi-user.target: analogous to runlevel 3 # multiuser mode

# graphical.target: analogous to runlevel 5 # graphical mode

#

# To view current default target, run:

# systemctl get-default

#

# To set a default target, run:

# systemctl set-default TARGET.target

#

[root@localhost ~] # systemctl set-default graphical.target

Removed symlink / etc/systemd/system/default.target.

Created symlink from / etc/systemd/system/default.target to / usr/lib/systemd/system/graphical.target.

[root@localhost ~] # systemctl get-default

Graphical.target

# # creating users and groups

Groupadd-g 500 oinstall

Groupadd-g 501 dba

Groupadd-g 502 oper

Groupadd-g 600 asmadmin

Groupadd-g 601 asmdba

Groupadd-g 602 asmoper

Useradd-u 1000-g oinstall-G dba,oper,asmdba oracle

Useradd-u 1001-g oinstall-G dba,asmdba,asmadmin,asmoper grid

# # packages for linux 7

Rpm-qa | grep binutils-2.23.52.0.1-12.el7.x86_64

Rpm-qa | grep compat-libcap1-1.10-3.el7.x86_64

Rpm-qa | grep compat-libstdc++-33-3.2.3-71.el7.i686

Rpm-qa | grep compat-libstdc++-33-3.2.3-71.el7.x86_64

Rpm-qa | grep gcc-4.8.2-3.el7.x86_64

Rpm-qa | grep gcc-c++-4.8.2-3.el7.x86_64

Rpm-qa | grep glibc-2.17-36.el7.i686

Rpm-qa | grep glibc-2.17-36.el7.x86_64

Rpm-qa | grep glibc-devel-2.17-36.el7.i686

Rpm-qa | grep glibc-devel-2.17-36.el7.x86_64

Rpm-qa | grep ksh

Rpm-qa | grep libaio-0.3.109-9.el7.i686

Rpm-qa | grep libaio-0.3.109-9.el7.x86_64

Rpm-qa | grep libaio-devel-0.3.109-9.el7.i686

Rpm-qa | grep libaio-devel-0.3.109-9.el7.x86_64

Rpm-qa | grep libgcc-4.8.2-3.el7.i686

Rpm-qa | grep libgcc-4.8.2-3.el7.x86_64

Rpm-qa | grep libstdc++-4.8.2-3.el7.i686

Rpm-qa | grep libstdc++-4.8.2-3.el7.x86_64

Rpm-qa | grep libstdc++-devel-4.8.2-3.el7.i686

Rpm-qa | grep libstdc++-devel-4.8.2-3.el7.x86_64

Rpm-qa | grep libXi-1.7.2-1.el7.i686

Rpm-qa | grep libXi-1.7.2-1.el7.x86_64

Rpm-qa | grep libXtst-1.2.2-1.el7.i686

Rpm-qa | grep libXtst-1.2.2-1.el7.x86_64

Rpm-qa | grep make-3.82-19.el7.x86_64

Rpm-qa | grep sysstat-10.1.5-1.el7.x86_64

Yum-y install binutils compat-libcap1 compat-libstdc++-33 compat-libstdc++-33*.i686 gcc gcc-c++ glibc glibc*.i686 glibc-devel glibc-devel*.i686 ksh libaio libaio-*.i686 libaio-devel libaio-devel*.i686 libgcc libgcc*.i686 libstdc++ libstdc++*.i686 libstdc++-devel libstdc++devel*.i686 libXi libXi*.i686 libXtst libXtst*.i686 make sysstat unixODBC unixODBC-devel unixODBC*.i686

Yum-y localinstall compat-libstdc++-33-3.2.3-72.el7.* # download separately

# # vi / etc/sysctl.conf

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 = 1048576

/ sbin/sysctl-p

# # official document explains the setting of shmmax (document ID 567506.1). I usually directly use the current setting / sbin/sysctl-a | grep shm

# Oracle Global Customer Support officially recommends a "maximum" for SHMMAX of "1 Compact 2 of physical RAM".

# The maximum size of a shared memory segment is limited by the size of the available user address space. On 64-bit systems, this is a theoretical 2 ^ 64 bytes. So the "theoretical limit" for SHMMAX is the amount of physical RAM that you have. However, to actually attempt to use such a value could potentially lead to a situation where no system memory is available for anything else. Therefore a more realistic "physical limit" for SHMMAX would probably be "physical RAM-2Gb".

# In an Oracle RDBMS application, this "physical limit" still leaves inadequate system memory for other necessary functions. Therefore, the common "Oracle maximum" for SHMMAX that you will often see is "1 prime 2 of physical RAM". Many Oracle customers chose a higher fraction, at their discretion.

# Occasionally, Customers may erroneously think that that setting the SHMMAX as recommended in this NOTE limits the total SGA. That is not true. Setting the SHMMAX as recommended only causes a few more "shared memory segments" to be used for whatever total SGA that you subsequently configure in Oracle. For additional detail, please see

# #

Vi / etc/security/limits.conf

Oracle soft nproc 2047

Oracle hard nproc 16384

Oracle soft nofile 1024

Oracle hard nofile 65536

Oracle soft stack 10240

Oracle hard stack 10240

Grid soft nproc 2047

Grid hard nproc 16384

Grid soft nofile 1024

Grid hard nofile 65536

Grid soft stack 10240

Grid hard stack 10240

# # create an installation directory

Mkdir-p / u01/app/grid

Mkdir-p / u01/app/gridhome

Mkdir-p / u01/app/oracle

Chown grid:oinstall / u01/app/grid

Chown grid:oinstall / u01/app/gridhome

Chown-R oracle:oinstall / u01/app/oracle

# # modify hosts file and Nic name

Ip add | grep enp0s8 | grep inet | awk'{print $2}'| awk-F "/'{printf $1"} {cmd=" hostname "; system (cmd)}'> > / etc/hosts

Cat / etc/hosts

# # disable Firewall and selinux

[root@localhost ~] # systemctl stop firewalld

[root@localhost ~] # systemctl disable firewalld

Removed symlink / etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.

Removed symlink / etc/systemd/system/basic.target.wants/firewalld.service.

[root@rhel7ora11 ~] # getenforce

Enforcing

[root@rhel7ora11 ~] # setenforce 0

[root@rhel7ora11 ~] # getenforce

Permissive

[root@rhel7ora11 ~] # vi / etc/selinux/config

SELINUX=disabled

Or

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

# # udev binds bare devices. Only permissions are bound here.

[root@rhel7-ora12c-ip156] # / usr/lib/udev/scsi_id-g-u / dev/sdb1

1ATA_VBOX_HARDDISK_VBc9bd6bdf-a347ac26

[root@rhel7-ora12c-ip156] # / usr/lib/udev/scsi_id-g-u / dev/sdc1

1ATA_VBOX_HARDDISK_VB8aeda10c-71ca412a

[root@rhel7-ora12c-ip156 ~] # vi / etc/udev/rules.d/99-oracle-asmdevices.rules

KERNEL== "sd?1", SUBSYSTEM== "block", PROGRAM== "/ lib/udev/scsi_id-g-u-d / dev/$parent"

RESULT== "1ATA_VBOX_HARDDISK_VBc9bd6bdf-a347ac26", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"

KERNEL== "sd?1", SUBSYSTEM== "block", PROGRAM== "/ lib/udev/scsi_id-g-u-d / dev/$parent"

RESULT== "1ATA_VBOX_HARDDISK_VB8aeda10c-71ca412a", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"

[root@rhel7-ora12c-ip156 ~] # systemctl restart systemd-udev-trigger.service

[root@rhel7-ora12c-ip156 ~] # ls-Ll / dev/sd?1

# # setting user Parameter File

Su-grid

Export ORACLE_BASE=/u01/app/grid

Export ORACLE_HOME=/u01/app/gridhome

Export ORACLE_SID=+ASM

PATH=$ORACLE_HOME/bin:$PATH

Export LD_LIBRARY_PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/local/bin

Export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib

Su-oracle

ORACLE_BASE=/u01/app/oracle

ORACLE_HOME=/u01/app/oracle/product/12.2.0/db_1

ORACLE_SID=orcl

Export ORACLE_BASE ORACLE_HOME ORACLE_SID

Export PATH=$ORACLE_HOME/bin:$PATH:$HOME/bin:/usr/bin:/sbin

Export LD_LIBRARY_PATH=$ORACLE_HOME/lib

# # installing cvuqdisk

[root@rhel7-ora12c-ip156 gridhome] # rpm-ivh. / cv/rpm/cvuqdisk-1.0.10-1.rpm

# # Edit the ohas file, monitor the / etc/init.d/init.ohasd file all the time after executing the root.sh script, and start the ohas service as soon as the file exists

[root@rhel7-ora12c-ip156 ~] # vi / usr/lib/systemd/system/ohas.service

[Unit]

Description=Oracle High Availability Services

After=syslog.target

[Service]

ExecStart=/etc/init.d/init.ohasd run > / dev/null 2 > & 1 Type=simple

Restart=always

[Install]

WantedBy=multi-user.target

[root@rhel7-ora12c-ip156 ~] # chmod 777 / usr/lib/systemd/system/ohas.service

# # after executing the root script, always check whether the following file exists, start oha manually as soon as the file exists, and recommend it

[root@rhel7-ora12c-ip156 ~] # ls / etc/init.d/init.ohasd

/ etc/init.d/init.ohasd

[root@rhel7-ora12c-ip156 ~] # systemctl start ohas.service

[root@rhel7-ora12c-ip156 ~] # systemctl status ohas.service

● ohas.service-Oracle High Availability Services

Loaded: loaded (/ usr/lib/systemd/system/ohas.service; disabled; vendor preset: disabled)

Active: active (running) since Fri 2017-09-15 03:40:12 EDT; 5s ago

Main PID: 11434 (init.ohasd)

CGroup: / system.slice/ohas.service

└─ 11434 / bin/sh / etc/init.d/init.ohasd run > / dev/null 2 > & 1 Type=simple

Sep 15 03:40:12 rhel7-ora12c-ip156 systemd [1]: Started Oracle High Availability Services.

Sep 15 03:40:12 rhel7-ora12c-ip156 systemd [1]: Starting Oracle High Availability Services...

Sep 15 03:40:12 rhel7-ora12c-ip156 su [11461]: (to grid) root on none

[root@rhel7-ora12c-ip156 ~] # / u01/app/grid/oraInventory/orainstRoot.sh

Changing permissions of / u01/app/grid/oraInventory.

Adding read,write permissions for group.

Removing read,write,execute permissions for world.

Changing groupname of / u01/app/grid/oraInventory to oinstall.

The execution of the script is complete.

[root@rhel7-ora12c-ip156 ~] # / u01/app/gridhome/root.sh

Performing root user operation.

The following environment variables are set as:

ORACLE_OWNER= grid

ORACLE_HOME= / u01/app/gridhome

Enter the full pathname of the local bin directory: [/ usr/local/bin]:

The contents of "dbhome" have not changed. No need to overwrite.

The contents of "oraenv" have not changed. No need to overwrite.

The contents of "coraenv" have not changed. No need to overwrite.

Entries will be added to the / etc/oratab file as needed by

Database Configuration Assistant when a database is created

Finished running generic part of root script.

Now product-specific root actions will be performed.

Using configuration parameter file: / u01/app/gridhome/crs/install/crsconfig_params

The log of current session can be found at:

/ u01/app/grid/crsdata/rhel7-ora12c-ip156/crsconfig/roothas_2017-09-15003-40-36AM.log

2017-09-15 03:40:36 CLSRSC-363: User ignored prerequisites during installation

03:40:40 on 2017-09-15 CLSRSC-330: Adding Clusterware entries to file 'oracle-ohasd.service'

CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'rhel7-ora12c-ip156'

CRS-2673: Attempting to stop 'ora.evmd' on' rhel7-ora12c-ip156'

CRS-2677: Stop of 'ora.evmd' on' rhel7-ora12c-ip156' succeeded

CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'rhel7-ora12c-ip156' has completed

CRS-4133: Oracle High Availability Services has been stopped.

CRS-4123: Oracle High Availability Services has been started.

Rhel7-ora12c-ip156 2017-09-15 03:41:35 / u01/app/gridhome/cdata/rhel7-ora12c-ip156/backup_20170915_034135.olr 0

# # error report:

03:35:51 on 2017-09-16 CLSRSC-330: Adding Clusterware entries to file 'oracle-ohasd.service'

2017-09-16 03:36:34 CLSRSC-400: A system reboot is required to continue installing.

The command'/ u01/app/gridhome/perl/bin/perl-I/u01/app/gridhome/perl/lib-I/u01/app/gridhome/crs/install / u01/app/gridhome/crs/install/roothas.pl 'execution failed

Resolve:

[grid@dbs0biiprc01 ~] $acfsdriverstate-orahome $ORACLE_HOME supported

ACFS-9459: ADVM/ACFS is not supported on this OS version: '3.10.0-514.el7.x86room64'

ACFS-9201: Not Supported

Execute the root script again

[root@rhel7-ora12c-ip156] # / u01/app/gridhome/bin/crsctl stat res-t

Name Target State Server State details

Local Resources

Ora.DATA1.dg

ONLINE ONLINE rhel7-ora12c-ip156 STABLE

Ora.LISTENER.lsnr

ONLINE ONLINE rhel7-ora12c-ip156 STABLE

Ora.asm

ONLINE ONLINE rhel7-ora12c-ip156 Started,STABLE

Ora.ons

OFFLINE OFFLINE rhel7-ora12c-ip156 STABLE

Cluster Resources

Ora.cssd

1 ONLINE ONLINE rhel7-ora12c-ip156 STABLE

Ora.diskmon

1 OFFLINE OFFLINE STABLE

Ora.evmd

1 ONLINE ONLINE rhel7-ora12c-ip156 STABLE

The above is all the content of the article "how RHEL7.3 installs oracle12c single point grid and rdbms". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

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