oracle安裝shell(未驗證)
整個程式程式碼如下:(問題還沒解決)
#! /bin/bash
groupadd oinstall
groupadd dba
useradd -m -g oinstall -G dba oracle
passwd oracle
chown -R oracle:oinstall /oracle
chmod -R 775 /oracle
ins=$(rpm -q binutils compat-db control-center gcc gcc-c++ glibc-common gnome-libs libstdc++ libstdc++-devel make pdksh sysstat xscreensaver libaio openmotif21|awk '{print $2}')
if [ -n "$ins" ]
then
echo "please download and install the following packets:"
echo "$ins"
else
echo "all needed packets have installed"
fi
echo "Oracle 10g required" >> /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=25032000100128" >> /etc/sysctl.conf
echo "fs.file-max=65536" >> /etc/sysctl.conf
echo "net.core.rmem_default=262144" >> /etc/sysctl.conf
echo "net.core.wmem_default=262144" >> /etc/sysctl.conf
echo "net.core.rmem_max=262144" >> /etc/sysctl.conf
echo "net.core.wmem_max=262144" >> /etc/sysctl.conf
/sbin/sysctl -p
echo "please type in the ORACLE_SID:"
read sid
echo "export ORACLE_BASE=/oracle" >> /home/oracle/.base_profile
echo "export ORACLE_HOME=oracle/product/10.2.0/db_1" >> /home/oracle/.base_profile
echo "export ORACLE_SID=$sid" >> /home/oracle/.base_profile
echo "export NLS_LANG='simplified chinese'_china.ZHS16GBK" >> /home/oracle/.base_profile
echo "export PATH=$PATH:$ORACLE_HOME/bin" >> /home/oracle/.base_profile
echo "export LANG=zh_CN.GB18030" >> /home/oracle/.base_profile
echo "export EDITOR=vi" >> /home/oracle/.base_profile
path=$(find . -name "runInstaller")
echo $path
if [ -n $path ]
su - oracle -c ./`$path` -silent -responseFile recorded.rsp
./`/oracle/oraInventory/orainsRoot.sh`
./`/oracle/product/10.2.0/db_1/root.sh`
echo “Finish!”
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/16396910/viewspace-1029551/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle 10G RAC 安裝環境驗證Oracle 10g
- 手動安裝、驗證、解除安裝11g R2 oracle textOracle
- Sqoop安裝及驗證OOP
- 安裝配置驗證COST(orapki)APK
- Mac下安裝未認證的AppMacAPP
- elasticsearch叢集安裝+安全驗證+kibana安裝Elasticsearch
- memcached安裝及開啟SASL驗證
- 安裝ORACLE資料庫,安裝驗證程式所需的初始設定失敗,無法進入安裝程式Oracle資料庫
- 安裝Oracle RAC時,不能驗證ASMSNMP密碼問題的解決OracleASM密碼
- 安裝出錯,說jiveHome驗證錯誤
- Oracle GoldenGate安裝初體驗OracleGo
- Oracle 12c redhat linux 6 安裝驗證錯誤at least 256 colorsOracleRedhatLinuxAST
- Oracle 18c安裝初體驗Oracle
- 【clickhouse專欄】單機版的安裝與驗證
- rpm安裝、升級、查詢與安全驗證
- 安裝crs使用runcluvfy驗證的一個問題
- 第12篇 window上驗證mysql是否安裝成功MySql
- CentOS7 原始碼安裝svn1.9.5及httpd配置(ldap驗證/ad域驗證)CentOS原始碼httpdLDA
- Oracle的身份驗證Oracle
- Oracle的驗證方式Oracle
- Shell編譯安裝nginx編譯Nginx
- LNMP安裝shell指令碼LNMP指令碼
- 使用 runcluvfy 校驗Oracle RAC安裝環境Oracle
- Docker 驗證 Centos7.2 離線安裝 Docker 環境DockerCentOS
- OS__安裝、引數、注意事項、驗證事項
- 安裝GD庫解決ThinkPHP驗證碼CalltoundefinedfunctionThinkimagecreate()出錯PHPUndefinedFunction
- oracle安裝:OUI安裝Oracle(圖形介面安裝)OracleUI
- shell批次yum安裝並檢查是否安裝成功
- 安裝HP-UX Secure ShellUX
- Oracle驗證方式詳解Oracle
- oracle驗證方式簡介Oracle
- oracle常見身份驗證Oracle
- Oracle 密碼驗證方式Oracle密碼
- 自用驗證類封裝封裝
- 【[Oracle】-【安裝】-Cent OS安裝Oracle ClientOracleclient
- 【Oracle】windows 安裝Oracle 10g 報錯,實際為 6.1未透過WindowsOracle 10g
- 在Linux Shell程式中進行身份驗證(轉)Linux
- Oracle 安裝與解除安裝Oracle