In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-12 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 Oracle 12c on Linux 7, which has a certain reference value, and interested friends can refer to it. I hope you will gain a lot after reading this article.
Download the software
1 、 Oralce linux 7
2 、 Oracle 12c
Second, install and set up Oracle linux
1. Install Oracle Linux
2. Set the host name
/ etc/hosts
/ etc/hostname
3. Set SELINUX
/ etc/selinux/config
SELINUX=permissive
> setenforce Permissive
4. Close the protective wall
> stemctl stop firewalld
> systemctl disable firewalld
5. Yum library configuration
Mount / dev/cdrom / mnt
Mount / dev/ddvd / mnt [you can try]
/ etc/yum.repos.d
> cp public-yum-ol7.repo public-yum-ol7.repobak
[ol7_u0_base]
Name=Oracle Linux $releasever GA installation media copy ($basearch)
Baseurl= file:///mnt
Gpgkey= file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
Gpgcheck=1
Enabled=1
Yum clean
Yum list
Yum update-y
Yum install oracle-database-server-12cR2-preinstall-y
Yum groupinstall'X Window System'-y
5. Set up by hand
If there is no yum install oracle-database-server-12cR2-preinstall-y, the following settings are required
(1) / etc/sysctl.conf "file, or in a file called" / etc/sysctl.d/98-oracle.conf ".
Fs.file-max = 6815744
Kernel.sem = 250 32000 100 128
Kernel.shmmni = 4096
Kernel.shmall = 1073741824
Kernel.shmmax = 4398046511104
Kernel.panic_on_oops = 1
Net.core.rmem_default = 262144
Net.core.rmem_max = 4194304
Net.core.wmem_default = 262144
Net.core.wmem_max = 1048576
Net.ipv4.conf.all.rp_filter = 2
Net.ipv4.conf.default.rp_filter = 2
Fs.aio-max-nr = 1048576
Net.ipv4.ip_local_port_range = 9000 65500
/ sbin/sysctl-p
(2) Add the following lines to a file called "/ etc/security/limits.d/oracle-database-server-12cR2-preinstall.conf" file
Oracle soft nofile 1024
Oracle hard nofile 65536
Oracle soft nproc 16384
Oracle hard nproc 16384
Oracle soft stack 10240
Oracle hard stack 32768
Oracle hard memlock 134217728
Oracle soft memlock 134217728
(3) rpm package
# OL6 and OL7 (RHEL6 and RHEL7)
Yum install binutils-y
Yum install compat-libcap1-y
Yum install compat-libstdc++-33-y
Yum install compat-libstdc++-33.i686-y
Yum install glibc-y
Yum install glibc.i686-y
Yum install glibc-devel-y
Yum install glibc-devel.i686-y
Yum install ksh-y
Yum install libaio-y
Yum install libaio.i686-y
Yum install libaio-devel-y
Yum install libaio-devel.i686-y
Yum install libX11-y
Yum install libX11.i686-y
Yum install libXau-y
Yum install libXau.i686-y
Yum install libXi-y
Yum install libXi.i686-y
Yum install libXtst-y
Yum install libXtst.i686-y
Yum install libgcc-y
Yum install libgcc.i686-y
Yum install libstdc++-y
Yum install libstdc++.i686-y
Yum install libstdc++-devel-y
Yum install libstdc++-devel.i686-y
Yum install libxcb-y
Yum install libxcb.i686-y
Yum install make-y
Yum install nfs-utils-y
Yum install net-tools-y
Yum install smartmontools-y
Yum install sysstat-y
Yum install unixODBC-y
Yum install unixODBC-devel-y
# Required for 12.1, not listed for 12.2
Yum install gcc-y
Yum install gcc-c++-y
Yum install libXext-y
Yum install libXext.i686-y
Yum install zlib-devel-y
Yum install zlib-devel.i686-y
# OL6 only (RHEL6 only)
Yum install e2fsprogs-y
Yum install e2fsprogs-libs-y
Yum install libs-y
Yum install libxcb.i686-y
Yum install libxcb-y
(4) set up users and groups
Groupadd-g 54321 oinstall
Groupadd-g 54322 dba
Groupadd-g 54323 oper
# groupadd-g 54324 backupdba
# groupadd-g 54325 dgdba
# groupadd-g 54326 kmdba
# groupadd-g 54327 asmdba
# groupadd-g 54328 asmoper
# groupadd-g 54329 asmadmin
# groupadd-g 54330 racdba
Useradd-g oinstall-G dba,oper oracle
Usermod-g oinstall-G dba,oper oracle
Passwd oracle
6. Set up a directory
Mkdir-p / u01/app/oracle/product/12.2.0.1/db_1
Chown-R oracle:oinstall / U01
Chmod-R 775 / U01
7. Configure oracle environment variables
.bash _ profile
Export TMP=/tmp
Export TMPDIR=$TMP
Export ORACLE_HOSTNAME=ole
Export ORACLE_UNQNAME=orcl
Export ORACLE_BASE=/u01/app/oracle
Export ORACLE_HOME=$ORACLE_BASE/product/12.2.0.1/db_1
Export ORACLE_SID=orcl
Export PATH=/usr/sbin:/usr/local/bin:$PATH
Export PATH=$ORACLE_HOME/bin:$PATH
Export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
Export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
DISPLAY=:0.0; export DISPLAY
Install Oracle database 12c
Thank you for reading this article carefully. I hope the article "how to install Oracle 12c on Linux 7" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
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.