In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "how to install 11G grid and Rdbms in RHEL7.3". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn how to install 11G grid and Rdbms in RHEL7.3.
# # 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
# # installation package
Yum-y install binutils compat-libstdc++ compat-libcap1 gcc gcc-c++ glibc glibc*.i686 glibc-devel glibc-devel*.i686 ksh libaio*.i686 libaio libaio-devel*.i686 libaio-devel libgcc*.i686 libgcc libstdc++*.i686 libstdc++ libstdc++-devel*.i686 libstdc++-devel libXi*.i686 libXi libXtst*.i686 libXtst make sysstat unixODBC*.i686 unixODBC unixODBC-devel
Yum-y localinstall compat-libstdc++-33-3.2.3-72.el7.x86_64.rpm
Yum-y localinstall elfutils-libelf-devel-0.166-2.el7.x86_64.rpm
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 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
Binutils-2.23.52.0.1-12.el7.x86_64
Compat-libcap1-1.10-3.el7.x86_64
Compat-libstdc++-33-3.2.3-71.el7.i686
Compat-libstdc++-33-3.2.3-71.el7.x86_64
Gcc-4.8.2-3.el7.x86_64
Gcc-c++-4.8.2-3.el7.x86_64
Glibc-2.17-36.el7.i686
Glibc-2.17-36.el7.x86_64
Glibc-devel-2.17-36.el7.i686
Glibc-devel-2.17-36.el7.x86_64
Ksh
Libaio-0.3.109-9.el7.i686
Libaio-0.3.109-9.el7.x86_64
Libaio-devel-0.3.109-9.el7.i686
Libaio-devel-0.3.109-9.el7.x86_64
Libgcc-4.8.2-3.el7.i686
Libgcc-4.8.2-3.el7.x86_64
Libstdc++-4.8.2-3.el7.i686
Libstdc++-4.8.2-3.el7.x86_64
Libstdc++-devel-4.8.2-3.el7.i686
Libstdc++-devel-4.8.2-3.el7.x86_64
LibXi-1.7.2-1.el7.i686
LibXi-1.7.2-1.el7.x86_64
LibXtst-1.2.2-1.el7.i686
LibXtst-1.2.2-1.el7.x86_64
Make-3.82-19.el7.x86_64
Sysstat-10.1.5-1.el7.x86_64
# # 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
# # memory Parameter configuration
Vi / etc/sysctl.conf
Fs.aio-max-nr = 1048576
Fs.file-max = 6815744
Kernel.shmmni = 4096
Kernel.shmall = 2097152
Kernel.shmmax = 964507648
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
# # (official recommendation in English), / sbin/sysctl-a | grep shm
Kernel.shmall = 2097152 # total shared memory, 8G memory setting: 2097152*4k/1024/1024
40 percent of the size of physical memory in pages
Note: If the server supports multiple databases, or uses a large SGA, then set this parameter to a value that is equal to the total amount of shared memory, in 4K pages, that the system can use at one time.
Kernel.shmmax = 4294967295 # Segment size of maximum shared memory
Half the size of physical memory in bytes
See My Oracle Support Note 567506.1 for additional information about configuring shmmax.
# # query configuration
/ sbin/sysctl-a | grep ""
# vi / etc/security/limits.conf
Grid soft nproc 2047
Grid hard nproc 16384
Grid soft nofile 1024
Grid hard nofile 65536
Oracle soft nproc 2047
Oracle hard nproc 16384
Oracle soft nofile 1024
Oracle hard nofile 65536
# # create installation directory and empowerment
Mkdir-p / u01/grid
Mkdir-p / u01/gridhome
Mkdir-p / u01/oracle
Chown-R grid:oinstall / u01/grid
Chmod-R 755 / u01/grid
Chown-R grid:oinstall / u01/gridhome
Chmod-R 755 / u01/gridhome
Chown-R oracle:oinstall / u01/oracle
Chmod-R 755 / u01/oracle
# udev binds bare devices. Only permissions are bound here.
[root@rhel7ora11] # / usr/lib/udev/scsi_id-g-u / dev/sdb1
1ATA_VBOX_HARDDISK_VBfa21baba-d14e1c11
[root@rhel7ora11] # / usr/lib/udev/scsi_id-g-u / dev/sdb2
1ATA_VBOX_HARDDISK_VBfa21baba-d14e1c11
[root@rhel7ora11 ~] # 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_VBfa21baba-d14e1c11", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"
KERNEL== "sd?2", SUBSYSTEM== "block", PROGRAM== "/ lib/udev/scsi_id-g-u-d / dev/$parent"
RESULT== "1ATA_VBOX_HARDDISK_VBfa21baba-d14e1c11", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"
[root@rhel7ora11 ~] # systemctl restart systemd-udev-trigger.service
[root@rhel7ora11 ~] # ls-l / dev/sdb*
Brw-rw---- 1 root disk 8, 16 Aug 7 14:02 / dev/sdb
Brw-rw---- 1 grid asmadmin 8, 17 Aug 7 14:02 / dev/sdb1
Brw-rw---- 1 grid asmadmin 8, 18 Aug 7 14:02 / dev/sdb2
# set user parameter file
Su-grid
Export ORACLE_BASE=/u01/grid
Export ORACLE_HOME=/u01/gridhome/11g
Export ORACLE_SID=+ASM1
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
Export ORACLE_BASE=/u01/oracle
Export ORACLE_HOME=$ORACLE_BASE/11g
Export ORACLE_SID=orcl
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
# # installing grid
. / runInstaller
# Note: before executing the root script, perform the following steps, otherwise an error will be reported and the ohas service cannot be started
Touch / usr/lib/systemd/system/ohas.service
Chmod 777 / 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
Systemctl daemon-reload
Systemctl enable ohas.service
Systemctl start ohas.service
Systemctl status ohas.service
[root@rhel7ora11 ~] # systemctl daemon-reload
[root@rhel7ora11 ~] # systemctl enable ohas.service
Created symlink from / etc/systemd/system/multi-user.target.wants/ohas.service to / usr/lib/systemd/system/ohas.service.
[root@rhel7ora11 ~] # systemctl start ohas.service
[root@rhel7ora11 ~] # systemctl status ohas.service
[0m ohas.service-Oracle High Availability Services
Loaded: loaded (/ usr/lib/systemd/system/ohas.service; enabled; vendor preset: disabled)
Active: failed (Result: start-limit) since Sun 2017-08-06 00:10:44 CST; 3s ago
Process: 20405 ExecStart=/etc/init.d/init.ohasd run > / dev/null 2 > & 1 Type=simple (code=exited, status=203/EXEC)
Main PID: 20405 (code=exited, status=203/EXEC)
Aug 06 00:10:44 rhel7ora11 systemd [1]: ohas.service: main process exited, code=exited, status=203/EXEC
Aug 06 00:10:44 rhel7ora11 systemd [1]: Unit ohas.service entered failed state.
Aug 06 00:10:44 rhel7ora11 systemd [1]: ohas.service failed.
Aug 06 00:10:44 rhel7ora11 systemd [1]: ohas.service holdoff time over, scheduling restart.
Aug 06 00:10:44 rhel7ora11 systemd [1]: start request repeated too quickly for ohas.service
Aug 06 00:10:44 rhel7ora11 systemd [1]: Failed to start Oracle High Availability Services.
Aug 06 00:10:44 rhel7ora11 systemd [1]: Unit ohas.service entered failed state.
Aug 06 00:10:44 rhel7ora11 systemd [1]: ohas.service failed.
# # if you can't start normally, always check whether the following file exists, start oha manually as soon as the file exists, and recommend it.
[root@rhel7ora11 ~] # ls / etc/init.d/init.ohasd
Ls: cannot access / etc/init.d/init.ohasd: No such file or directory
[root@rhel7ora11 ~] # ls / etc/init.d/init.ohasd
/ etc/init.d/init.ohasd
[root@rhel7ora11 ~] # systemctl start ohas.service
[root@rhel7ora11 ~] # systemctl status ohas.service
[0m ohas.service-Oracle High Availability Services
Loaded: loaded (/ usr/lib/systemd/system/ohas.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2017-08-06 00:12:18 CST; 2s ago
Main PID: 23278 (init.ohasd)
CGroup: / system.slice/ohas.service
23278 / bin/sh / etc/init.d/init.ohasd run > / dev/null 2 > & 1 Type=simple
Aug 06 00:12:18 rhel7ora11 systemd [1]: Started Oracle High Availability Services.
Aug 06 00:12:18 rhel7ora11 systemd [1]: Starting Oracle High Availability Services...
Aug 06 00:12:18 rhel7ora11 su [23298]: (to grid) root on none
[root@rhel7ora11 ~] # systemctl status ohas.service
[0m ohas.service-Oracle High Availability Services
Loaded: loaded (/ usr/lib/systemd/system/ohas.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2017-08-06 00:12:18 CST; 13s ago
Main PID: 23278 (init.ohasd)
CGroup: / system.slice/ohas.service
23278 / bin/sh / etc/init.d/init.ohasd run > / dev/null 2 > & 1 Type=simple
Aug 06 00:12:18 rhel7ora11 systemd [1]: Started Oracle High Availability Services.
Aug 06 00:12:18 rhel7ora11 systemd [1]: Starting Oracle High Availability Services...
Aug 06 00:12:18 rhel7ora11 su [23298]: (to grid) root on none
# # installing rdbms
Cd database/
. / runInstaller
Note: if an error Error in invoking target 'agent nmhs' of makefile is reported
Solution:
Cd $ORACLE_HOME/sysman/lib
Vi ins_emagent.mk
The modifications are as follows:
# = =
# emdctl
# = =
$(SYSMANBIN) emdctl:
$(MK_EMAGENT_NMECTL)
To be replaced by:
$(SYSMANBIN) emdctl:
$(MK_EMAGENT_NMECTL)-lnnz11
And then retry
Thank you for reading, the above is the content of "how to install 11G grid and Rdbms in RHEL7.3". After the study of this article, I believe you have a deeper understanding of how to install 11G grid and Rdbms in RHEL7.3, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.