首先测试你的$ORACLE/bin/dbstart脚本,如果能正常启动Oracle,请跳到第二部分。本人运行环境为RedHat7.1+Oracle8.1.6,发现dbstart脚本有问题,不能得到当前运行的Oracle的版本号。编辑dbstart,找到
STATUS=1
if [ "$VERSION" = "8.1" ]
在之前加上
VERSION="8.1"
二、建立/etc/init.d/oracle脚本如下:#!/bin/bash
引用:#
# oracle This shell script takes care of starting and stopping
# the MySQL subsystem (mysqld).
#
# chkconfig: - 90 10
# description: Oracle database server.
# processname: oracle
ORA_HOME=/home/oracle
ORA_OWNER=oracle
prog="Oracle"
# Source function library.
. /etc/rc.d/init.d/functions
if [ ! -f $ORA_HOME/bin/dbstart ]
then
echo "Oracle startup: cannot start"
exit
fi
start(){
su - $ORA_OWNER -c $ORA_HOME/bin/dbstart >/dev/null 2>&1 &
ret=$?
if [ $ret -eq 0 ]; then
action $"Starting $prog: " /bin/true
else
action $"Starting $prog: " /bin/false
fi
[ $ret -eq 0 ] && touch /var/lock/subsys/oracled
return $ret
}
stop(){
su - $ORA_OWNER -c $ORA_HOME/bin/dbshut >/dev/null 2>&1
ret=$?
if [ $ret -eq 0 ]; then
action $"Stopping $prog: " /bin/true
else
action $"Stopping $prog: " /bin/false
fi
[ $ret -eq 0 ] && rm -f /var/lock/subsys/oracled
return $ret
}
restart(){
stop
start
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
condrestart)
condrestart
;;
*)
echo $"Usage: $0 {start|stop|restart}"
exit 1
esac
三、运行命令chkconfig --add oracle,注册系统服务,然后就可以用ntsysv命令来管理你的Oracle服务了。
四、可以到
http://fancao.oso.com.cn/script/dbstart
http://fancao.oso.com.cn/script/oracle
下载本文所提及文件。
五、如果您有什么问题请及时和作者联系,作者Email为:
fancao0515@0451.com
84.121.213.* 于 2007-05-21 20:51:49发表:
5e73949f1e4b1b995d88f4c359d41e1b http://il-piccolo-cottolengo-di-don-orione.osjckd.org/ http://cartuccia-hp-28-c8728ae-abe.osjckd.org/ http://testo-canzone-a-modo-mio.weejwl.org/ http://istituto-casa-popolare-vita-latina.csapok.org/ http://verona-mostra-felina-verona-fiera.nofnhx.org/ http://scaricare-musica-gratis-download-mp3.shqsxs.org/ http://dove-scaricare-film-rete-com.nofnhx.org/ http://suonerie-che-ti-chiamano-per-nome.weejwl.org/ http://nuove-licenza-taxi-a-roma.nofnhx.org/ http://onorari-794-1942-poteri-istruttori-avvocato.csapok.org/ 417a8203d1b04948a6eb96aa4fb99866
74.210.136.* 于 2007-05-21 03:34:39发表:
25f497f2e817ccc6d4b1eb813224d3ac http://bootsycollinsclub.qhrtwn.net/2005-07-21.html http://torqueauto.qsogkn.net/2005-07-10.html http://mediaspecificationsinstitute.qsogkn.net/2005-07-20.html http://amalconquest.qhrtwn.net/2005-10-03.html http://jewishmediatrust.ynfqkm.net/2005-09-07.html http://opal-band.pbcqvd.net/2005-07-26.html http://tampanew.utwikd.net/2005-07-16.html http://electrofuct.iuwexi.net/2005-09-10.html http://hyatt-villas.iuwexi.net/2005-09-19.html http://growthfactorsupport.iuwexi.net/2005-08-17.html b242eb585f2503f10c8eb79a53604d31
190.72.94.* 于 2007-05-18 07:28:19发表:
9c3c72ef12a698a7376624b1732f6e13 http://canone-acqua-privato-richiesto-al-condominio.vzlvrv.org/ http://canone-acqua-privato-richiesto-al-condominio.vzlvrv.org/ http://video-amatoriale-forza-chiara-da-perugia.vzlvrv.org/ http://al-jazeera-video-impiccagione-saddam.weejwl.org/ http://hotel-vina-de-mar-lignano.weejwl.org/ http://albergo-3-stella-como-italia.csapok.org/ http://cinema-asterope-francavilla-al-mare.ynoxmw.org/ http://dove-si-trovano-centrale-elettrica.shqsxs.org/ http://storia-della-festa-dei-morti.vzlvrv.org/ http://trucco-gta-vice-city-ps3.osjckd.org/ af5e5529e610c2f14667e2377e4b1e8c
80.59.40.* 于 2007-05-16 21:58:11发表:
8ce3706d212ceaaafe00955b8f6d1367 http://rai-1-meteo-campania-6-giorno.znuawz.name/ http://autorizzazione-sanitaria-studio-medico-dentistici.znuawz.biz/ http://non-riesco-leggere-dato-cd.hfnghd.name/ http://giuseppe-de-marco-studente-1983.hfnghd.name/ http://art-9-2-18-febbraio-1984.hfnghd.co.in/ http://corbino-iura-et-forma-civitatis.znuawz.biz/ http://le-bionde-trecce-gli-occhi.znuawz.biz/ http://immagine-buon-natale-felice-anno-nuovo.znuawz.biz/ http://www-comune-pesaro-ps-it.hfnghd.co.in/ http://speranza-societa-cooperativa-sociale-integrata.hfnghd.co.in/ c5b410f967c066628d7832ce0ac5b28e
190.30.103.* 于 2007-05-16 21:58:00发表:
8ce3706d212ceaaafe00955b8f6d1367 http://rai-1-meteo-campania-6-giorno.znuawz.name/ http://autorizzazione-sanitaria-studio-medico-dentistici.znuawz.biz/ http://non-riesco-leggere-dato-cd.hfnghd.name/ http://giuseppe-de-marco-studente-1983.hfnghd.name/ http://art-9-2-18-febbraio-1984.hfnghd.co.in/ http://corbino-iura-et-forma-civitatis.znuawz.biz/ http://le-bionde-trecce-gli-occhi.znuawz.biz/ http://immagine-buon-natale-felice-anno-nuovo.znuawz.biz/ http://www-comune-pesaro-ps-it.hfnghd.co.in/ http://speranza-societa-cooperativa-sociale-integrata.hfnghd.co.in/ c5b410f967c066628d7832ce0ac5b28e
81.203.106.* 于 2007-05-16 07:02:54发表:
66697d58d283901f01c3836ab205941f http://g-s-robur-saronno.hzqpsj.net/ http://brother-cucitrice-980.fflnuc.co.in/ http://telescuola-iesi.hzqpsj.com/ http://guanto-moto-klan.fflnuc.net/ http://rasoio-philips-9160.fflnuc.net/ http://moglie-possedere-marito-cornuto-geloso.fflnuc.name/ http://istruzione-it-istituto-comprensivo-leonetti-schiavonea.hzqpsj.com/ http://frase-filosofiche-natalizia.fflnuc.net/ http://soluzione-trucco-midnight-nowhere.hzqpsj.net/ http://foratura-profonda-varese.hzqpsj.com/ e1c77cc030a7259f186177a086fb8a83
190.46.130.* 于 2007-05-14 22:59:11发表:
e90c83239b10a0644b8b77d09ef29501 http://musica-natalizia-zecchino-d-oro.xjpled.biz/ http://nome-squadra-ufficiale-pro-evolution.xjpled.name/ http://star-wars-l-attacco-dei-cloni.nvdset.com/ http://offerta-lavoro-week-end-milano.nvdset.biz/ http://foto-su-san-benedetto-del-tronto.nvdset.net/ http://tesi-comunicazione-interna-dell-impresa.nvdset.biz/ http://decreto-ministero-sanita-18-03-1999.nvdset.name/ http://legge-regionale-marche-20-2000.nvdset.name/ http://alfredo-and-bitonto-and-esa.xjpled.co.in/ http://immagine-dei-personaggio-paso-adelante.xjpled.co.in/ 8115d97afce6272748d3203e407b2c31
201.208.196.* 于 2007-05-14 11:36:48发表:
df2cd892f6eb4a09484ad09bc0d40f5f http://trama-libro-ho-voglia-di-te.klkhba.name/ http://lastminute-mar-rosso-naama-bay.ujttwc.biz/ http://torta-di-mele-con-crema.ujttwc.com/ http://nuova-macchina-fotografica-digitale-olympus.ujttwc.net/ http://capodanno-2007-piazza-politeama-palermo.ujttwc.name/ http://conversione-dei-permesso-soggiorno-motivo-umanitari.ujttwc.name/ http://traduzione-beat-of-my-heart.ujttwc.name/ http://fiat-scudo-combi-posto-2007-foto.klkhba.biz/ http://peluche-winnie-the-pooh-natale.klkhba.co.in/ http://fac-simile-lettera-incaricato-esterno.ujttwc.biz/ b0aa8b27a8ec12b02be4055d7baf88c7
200.117.26.* 于 2007-05-13 22:47:10发表:
fb53a5fa5216509573dc4cd7dd336c05 http://win-coverisland-net-copertine-dvd.obuvie.co.in/ http://4-novembre-commemorazione-tutti-caduti-guerra.ctvbxm.name/ http://offerte-di-lavoro-napoli-e-provincia.ctvbxm.biz/ http://sesso-gratis-com-racconto-erotico.obuvie.biz/ http://cancello-ferro-battuto-foto-listino-prezzo.obuvie.biz/ http://giuda-tv-sabato-28-ottobre-2006.ctvbxm.biz/ http://configurazione-nec-e616v-internet-wind.obuvie.name/ http://taglio-base-capello-video-gratis.ctvbxm.biz/ http://grand-hotel-del-parco-pescasseroli.ctvbxm.biz/ http://jeans-dolce-e-gabbana-uomo.ctvbxm.name/ a647f0935ac9b246ffd2471206f1cc7e
190.16.204.* 于 2007-05-13 10:34:59发表:
df8b49702be8f906ada9912a12b78980 http://navette-da-linate-a-malpensa.ujttwc.biz/ http://acquisto-toshiba-satellite-a100-703.ujttwc.name/ http://campionati-italiani-di-cross-lanciano.ujttwc.biz/ http://hotel-vicino-stazione-porta-susa-torino.klkhba.name/ http://era-glaciale-2-play-soluzione.klkhba.co.in/ http://casa-affitto-san-paolo-albanese.ujttwc.biz/ http://tribunale-roma-12-giugno-2004.klkhba.biz/ http://calcio-serie-b-tempo-reale.klkhba.biz/ http://crack-chi-vuole-essere-milionario.ujttwc.name/ http://segreteria-unipg-it-self-s-o.ujttwc.name/ 784faf42bbc6bc8e3eef9ef627ced6bc
84.99.55.* 于 2007-05-12 18:46:25发表:
ab928d23008b119e279fdd4d248f1cbd http://istituto-superiora-della-sanita-e-concorso.ycfrzc.net/ http://cantiere-scuola-lavoro-regione-lazio.rfqhyn.net/ http://ww-uil-scuola-cuneo-it.sjuvcf.net/ http://donna-vecchia-scopano-video-gratis.jnonib.net/ http://hotel-spiaggia-d-oro-salo.uaaxsj.info/ http://incidente-stradale-stamani-salerno-reggio-calabria.sjuvcf.net/ http://trattamento-economico-del-vice-segretario-comunale.uqqaqa.info/ http://traduttore-nfs-carbon-audio-testo.ycfrzc.net/ http://nikon-batteria-compatibile-prezzo-de.rfqhyn.net/ http://dama-bella-via-sans-marci.cbcmld.net/ d9a31e90dfa815b241581cfa56f7d9b0
85.155.14.* 于 2007-05-12 04:17:12发表:
1d90793f84f8429f173a9b3158a493d0 http://1989-real-madrid-milan-fuorigioco.uwvdff.net/ http://conoscenza-futuro-non-utile-all-uomo.wvnhzs.info/ http://associazione-nazionale-paracadutista-d-italia.lvrsgc.net/ http://capitolato-speciale-d-appalto-sito-inquinato.jiqgyr.net/ http://albergo-5-stella-offerta-lavoro.avborz.net/ http://ciaula-scopre-luna-pirandello-riassunto.vuulyy.info/ http://hotel-oasi-di-kufra-sabaudia.xhzpsl.info/ http://site-blog-kataweb-it-marckuck.nxlnkr.net/ http://la-tragedia-delle-torri-gemelle.wpktse.info/ http://caratteristica-contratto-procacciatore-d-affari.ycfrzc.info/ e851160535cf163ca98e2cabd77393d9
200.120.90.* 于 2007-05-10 14:39:46发表:
13f9dc94eb54935412a95666d55a67fc http://orario-stazione-dei-treno-castiglione-cosentino.aqnfrs.net/ http://programma-per-vedere-filmato-avi.jnonib.net/ http://cerco-negozio-liu-jo-napoli.tpuskc.info/ http://antonello-de-pierro-antonella-clerici.uaaxsj.info/ http://scarica-film-natale-new-york.fzjkno.net/ http://misura-bagaglio-mano-volo-aereo.fzjkno.net/ http://art-3-r-d-n-1578.sjrmzh.info/ http://discorso-fatto-inaugurazione-centro-culturale.cbcmld.net/ http://coefficiente-rivalutazione-t-f-r.ycfrzc.net/ http://scaricare-gratis-suoneria-polifoniche-per-cellulare.aqnfrs.net/ 6ea61d011241fc97c6cd95e85f270196
88.24.207.* 于 2007-05-09 04:48:45发表:
d37ccc7dbca03e4e4a01bb9a4fda656e http://noleggio-distributore-automatico-snack-catania.cbcmld.info/ http://lettore-elettronico-carta-credito-svizzera.qncqss.net/ http://elvira-e-una-donna-matura.drlrmm.info/ http://il-portale-dei-bambini-net.fneces.net/ http://www-comune-di-firenze-it.fneces.net/ http://roma-antica-pescheria-galluzzi-1894.esitxq.info/ http://suoneria-samsung-mandare-tramite-sms.avborz.info/ http://cancellare-traccia-musicale-cd-audio.avborz.info/ http://i-luogo-piu-belli-del-mondo.avborz.info/ http://affitto-casa-roma-zona-tiburtina.aqnfrs.info/ c30356c496a34fc36d31054e2275bbe2
81.203.24.* 于 2007-05-08 18:12:31发表:
51e6854aa0a6dfef9f0cc027bd077fcc http://hotel-in-costa-d-avorio.vsytef.net/ http://manuale-d-uso-nokia-7373.jnonib.info/ http://elenco-telefonico-alfabetici-online-toscana.vsytef.net/ http://un-amore-cosi-grande-testo.johlma.info/ http://giocattolo-power-rangers-vecchia-serie.oovbhv.info/ http://hard-disk-esterno-firewire-800.jnonib.info/ http://parola-disegno-immagine-d-amore.vkzzwe.net/ http://fast-food-famosi-new-york.owlybp.info/ http://quanto-e-difficile-essere-teenager.jnonib.info/ http://apertura-pagina-alice-lentissima-fare.nxlnkr.info/ ad9883469ac620e72a2c30c2417cb4d3
84.102.224.* 于 2007-05-08 04:15:00发表:
fe68ca0a612eca56b4716e6567ee4822 http://jack-e-il-fagiolo-magico.fneces.net/ http://il-calice-di-fuoco-download.avborz.info/ http://donna-matura-hard-over-40.bhjrbx.info/ http://gioca-gratis-on-line-monopolio.drlrmm.info/ http://il-mio-canto-libero-juve.aqnfrs.info/ http://istruttore-polizia-municipale-comune-di-roma.aphvga.info/ http://posso-scrivere-i-versi-piu-tristi.avborz.info/ http://hamlet-modem-esterno-56-k.qncqss.net/ http://comune-napoli-it-mensa-scolastica.vuulyy.net/ http://asl-san-damiano-d-asti.drlrmm.info/ 26ebd8669f82ff2d680fe0e97ba7427c
82.234.141.* 于 2007-04-17 20:36:12发表:
http://6122be6aa9cf11f44eaf7ee635d11f1e-t.ghoiou0.info 6122be6aa9cf11f44eaf7ee635d11f1e http://6122be6aa9cf11f44eaf7ee635d11f1e-b1.ghoiou0.info 6122be6aa9cf11f44eaf7ee635d11f1e http://6122be6aa9cf11f44eaf7ee635d11f1e-b3.ghoiou0.info 196c3da0ce3e9a23267e7eab02ad2b11
jpl2000 于 2006-07-20 09:46:55发表:
好