Write to yourself: Linux ops, go through it yourself
Reference: http://www.cnblogs.com/yingsong/p/6031235.html
----------------------------
Preparatory work:
Memory and swap requirements
1-2G physical memory swap is 1.5 times times
2-16g physical memory when swap is equal
More than 16G of physical memory swap 16G
Hard disk space >20g
Shutting down firewalls and SELinux
To modify kernel parameters:
#vi/etc/sysctl.conf net.ipv4.ip_local_port_range= 9000 65500fs.file-max = 6815744 Kernel.shmall = 10523004 Kernel.shmmax = 6465333657 Kernel.shmmni = 4096 Kernel.sem = 32000 100128 net.core.rmem_default=262144 net.core.wmem_d efault=262144 net.core.rmem_max=4194304 net.core.wmem_max=1048576 fs.aio-max-nr = 1048576# sysctl-p
Modify User restriction files
#vi/etc/security/limits.conforacle soft Nproc 2047oracle hard nproc 16384oracle soft nofile 1024oracle hard Nofile 65536o Racle Soft Stack 102405
Create users and Groups
#groupadd dba #useradd-M-G DBA oracle#passwd Oracle
Create the installation directory
#mkdir-P/ora11/product/11.2.0/db_1
Data File storage Directory
#mkdir-P/ora11/oradata
Data Recovery Catalog
#mkdir-P/ora11/recovery_data
Log directory during database creation and use
#mkdir-P/ora11/orainventory
Modify installation directory Permissions
#chown-R Oracle:dba/ora11#chmod-r 775/ora11
Log in to Oracle user, set environment variables
#su-oracle$vim. Bash_profile
Export Oracle_base=/ora11export oracle_home= $ORACLE _base/product/11.2.0/db_1export classpath= $ORACLE _home/jre:$ Oracle_home/jlib: $ORACLE _home/rdbms/jlibexport ld_library_path= $ORACLE _home/lib:/lib64:/usr/lib64:/usr/local/ Lib64export oracle_sid=rac1export path= $PATH: $ORACLE _home/bin
$source. Bash_profile//Make settings effective
Install dependent packages
I tidied up (all here)
#yum Install binutils compat-libcap1 compat-libstdc++-33 compat-libstdc++-33.i686 elfutils-libelf Elfutils-libelf-devel gcc gcc-c++ glibc glibc.i686 glibc-devel glibc-devel.i686 ksh libgcc libgcc.i686 libstdc++ libstdc ++.i686 Libaio libaio.i686 libaio-devel libaio-devel.i686 make Sysstat
---------------------------------------
Upload the installation package to the home directory of the Oracle user
Link: http://pan.baidu.com/s/1bNvf22 Password: ZXMV
Linux.x64_11gR2_database_1of2.ziplinux.x64_11gR2_database_2of2.zip
#unzip Linux.x64_11gr2_database_1of2.zip#unzip LINUX.X64_11GR2_DATABASE_1OF2.ZIP#CD database#su-oracle
Database Installation configuration file
/DATABASE/RESPONSE/DB_INSTALL.RSP Installation Answer profile
/DATABASE/RESPONSE/DBCA.RSP Creating a Database answer
/DATABASE/RESPONSE/NETCA.RSP setting up the listening, local service name and other network setup responses
Modify the configuration file Db_install.rsp and install (the instance name is Rac1, password is 12345678)
#vim/HOME/ORACLE/DATABASE/RESPONSE/DB_INSTALL.RSP
Oracle.install.responsefileversion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_ 0oracle.install.option=install_db_and_configoracle_hostname=centos6-1unix_group_name=dbainventory_location=/ ora11/orainventoryselected_languages=en,zh_cnoracle_home=/ora11/product/11.2.0/db_1oracle_base=/ Ora11oracle.install.db.installedition=eeoracle.install.db.iscustominstall= Falseoracle.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.0oracle.install.db.dba_group=dbaoracle.install.db.oper_group= Dbaoracle.install.db.config.starterdb.type=general_purposeoracle.install.db.config.starterdb.globaldbname= Rac1oracle.install.db.config.starterdb.sid=rac1oracle.install.db.config.starterdb.characterset= al32utf8oracle.install.db.config.starterdb.memoryoption=trueoracle.install.db.config.starterdb.memorylimit= 400oracle.install.db.config.starterdb.installexampleschemas= falseoracle.install.db.config.starterdb.enablesecuritysettings= Trueoracle.install.db.config.starterdb.password.all=12345678oracle.install.db.config.starterdb.control=db_ controloracle.install.db.config.starterdb.dbcontrol.enableemailnotification= falseoracle.install.db.config.starterdb.automatedbackup.enable= Falseoracle.install.db.config.starterdb.storagetype=file_system_ storageoracle.install.db.config.starterdb.filesystemstorage.datalocation=/ora11/ Oradataoracle.install.db.config.starterdb.filesystemstorage.recoverylocation=/ora11/recovery_datadecline_ Security_updates=true
Log in to an Oracle user, perform the installation
#su-ORACLE$./RUNINSTALLER-SILENT-IGNOREPREREQ-RESPONSEFILE/HOME/ORACLE/DATABASE/RESPONSE/DB_INSTALL.RSP
Where-silent refers to silent installation,-ignoreprereq ignores prerequisite check results, Responsefile is the installation file.
During the installation, if [WARNING] is not heeded, the installer is still in progress, and if [FATAL] is present, the Setup program has stopped.
Open another terminal, execute the command
#tail -100 F/u01/app/oracle/orainventory/logs/installactions......log
You can track the installation logs in real time to see the progress of the installation.
---------------------------------------------
After an error, you need to delete the directory you have created and install it again
Rm-rf/ora11/*mkdir-p/ora11/product/11.2.0/db_1/ora11/oradata/ora11/recovery_data/ora11/orainventorychown-r Oracle:dba/ora11chmod-r 775/ORA11
-----------------------------------------------------------
Starting Oracle Universal Installer ...
Checking Temp space:must be greater than MB. Actual 7910 MB Passed
Checking swap space:must be greater than MB. Actual 1631 MB Passed
Preparing to launch Oracle Universal Installer from/tmp/orainstall2017-04-22_09-18-14pm. Please wait ... [Email protected] database]$ [WARNING] [INS-32055] The central Inventory are located in the Oracle base.
Cause:the Central Inventory are located in the Oracle base.
Action:oracle recommends placing this central Inventory in a location outside the Oracle base directory.
[WARNING] [INS-30011] The password entered does not conform to the Oracle recommended standards.
Cause:oracle recommends that the ADMIN password entered should is at least 8 characters in length, contain at least 1 upp Ercase character, 1 lower case character and 1 digit [0-9].
Action:provide a password that conforms to the Oracle recommended standards.
[WARNING] [INS-32055] The central Inventory are located in the Oracle base.
Cause:the Central Inventory are located in the Oracle base.
Action:oracle recommends placing this central Inventory in a location outside the Oracle base directory.
[WARNING] [INS-30011] The password entered does not conform to the Oracle recommended standards.
Cause:oracle recommends that the ADMIN password entered should is at least 8 characters in length, contain at least 1 upp Ercase character, 1 lower case character and 1 digit [0-9].
Action:provide a password that conforms to the Oracle recommended standards.
You can find the log of this install session at:
/ora11/orainventory/logs/installactions2017-04-22_09-18-14pm.log
The following configuration scripts need to be executed as the "root" user.
#!/bin/sh
#Root scripts to run
/ora11/orainventory/orainstroot.sh
/ora11/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
If this is the case, the installation is successful, you need to follow the prompts, and return to enter after operation is successful
Execute the following two scripts as root user
/ora11/orainventory/orainstroot.sh/ora11/product/11.2.0/db_1/root.sh
HTTPS://192.168.88.61/EM user name sys password 12345678 connection identity SYSDBA
650) this.width=650; "src=" https://s5.51cto.com/wyfs02/M00/92/A0/wKiom1kBaXuTQTmBAAFSaOSlKN0214.jpg "title=" 1.jpg "alt=" Wkiom1kbaxutqtmbaafsaoslkn0214.jpg "/>
Command-line installation under Oracle 11gR2 Linux