CentOS 6.5 Deployment Oracle 11g Records

Source: Internet
Author: User

1. Modify the host name:
[Email protected] ~]# sed-i "s/hostname=localhost.localdomain/hostname=oracledb/"/etc/sysconfig/network
2. Set the IP address:

If the virtual machine is installed, it is recommended to use only host mode. Fixed IP address.
3. Modify the Hosts file
Vi/etc/hosts 192.168.138.120 OracleDB
3. To install the dependent packages, install the following packages:

4. Create users and Groups
[Email protected] ~]# sysctl-p
[Email protected] ~]# groupadd-g Oinstall
[[email protected] ~]# GROUPADD-G 201 dba
[Email protected] ~]# useradd-u 440-g oinstall-g dba Oracle
[Email protected] ~]# passwd Oracle
5. Modifying kernel parameters
[Email protected] ~]# vi/etc/sysctl.conf #末尾添加如下
Net.ipv4.ip_local_port_range= 9000 65500
Fs.file-max = 6815744
Kernel.shmall = 10523004
Kernel.shmmax = 6465333657
Kernel.shmmni = 4096
Kernel.sem = 250 32000 100128
net.core.rmem_default=262144
net.core.wmem_default=262144
net.core.rmem_max=4194304
net.core.wmem_max=1048576
FS.AIO-MAX-NR = 1048576
6. Modify System Resource limits
[Email protected] ~]# vi/etc/security/limits.conf #末尾添加如下
Oracle Soft Nproc 2047
Oracle Hard Nproc 16384
Oracle Soft Nofile 1024
Oracle Hard Nofile 65536

[Email protected] ~]# Vi/etc/pam.d/login
Session required pam_namespace.so #下面添加一条pam_limits. So
Session Required Pam_limits.so

[Email protected] ~]# Vi/etc/profile #
if [$USER = "Oracle"]; Then
if [$SHELL = "/bin/ksh"];then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Fi
7. Create the installation directory and set permissions, command line input:
[Email protected] ~]# mkdir/opt/oracle/app/
[Email protected] ~]# mkdir/opt/oracle/oradata/
[Email protected] ~]# chmod 755/opt/oracle/
[Email protected] ~]# chmod 775/opt/oracle/app/
[Email protected] ~]# chown oracle.oinstall-r/opt/oracle/

8. Setting environment variables (su-oracle)
[Email protected] ~]$ VI ~/.bash_profile
Export Oracle_base=/opt/oracle/app/oracle
Export Oracle_home= $ORACLE _base/product/11.2.0/dbhome_1
Export path= $PATH: $ORACLE _home/bin
Export ORACLE_SID=ORCL
Export ORACLE_PID=ORCL
[[email protected] ~]$ source. bash_profile
9. Use the Oracle User login system to extract and install Oracle.

CentOS 6.5 Deployment Oracle 11g Records

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.