CentOS7 Install Oracle 11GR2 Graphics and text detailed __oracle

Source: Internet
Author: User
Tags dba oracle database installation symlink

Today, try to install the ORACLE11GR2 on the CentOS7 virtual machine, for my little rookie, the first thing is to find a course on the internet, found a good tutorial, I am afraid to find later, so record.

Original address: http://www.linuxidc.com/Linux/2016-04/130559.htm


I am afraid that the original link will be gone, I would venture to copy, thank the original author, the original text is as follows:

I. Environmental preparedness

Install package:

1.vmware-workstation-full-11.1.0-2496824.exe
2.centos-7-x86_64-dvd-1511.iso
3.linux.x64_11gr2_database _1of2.zip
  Linux.x64_11gR2_database_2of2.zip

The above feel is not the key, not to download the address, does not describe the installation process, installed CentOS 7, screenshot as follows:

The first time you install the pit, before you do anything, create a snapshot of the virtual machine in VMware, and later get depressed, you can return to the snapshot version. Special or not trust, and the virtual machine completely cloned a (obsessive-compulsive disorder).

Second, prepare Oracle before installation

1. Create system users and user groups that run Oracle databases

[Sonny@localhost ~]$ su root #切换到root
Password: 
[root@localhost sonny]# groupadd oinstall # Create a user group Oinstall
[root@localhost sonny]# groupadd dba #创建用户组dba
[root@localhost sonny]# useradd-g Oinstall-g dba-m Oracle #创建oracle用户 and joined the Oinstall and DBA user group
[root@localhost sonny]# passwd Oracle #设置用户o Racle login password, do not set password, in the CentOS graphics landing interface can not login
changing password for user Oracle.
New password: # password bad
password:the password is shorter than 8 characters retype
new password: c15># Confirm Password
 passwd:all authentication tokens updated successfully.
# View New Oracle Users
UID=1001 (Oracle) gid=1002 (DBA) groups=1002 (DBA)

Why to create Oinstall user groups and DBA groups. Reference: HTTP://WWW.ORACLE.COM/TECHNETWORK/CN/ARTICLES/HUNTER-RAC11GR2-ISCSI-2-092412-ZHS.HTML#13

Theoretically, a single example of 3 groups of users, the actual construction of only two oinstall and DBAs, and then install the Oracle database after the Osoper group also set the DBA group.

A.oracle List group (typically Oinstall):
 members of the Oinstall group are considered "owners" of Oracle software and have write access to the Oracle Central manifest (orainventory). When Oracle software is first installed on a Linux system,
 OUI creates/etc/orainst.loc files. This file specifies the name of the Oracle manifest group (default is Oinstall) and the path to the Oracle Central Inventory directory.
B. Database administrator (OSDBA, General DBA):
 Members of the OSDBA group can use SQL to connect to an Oracle instance SYSDBA identity through operating system authentication. Members of this group perform key database management tasks, such as creating databases, starting and closing
 instances. The default name for this group is DBA. SYSDBA system permissions allow access to database instances even when the database is not open. The control of this permission is completely beyond the scope of the database itself. Do not confuse SYSDBA 
 system permissions with database role DBAs. The DBA role does not include SYSDBA or sysoper system permissions.
c. Database Operators group (Osoper, generally oper):
 Members of the Osoper group can use SQL to connect to an Oracle instance Sysoper identity through operating system authentication. Members of this optional group have a limited set of database administration permissions, such as managing and running backups. The
 default name for this group is Oper. Sysoper system permissions allow access to database instances even when the database is not open. The control of this permission is completely beyond the scope of the database itself. To use this group, select the Advanced installation type to install the Oracle database software.

2. Create an Oracle Database installation directory

[Sonny@localhost ~]$ su root
Password: 
[root@localhost sonny]# mkdir-p/data/oracle #oracle数据库安装目录 C3/>[root@localhost sonny]# mkdir-p/data/orainventory #oracle数据库配置文件目录
[root@localhost sonny]# mkdir-p /data/database #oracle数据库软件包解压目录
[root@localhost sonny]# cd/data
[root@localhost data]# ls # Create complete check out (obsessive-compulsive disorder)
database  Oracle  orainventory
[root@localhost data]# chown-r Oracle:o Install/data/oracle #设置目录所有者为oinstall用户组的oracle用户
[root@localhost data]# chown-r Oracle:oinstall/ Data/orainventory
[root@localhost data]# chown-r oracle:oinstall/data/database
[root@localhost data]#

