SILENT Installation for Oracle 11g for linux X86

Source: Internet
Author: User

Oracle 11.1.0.6 for linux X86 64 SILENT Installation

First, check the system hardware:

 


Code:

[Root @ enterprice64 ~] # Grep MemTotal/proc/meminfo

MemTotal: 8178836 kB

[Root @ enterprice64 ~] # Grep SwapTotal/proc/meminfo

SwapTotal: 8385888 kB

[Root @ enterprice64 ~] # Free

Total used free shared buffers cached

Mem: 8178836 5297744 2881092 0 122512 4773424

-/+ Buffers/cache: 401808 7777028

Swap: 8385888 0 8385888

[Root @ enterprice64 ~] # Df-k/dev/shm

Filesystem 1K-blocks Used Available Use % Mounted on

Tmpfs 4089416 0 4089416 0%/dev/shm

[Root @ enterprice64 ~] # Df-k/tmp

Filesystem 1K-blocks Used Available Use % Mounted on

/Dev/sda7 10153988 428132 9201740 5%/

[Root @ enterprice64 ~] # Df-k/data

Filesystem 1K-blocks Used Available Use % Mounted on

/Dev/sda9 207275064 3933228 192642952 3%/data

 


The memory should be no less than 1 GB, and the memory should be less than 2 GB. SWAP should be 1.5 times the memory, and the memory should be 2 to 8 GB,

The size of SWAP and memory is the same. The memory exceeds 8 GB, and SWAP is 0.75 times the memory.

Because 11 GB of shared memory requires a larger size, the system shared memory should be greater than 512 * processes,

ORA-845 or ORA-1078 errors may occur if the shared memory is insufficient.

The temporary tablespace should be no less than 200 MB, and the installation directory should be greater than 4 GB.

Check the system software as follows:

 

Code:

[Root @ enterprice64 ~] # Cat/proc/version

Linux version 2.6.18-8. el5 ()

