In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces "how to install oracle12C R2 in linux7 system". In daily operation, I believe many people have doubts about how to install oracle12C R2 in linux7 system. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how to install oracle12C R2 in linux7 system". Next, please follow the editor to study!
# # memory check
# Minimum: 1 GB of RAM
# Recommended: 2 GB of RAM or more
Grep MemTotal / proc/meminfo | awk'{print $2ax 1024 "MB"}'
# # check of swap
# Available RAM,Swap Space Required
# Between 1 GB and 2 GB, 1.5 times the size of the RAM
# Between 2 GB and 16 GB, Equal to the size of the RAM
# More than 16 GB, 16 GB
Grep SwapTotal / proc/meminfo | awk'{print $2ax 1024 "MB"}'
# # packages for linux6
Binutils-2.20.51.0.2-5.11.el6 (x86 / 64)
Compat-libcap1-1.10-1 (x86x64)
Compat-libstdc++-33-3.2.3-69.el6 (x86x64)
Compat-libstdc++-33-3.2.3-69.el6.i686
Gcc-4.4.4-13.el6 (x86 / 64)
Gcc-c++-4.4.4-13.el6 (x86 / 64)
Glibc-2.12-1.7.el6 (i686)
Glibc-2.12-1.7.el6 (x86 / 64)
Glibc-devel-2.12-1.7.el6 (x86 / 64)
Glibc-devel-2.12-1.7.el6.i686
Ksh
Libgcc-4.4.4-13.el6 (i686)
Libgcc-4.4.4-13.el6 (x86 / 64)
Libstdc++-4.4.4-13.el6 (x86 / 64)
Libstdc++-4.4.4-13.el6.i686
Libstdc++-devel-4.4.4-13.el6 (x86 / 64)
Libstdc++-devel-4.4.4-13.el6.i686
Libaio-0.3.107-10.el6 (x86 / 64)
Libaio-0.3.107-10.el6.i686
Libaio-devel-0.3.107-10.el6 (x86 / 64)
Libaio-devel-0.3.107-10.el6.i686
Make-3.81-19.el6
Sysstat-9.0.4-11.el6 (x86 / 64)
Yum-y install binutils compat-libcap1 compat-libstdc++ compat-libstdc++*.i686 gcc gcc-c++ glibc-2*.i686 glibc glibc-devel*.i686 glibc-devel ksh libgcc libgcc-*.i686 libstdc++*.i686 libstdc++ libstdc++-devel libstdc++devel*.i686 libaio-*.i686 libaio libaio-*.i686 libaio-devel libaio-devel*.i686 make sysstat unixODBC-devel unixODBC*.i686
# # 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
# # create user and group
Groupadd-g 1000 oinstall
Groupadd-g 1001 dba
Groupadd-g 1002 oper
Useradd-g oinstall-G dba,oper oracle
# # 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
# # create a software installation directory
Mkdir-p / u01/app/oracle
Chown-R oracle:oinstall / u01/app/oracle
# # adding Local parameters
Su-oracle
Vi .bash _ profile
Umask 0022
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
LD_LIBRARY_PATH=$ORACLE_HOME/lib
# # modifying hosts File
Ip add | grep enp0s8 | grep inet | awk'{print $2}'| awk-F "/'{printf $1"} {cmd=" hostname "; system (cmd)}'> > / etc/hosts
Cat / etc/hosts
# # booting up and starting graphical
[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
?
# # 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
# # installation
. / runInstaller
# execute script
[root@rhel7-ora12c-ip156 ~] # / u01/app/oraInventory/orainstRoot.sh
Changing permissions of / u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of / u01/app/oraInventory to oinstall.
The execution of the script is complete.
[root@rhel7-ora12c-ip156 ~] # / u01/app/oracle/product/12.2.0/db_1/root.sh
Performing root user operation.
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= / u01/app/oracle/product/12.2.0/db_1
Enter the full pathname of the local bin directory: [/ usr/local/bin]:
Copying dbhome to / usr/local/bin...
Copying oraenv to / usr/local/bin...
Copying coraenv to / usr/local/bin...
Creating / etc/oratab file...
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.
Do you want to setup Oracle Trace File Analyzer (TFA) now? Yes | [no]:
No
Oracle Trace File Analyzer (TFA-User Mode) is available at:
/ u01/app/oracle/product/12.2.0/db_1/suptools/tfa/release/tfa_home/bin/tfactl
OR
Oracle Trace File Analyzer (TFA-Daemon Mode) can be installed by running this script:
/ u01/app/oracle/product/12.2.0/db_1/suptools/tfa/release/tfa_home/install/roottfa.sh
# dbca creates a database. Assm management requires at least 1460m memory allocation.
At this point, the study on "how to install oracle12C R2 in linux7 system" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.