Oracle 11GR2 Silent Silent Installation

Source: Internet
Author: User

1. Download Oracle 11g

Http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html


2. System environment

Free-h

File mode to add swap handover partition

DD If=/dev/zero of=/swapfile bs=1m count=2048 &&mkswap/swapfile &&swapon/swapfile


3, check the system does not install the dependency package

Rpm-q make binutils gcc libaio glibc compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel glibc Glibc-common glibc-d Evel Glibc-headers gcc-c++ libaio-devel libaio-devel libgcc libstdc++ libstdc++-devel sysstat UnixODBC unixODBC-devel PDK SH Expat |grep not



4. Set Linux kernel parameters

Modify/etc/security/limits.conf,/etc/pam.d/login,/etc/profile,/HOME/.BASHRC


#vi/etc/sysctl.conf

Kernel.shmall = 2097152

Kernel.shmmax = 2147483648

Kernel.shmmni = 4096

Kernel.sem = 250 32000 100 128

Net.core.rmem_default = 4194304

Net.core.rmem_max = 4194304

Net.core.wmem_default = 262144

Fs.file-max = 6815744

Net.ipv4.ip_local_port_range = 9000 65500

Net.core.wmem_max = 1048576

FS.AIO-MAX-NR = 104857



Make the configuration effective #sysctl-P


#vi/etc/security/limits.con

Oracle Soft Nproc 2047

Oracle Hard Nproc 16384

Oracle Soft Nofile 1024

Oracle Hard Nofile 65536


#vi/etc/profile

if [$USER = "Oracle"]; Then

if [$SHELL = "/bin/ksh"]; Then

Ulimit-p 16384

Ulimit-n 65536

Else

Ulimit-u 16384-n 65536


#vi/HOME/.BASHRC

Export oracle_base=/data/oracle/product/

Export Oracle_home=/data/oracle/product/11.2/db_1

Export Oracle_sid=tohmain

Export path= $ORACLE _home/bin: $ORACLE _home/apache/apache/bin: $PATH

Export Ld_library_path= $ORACLE _home/lib:/lib:/usr/lib

Export Ld_library_path= $LD _library_path:/usr/local/lib


5. Set up user groups and folders

Groupadd Oinstall

Groupadd dba

USERADD-G oinstall-g dba Oracle

passwd Oracle


Mkdir-p/data/oracle/product/11.2

Chown-r oracle.oinstall/data/oracle

Mkdir-p/home/oracle

Chown-r oracle.dba/home/oracle



5. Edit the oracle static installation file DB_INSTALL.RSP

./runinstaller-silent-responsefile/db_install.rsp


Create a library

Dbca-silent-createdatabase-responsefile/dbca.rsp

Delete a library

Dbca-silent-deletedatabase-sourcedb orcl-sid orcl-sysdbausername sys-sysdbapassword Password


Instant Client Downloads

Http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html


Http://blog.sina.com.cn/s/blog_4c98be4501010opf.html


This article from the "It Migrant Workers" blog, reproduced please contact the author!

Oracle 11GR2 Silent Silent Installation

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.