In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
Editor to share with you how to use scripts to silently install Oracle11G under Linux, I believe most people do not know much about it, so share this article for your reference. I hope you will learn a lot after reading this article. Let's learn about it together.
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 100128'/ 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'$an oracle soft nproc 2047' / etc/security/limits.conf
Sed-I'$an oracle hard nproc 16384' / etc/security/limits.conf
Sed-I'$an oracle soft nofile 1024'/ etc/security/limits.conf
Sed-I'$an oracle hard nofile 65536' / etc/security/limits.conf
Sed-I'$an 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'$an ORACLE_BASE=/opt/app; export ORACLE_BASE' / home/oracle/.bash_profile
Sed-I'$an ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME' / home/oracle/.bash_profile
Sed-I'$an ORACLE_SID=ora11g; export ORACLE_SID' / home/oracle/.bash_profile
Sed-I'$an 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'$an 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"
These are all the contents of the article "how to use scripts to silently install Oracle11G under Linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.