Linux 下oracle自啟動指令碼
在實際應用時,需要先啟動資料庫,再啟動應用。
系統為:redhat6.3、oracle11g
以下是oracle自啟動指令碼:
vi /home/oracle/orastart.sh
在開機啟動檔案按如下配置,實現先啟動資料庫完成後,再啟動實際應用。
# more /etc/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
/home/oracle/orastart.sh
/bin/sleep 60
su - root -c "cd /starboss/jboss-4.0.2/bin/ && nohup ./run.sh >>/dev/null 2>&1 &"
系統為:redhat6.3、oracle11g
以下是oracle自啟動指令碼:
vi /home/oracle/orastart.sh
-
#!/bin/sh
-
su - oracle <<EOF
-
export ORACLE_SID=starboss
-
lsnrctl start
-
sqlplus /nolog <<EOF
-
conn / as sysdba
-
startup
-
exit
-
EOF
-
exit
- EOF
在開機啟動檔案按如下配置,實現先啟動資料庫完成後,再啟動實際應用。
# more /etc/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
/home/oracle/orastart.sh
/bin/sleep 60
su - root -c "cd /starboss/jboss-4.0.2/bin/ && nohup ./run.sh >>/dev/null 2>&1 &"
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26845409/viewspace-1602321/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- linux下新增oracle自啟動指令碼LinuxOracle指令碼
- windows下oracle自動啟動指令碼WindowsOracle指令碼
- Linux下Oracle隨機自動啟動指令碼設定LinuxOracle隨機指令碼
- Linux自啟動指令碼Linux指令碼
- Linux 下Oracle 開機自啟動 與 oratab, dbstart 指令碼 說明LinuxOracle指令碼
- UNIX下oracle啟動指令碼Oracle指令碼
- solaris 10下的oracle 10g 自動啟動指令碼Oracle 10g指令碼
- RedHat Linux下Oracle啟動指令碼的建立(轉)RedhatLinuxOracle指令碼
- linux開機自動啟動指令碼Linux指令碼
- 再談用指令碼自動啟動關閉LINUX下的ORACLE資料庫指令碼LinuxOracle資料庫
- linux下oracle的自動啟動LinuxOracle
- Linux下oracle庫自啟動LinuxOracle
- Linux 新增指令碼開機自啟動Linux指令碼
- rhel as3下自動啟動和關閉oracle的指令碼S3Oracle指令碼
- Linux下開機自動啟動OracleLinuxOracle
- Orale自動啟動以及關閉指令碼_linux指令碼Linux
- Linux下設定Oracle自啟動LinuxOracle
- linux環境下ORACLE自啟動LinuxOracle
- RedHat Linux下Oracle啟動指令碼的建立 dbstart oracle8.1.6 (轉)RedhatLinuxOracle指令碼
- Redhat as4 下oracle10g自啟動指令碼設定RedhatOracle指令碼
- oracle10g_自動啟動服務指令碼Oracle指令碼
- LINUX開機自動啟動ORACLE資料庫和監聽指令碼LinuxOracle資料庫指令碼
- suse下oracle的自動備份指令碼Oracle指令碼
- oracle啟動和關閉指令碼for LinuxOracle指令碼Linux
- linux 下oracle10g自動啟動LinuxOracle
- centos 自動啟動指令碼和自啟動服務CentOS指令碼
- Ubuntu自動啟動配置指令碼Ubuntu指令碼
- 網路卡自動啟動指令碼指令碼
- ORACLE的啟動指令碼Oracle指令碼
- linux下rman增量備份指令碼以及指令碼自動執行Linux指令碼
- linux下Oracle自動啟動與停止總結LinuxOracle
- SHELL指令碼實現Oracle自啟動與關閉指令碼Oracle
- oracle for linux 自動啟動OracleLinux
- linux oracle 自動啟動LinuxOracle
- linux-啟動指令碼Linux指令碼
- Linux下XWindow系統啟動指令碼分析(轉)Linux指令碼
- 開機自啟動Powershell指令碼指令碼
- Linux下新增自定義指令碼到開機自啟動,標準rpm,舉例:設定Apache自啟動Linux指令碼Apache