Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Oracle installation environment one-click deployment script

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

OS:centos5.9 32 bit

Database: oracle 10g 32-bit

After all the dependent packages have been installed, you can install oracle directly after executing this script

#! / bin/bashecho # install rlwrap tools # wget http://utopia.knoware.nl/~hlub/uck/rlwrap/rlwrap-0.37.tar.gztar-zxvf rlwrap-0.37.tar.gz cd rlwrap-0.37./configure make make installcd echo # easy oracle10g install script # add user and group#groupadd oinstall groupadd dba useradd-g oinstall-G Dba oracle# create directory for install oraclemkdir-p / oraclemkdir-p / oracle/product/10.2.0/db_1 chown-R oracle:oinstall / oraclechmod-R 775 / oracle# edit entironment path for oracle#echo "#" > / home/oracle/.bash_profileecho "#" > / home/oracle/.bash_profileecho "#" > / home/oracle/.bash_profileecho "# for oracle install" > > / home/oracle/.bash_profile Echo "PATH=\ $PATH:$HOME/bin" > > / home/oracle/.bash_profile echo "export PATH" > > / home/oracle/.bash_profile Echo "PATH=\ $PATH:$HOME/bin" > > / home/oracle/.bash_profile echo "export ORACLE_SID=heliang" > > / home/oracle/.bash_profile Echo "export ORACLE_BASE=/oracle" > > / home/oracle/.bash_profile echo "export ORACLE_HOME=\ $ORACLE_BASE/product/10.2.0/db_1" > > / home/oracle/.bash_profile Echo "export LD_LIBRARY_PATH=\ $ORACLE_HOME/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin" > > / home/oracle/.bash_profile echo "PATH=\ $PATH:\ $ORACLE_HOME/bin" > > / home/oracle/.bash_profile echo "export PATH" > > / home/oracle/.bash_profile Echo "umask 022" > > / home/oracle/.bash_profile echo "alias sqlplus='rlwrap sqlplus'" > > / home/oracle/.bash_profile echo "alias rman='rlwrap rman'" > > / home/ Oracle/.bash_profileecho "#" > / home/oracle/.bash_profilesource / home/oracle/.bash_profile# edit kernel parameter#echo "#" > / etc/sysctl.confecho "#" > > / etc/sysctl.confecho "#" > / etc/sysctl.confecho "# for oracle install" > > / etc/sysctl.conf echo "fs.aio-max-nr = 1048576" > > / etc/sysctl.conf echo "fs.file-max = 6815744" > > / etc/sysctl.conf echo "kernel.shmall = 2097152" > > / etc/sysctl.conf echo "kernel.shmmax = 536870912" > > / etc/sysctl.conf echo "kernel.shmmni = 4096" > > / etc/sysctl.conf echo "kernel.sem = 25032000 100 128" > > / etc/sysctl. Confecho "net.ipv4.ip_local_port_range = 1024 65500" > > / etc/sysctl.confecho "net.core.rmem_default = 262144" > > / etc/sysctl.confecho "net.core.rmem_max = 4194304" > > / etc/sysctl.confecho "net.core.wmem_default = 262144" > > / etc/sysctl.confecho "net.core.wmem_max = 1048586" > > / etc/sysctl.confecho "#" > > / etc/sysctl.confecho "#" > > / etc / sysctl.confecho "#" > > / etc/sysctl.conf # edit user resource limits#echo "#" > / etc/security/limits.confecho "#" > / etc/security/limits.confecho "#" > > / etc/security/limits.confecho "# for resource limits" > > / etc/security/limits.confecho "oracle Soft nofile 1024 "> > / etc/security/limits.confecho" oracle hard nofile 65536 "> > / etc/security/limits.confecho" oracle soft nproc 2047 "> > / etc/security/limits.confecho" oracle hard nproc 16384 "> > / etc/security/limits.confecho" # "> > / etc/security/limits.confecho" # "> > / etc / security/limits.confecho "#" > > / etc/security/limits.conf# edit user Authentication#echo "#" > / etc/pam.d/loginecho "#" > / etc/pam.d/loginecho "#" > > / etc/pam.d/loginecho "# for oracle install Authentication" > > / etc/pam.d/loginecho "session required / lib/security/pam_limits.so" > > / etc/pam.d/loginecho "session required pam_limits.so" > > / etc/pam.d/loginecho "#" > > / etc/pam.d/login# edit xxx file#echo "#" > > / etc/profileecho "#" > / etc/profileecho "#" > > / etc/profileecho "# for oracle install" > > / etc / profileecho "if [$USER =" oracle "] Then "> > / etc/profileecho" if [$SHELL = "/ bin/ksh"] Then "> / etc/profileecho" ulimit-p 16384 "> > / etc/profileecho" ulimit-n 65536 "> > / etc/profileecho" else "> > / etc/profileecho" ulimit-u 16384-n 65536 "> > / etc/profileecho" fi "> > / etc/profileecho" fi "> > / etc/profileecho" # "> / etc/profileecho" # "> > / etc/profileecho "#" > > / etc/profilecat / dev/null > / etc/redhat-releaseecho "redhat-4" > > / etc/redhat-release/sbin/sysctl-psu-oracle

If an error occurs, Checking Network Configuration requirements..

You need to edit the / etc/hosts file, add IP and hostname, and then restart the network service.

[root@db ~] # cat / etc/hosts# Do not remove the following line, or various programs# that require network functionality will fail.127.0.0.1 localhost.localdomain localhost::1 localhost6.localdomain6 localhost6192.168.150.8 db [root@db ~] #

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.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report