91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

oracle安裝環境一鍵部署腳本

發布時間:2020-06-02 03:03:14 來源:網絡 閱讀:804 作者:hel1960050004 欄目:關系型數據庫

OS:centos5.9 32位

數據庫:oracle 10g 32位

在依賴的軟件包全部安裝完成之后,執行完此腳本可以直接安裝oracle

#!/bin/bash
echo  ##### install rlwrap tools #####
wget http://utopia.knoware.nl/~hlub/uck/rlwrap/rlwrap-0.37.tar.gz
tar -zxvf rlwrap-0.37.tar.gz 
cd rlwrap-0.37
./configure 
make 
make install
cd 
echo  ##### easy oracle10g install script #######
# add user and group
#
groupadd oinstall                
groupadd dba                     
useradd -g oinstall -G dba oracle
# create directory for install oracle 
mkdir -p /oracle
mkdir -p /oracle/product/10.2.0/db_1     
chown -R oracle:oinstall /oracle
chmod -R 775 /oracle
# edit entironment path for oracle
#
echo "#####">> /home/oracle/.bash_profile
echo "#####">> /home/oracle/.bash_profile
echo "#####">> /home/oracle/.bash_profile
echo "#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_profile
echo "#####">> /home/oracle/.bash_profile
echo "#####">> /home/oracle/.bash_profile
echo "#####">> /home/oracle/.bash_profile
source /home/oracle/.bash_profile
# edit kernel parameter
#
echo "#####">> /etc/sysctl.conf
echo "#####">> /etc/sysctl.conf
echo "#####">> /etc/sysctl.conf
echo "#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 = 250 32000 100 128" >>  /etc/sysctl.conf
echo "net.ipv4.ip_local_port_range = 1024 65500" >> /etc/sysctl.conf
echo "net.core.rmem_default = 262144" >> /etc/sysctl.conf
echo "net.core.rmem_max = 4194304 " >> /etc/sysctl.conf
echo "net.core.wmem_default = 262144" >> /etc/sysctl.conf
echo "net.core.wmem_max = 1048586" >> /etc/sysctl.conf
echo "#####">> /etc/sysctl.conf
echo "#####">> /etc/sysctl.conf
echo "#####">> /etc/sysctl.conf
                                                             
# edit user resource limits
#
echo "#####">> /etc/security/limits.conf
echo "#####">> /etc/security/limits.conf
echo "#####">> /etc/security/limits.conf
echo "#for resource limits">>/etc/security/limits.conf
echo "oracle              soft    nofile    1024" >> /etc/security/limits.conf 
echo "oracle              hard    nofile    65536" >> /etc/security/limits.conf 
echo "oracle              soft    nproc    2047" >> /etc/security/limits.conf 
echo "oracle              hard    nproc    16384" >> /etc/security/limits.conf 
echo "#####">> /etc/security/limits.conf
echo "#####">> /etc/security/limits.conf
echo "#####">> /etc/security/limits.conf
# edit user Authentication
#
echo "#####">> /etc/pam.d/login
echo "#####">> /etc/pam.d/login
echo "#####">> /etc/pam.d/login
echo "#for oracle install Authentication" >> /etc/pam.d/login  
echo "session    required    /lib/security/pam_limits.so" >> /etc/pam.d/login 
echo "session   required    pam_limits.so" >> /etc/pam.d/login 
echo "#####">> /etc/pam.d/login
echo "#####">> /etc/pam.d/login
echo "#####">> /etc/pam.d/login
# edit xxx file
#
echo "#####">>/etc/profile
echo "#####">>/etc/profile
echo "#####">>/etc/profile
echo "#for oracle install" >>/etc/profile
echo "if [ $USER = "oracle" ]; then" >>/etc/profile
echo "        if [ $SHELL = "/bin/ksh" ]; then" >>/etc/profile
echo "              ulimit -p 16384" >>/etc/profile
echo "              ulimit -n 65536" >>/etc/profile
echo "        else" >>/etc/profile
echo "              ulimit -u 16384 -n 65536" >>/etc/profile
echo "        fi" >>/etc/profile
echo "fi" >>/etc/profile
echo "#####">>/etc/profile
echo "#####">>/etc/profile
echo "#####">>/etc/profile
cat /dev/null>/etc/redhat-release
echo "redhat-4">>/etc/redhat-release
/sbin/sysctl -p
su - oracle

 

如果出現報錯Checking Network Configuration requirements ..

oracle安裝環境一鍵部署腳本

 

需要編輯/etc/hosts文件,添加IP和主機名,然后重啟網絡服務。

[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 localhost6

192.168.150.8 db

[root@db ~]#

 

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

金坛市| 抚顺县| 垦利县| 衡南县| 哈尔滨市| 牟定县| 商河县| 明溪县| 桐庐县| 松潘县| 元朗区| 宁阳县| 两当县| 北京市| 合肥市| 随州市| 平舆县| 眉山市| 平安县| 临西县| 安远县| 九龙县| 庆城县| 普宁市| 仙居县| 高雄县| 陇南市| 梅州市| 邳州市| 德江县| 孙吴县| 杭锦后旗| 托里县| 长兴县| 平顶山市| 慈利县| 潞城市| 巨野县| 南郑县| 海阳市| 大埔县|