Silent installation of Oracle 11g database under Linux

Source: Internet
Author: User
Tags chmod

Sed-i ' $a fs.aio-max-nr = 1048576 '/etc/sysctl.conf
Sed-i ' $a fs.file-max = 6815744 '/etc/sysctl.conf
Sed-i ' $a kernel.shmall = 2097152 '/etc/sysctl.conf
Sed-i ' $a kernel.shmmax = 536870912 '/etc/sysctl.conf
Sed-i ' $a kernel.shmmni = 4096 '/etc/sysctl.conf
Sed-i ' $a kernel.sem = 32000 '/etc/sysctl.conf
Sed-i ' $a net.ipv4.ip_local_port_range = 9000 65500 '/etc/sysctl.conf
Sed-i ' $a net.core.rmem_default = 262144 '/etc/sysctl.conf
Sed-i ' $a net.core.rmem_max = 4194304 '/etc/sysctl.conf
Sed-i ' $a net.core.wmem_default = 262144 '/etc/sysctl.conf
Sed-i ' $a net.core.wmem_max = 1048576 '/etc/sysctl.conf
Sysctl-p

Sed-i ' $a Oracle soft nproc 2047 '/etc/security/limits.conf
Sed-i ' $a Oracle hard Nproc 16384 '/etc/security/limits.conf
Sed-i ' $a Oracle soft nofile 1024x768 '/etc/security/limits.conf
Sed-i ' $a Oracle hard nofile 65536 '/etc/security/limits.conf
Sed-i ' $a Oracle soft stack 10240 '/etc/security/limits.conf

GROUPADD-G 1001 DBA
USERADD-G dba-g dba Oracle
Mkdir-p/opt/app/
Chown-r oracle:dba/opt/app/
Chmod-r 775/opt/app/

USERMOD-G Wheel Oracle

Sed-i ' $a umask 022 '/home/oracle/.bash_profile
Sed-i ' $a tmp=/tmp; Export TMP '/home/oracle/.bash_profile
Sed-i ' $a tmpdir= $TMP; Export TMPDIR '/home/oracle/.bash_profile
Sed-i ' $a oracle_base=/opt/app; Export Oracle_base '/home/oracle/.bash_profile
Sed-i ' $a oracle_home= $ORACLE _base/product/11.2.0/db_1; Export Oracle_home '/home/oracle/.bash_profile
Sed-i ' $a oracle_sid=ora11g; Export Oracle_sid '/home/oracle/.bash_profile
Sed-i ' $a oracle_term=xterm; Export Oracle_term '/home/oracle/.bash_profile
Sed-i ' $a path=/usr/sbin: $PATH; Export PATH '/home/oracle/.bash_profile
Sed-i ' $a path= $ORACLE _home/bin: $PATH; Export PATH '/home/oracle/.bash_profile
Sed-i ' $a ld_library_path= $ORACLE _home/lib:/lib:/usr/lib; Export Ld_library_path '/home/oracle/.bash_profile
Sed-i ' $a classpath= $ORACLE _home/jre: $ORACLE _home/jlib: $ORACLE _home/rdbms/jlib; Export CLASSPATH '/home/oracle/.bash_profile
Sed-i ' $a #LD_ASSUME_KERNEL =2.4.1; Export Ld_assume_kernel '/home/oracle/.bash_profile
Sed-i ' $a export nls_lang=american_america. Al32utf8 '/home/oracle/.bash_profile
Source/home/oracle/.bash_profile

Unzip/opt/oracle_zip/linux.x64_11gr2_database_1of2.zip-d/opt/oracle_zip/
Unzip/opt/oracle_zip/linux.x64_11gr2_database_2of2.zip-d/opt/oracle_zip/
Chown-r Oracle:dba/opt/oracle_zip/database
Chmod-r 755/opt/oracle_zip/database
Chown-r ORACLE:DBA/OPT/ORACLE_ZIP/DB_INSTALL.RSP
Chmod-r 755/OPT/ORACLE_ZIP/DB_INSTALL.RSP
Chown-r ORACLE:DBA/OPT/ORACLE_ZIP/DBCA.RSP
Chmod-r 755/OPT/ORACLE_ZIP/DBCA.RSP

Su-oracle-c "/opt/oracle_zip/database/runinstaller-silent-responsefile/opt/oracle_zip/db_install.rsp-noconfig- Ignoreprereq "
Sleep 15m
sh/opt/app/orainventory/orainstroot.sh
sh/opt/app/product/11.2.0/db_1/root.sh

Su-oracle-c "display=127.0.0.1:0.0"
Su-oracle-c "Export DISPLAY"
Su-oracle-c "$ORACLE _home/bin/netca-silent-responsefile/opt/oracle_zip/database/response/netca.rsp"
Sleep 1m
Su-oracle-c "$ORACLE _home/bin/dbca-silent-responsefile/opt/oracle_zip/dbca.rsp"

This article is from the Oracle blog, so be sure to keep this source http://waxich1010.blog.51cto.com/10100484/1631352

Silent installation of Oracle 11g database under Linux

Related Article

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.