Install Oracle 11.2 silently under Centos7

Dependent packages (including 64 bit and 32-bit packages) ...
Dependent packages (including 64 bit and 32-bit packages)

Dependent packages (including 64 bit and 32-bit packages)

yum install gcc make binutils gcc-c++ compat-libstdc++-33elfutils-libelf-devel elfutils-libelf-devel-static ksh libaio libaio-develnumactl-devel sysstat unixODBC unixODBC-devel pcre-devel glib.i686 glib-devel.i686 –y

Create users and user groups

groupadd dba
useradd -g dba -G dba oracle
passwd oracle
id oracle

Create oracle installation directory

mkdir -p /u01/app/oracle
mkdir -p /u01/app/oracle/product/11.2.0/dbhome_1
mkdir -p /u01/app/oraInventory

Divide users and permissions for corresponding directories

chown -R oracle:dba /u01/app
chmod 777 /u01/app/oracle
chmod 775 /u01/app/oraInventory

Official download address of oracle:

https://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-linx8664soft-100572.html

Extract the compressed package to / tmp/oracle

Switch to Su oracle Under oracle user

Silent mode configuration DB? Install.rsp file

vim /tmp/oracle/database/response/db_install.rsp

#////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0 oracle.install.option=INSTALL_DB_SWONLY ORACLE_HOSTNAME=oracle1 UNIX_GROUP_NAME=dba INVENTORY_LOCATION=/u01/app/oraInventory SELECTED_LANGUAGES=en,zh_CN ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1 ORACLE_BASE=/u01/app/oracle oracle.install.db.InstallEdition=EE oracle.install.db.isCustomInstall=false oracle.install.db.customComponents=oracle.server:11.2.0.1.0,oracle.sysman.ccr:10.2.7.0.0,oracle.xdk:11.2.0.1.0,oracle.rdbms.oci:11.2.0.1.0,oracle.network:11.2.0.1.0,oracle.network.listener:11.2.0.1.0,oracle.rdbms:11.2.0.1.0,oracle.options:11.2.0.1.0,oracle.rdbms.partitioning:11.2.0.1.0,oracle.oraolap:11.2.0.1.0,oracle.rdbms.dm:11.2.0.1.0,oracle.rdbms.dv:11.2.0.1.0,orcle.rdbms.lbac:11.2.0.1.0,oracle.rdbms.rat:11.2.0.1.0 oracle.install.db.DBA_GROUP=dba oracle.install.db.OPER_GROUP=dba oracle.install.db.CLUSTER_NODES= oracle.install.db.config.starterdb.type=GENERAL_PURPOSE oracle.install.db.config.starterdb.globalDBName=orcl oracle.install.db.config.starterdb.SID=orcl oracle.install.db.config.starterdb.characterSet=AL32UTF8 oracle.install.db.config.starterdb.memoryOption=true oracle.install.db.config.starterdb.memoryLimit=1024 oracle.install.db.config.starterdb.installExampleSchemas=false oracle.install.db.config.starterdb.enableSecuritySettings=true oracle.install.db.config.starterdb.password.SYS= oracle.install.db.config.starterdb.password.SYSTEM= oracle.install.db.config.starterdb.password.SYSMAN= oracle.install.db.config.starterdb.password.DBSNMP= oracle.install.db.config.starterdb.control=DB_CONTROL oracle.install.db.config.starterdb.gridcontrol.gridControlServiceURL= oracle.install.db.config.starterdb.dbcontrol.enableEmailNotification=false oracle.install.db.config.starterdb.dbcontrol.emailAddress=test@163.com oracle.install.db.config.starterdb.dbcontrol.SMTPServer= oracle.install.db.config.starterdb.automatedBackup.enable=false oracle.install.db.config.starterdb.automatedBackup.osuid= oracle.install.db.config.starterdb.automatedBackup.ospwd= oracle.install.db.config.starterdb.storageType=FILE_SYSTEM_STORAGE oracle.install.db.config.starterdb.fileSystemStorage.dataLocation=/u01/app/oracle/oradata oracle.install.db.config.starterdb.fileSystemStorage.recoveryLocation=/u01/app/oracle/flash_recovery_area oracle.install.db.config.asm.diskGroup= oracle.install.db.config.asm.ASMSNMPPassword=123.com MYORACLESUPPORT_USERNAME= MYORACLESUPPORT_PASSWORD= SECURITY_UPDATES_VIA_MYORACLESUPPORT= DECLINE_SECURITY_UPDATES=true PROXY_HOST= PROXY_PORT= PROXY_USER= PROXY_PWD= #***The part marked in bold in red is the part to be changed #//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Configure environment variables

vim .bashrc

#////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// umask 002 ORACLE_BASE=/u01/app/oracle #This decision is followed by the installation directory export ORACLE_BASE ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1 #So is this one export ORACLE_HOME ORACLE_SID=orcl #Like the case name of the database you are going to build later, my question is: dog, in case of SID inconsistency export ORACLE_SID PATH=/usr/bin:/bin:usr/local/bin:/usr/bin/X11:/usr/bin/X11R6 PATH=$PATH:$ORACLE_HOME/bin export PATH #/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Silent installation

Switch directory to extract directory
/tmp/oracle/database
Run the following command to start the installation. In the middle of the installation, you will be prompted to switch to root and execute two scripts. After the prompt, the installation will be completed
./runInstaller -silent -ignoreSysPrereqs -responseFile /tmp/oracle/database/response/db_install.rsp -ignorePrereq

Network monitoring configuration and startup
netca /silent /responseFile $ORACLE_HOME/inventory/response/netca.rsp

Check whether port 1521 listens successfully after completion
netstat -antp

No user login
su - oracle
sqlplus /nolog

10 May 2020, 11:06 | Views: 4165

Add new comment

For adding a comment, please log in
or create account

0 comments