Install Oracle silently in Linux

Source: Internet
Author: User
Linux on a Web server generally does not have a graphic interface. All the methods for installing Linux Through the graphic interface do not work on Linux without a graphic interface. We want

Linux on a Web server generally does not have a graphic interface. All the methods for installing Linux Through the graphic interface do not work on Linux without a graphic interface. We want

Linux on a Web server generally does not have a graphic interface. All Linux installation methods without a graphic interface do not work on Linux, the installation method we want to use is called the Silent Installation of Linux. It is installed on Linux without a graphical interface.

1.

Download the .tar.gz file, oracle on the Window is a Quantile, but there is no score on linux, just need to download the x-86-64 version.

Tar.gz is a type of compressed file, which is common in Linux and OSX. Both Linux and OSX can be directly decompressed to use this type of compressed file.

--------------------------------------------------------------------------------

Note: If the root user is not allowed to use installation, the root user cannot use it for installation. You need to use the root user to create a new user to install oracle.

2. Hardware Detection:

Physical memory not less than 1 GB

Hard Disk Space not less than 5 GB

Swap partition space not less than 2 GB

Supports graphics cards of over 256 colors

CPU clock speed not less than 550 mHZ

Cat/etc/issue
Uname-r (Version)
Grep MemTotal/proc/meminfo (memory size)
Grep SwapTotal/proc/meminfo (SWAP zone size)
Grep "model name"/proc/cpuinfo (CPU Information)
Free (available memory)

3. Check the installation dependency system package

For more information about operating system dependencies, see the official installation documentation.

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.2
Gcc-c ++-4.1.2
Glibc-2.5-24
Glibc-2.5-24 (32 bits)
Glibc-common-2.5
Glibc-devel-2.5
Glibc-devel-2.5 (32 bits)
Glibc-headers-2.5
Ksh-20060214
Libaio-0.3.106
Libaio-0.3.106 (32 bits)
Libaio-devel-0.3.106
Libaio-devel-0.3.106 (32 bits)
Libgcc-4.1.2
Libgcc-4.1.2 (32 bits)
Libstdc ++ 4.1.2
Libstdc ++-4.1.2 (32 bit)
Libstdc ++-devel 4.1.2
Make-3.81
Sysstat-7.0.2
UnixODBC-2.2.11 (32-bit) or later
UnixODBC-devel-2.2.11 (64-bit) or later
UnixODBC-2.2.11 (64-bit) or later

Check the dependency package

Rpm-q binutils compat-libstdc ++-33 elfutils-libelf-devel gcc-c ++ glibc-2.5 glibc-common glibc-devel glibc-headers ksh libaio-devel libgcc libstdc ++-devel make sysstat unixODBC-devel

If the package displays "is not installed (not installed)", run the yum install command to install the package. For example:


Yum install compat-libstdc ++-33

4. create the required OS group and user

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

Set the oracle user password

Passwd oracle

5. Modify Kernel Parameters

In the/sbin/sysctl. conf file, use a text editor or vi command to add or modify the following parameters (vi/sbin/sysctl. conf)

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, make the settings take effect

/Sbin/sysctl-p

6. Modify user restrictions

In the/etc/security/limits. conf file, use the text editor or vi command

Vi/etc/security/limits. conf


Add the following parameters

Oracle soft nproc 2047
Hard nproc 16384
Oracle soft nofile 1024
Oracle hard nofile 65536
Oracle soft stack 10240

In the/etc/pam. d/login file, use a text editor or vi command to add or modify the following content:

Session required/lib/security/pam_limits.so
Session required pam_limits.so

In the/etc/profile file, use a text editor or vi command to add or modify the following content:

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

Make settings take effect

Source/etc/profile

7. Create an installation directory (select a directory with more space as needed)

Mkdir-p/usr/oracle
Chown-R oracle: oinstall/usr/oracle
Chmod-r 775/usr/oracle

8. Create the/etc/oraInst. loc file with the following content:

Nventory_loc =/usr/oracle/oraInventory
Inst_group = oinstall

Change File Permissions

Chown oracle: oinstall/etc/oraInst. loc
Chmod 664/etc/oraInst. loc

9. Set oracle environment variables

Su-oracle // switch user to oracle

Vi ~ /. Bash_profile // access or create the. bash_profile file under the home/oracle directory

Add the following content at the end

Export ORACLE_BASE =/usr/oracle
Export ORACLE_SID = orcl

Note: Except ORACLE_BASE and ORACLE_SID, (in/etc/profile and. bash_profile) no oracle-related environment variables (ORACLE_HOME, PATH, LD_LIBRARY_PATH) are set ). Other environment variables will be configured after installation.

Make settings take effect

Source/home/oracle/. bash_profile

Check environment variables:

Env

At the same time, the DISPLAY settings will be checked when the Silent Installation is used. If it is often said that the DISPLAY check will not work, Run "xhost + your ip address: 0.0" under the root user.

10. decompress the oracle Installation File

Unzip linux.x64_11gR2_database_1of2.zip
Unzip linux.x64_11gr2_database5of2.zip

11. Copy the response file template

Mkdir etc
Cp/home/oracle/database/response/*/home/oracle/etc/

Set response File Permissions

Su-root
Chmod 700/home/oracle/etc/*. rsp (note the owner, oinstall)

12. Silent Installation of Oracle software

Switch user

Su-oracle

Modify the response file/home/Oracle/etc/db_install.rsp for installing the oracle software

Vi/home/oracle/etc/db_install.rsp

Add content

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.