Silent Installation of Oracle software

Source: Internet
Author: User
Sometimes it is not convenient to log on to the UNIX graphical interface to install the database, and the GUI installation makes it impossible for us to know what operations are specific. We can use commands

Sometimes it is not convenient to log on to the Linux/Unix graphical interface to install the database. The GUI installation makes it impossible for us to know what operations have been done. We can use commands.

Sometimes it is inconvenient to log on to the Linux/Unix graphical interface to install the database, and the GUI installation makes it impossible for us to know what operations are actually performed, we can install and delete Oracle software (instead of OUI) in command mode, and create and delete database libraries (instead of dbca ).

Platform: RHEL4.5, oracle10.2.0.1

1. Upload and decompress the oracle software. If it is stored in the/home directory

$ Cd/home

$ Unzip 10201_database_linux32.zip

2. Set the required operating system information for installing oracle software, such as group, user, system kernel parameters, directory, and user initialization parameters.

-- Add group and user

# Groupadd oinstall

# Groupadd dba

# Useradd-g oinstall-G dba oracle

# Passwd oracle

-- Modify system kernel parameters

# Vi/etc/sysctl. conf

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 = 1048576

Net. core. rmem_max = 1048576

Net. core. wmem_default = 262144

Net. core. wmem_max = 262144

#/Sbin/sysctl-p (make the parameter take effect after modification)

-- Add shell restrictions for oracle users to improve performance

# Vi/etc/security/limits. conf

Oracle soft nproc 2047

Hard nproc 16384

Oracle soft nofile 1024

Oracle hard nofile 65536

# Vi/etc/pam. d/login

Session required/lib/security/pam_limits.so

Session required pam_limits.so

# Vi/etc/profile

If [$ USER = "oracle"]; then

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

Ulimit-p 16384

Ulimit-n 65536

Else

Ulimit-u 16384-n 65536

Fi

Fi

# Vi/etc/selinux/config (invalidates the Secure linux logo)

SELINUX = disabled

-- Create the ORACLE_BASE directory

# Mkdir-p/opt/oracle

# Chown-R oracle: oinstall/opt/oracle

# Chmod-R 775/opt/oracle

-- Set the. bash_profile file of the oracle user

# Su-oracle

$ Vi ~ /. Bash_profile

Umask 022

Export ORACLE_BASE =/opt/oracle

Export ORACLE_HOME =/opt/oracle/product/10.2.0/db_1

Export ORACLE_SID = WENDING

Export PATH = $ ORACLE_HOME/bin: $ PATH

$ .~ /. Bash_profile

3. Create an oraInst. loc File

$ Su-

# Vi/etc/oraInst. loc (add or modify the following content, where/opt/oracle is ORACLE_BASE)

Inventory_loc =/opt/oracle/oraInventory

Inst_group = oinstall

# Chmod 664/etc/oraInst. loc

4. Create a response file (after decompression, the response directory of the oracle software contains templates for various response files)

# Su-oracle

$ Cd/home/database/response

$ Cp enterprise. rsp enterprise_temp.rsp

$ Vi required ise_temp.rsp (the following parameters must be set)

UNIX_GROUP_NAME = "oinstall"

ORACLE_HOME = "/opt/oracle/product/10.2.0/db_1"

ORACLE_HOME_NAME = "OraDb10g_home1"

S_nameForDBAGrp = "dba"

S_nameForDBAGrp = "dba"

N_configurationOption = 3

5. Run OUI through the response file (-noconfig indicates that no configuration assistant is run and only software is installed)

$ Cd/home/database

$./RunInstaller-silent-noconfig-responseFile/home/database/response/enterprise_temp.rsp

After the installation is complete, run root. sh under $ ORACLE_HOME as the root user:

$ Su-

#/Opt/oracle/product/10.2.0/db_1/root. sh

# Exit

6. Run NetCA through the response File

$ Cd/home/database/response

$ Cp netca. rsp netca_temp.rsp

$ Vi netca_temp.rsp (if you want to modify the listener name or port here, you generally do not need to modify anything)

$ ORACLE_HOME/bin/netca/silent/responsefile/home/database/response/netca_temp.rsp

After the listener is executed, the listener is started.

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.