1. Check the installation package
Yum-y install gcc make binutils gcc-c++ compat-libstdc++-33 elfutils-libelf-devel elfutils-libelf-devel-static Elfutils-libelf-devel ksh libaio libaio-devel numactl-devel sysstat UnixODBC unixodbc-devel pcre-devel
2. Create user groups and users
Groupadd Oinstall
Groupadd dba
USERADD-G oinstall-g dba Oracle
passwd Oracle
3. Modify Kernel Parameters
Vi/etc/sysctl.conf
Kernel.shmall = 2097152
Kernel.shmmax = 4294967295
FS.AIO-MAX-NR = 1048576
Fs.file-max = 6815744
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
Use/sbin/sysctl-p to make kernel parameters live in real time
4. Modify User Resource Limits
Vi/etc/security/limits.conf
Oracle Soft Nproc 2047
Oracle Hard Nproc 16384
Oracle Soft Nofile 1024
Oracle Hard Nofile 65536
Oracle Soft Stack 10240
5. Modify the configuration file
Vi/etc/pam.d/login
Session required/lib/security/pam_limits.so
Session Required Pam_limits.so
6. Turn off SELinux
Vi/etc/selinux/config
Set the selinux=disabled to Disabled
Sed-i "s/selinux=enforcing/selinux=disabled/"
7. Create the installation directory
Mkdir-p/u01/app/oracle
Chown-r Oracle:oinstall/u01/app
Chmod-r 755/u01/app/
8. Modify the/etc/profile configuration file
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
9. Modify Host Name
Vi/etc/sysconfig/network
Hostname=oracledb
Vi/etc/hosts
192.168.0.106 OracleDB
10. Repair the Oracle User variable
Vi/home/oracle/.bash_profile
Export Oracle_base=/u01/app
Export Oracle_home= $ORACLE _base/oracle/product/11.2.0/dbhome_1
Export path= $ORACLE _home/bin: $PATH
Export ORACLE_SID=ORCL
#export classpath= $ORACLE _home/jre: $ORACLE _home/jlib: $ORACLE _home/rdbms/jlib
Export Nls_lang=american_america. Al32utf8
11. Unpack the installation package
Unzip linux.x64_11gr2_database_1of2.zip-d/u01/app/
Unzip linux.x64_11gr2_database_2of2.zip-d/u01/app/
12 Silent Installation
Cd/u01/app/database/response
CP DB_INSTALL.RSP Db_install.rsp.bak
VI DB_INSTALL.RSP
Oracle.install.responsefileversion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0
Oracle.install.option=install_db_swonly
Oracle_hostname=oracledb
Unix_group_name=oinstall
Inventory_location=/u01/app/oracle/orainventory
Selected_languages=en,zh_cn
Oracle_home=/u01/app/oracle/product/11.2.0/dbhome_1
Oracle_base=/u01/app
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.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=oinstall
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=512
Oracle.install.db.config.starterdb.installexampleschemas=false
Oracle.install.db.config.starterdb.enablesecuritysettings=true
Oracle.install.db.config.starterdb.password.all=orcl
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=
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=/home/oracle/oradata
Oracle.install.db.config.starterdb.filesystemstorage.recoverylocation=/u01/app/oracle/recovery
oracle.install.db.config.asm.diskgroup=
oracle.install.db.config.asm.asmsnmppassword=
Myoraclesupport_username=
myoraclesupport_password=
security_updates_via_myoraclesupport=
Decline_security_updates=true
proxy_host=
proxy_port=
Proxy_user=
Proxy_pwd=
Note:
Oracle.install.option=install_db_swonly//installation type, only database software installed
Oracle_hostname=oracledb//Host name (Command HOSTNAME query)
Unix_group_name=oinstall//Installation Group
Inventory_location=/u01/app/oracle/orainventory//inventory Directory (The default value is not filled in, this example needs to be modified, because the individual creates the installation directory.
SELECTED_LANGUAGES=EN,ZH_CN//Select language
Oracle_home=/u01/app/oracle/product/11.2.0/db_1//Oracle_home Path Modify This example installation path according to the directory situation/u01/app/oracle
Oracle_base=/u01/app/oracle//Oracle_base Note Modify
Oracle.install.db.installedition=ee//Oracle Version
Oracle.install.db.iscustominstall=false//Custom installation, no, using default components
ORACLE.INSTALL.DB.DBA_GROUP=DBA//DBA User Group
Oracle.install.db.oper_group=oinstall//oper User Group
Oracle.install.db.config.starterdb.type=general_purpose//Database type
ORACLE.INSTALL.DB.CONFIG.STARTERDB.GLOBALDBNAME=ORCL//globaldbname
ORACLE.INSTALL.DB.CONFIG.STARTERDB.SID=ORCL//sid (Note here is consistent with the configuration SID within the environment variable)
oracle.install.db.config.starterdb.memorylimit=81920//memory for automatic management of memory (M)
Oracle.install.db.config.starterdb.password.all=oracle//Set all database users to use the same password
Security_updates_via_myoraclesupport=false//(manual write False)
Decline_security_updates=true//* * Note This parameter setting must be True
13. Start the installation
Su-oracle
Cd/u01/app/database
./runinstaller-silent-responsefile/u01/app/database/response/db_install.rsp
./runinstaller-silent-ignoresysprereqs-ignoreprereq-responsefile/u01/app/database/response/db_install.rsp
14. Configure monitoring with Oracle User login
Netca-silent-responsefile/u01/app/database/response/netca.rsp
Netca-silent-responsefile/u01/app/database/response/netca.rsp
DISPLAY environment variable not set!
Oracle Net Configuration Assistant is a GUI tool
which requires that DISPLAY specify a location
Where GUI tools can display.
Set and Export DISPLAY, then re-run.
[Email protected] database]$ export display=localhost:0.0
[Email protected] database]$ NETCA-SILENT-RESPONSEFILE/U01/APP/DATABASE/RESPONSE/NETCA.RSP
15. Establish a Database
Dbca-silent-responsefile/u01/app/database/response/dbca.rsp
Note: You need to modify the instance name, SYS, and the system user's password in the DBCA file
Oracle 11g Silent Installation