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

Centos6.7 install oracle 12c R1 (1)

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

Yesterday, I just received a phone call from a colleague and the leader asked to install and deploy an oracle12c, and they didn't even know what c meant. There was no way to install it. Who told us to be technical, that is, to solve technical problems? needless to say, here are the records of my installation:

First, install the centos system I will not introduce there are many on the Internet.

Second, configure the yun source to install the packages required by oracle.

Http://public-yum.oracle.com/getting-started.html it is very clear here that after configuring yum, install a package oracle-rdbms-server-12cR1-preinstall, which is an official oracle tool to help us configure the system environment.

Error 14 occurred because authentication was not turned off and the centos system did not allow installation. (or the verification that you import into the official website, wget http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6-O / etc/pki/rpm-gpg/RPM-GPG-KEY-oracle)

The installation is successful again!

Here's an introduction.

What the oracle-rdbms-server package does

(1) automatically install the RPM package required by oracle

(2) automatically create oracle users and group groups

(3) automatically configure / etc/sysctl.conf kernel parameters

(4) automatically configure / etc/security/limits.conf parameters

(5) disable NUMA=OFF (disable non-uniform memory access)

The rpm packages required for Oracle 12c are as follows: (I found the following list online, my version is different, and the names of the packages are all the same.)

Binutils-2.20.51.0.2-5.11.el6 (x86'64) compat-libcap1-1.10-1 (x86'64) compat-libstdc++-33-3.2.3-69.el6 (x86'64) 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) kshlibgcc-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) libXext-1.1 (x86'64) libXext-1.1 (i686) libXtst-1.0.99.2 (x86 _ 64) libXtst-1.0.99.2 (i686) libX11-1.3 (x86'64) libX11-1.3 (i686) libXau-1.0.5 (x86'64) libXau-1.0.5 (i686) libxcb-1.5 (x86'64) libxcb-1.5 (i686) libXi-1.3 (x86'64) libXi-1.3 (i686) make-3.81-19.el6sysstat-9.0.4-11.el6 (x86'64)

In order to determine whether these packages have been installed, I checked to make sure that they have been installed. If you do not install the above package, you have to install these packages and configure your oracle account. This package has all been done, hehe!

Like me, you can directly jump to three parts to install oracle.

If you install your own yum, remember to modify some packages that require 32 and 64 bits (you don't need to configure these when you install the oracle-rdbms-server package).

Modify yum configuration to install both 32-bit and 64-bit rpm echo 'multilib_policy=all' > > / etc/yum.conf by default

Yum install binutils compat-libcap1 compat-libstdc++-33 gcc gcc-c++ glibc glibc-devel ksh libgcc libstdc++ libstdc++-devel libaio libaio-devel libXext libXtst libX11 libXau libxcb libXi make sysstatvi / etc/sysctl.conffs.aio-max-nr = 1048576fs.file-max = 6815744kernel.shmall = 2097152kernel.shmmax = 536870912kernel.shmmni = 4096kernel.sem = 32000 100 128net.ipv4.ip_local_port_range = 9000 65500net.core.rmem_default = 262144net.core.rmem_max = 4194304net.core.wmem_default = 262144net.core.wmem_max = 1048586

View the id of the oracle user group

More / etc/passwd

Oracle:x:54321:54321::/home/oracle:/bin/bash

Modify large memory limit

Echo 54321 > / proc/sys/vm/hugetlb_shm_group

Vi / etc/sysctl.conf

Vm.hugetlb_shm_group=54321

Modify the user Limits (install the oracle-rdbms-server package without configuration and will be automatically added in / etc/security/limits.d/oracle-rdbms-server-12cR1-preinstall.conf)

Vi / etc/security/limits.conf

The following contents are added:

Oracle soft nofile 65536oracle hard nofile 65536oracle soft nproc 16384oracle hard nproc 16384oracle stack nproc 10240oracle stack nproc 10240

Third, the following configurations have to be configured on their own.

1 create related directories

Mkdir-p / u01/app/ chown-R oracle:oinstall / u01/app/ chmod-R 775 / u01/app/

2 configure the host file, oracle abandons the concept of IP and replaces the domain name

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