3. Modify OS System identity

Oracle does not support CentOS system installation by default, Oracle Database 11g Release 2 OS requirements reference: https://docs.oracle.com/cd/E11882_01/install.112/e47689 /pre_install.htm#ladbi1106

I am installing a 64-bit database, on Linux x86-64:red Hat Enterprise Linux 7 (RHEL 7)

In addition, CentOS7.0.1511 is based on RHEL7.2 reference: http://www.linuxidc.com/Linux/2015-12/126283.htm

Modify File/etc/redhat-release

[Sonny@localhost data]$ su root
Password: 
[root@localhost data]# cat/proc/version 
Linux version 3.10.0-327.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (gcc) #1 SMP Thu N OV 22:10:57 UTC 2015
[root@localhost data]# cat/etc/redhat-release CentOS
Linux release 7.2.1511 (Core) 
[Root@localhost data]# vi/etc/redhat-release
root@localhost data]# cat/etc/redhat-release redhat-7 
[ Root@localhost data]#

4. Software packages required to install Oracle databases

Again, I install Oracle database 11g Release 2 64-bit databases.

The

Oracle Database Package Requirements for Linux x86-64 is as follows: (Reference: https://docs.oracle.com/cd/E11882_01/install.112/ E47689/PRE_INSTALL.HTM#BABCFJFG)

Operating system: Oracle Linux 7 and Red Hat Enterprise Linux 7 the
following packages (or later versions) must be installed:
   
binutils-2.23.52.0.1-12.el7.x86_64 
compat-libcap1-1.10-3.el7.x86_64 
gcc-4.8.2-3.el7.x86_64 
gcc-c++-4.8.2-3.el7.x86_64 
glibc-2.17-36.el7.i686 
glibc-2.17-36.el7.x86_64 
glibc-devel-2.17-36.el7.i686 
glibc-devel-2.17-36.el7.x86_64 
ksh
libaio-0.3.109-9.el7.i686 
libaio-0.3.109-9.el7.x86_64 
libaio-devel-0.3.109-9.el7.i686 
libaio-devel-0.3.109-9.el7.x86_64 
libgcc-4.8.2-3.el7.i686 
libgcc-4.8.2-3.el7.x86_64 
libstdc++-4.8.2-3.el7.i686 
libstdc++-4.8.2-3. el7.x86_64 
libstdc++-devel-4.8.2-3.el7.i686 
libstdc++-devel-4.8.2-3.el7.x86_64 
libxi-1.7.2-1.el7.i686 
libxi-1.7.2-1.el7.x86_64 
libxtst-1.2.2-1.el7.i686 
libxtst-1.2.2-1.el7.x86_64 
make-3.82-19.el7.x86_64 
sysstat-10.1.5-1.el7.x86_64

Candide, for the first time, the installation of one, the command is also very simple, anyway the document requires a high version can also:

[Sonny@localhost data]$ su root
Password: 
[root@localhost data]# yum install binutils
omitted ...

5. Shutdown Firewall CentOS 7.2 Use firewall as a firewall by default

[Sonny@localhost/]$ su root Password: [root@localhost/]# systemctl status Firewalld.service#查看防火墙状态, running infirewalld.service-firewalld-dynamic Firewall daemon loaded:loaded (/usr/lib/systemd/system/firewalld.service; en abled; Vendor preset:enabled) active:active (running) since Thu-2016-04-07 PDT; 2h 20min ago Main pid:802 (FIREWALLD) Cgroup:/system.slice/firewalld.service└─802/usr/bin/python-es/u Sr/sbin/firewalld--nofork--nopid Apr 18:54:25 localhost.localdomain systemd[1]: Starting firewalld-dynamic
L Daemon ...
APR modified 18:54:29 Localhost.localdomain systemd[1]: Started firewalld-dynamic firewall. [Root@localhost/]# Systemctl Stop Firewalld.service#关闭防火墙[Root@localhost/]# systemctl status Firewalld.service #再次查看防火墙状态, found closed firewalld.service-firewalld-dynamic Firewal L Daemon loaded:loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset:enabled) Active:inactiv E (dead) since Thu 2016-04-07 21:15:34 PDT; 9s ago Main pid:802 (code=exited, status=0/success) Apr 18:54:25 Localhost.localdomain systemd[1]: Starting firewall
d-dynamic Firewall daemon ...
APR modified 18:54:29 Localhost.localdomain systemd[1]: Started firewalld-dynamic firewall.
APR modified 21:15:33 localhost systemd[1]: stopping firewalld-dynamic firewall daemon ...
APR modified 21:15:34 localhost systemd[1]: Stopped firewalld-dynamic firewall. [root@localhost/]# systemctl Disable Firewalld.service#禁止使用防火墙 (restart is also prohibited)Removed symlink/etc/systemd/system/dbus-org.
Fedoraproject.FirewallD1.service. Removed Symlink/etc/systemd/system/basic.target.wants/firewalld.service. [Root@localhost/]#

firewall first disabled, do a good job after the configuration, personal virtual machine, to wool firewall ~ ~

6. Close the SELinux (need to restart effective)

[Root@localhost/]# vi/etc/selinux/config
[root@localhost/]# cat/etc/selinux/config

# This file controls the s Tate of SELinux on the system.
# selinux= can take one of these three values:
#     Enforcing-selinux The security policy is enforced.
#     Permissive-selinux Prints warnings instead of enforcing.
#     Disabled-no SELinux policy is loaded.
selinux=disabled   #此处修改为disabled
# selinuxtype= can take one of three two values:
#     Targeted-targeted processes are protected,
#     Minimum-modification of targeted policy. Only selected processes are protected. 
#     Mls-multi level security protection.
selinuxtype=targeted 


Why do you want to close SELinux? Because SELinux is too advanced, not professional people do not understand ~ ~

7. Modify Kernel Parameters

Red section for adding code

[Sonny@localhost/]$ su root
Password: 
[root@localhost/]# vi/etc/sysctl.conf] 
[root@localhost/]# cat/etc /sysct.conf
Cat:/etc/sysct.conf:no such file or directory
[root@localhost/]# cat/etc/sysctl.conf 
# System default Settings Live in/usr/lib/sysctl.d/00-system.conf.
# to override those settings, enter new settings where, or in an/etc/sysctl.d/<name>.conf file
#
Information, sysctl.conf (5) and SYSCTL.D (5).
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.conf.all.rp_filter = 1
fs.file-max = 6815744 #设置最大打开文件数
Fs.aio-max-nr = 1048576
kernel.shmall = 2097152 #共享内存的总量, 8G memory settings: 2097152*4k/1024/1024
Kernel.shmmax = 2147483648 #最大共享内存的段大小
Kernel.shmmni = 4096 #整个系统共享内存端的最大数
Kernel.sem = 32000 128
Local_port_range = 9000 65500 #可使用的IPv4端口范围
net.core.rmem_default = 262144
net.core.rmem_max= 4194304 net.core.wmem_default= 262144
net.core.wmem_max= 1048576

Make configuration parameters Effective

 [root@localhost/]# sysctl-p net.ipv4.icmp_echo_ignore_broadcasts = 1 Net.ipv4.conf.all.rp_filter = 1 Sysctl:setti ng key "Fs.file-max": Invalid argument Fs.file-max = 6815744 #设置最大打开文件数 fs.aio-max-nr = 1048576 sysctl:setting Key "Kerne L.shmall ": Invalid argument kernel.shmall = 2097152 #共享内存的总量, 8G memory settings: 2097152*4k/1024/1024 sysctl:setting Key" Kernel.shmmax ": Invalid argument Kernel.shmmax = 2147483648 #最大共享内存的段大小 sysctl:setting key" Kernel.shmmni ": Invalid Argum  ent Kernel.shmmni = 4096 #整个系统共享内存端的最大数 Kernel.sem = 32000 128 Key "sysctl:setting": Invalid argument net.ipv4.ip_local_port_range = 9000 65500 #可使用的IPv4端口范围 net.core.rmem_default = 262144 Net.core.rmem_ma x = 4194304 Net.core.wmem_default = 262144 Net.core.wmem_max = 1048576 [root@localhost/]#; 

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.