Oracle silent installation under Linux---Pro-test can be installed

Source: Internet
Author: User

1. Installation package
Yum install-y Yum Install
Yum Install-y binutils
Yum Install-y compat-libstdc++-33
Yum Install-y elfutils-libelf
Yum Install-y elfutils-libelf-devel
Yum Install-y Expat
Yum install-y gcc
Yum Install-y gcc-c++
Yum Install-y glibc
Yum Install-y Glibc-common
Yum Install-y glibc-devel
Yum Install-y glibc-headers
Yum Install-y Libaio
Yum Install-y libaio-devel
Yum Install-y LIBGCC
Yum Install-y libstdc++
Yum Install-y libstdc++-devel
Yum Install-y make
Yum Install-y Pdksh
Yum Install-y Sysstat
Yum Install-y UnixODBC
Yum Install-y unixodbc-devel


2. Increase database groups and users
# ID Oracle (confirm that Oracle user exists)
#/usr/sbin/groupadd Oinstall (build product inventory management Group)
#/usr/sbin/groupadd DBA (Set up Database installation group)
#/usr/sbin/groupadd Asmadmin (build ASM Management Group)
#/usr/sbin/groupadd ASMDBA (build Grid management Group)
#/usr/sbin/useradd-g Oinstall-g dba,asmdba oracle-d/home/oracle (Oinstall as Primary group, make sure/home/oracle original does not exist)


3. Modify System Parameters
Vi/etc/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 = 1048586



Vi/etc/security/limits.conf
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
Fi
Fi


Create an installation directory (depending on the situation, select a more spatial directory creation)

Mkdir-p/u01/app/
Chown-r oracle:oinstall/u01/app/
Chmod-r 775/u01/app/

Create a/etc/orainst.loc file that reads as follows

Inventory_loc=/u01/app/oracle/orainventory
Inst_group=oinstall
Change permissions for a file

Chown Oracle:oinstall/etc/orainst.loc
chmod 664/etc/orainst.loc

Setting Oracle Environment variables

Su-oracle
VI ~/.bash_profile
Export Oracle_base=/u01/app/oracle
Export ORACLE_SID=ORCL

Note that in addition to Oracle_base and Oracle_sid, (/etc/profile and. Bash_profile) do not set any ORACLE-related environment variables (oracle_home, PATH, Ld_library_path, etc.).


Extracting Oracle installation files

Unzip Linux.x64_11gR2_database_1of2.zip
Unzip Linux.x64_11gR2_database_2of2.zip

Copy a 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

Silently install Oracle Software
Su-oracle
Modify the response file that installs the Oracle software/HOME/ORACLE/ETC/DB_INSTALL.RSP
Oracle.install.option=install_db_swonly//29 Line Installation Type
ORACLE_HOSTNAME=ORACLEDB//37 Row Host Name
Unix_group_name=oinstall//42 Line Installation Group
Inventory_location=/u01/app/oracle/orainventory//47 Row INVENTORY Directory
SELECTED_LANGUAGES=EN,ZH_CN,ZH_TW//78 Line Select language
Oracle_home=/u01/app/oracle/product/11.2.0/db_1//83 Line Oracle_home
Oracle_base=/u01/app/oracle//88 Line Oracle_base
Oracle.install.db.installedition=ee//99 Line Oracle version
Oracle.install.db.iscustominstall=true//108 Line Custom Installation
ORACLE.INSTALL.DB.DBA_GROUP=DBA//142 Line DBA user Group
Oracle.install.db.oper_group=oinstall//147 Row OPER user Group
Oracle.install.db.config.starterdb.type=general_purpose//160 Row Database type
ORACLE.INSTALL.DB.CONFIG.STARTERDB.GLOBALDBNAME=ORCL//165 Line Globaldbname
ORACLE.INSTALL.DB.CONFIG.STARTERDB.SID=ORCL//170 Line SID
oracle.install.db.config.starterdb.memorylimit=512 Minimum Memory (M) for automatic management of//200 rows
Oracle.install.db.config.starterdb.password.all=oracle//233 Line Set all database users to use the same password
Decline_security_updates=true//385 Line setting up security updates
CD Database
./runinstaller-silent-force-responsefile/home/oracle/etc/db_install.rsp
installation, if prompted [WARNING] to ignore, at this point the installation program is still in progress, if [FATAL], the setup has stopped.
View installation log information for installation progress

