Script for parameter configuration before Oracle10g Installation

Source: Internet
Author: User
Environment: rhel-server-5.5-i386-dvd #! Binbashechoquot; kernel. shmall2097152quot; gt; etcsysctl. confechoquot; ke

Environment: rhel-server-5.5-i386-dvd #! /Bin/bashecho quot; kernel. shmall = 2097152 quot; gt;/etc/sysctl. confecho quot; ke

Homepage → Database Technology

Background:

Read News

Script for parameter configuration before installing Oracle 10 GB

[Date: 2011-06-26] Source: Linux community Author: yushangfu [Font:]

Environment:Rhel-server-5.5-i386-dvd

#! /Bin/bash
Echo "kernel. shmall = 2097152">/etc/sysctl. conf
Echo "kernel. shmmax = 2147483648">/etc/sysctl. conf
Echo "kernel. shmmni = 4096">/etc/sysctl. conf
Echo "kernel. sem = 250 32000 100 128">/etc/sysctl. conf
Echo "fs. file-max = 65536">/etc/sysctl. conf
Echo "net. ipv4.ip _ local_port_range = 1024 65000">/etc/sysctl. conf
Echo "net. core. rmem_default = 1048576">/etc/sysctl. conf
Echo "net. core. rmem_max = 1048576">/etc/sysctl. conf
Echo "net. core. wmem_default = 262144">/etc/sysctl. conf
Echo "net. core. wmem_max = 262144">/etc/sysctl. conf
/Sbin/sysctl-p
Echo ">>>>>>>>>> sysctl. conf updated successfully <"

Echo "Oracle soft nproc 2047">/etc/security/limits. conf
Echo "oracle hard nproc 16384">/etc/security/limits. conf
Echo "oracle soft nofile 1024">/etc/security/limits. conf
Echo "oracle hard nofile 65536">/etc/security/limits. conf

Tail-n 4/etc/security/limits. conf
Echo ">>>>>>>>>> limits. conf updated successfully <"

Echo "session required/lib/security/pam_limits.so">/etc/pam. d/login
Echo "session required pam_limits.so">/etc/pam. d/login

Tail-n 2/etc/pam. d/login
Echo ">>>>>>>>>> login updated successfully <"

Echo "if [$ USER =" oracle "]; then
If [$ SHELL = "/bin/ksh"]; then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Fi ">/etc/profile

Tail-n 8/etc/profile
Echo ">>>>>>>>>> profile updated successfully <"

Groupadd oinstall
Groupadd dba
Useradd oracle-g oinstall-G dba

Echo ">>>>>>>>>> user and group added successfully <"

Mkdir-p/u01/app/oracle/product/10.2.0/db_1
Chown-R oracle: oinstall/u01
Chmod 775/u01

Echo ">>>>>>>>>> directory added successfully <"

Echo 'export ORACLE_BASE =/u01/app/oracle
Export ORACLE_HOME = $ ORACLE_BASE/product/10.2.0/db_1
Export ORACLE_SID = orcl
Export PATH = $ PATH: $ HOME/bin: $ ORACLE_HOME/bin: '>/home/oracle/. bash_profile

Tail-n 4/home/oracle/. bash_profile

Echo ">>>>>>>>>>>. bash_profile updated successfully <"

After executing the above script, manually modify/etc/sysctl. conf and/home/oracle/. bash_profile, and then assign the password to the oracle user.

Installation Package

Rpm-q binutils compat-libstdc ++-33 elfutils-libelf-devel-static gcc-c ++ glibc-common glibc-devel glibc -headers kernel-headers ksh libaio-devel libgcc libgomp libstdc ++-devel make numactl-devel sysstat

Binutils-2.17.50.0.6-14.el5
Compat-libstdc ++-33-3.2.3-61
Elfutils-libelf-0.137-3.el5
Package elfutils-libelf-devel is not installed
Package elfutils-libelf-devel-static is not installed
Package gcc is not installed
Package gcc-c ++ is not installed
Glibc-2.5-49
Glibc-common-2.5-49
Package glibc-devel is not installed
Package glibc-headers is not installed
Package kernel-headers is not installed
Ksh-20100202-1.el5
Libaio-0.3.106-5
Package libaio-devel is not installed
Libgcc-4.1.2-48.el5
Package libgomp is not installed
Libstdc ++-4.1.2-48. el5
Package libstdc ++-devel is not installed
Make-3.81-3.el5
Package numactl-devel is not installed
Package sysstat is not installed


Rpm-ivh elfutils-libelf-devel-static-0.137-3.el5.i386.rpm -- nodeps
Rpm-ivh elfutils-libelf-devel-0.137-3.el5.i386.rpm -- nodeps
Rpm-ivh kernel-headers-2.6.18-194.el5.i386.rpm
Rpm-ivh glibc-headers-2.5-49.i386.rpm
Rpm-ivh glibc-devel-2.5-49.i386.rpm
Rpm-ivh libgomp-4.4.0-6.el5.i386.rpm
Rpm-ivh gcc-4.1.2-48.el5.i386.rpm
Rpm-ivh libstdc ++ devel-4.1.2-48.el5.i386.rpm
Rpm-ivh gcc-c ++-4.1.2-48. el5.i386. rpm
Rpm-ivh libaio-devel-0.3.106-5.i386.rpm
Rpm-ivh numactl-devel-0.9.8-11.el5.i386.rpm
Rpm-ivh sysstat-7.0.2-3.el5.i386.rpm
Rpm-ivh libXp-1.0.0-8.1.el5.i386.rpm

  • 0
  • Install Oracle 10g on a Linux Virtual Machine

    Two Methods for connecting PHP to MySQL and preventing garbled characters

    Oracle tutorial

    Image Information

    View All comments in this article (0)

    Comments

    Latest Information

    Popular this week

    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.