偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

Linux下的Oracle啟動(dòng)腳本

數(shù)據(jù)庫(kù) Oracle
Oracle數(shù)據(jù)庫(kù)是廣受用戶好評(píng)的數(shù)據(jù)庫(kù)系統(tǒng),下文對(duì)Linux下的Oracle啟動(dòng)腳本作了詳細(xì)的介紹,希望對(duì)您能有所幫助。

下面為您介紹的是Oracle啟動(dòng)腳本,該Oracle啟動(dòng)腳本供您參考學(xué)習(xí)之用,希望可以讓您對(duì)Oracle數(shù)據(jù)庫(kù)有更深的了解。

  1. view plaincopy to clipboardprint?  
  2. #!/bin/sh     
  3.     
  4. cmdname="restart"     
  5. # get oracle sid information from env by default.     
  6. oracleSID=${ORACLE_SID}     
  7. env_oracleSID=${ORACLE_SID}     
  8.     
  9. function echohelp(){     
  10.   echo "******oracled Tool Helper******"     
  11.   echo "Usage:sh oracled [start|stop|restart] SIDs"     
  12.   echo "SIDs : seperated by comma"     
  13.   exit 5     
  14. }     
  15.     
  16. function startoracle(){     
  17.   echo "begin to start oracle ..."     
  18.     
  19.   lsnrctl start     
  20.   for curSID in `echo ${oracleSID} | awk 'BEGIN {RS=","}{ORS="\n"}{print $1}'` ; do     
  21.     if [ "x${curSID}" = "x" ] ; then     
  22.       continue;     
  23.     fi     
  24.     export ORACLE_SID=${curSID}     
  25.     
  26. sqlplus /nolog <<EOF     
  27.     
  28. connect /as sysdba     
  29. startup     
  30. exit     
  31. exit     
  32.     
  33. EOF     
  34.     
  35.     echo "oracle DB [${curSID}] started OK."     
  36.   done     
  37. }     
  38. function stoporacle(){     
  39.   echo "begin to stop oracle ..."     
  40.     
  41.   for curSID in `echo ${oracleSID} | awk 'BEGIN {RS=","}{ORS="\n"}{print $1}'` ; do     
  42.     if [ "x${curSID}" = "x" ] ; then     
  43.       continue;     
  44.     fi     
  45.     export ORACLE_SID=${curSID}     
  46.     
  47. sqlplus /nolog <<EOF     
  48.     
  49. connect /as sysdba     
  50. shutdown immediate     
  51. exit     
  52. exit     
  53.     
  54. EOF     
  55.     
  56.     echo "oracle DB [${curSID}] stopped OK."     
  57.   done     
  58.   lsnrctl stop     
  59. }     
  60. function restartoracle(){     
  61.   stoporacle     
  62.   startoracle     
  63. }     
  64.     
  65.     
  66. if [ $# -lt 1 ] ; then     
  67.   echohelp     
  68. fi     
  69.     
  70. until [ $# -eq 0 ]     
  71. do     
  72.   tmpVOrg=$1     
  73.   tmpV=`echo "${tmpVOrg}" | awk '{printf "%s",$1}' | tr '[A-Z]' '[a-z]'`     
  74.   if [ $tmpV = "start" -o $tmpV = "restart" -o $tmpV = "stop" ] ; then     
  75.     cmdname=${tmpV}     
  76.   elif [ $tmpV = "--help" -o $tmpV = "-h" ] ; then     
  77.     echohelp     
  78.   else    
  79.     oracleSID=$tmpVOrg     
  80.   fi     
  81.     
  82.   shift     
  83. done     
  84.     
  85. if [ "x${cmdname}" = "x" ] ; then     
  86.   echohelp     
  87. fi     
  88.     
  89. ${cmdname}oracle     
  90.     
  91. export ORACLE_SID=${env_oracleSID}     

 

 

【編輯推薦】

Oracle轉(zhuǎn)換函數(shù)一覽

Oracle DECODE函數(shù)的語(yǔ)法介紹

ORACLE存儲(chǔ)過(guò)程創(chuàng)建的語(yǔ)法及注意事項(xiàng)

Oracle存儲(chǔ)過(guò)程的調(diào)試方法

帶您了解Oracle啟動(dòng)參數(shù)

責(zé)任編輯:段燃 來(lái)源: 互聯(lián)網(wǎng)
相關(guān)推薦

2009-12-11 10:55:16

Linux啟動(dòng)腳本

2011-02-25 11:11:52

Proftpd腳本

2011-02-25 11:11:52

Proftpd腳本

2019-05-21 15:28:00

Tomcat腳本權(quán)限

2010-06-10 14:34:53

openSUSE啟動(dòng)

2010-11-19 14:42:37

Oracle數(shù)據(jù)庫(kù)啟動(dòng)

2010-03-30 09:38:58

2010-04-15 13:14:18

linux下Oracl

2010-03-30 16:26:09

Oracle

2010-11-16 13:07:02

oracle命令行

2015-10-28 17:21:37

Oracle11glinux自啟動(dòng)

2019-12-17 08:39:21

Linuxwindowsoracle

2009-10-28 09:59:19

2010-03-04 09:27:00

Oracle RAC

2011-05-13 11:21:51

linuxoracle 10g安裝

2010-10-29 11:30:01

Oracle用戶信息

2010-11-15 10:24:24

啟動(dòng)Oracle數(shù)據(jù)庫(kù)

2010-12-23 14:46:08

expect腳本

2021-07-21 09:50:35

Linux腳本命令

2009-06-24 10:44:08

點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)