Oracle Silent Installation

Source: Internet
Author: User

1.1 Unpacking the installation package

ORACLE11GR2 Installs as two installation packages, after all decompression, you need to combine the contents of the two installation packages to install

< Span style= "font-family: ' The song Body '; >oracle version

linux64_11gr2

operating system

centos7.0-x86-64bit

2.1.1. Upload and decompress

Oracle users upload and decompress.

Unziplinux.x64_11gR2_database_1of2.zip

Unziplinux.x64_11gR2_database_2of2.zip


1.2 Oracle Database Installation

2.2.1.network installation dependent packages available

Yum install binutilscompat-libstdc++-33 elfutils-libelf elfutils-libelf-devel glibc glibc-commonglibc-devel gcc-gcc-c + + libaio-devel Libaio libgcc libstdc++ libstdc++-develmake sysstat UnixODBC unixodbc-devel Pdksh

2.2.2.No network install dependent packages

please upload rpm.zip first, then unzip

Unzip Rpm.zip


then execute RPM-IVH *.rpm--nodeps–force

2.2.3.Create an Oracle installation user

Groupadd Oinstall

Groupadd dba

useradd-g oinstall-g dbaoracle –d/home/oracle/

passwd Oracle

2.2.4.Modifying kernel parameters

Open Modify/etc/sysctl.conf and add the following at the end

FS.AIO-MAX-NR = 1048576

Fs.file-max = 6815744

Kernel.shmall = 2097152

Kernel.shmmax = 536870912

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

After modification, use/sbin/sysctl–p Refresh to make the settings effective.

2.2.5.change user Limits

Modify/etc/security/limits.conf, add content

Oracle Soft Nproc 2047

Oracle Hard Nproc 16384

Oracle Soft Nofile 1024

Oracle Hard Nofile 65536

2.2.6.Change system environment variables

To modify the environment variable/etc/profile, add the following:

if [$USER = "Oracle"]; Then

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

Ulimit-p 16384

Ulimit-n 65536

Else

Ulimit-u 16384-n 65536

Fi

Fi

2.2.7.setting Oracle Environment variables

Export PATH

Export ORACLE_SID=ORCL

Exportoracle_base=/home/oracle/app

Exportoracle_home= $ORACLE _base/product/11.2.0/dbhome_1

Exportpath= $PATH: $HOME/bin: $ORACLE _home/bin

Exportld_library_path= $ORACLE _home/lib:/usr/lib

2.2.8.Configure DB_INSTALL.RSP

Already packed in Db_install.zip.

To make an election:

oracle.install.option=install_db_swonly// Installation Type

oracle_hostname=10.10.17.161// Host name (change to IP address on line)

Unix_group_name=oinstall// Installation Group

inventory_location=/Home/oracle/app//inventory directory (default write base on line)

selected_languages=en,zh_cn,zh_tw// Select language

oracle_home=/Home/oracle/app/product/11.2.0/dbhome_1//oracle_home

oracle_base=/Home/oracle/app//oracle_base

Oracle.install.db.installedition=ee //Oracle version

oracle.install.db.dba_group=dba/ /DBA User Group

oracle.install.db.oper_group=oinstall//OPER User Groups

oracle.install.db.config.starterdb.type=general_purpose// Database Type

Oracle.install.db.config.starterdb.globaldbname=orcl//globaldbname Global database name

oracle.install.db.config.starterdb.password.all=oracle// Default Password

2.2.9.Execute the Install command

./runinstaller –SILENT-FORCE-IGNOREPREREQ-RESPONSEFILE/HOME/ORACLE/DB_INSTALL.RSP

Need to wait, switch to the root account and execute two scripts.

2.2.10.Installing the Global database

Configure DBCA.RSP

Already packed in Dbca.zip.

Execute the command to start the installation DBCA-SILENT-RESPONSEFILE/HOME/ORACLE/DBCA.RSP

LOG:/home/oracle/app/cfgtoollogs/dbca/orcl/trace.log

After execution, start the screen, and then directly enter the default password set before hitting Enter, automatically start the installation.

2.2.11.Configuring Listening Files

Two listening files, already packaged in Jianting.zip. Modify the following configuration for the corresponding:

Listener

HOST = 192.168.0.250// Server Address

PORT = 1521// ports to listen on

oracle_home=/home/oracle/app/product/11.2.0/dbhome_1// Specify Oracle's home

TNSNames:

HOST = 192.168.0.250// Server Address

PORT = 1521// ports to listen on

When you are finished configuring, drop to/home/oracle/app/product/11.2.0/dbhome_1/network/admin/.

lsnrctl Start to start the Oracle listener.  

This article is from the "Ho Sun" blog, please be sure to keep this source http://heyangguang.blog.51cto.com/10930823/1895143

Oracle 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.