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 oracle_12.1.0 in linux

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

Share

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

This article is about how linux installs oracle_12.1.0. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

1 preparation before installation

Yum-y install binutils compat-libcap1 compat-libstdc++.i686 compat-libstdc++.x86_64 elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc.i686 glibc.x86_64 glibc-devel.i686 glibc-devel.x86_64 ksh libgcc.i686 libgcc.x86_64 libstdc++.i686 libstdc++.x86_64 libstdc++-devel.i686 libstdc++-devel.x86_64 libaio.i686 libaio.x86_64 libaio-devel.i686 libaio-devel.x86_64 libXext libXtst libX11 libXau libxcb libXi make sysstat unixODBC-devel.i686 unixODBC-devel.x86_ 64 unixODBC.i686 unixODBC.x86_64 compat-libstdc++-33.i686 compat-libstdc++-33.x86_64

Close selinux and firewalld

2 set host resolution: host name oracle

10.0.0.2 oracle

3 create groups and users

Groupadd oinstall

Groupadd dba

Useradd-g oinstall-G dba oracle / usermod-g oinstall-G dba oracle (there is a command to renew the account)

Passwd oracle

4 modify kernel parameters

Vi / etc/sysctl.d/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

Sysctl-p

5 configuration of system resource restrictions

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

6 create a database folder to assign group permissions

Mkdir-p / u01/app/

Mkdir-p / u01/app/oracle/product/12.1.0/dbhome_1

Chown-R oracle:oinstall / u01/app/

Chmod-R 775 / u01/app/

7 set environment variables

ORACLE_BASE=/u01/app

ORACLE_HOME=$ORACLE_BASE/oracle/product/12.1.0/dbhome_1

ORACLE_SID=orcl

LD_LIBRARY_PATH=$ORACLE_HOME/lib

PATH=$PATH:$ORACLE_HOME/bin:$HOME/bin

Export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH PATH

8 set the DISPLAY variable (avoid errors in vnc connection installation)

Export DISPLAY=:1

Next, follow the custom installation through the vnc graphical interface, without any error prompt.

After installation:

Check to see if you are listening:

[oracle@oracle ~] $ps-ef | grep LISTENER

Oracle 9976 1 0 Jul13? 00:00:00 / u01/app/oracle/product/12.1.0/dbhome_1/bin/tnslsnr LISTENER-inherit

There was an error restarting the database dbshut:

ORACLE_HOME_LISTNER is not SET, unable to auto-stop Oracle Net Listener Usag

The corresponding script file will be changed to:

Change ORACLE_HOME_LISTNER=$1 to ORACLE_HOME_LISTNER=$ORACLE_HOME

Thank you for reading! This is the end of this article on "how to install oracle_12.1.0 in linux". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!

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