System Setting script before ORACLE10g installation in Linux

Source: Internet
Author: User
The system setting script before installing ORACLE10g in Linux is the initial prototype. There is no logical relationship, so be careful when using it. #! Binbashcatgt; gt; etcsysctl. con

In Linux, the script of the system before installing ORACLE 10 Gb is the initial prototype. There is no logical relationship. Please use it with caution. #! /Bin/bashcat gt;/etc/sysctl. con

Homepage → Database Technology

Background:

Read News

Linux system setting script before 10 Gb of ORACLE Installation

[Date: 2008-01-13] Source: Linux community Author: e4twood [Font:]

The system setting script before installing Oracle 10 Gb in Linux is the initial prototype. There is no logical relationship between them. Please be careful when using it.

#! /Bin/bash
Cat>/etc/sysctl. conf <"EOF"
# Use for oracle
Kernel. shmall = 2097152
Kernel. shmmax = 2147483648
Kernel. shmmni = 4096
Kernel. sem = 250 32000 100 128
Fs. file-max = 65536
Net. ipv4.ip _ local_port_range = 1024 65000
Net. core. rmem_default = 262144
Net. core. rmem_max = 262144
Net. core. wmem_default = 262144
Net. core. wmem_max = 262144
EOF
/Sbin/sysctl-p
Cat>/etc/security/limits. conf <"EOF"
# Use for oracle
* Soft nproc 2047
* Hard nproc 16384
* Soft nofile 1024
* Hard nofile 65536
EOF
Echo "session required pam_limits.so">/etc/pam. d/login
Cat>/etc/profile <"EOF"
If [$ USER = "oracle"]; then
If [$ SHELL = "/bin/ksh"]; then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Fi

Export ORACLE_BASE =/u01/app/oracle
Export ORACLE_SID = orcl
EOF
Mkdir-p/u01/app/oracle
Chown-R oracle: oinstall/u01/app/oracle
/Usr/sbin/groupadd oinstall
/Usr/sbin/groupadd dba
/Usr/sbin/useradd-m-g oinstall-G dba oracle
Passwd oracle

  • 0
  • Collection of the most common Oracle commands for new students

    Oracle 10 Gb Installation Guide for CenotOS Linux 5

    ORACLE 10G

    Image Information

    View All comments in this article (0)

    Comments

    Latest Information

    Popular this week

    Introduction to Linux community-advertisement service-website map-help Info-contact us
    The articles published on this site (LinuxIDC) do not mean that they agree with the statement or description. They only provide more information and do not constitute any suggestions.


    Copyright©2006-2014 Linux community All rights reserved Zhejiang ICP backup No. 06018118

    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.