Oracle_linux installation oracle_12.1.0

Source: Internet
Author: User

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 UnixODB c-devel.x86_64 unixodbc.i686 unixodbc.x86_64 compat-libstdc++-33.i686 compat-libstdc++-33.x86_64

Turn off SELinux and Firewalld


2 Setting host resolution: Host name Oracle

10.0.0.2 Oracle


3 Creating groups and users

Groupadd Oinstall
Groupadd dba
Useradd-g oinstall-g dba oracle/usermod-g oinstall-g dba Oracle (with account re-assigned command)
passwd Oracle


4 Modifying 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 System Resource Limit Configuration

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 Database folder assignment 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 Setting 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 Setting display variables (avoid VNC connection installation errors)

Export Display=:1


Next, follow the custom installation via the VNC GUI, without any error prompts


When the installation is complete:

To see if you are listening:

[Email protected] ~]$ 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 isn't SET, unable to auto-stop Oracle Net Listener USAG

The corresponding script file will be changed to:

Oracle_home_listner=$1 modified to oracle_home_listner= $ORACLE _home



This article is from the "King Good Handsome" blog, please be sure to keep this source http://dawang.blog.51cto.com/4927689/1674057

Oracle_linux installation oracle_12.1.0

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.