(Gcc version 4.1.1 20070105 (Red Hat 4.1.1-52) #1

SMP Tue Jun 5 23:25:19 EDT 2007

[Root @ enterprice64 ~] # Uname-

Linux enterprice64 2.6.18-8. el5 #1 SMP Tue Jun 5

23:25:19 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux

[Root @ enterprice64 ~] # More/etc/issue

Enterprise Linux Server release 5 (Carthage)

Kernel r on an m


.

 

Operating system requirements:

Asianux 2.0

Asianux 3.0

Oracle Enterprise Linux 4.0

Oracle Enterprise Linux 5.0

Red Hat Enterprise Linux 4.0

Red Hat Enterprise Linux 5.0

SUSE Enterprise Linux 10.0

The system kernel is 2.6.9 (Asianux 2.0, Oracle Enterprise Linux

4.0, Red Hat Enterprise Linux 4.0), 2.6.18

(Asianux 3.0, Oracle Enterprise Linux 5.0,

Red Hat Enterprise Linux 5.0), or 2.6.16.21 (SUSE Enterprise Linux 10.0 ).

For ES4, oracle needs the following package:

Binutils-2.17.50.0.6

Compat-libstdc ++-33-3.2.3

Compat-libstdc ++-33-3.2.3 (32 bit)

Elfutils-libelf-0.125

Elfutils-libelf-devel-0.125

Gcc-4.1.1

Gcc-c ++-4.1.1

Glibc-2.5-12

Glibc-2.5-12 (32 bits)

Glibc-common-2.5

Glibc-devel-2.5

Glibc-devel-2.5-12 (32 bits)

Libaio-0.3.106

Libaio-0.3.106 (32 bits)

Libaio-devel-0.3.106

Libgcc-4.1.1

Libgcc-4.1.1 (32 bits)

Libstdc ++-4.1.1

Libstdc ++-4.1.1 (32 bit)

Libstdc ++-devel 4.1.1

Make-3.81

Sysstat-7.0.0

Run the rpm-qa command to check whether all required packages are installed.

Run the rpm-ivh command.

Check network conditions:

 

Code:

[Root @ enterprice64 ~] # Cat/etc/nsswitch. conf | grep hosts

# Hosts: db files nisplus nis dns

Hosts: files dns

[Root @ enterprice64 ~] # Hostname

Enterprice64

[Root @ enterprice64 ~] # Domainname

(None)

[Root @ enterprice64 ~] # More/etc/hosts

# Do not remove the following line, or various programs

# That require network functionality will fail.

127.0.0.1 enterprice64 localhost. localdomain localhost

172.25.13.195 enterprice64

 

Create an Oracle user and dba group:

 

Code:

[Root @ enterprice64 ~] # Groupadd oinstall

[Root @ enterprice64 ~] # Groupadd dba

[Root @ enterprice64 ~] # Groupadd asadmin

[Root @ enterprice64 ~] # Useradd-g oinstall-G dba, asadmin oracle

[Root @ enterprice64 ~] # Passwd oracle

Changing password for user oracle.

New UNIX password:

Bad password: it is based on a dictionary word

Retype new UNIX password:

Passwd: all authentication tokens updated successfully.

[Root @ enterprice64 ~] # Id nobody

Uid = 99 (nobody) gid = 99 (nobody) groups = 99 (nobody) context = root: system_r: unconfined_t: SystemLow-SystemHigh

 

 

Create oinstall, dba, and asadmin groups. After creating a user, check whether the nobody user exists.

If the user does not exist, create the user.

Check and modify the system's core parameters, edit the/etc/sysctl. conf file, and add the following configuration,

Save and restart the system. Note: If the default configuration is greater than the value given here, do not modify the original configuration.


Fs. file-max = 512 * PROCESSES

Kernel. shmall = 2097152

Kernel. shmmax = 2147483648

Kernel. shmmni = 4096

Kernel. sem = 250 32000 100 128

Net. ipv4.ip _ local_port_range = 1024 65000

Net. core. rmem_default = 4194304

Net. core. rmem_max = 4194304

Net. core. wmem_default = 262144

Net. core. wmem_max = 262144

Configure the oracle user's environment variables and shell restrictions, edit/etc/security/limits. conf, and add the following content:

Oracle soft nproc 2047

Hard nproc 16384

Oracle soft nofile 1024

Oracle hard nofile 65536

Edit the/etc/pam. d/login file and add the following content:

Session required/lib/security/pam_limits.so

Session required pam_limits.so

Edit the. bash_rc file in the oracle user directory and add the following environment variables:

Umask 022

If [$ USER = "oracle"]; then

If [$ SHELL = "/bin/ksh"]; then

Ulimit-p 16384

Ulimit-n 65536

Else

Ulimit-u 16384-n 65536

Fi

Fi


Export TMP =/tmp

Export TMPDIR =/tmp

Export ORACLE_BASE =/data/oracle

Export ORACLE_SID = ora11g64

Export ORACLE_HOME =/data/oracle/product/11.1

Finally, create the directory structure required to install Oracle.

 

Code:

[Root @ enterprice64 ~] # Mkdir-p/data/oracle/product/11.1

[Root @ enterprice64 ~] # Chown-R oracle. oinstall/data

 


After the preparation is complete, install the Silent method.

First set the oraInst. loc file:

 

Code:

[Root @ enterprice64 ~] # Ls-l/etc/oraInst. loc

-Rw-r -- 1 oracle dba 61 Oct 19 :25/etc/oraInst. loc

[Root @ enterprice64 ~] # More/etc/oraInst. loc

Inventory_loc =/data/oracle/oraInventory

Inst_group = oinstall

 


Make sure that/etc/oraInst. loc contains the above information, and Oracle contains the access permission.

Select the response_file file of Silent based on the database type you want to install,

For example, enterprise. rsp, standard. rsp, or custom. rsp.

Select the enterpise. rsp type,

Copy the corresponding response file in the database/response directory of the installation disk,

Modify the input value according to the prompts in the file.

For example, the following parameters are set in this example:

UNIX_GROUP_NAME = "oinstall"

FROM_LOCATION = "/data/database/stage/products. xml"

ORACLE_BASE = "/data/oracle"

ORACLE_HOME = "/data/oracle/product/11.1"

ORACLE_HOME_NAME = "ORADBHOME11"

SHOW_ROOTSH_CONFIRMATION = false

RESTART_SYSTEM = false

RESTART_REMOTE_SYSTEM = false

Component_ages = {"zh_CN "}

S_nameForDBAGrp = "dba"

S_nameForOPERGrp = "oinstall"

S_nameForASMGrp = "asadmin"

N_configurationOption = 3

S_ASMSYSPassword = "asm"

S_ASMSYSPasswordAgain = "asm"

Note: All strings need to be placed in double quotation marks. Note the case sensitivity. Numbers and Boolean variables can be directly written.

Because no database is selected but only software is installed, no database-related configuration parameters are set.

 

Code:

[Oracle @ enterprice64 data] $ chmod 700 enterprise. rsp

 


You can start SILENT Installation as follows:

Note that the absolute path is required for the response file.

Related Article

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.