Linux_oracle Installation Tutorials

Source: Internet
Author: User
Tags dba joins create database remote desktop access

First, prepare for the installation of Oracle
1. Create a system user and user group that runs the Oracle database
Groupadd Oinstall #创建用户组oinstall
Groupadd DBA #创建用户组dba
Useradd-g oinstall-g dba-m Oracle #创建oracle用户 and joins the Oinstall and DBA user groups
Useradd-g oinstall-g dba-m Oracle #创建oracle用户 and joins the Oinstall and DBA user groups
passwd Oracle #设置oracle密码

ID Oracle # View new Oracle Users

Groupadd Oinstall
Groupadd dba
USERADD-G oinstall-g dba-m Oracle
USERADD-G oinstall-g dba-m Oracle
passwd Oracle
ID Oracle

2. Modifying operating system core parameters
1) Modify the user's shell limit, modify the/etc/security/limits.conf file
Oracle Soft Nproc 2047
Oracle Hard Nproc 16384
Oracle Soft Nofile 1024
Oracle Hard Nofile 65536
2) Modify the/etc/pam.d/login file
Session required/lib/security/
Session Required
3) Modify the Linux kernel, modify the/etc/sysctl.conf file
Fs.file-max = 6815744
FS.AIO-MAX-NR = 1048576
Kernel.shmall = 2097152
Kernel.shmmax = 2147483648
Kernel.shmmni = 4096
Kernel.sem = 250 32000 100 128
Net.ipv4.ip_local_port_range = 9000 65500
Net.core.rmem_default = 4194304
Net.core.rmem_max = 4194304
Net.core.wmem_default = 262144
Net.core.wmem_max = 1048576
4) to make the/etc/sysctl.conf change take effect immediately, execute the following command. Input: Sysctl-p
5) Edit/etc/profile, enter command: Vi/etc/profile
if [$USER = "Oracle"]; Then
if [$SHELL = "/bin/ksh"]; Then
Ulimit-p 16384
Ulimit-n 65536
Ulimit-u 16384-n 65536
6) Create database software directory and data file directory, directory location, according to their own situation, pay attention to disk space, here I put it under the Oracle user

7) Change Directory owner is owned by Oracle user
Chown-r Oracle:oinstall/home/oracle/app

8) Configure the environment variables for the Oracle user, first, switch to the newly created Oracle user,
Input: Su–oracle, and then directly in the input: Vi. bash_profile
Press I to edit. Bash_profile, enter edit mode to add the following:
Export Oracle_base=/home/oracle/app
Export Oracle_home= $ORACLE _base/oracle/product/11.2.0/dbhome_1
Export path= $PATH: $HOME/bin: $ORACLE _home/bin
Export Ld_library_path= $ORACLE _home/lib:/usr/lib
--Shut down the firewall CentOS 7.2 uses firewall as a firewall by default
Su Root #切换到root用户
Systemctl status Firewalld.service #查看防火墙状态, running
Systemctl Stop Firewalld.service #关闭防火墙
Systemctl status Firewalld.service #再次查看防火墙状态, found closed
Systemctl Disable Firewalld.service #禁止使用防火墙 (restart is also prohibited)
Turn off SELinux (requires reboot to take effect)
Selinux=disabled #此处修改为disabled

Ii. Formal Oracle installation process
2.1.1 CentOS has installed the desktop, if there is no desktop, please execute (Yum will not be Baidu, this side do not repeat)
Yum-y groups Install "GNOME Desktop" This command seems to be wrong
Yum-help Viewing Help Documents
Yum-y groupinstall Install "GNOME Desktop"

Start XRDP and set boot boot
/ETC/INIT.D/XRDP restart
XRDP Remote Desktop Access CentOS6.6

Linux_oracle Installation Tutorials

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: 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.