CD $ORACLE _base/orainventory/logs
TAIL-100F Installactions*.log
A prompt similar to the following indicates that the installation is complete:
#-------------------------------------------------------------------
...
/u01/app/oracle/product/11.2.0/db_1/root.sh
To execute the configuration scripts:
1. Open a terminal window
2. Log in as "root"
3. Run the Scripts
4. Return to this window and hit "Enter" key to continue

Successfully Setup software.
#-------------------------------------------------------------------


Execute root.sh with root user

Su Root
/u01/app/oracle/product/11.2.0/db_1/root.sh


Add Oracle environment variable
su-oracle
 vi ~/.bash_profile
Export oracle_home= $ORACLE _base/product/11.2.0/ Db_1
Export tns_admin= $ORACLE _home/network/admin
Export Path=.:${path}: $HOME/bin: $ORACLE _home/bin
Export Path=${path}:/usr/bin:/bin:/usr/bin/x11:/usr/local/bin
Export ld_library_path=${ld_library_path}:$ Oracle_home/lib
Export Ld_library_path=${ld_library_path}: $ORACLE _home/oracm/lib
Export ld_library_path=${ Ld_library_path}:/lib:/usr/lib:/usr/local/lib
Export Classpath=${classpath}: $ORACLE _home/jre
Export Classpath=${classpath}: $ORACLE _home/jre/lib
Export Classpath=${classpath}: $ORACLE _home/jlib
Export Classpath=${classpath}: $ORACLE _home/rdbms/jlib
Export Classpath=${classpath}: $ORACLE _home/network/jlib
Export Libpath=${classpath}: $ORACLE _home/lib: $ORACLE _home/ctx/lib
Export oracle_owner=oracle
Export Spfile_ Path= $ORACLE _home/dbs
Export ora_nls10= $ORACLE _home/nls/data


Configuring the network silently
$ORACLE _HOME/BIN/NETCA/SILENT/RESPONSEFILE/HOME/ORACLE/ETC/NETCA.RSP


Installing the database silently
Modify the response file that installs only the database/HOME/ORACLE/ETC/DBCA.RSP
Gdbname= the name of the Orcl.java-linux-test//78 row global database =sid+ host domain name
Sid= "ORCL"//149 line SID
characterset= "Al32utf8"//415 line encoding
nationalcharacterset= "UTF8"//425 line encoding

Perform a silent installation of the database
$ORACLE _HOME/BIN/DBCA-SILENT-RESPONSEFILE/HOME/ORACLE/ETC/DBCA.RSP
[Email protected] ~]$ $ORACLE _HOME/BIN/DBCA-SILENT-RESPONSEFILE/HOME/ORACLE/ETC/DBCA.RSP
Enter SYS User password:
Enter SYSTEM User password:
Copying Database files
1% Complete
3% Complete
11% Complete
18% Complete
26% Complete

$ORACLE _HOME/BIN/DBCA-SILENT-RESPONSEFILE/HOME/ORACLE/DBCA.RSP
Post-build instance check

Ps-ef | grep Ora_ | Grep-v grep | Wc-l
Ps-ef | grep Ora_ | Grep-v grep
Monitoring and inspection after building the library
Lsnrctl status


This article is from the "11300506" blog, please be sure to keep this source http://11310506.blog.51cto.com/11300506/1979031

Oracle silent installation under Linux---Pro-test can be installed

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.