CentOS 7 (with Red Hat) installs Oracle 11g R2 the most complete and fine tips

Source: Internet
Author: User
Tags dba oracle database installation

Prospect:

1. Install the x86_64 version of the CentOS 7 system (or the corresponding version of Red Hat, etc.) to the GNOME Desktop edition.

2. Download and install and activate Xmanager Enterprise 5 for connection access to Linux systems, data transfer, etc.

3. Download the unpacked Oracle 11g R2 for Linux package and place the [Database/stage/components/oracle.jdk/1.5.0.17.0/1/datafiles/all.jar] Add the folder [fallback] and put the file [Simsun.ttf] in.

Ps. This step is used to solve the garbled problem of installing Oracle in the Chinese state, or to try to modify the environment variables.

To install Oracle:

Step One: Pre-installation configuration and Deployment 1. Configure the IP address of the server

A. Configuring a fixed IP address for Linux through the Network Connections section

B. Configure [/etc/hosts], edit by the VI editor, add the relevant information of fixed IP, as follows:

      

[[email protected] ~]# vi/etc/hosts// Add IP address information at the end of the file//such as: 192.168.3.222 Oracle 11g

2. Turn off the network firewall and SELinux

Go to root.

Turn off disable firewall:

 [[email protected] ~]# Systemctl status Firewalld.service//active:active (running) since six 2016-08-27 08:54:09 CST; 18min ago//# Systemctl stop Firewalld.service// close firewall [[email protected] ~]# Systemctl status Firewalld.service// Check the running status of the firewall again active:inactive (dead) since six 2016-08-27 09:15:16 CST; 10s ago[[email protected] ~] # systemctl disable Firewalld.service// disable Firewall//. Omit                 

Turn off SELinux disabled

[[Email protected] ~]#vi/etc/selinux/config/*#This file controls the state of the SELinux on the system.# selinux= can take one of the these three values:# Enforcing-selinux security policy is enforced.  # Permissive-selinux Prints warnings instead of enforcing. # Disabled-no SELinux policy is loaded.  selinux=disabled//Here instead of disabled # selinuxtype= can take one of the three the values:# targeted-targeted PR Ocesses is protected,# Minimum-modification of targeted policy. Only selected processes is protected. # Mls-multi level Security protection. Selinuxtype=targeted*/               

Restart Linux,root under reboot.

3. Create a running user and user group
[[Email protected] ~] # Groupadd oinstall[[email protected] ~]# Groupadd dba[[email protected] ~]# useradd-g Oinstall- G dba-m Oracle[[email protected] ~]# passwd Oracle changes the user's password for Oracle. New Password: Invalid password: password is not checked by dictionary- it re-enters the new password based on the dictionary word: passwd: All authentication tokens have been successfully updated. [[Email protected] ~] # ID oracleuid=1001 (Oracle) gid=1001 (oinstall) group =1001 (Oinstall), 1002(DBA) [[email protected] ~]  
4. Create the relevant directory for the Oracle database installation

A. Creating an Oracle-related directory

*/ora/oracle installation directory

*/ORA/ORAINV Configuration file Directory

*/ora/database installation file storage location Directory

[[Email protected] ~] # CD/[[email protected]/]# mkdir-p/ora/oracle[[email protected]/]# Mkdir-p/ora/orainv[[emai L protected]/]# mkdir-p/ora/database[[email protected]/]# CD ora[[email protected] ora]# LS -L Total Consumptiondrwxr-xr-x 4 root root 4096 August 09:34 databasedrwxr-xr-x 2 root root 4096 August 09:32 oracledrwxr -xr-x 2 root root 4096 August 09:33 orainv[[email protected] ora]        

B. xftp Oracle 11g for Linux files into the top database folder of Linux

Ps. [All.jar] files described in [forward-looking. 3] can be uploaded directly here.

C. Add permissions and change everyone for the above directory

[[email protected]/] # Chown-r oracle:oinstall/ora[[email protected]/]# ls-l// Change the owner of the Ora folder and its sub-files to Oracle and the user group to Oinstall [[email protected]/] # chmod 777-r Ora[[email protected]/]# ls-l//Modify the permissions for the Ora and its sub-files for readable writable executables       
5. Check the Linux Software environment package

by Rpm-qa | grep * (package name) for inspection

[[Email protected] ~]#rpm-qa binutils compat compat-libstdc gcc gcc-c++ glibc glibc-devel ksh libaio libaio-devel libgcc libstdc++ libstdc+ +-devel libxi libxtst make Sysstat unixODBC nixodbc-devel/*binutils-2.23.52.0.1-12. El7.x86_64compat-libcap1-1.10-3. El7.x86_64compat-libstdc++-33-3.2.3-71. EL7.X86_64GCC-4.8.2-3. EL7.X86_64GCC-c++-4.8.2-3. EL7.X86_64GLIBC-2.17-36. EL7.X86_64GLIBC-devel-2.17-36. El7.x86_64kshlibaio-0.3.109-9. El7.x86_64libaio-devel-0.3.109-9. EL7.X86_64LIBGCC-4.8.2-3. EL7.X86_64LIBSTDC++-4.8.2-3. EL7.X86_64LIBSTDC++-devel-4.8.2-3. El7.x86_64libxi-1.7.2-1. EL7.X86_64LIBXTST-1.2.2-1. El7.x86_64make-3.82-19. El7.x86_64sysstat-10.1.5-1. El7.x86_64unixodbc-2.2.11UnixODBC-devel-2.2.11 * *

Installation of packages that are not installed can be found in the ISO file (files can be placed in the root folder).

[Email protected] ~]# RPM-IVH *.rpm

6. Modify the configuration file

A. vi/etc/sysctl.conf

[[Email protected] ~] # VI  /etc/sysctl.conf/*fs.aio-max-nr = 1048576Fs.file-max = 6815744Kernel.shmall = 2097152 Kernel.shmmax = 4294967295Kernel.shmmni = 4096Kernel.sem = 32000 [Net.ipv4.ip_local_port_] Range = 9000 65500net.core.rmem_default = 262144Net.core.rmem_max = 4194304Net.core.wmem_default = 262144Net.core.wmem_max = 1048576*/            

B. vi/etc/security/limits.conf

[[Email protected] ~] # vi/etc/security/limits.conf/*Oracle Soft nproc 2047Oracle hard nproc 16384Oracle Soft nofile 1024< C7>oracle hard Nofile 65536*/     

C. vi /etc/pam.d/login

[[Email protected] ~] # vi/etc/pam.d/login/*session required/lib/security/pam_limits.sosession required PAM_ limits.so*/   

D. vi /etc/profile

[[Email protected] ~] # vi/etc/profile/*"Oracle" ]; Then"/bin/ksh" ]; Thenulimit-p 16384ulimit-n 65536elseulimit-u 16384-n 65536fifi*/     

E. Configuring environment variables

[Email protected] ~]# vi/home/oracle/.bash_profile/*export oracle_base=/ora/oracleexport oracle_home= $ORACLE _base/product/11.2.0/db_1export oracle_sid=orclexport oracle_term=xtermexport PATH=$ Oracle_home/bin:/usr/sbin:$PATHexport ld_library_path=$ORACLE _home/lib:/lib:/usr/lib//export lang=cexport nls_lang=American_america. zhs16gbk*/             

Step Two: Installation of Oracle

1. Log in with Oracle user, CD to database directory

2../runinstaller Enter the installer

CentOS 7 (with Red Hat) installs Oracle 11g R2 the most complete and fine tips

Related Article

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.