Installation steps under Linux-oracle

Source: Internet
Author: User

1. Installing the Oracle 11g dependency Package

Turn off SELinux
Vi/etc/selinux/config
Set selinux=disabled

Shutting down the firewall
Service Iptables Stop

[Email Protected]?tmp]#?yum install-y binutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc Glibc-common glibc-devel libaio libaio-devel libgcc libstdc++ libstdc++-devel make numactl sysstat libxp unixODBC un Ixodbc-devel

2. Add installation users and user groups
[[Email Protected]?tmp]#?groupadd Oinstall
[[Email Protected]?tmp]#?groupadd dba
[[Email protected]?tmp]#?useradd-g oinstall-g dba Oracle
[[Email protected]?tmp]#?passwd Oracle]
[[Email Protected]?tmp]#?id Oracle]
UID=1001 (Oracle) gid=1001 (oinstall) group =1001 (Oinstall), 1002 (DBA)

Create the installation directory
[Email protected] opt]# mkdir-p/opt/oracle/product/11.2.0
[Email protected] opt]# chown-r oracle:oinstall/opt/oracle
[Email protected] opt]# chmod-r 775/opt/oracle

[Email protected] opt]# mkdir/opt/orainventory
[Email protected] opt]# chown oracle:oinstall/opt/orainventory;
[Email protected] opt]# chmod-r 775/opt/orainventory;

Put the extracted Oracle database file into the Oracle file so that the Oracle account has execute permissions on/home/oracle/database and can use the following command to assign the directory to the Oracle account owner with Execute permissions

[Email protected] database]# chmod-r 700/opt/oracle/database
[Email protected] database]# chown-r oracle:oinstall/opt/oracle/database

3. Modify kernel parameter configuration file
[[Email protected]?~]#?vi/etc/sysctl.conf
Add the following content
FS.AIO-MAX-NR = 1048576
Fs.file-max = 6815744
Kernel.shmall = 2097152
Kernel.shmmax = 1073741824
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
Execute the following command for the configuration to take effect
[[email protected]?~]#?sysctl-p?]
where Kernel.shmmax = 1073741824 is the half of the native physical memory (2G), in bytes.

4. Modify the user's limit file
[[Email protected]?~]#?vi/etc/security/limits.conf
Add the following content:

Oracle Soft Nproc 2047

Oracle Hard Nproc 16384

Oracle Soft Nofile 1024

Oracle Hard Nofile 65536

Oracle Soft Stack 10240

Options available
To modify the/etc/pam.d/login file:
[[Email Protected]?~]#?vi/etc/pam.d/login
Add the following content:
Session?required?? /lib64/security/pam_limits.so
Session?required?? Pam_limits.so

5. Configure Environment variables

To modify the/etc/profile file:
[[Email protected]?~]# vi/etc/profile
Add the following content:?
if [$USER = "Oracle"]; Then
? if[$SHELL = "/bin/ksh"]; Then
?? Ulimit-p 16384
?? Ulimit-n 65536
? Else
?? Ulimit-u 16384-n 65536
? Fi
Fi

6. Setting Oracle User Environment variables
?
[[Email Protected]?~]#?su-oracle
[[Email Protected]?~]$?vi/home/oracle/.bash_profile
(Note: Oracle user files are automatically generated in the home file when the user is created)
Add the following content:
Oracle_base=/opt/oracle (Installation directory)
Oracle_home= $ORACLE _base/product/11.2.0
ORACLE_SID=ORCL (the instance name is consistent with the name when the Oracle database was created)
Path= $PATH: $ORACLE _home/bin
Export Oracle_base oracle_home Oracle_sidpath

7.Oracle installation graphical interface garbled can execute the following command before performing the installation
[[Email protected] database] export lang=en_us;

/opt/oracle/database/runinstaller; # #执行该程序开始安装
[[Email protected] database]./runinstaller

Installation steps under Linux-oracle

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.