linux服務(wù)器開(kāi)機(jī)啟動(dòng)oracle的設(shè)置方法
1、首先切換到Oracle用戶
[oracle@oracletest ~]$ cd /u01/app/oracle/product/11.2.0/db_1/bin/ -----標(biāo)紅字體部分?jǐn)?shù)據(jù)庫(kù)可能不一樣,有的是dbhome_1,以自己實(shí)際配置目錄為準(zhǔn) [oracle@oracletest bin]$ vi dbstart
LOGMSG="logger -puser.alert -s " trap 'exit' 1 2 3 # for script tracing case $ORACLE_TRACE in T) set -x ;; esac # Set path if path not set (if called from /etc/rc) SAVE_PATH=/bin:/usr/bin:/etc:${PATH} ; export PATH SAVE_LLP=$LD_LIBRARY_PATH # First argument is used to bring up Oracle Net Listener ORACLE_HOME_LISTNER=$ORACLE_HOME ############此處原來(lái)是$1,改成$ORACLE_HOME if [ ! $ORACLE_HOME_LISTNER ] ; then echo "ORACLE_HOME_LISTNER is not SET, unable to auto-start Oracle Net Listener" echo "Usage: $0 ORACLE_HOME" else LOG=$ORACLE_HOME_LISTNER/listener.log
2、用root用戶編輯oratab和rc.local
[root@oracletest ~]# vi /etc/oratab # This file is used by ORACLE utilities. It is created by root.sh # and updated by either Database Configuration Assistant while creating # a database or ASM Configuration Assistant while creating ASM instance. # A colon, ':', is used as the field terminator. A new line terminates # the entry. Lines beginning with a pound sign, '#', are comments. # # Entries are of the form: # $ORACLE_SID:$ORACLE_HOME:<N|Y>: # # The first and second fields are the system identifier and home # directory of the database respectively. The third filed indicates # to the dbstart utility that the database should , "Y", or should not, # "N", be brought up at system boot time. # # Multiple entries with the same $ORACLE_SID are not allowed. # # oadb:/u01/app/oracle/product/11.2.0/db_1:Y ###此處原來(lái)是N,改為Y [root@oracletest ~]# vi /etc/rc.d/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 #####在空白處添加下面兩行,其中標(biāo)紅字體部分?jǐn)?shù)據(jù)庫(kù)可能不一樣,有的是dbhome_1,以自己實(shí)際配置目錄為準(zhǔn) su oracle -lc "/u01/app/oracle/product/11.2.0/db_1/bin/lsnrctl start" su oracle -lc /u01/app/oracle/product/11.2.0/db_1/bin/dbstart
經(jīng)過(guò)上面兩步操作,數(shù)據(jù)庫(kù)服務(wù)器重啟后,數(shù)據(jù)庫(kù)也會(huì)自動(dòng)啟動(dòng)。
總結(jié)
以上所述是小編給大家介紹的linux服務(wù)器開(kāi)機(jī)啟動(dòng)oracle的設(shè)置方法,希望對(duì)大家有所幫助,如果大家有任何疑問(wèn)請(qǐng)給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對(duì)腳本之家網(wǎng)站的支持!
如果你覺(jué)得本文對(duì)你有幫助,歡迎轉(zhuǎn)載,煩請(qǐng)注明出處,謝謝!
- linux下oracle設(shè)置開(kāi)機(jī)自啟動(dòng)實(shí)現(xiàn)方法
- Linux下的Oracle啟動(dòng)腳本及其開(kāi)機(jī)自啟動(dòng)
- Linux系統(tǒng)下Oracle數(shù)據(jù)庫(kù)的安裝和啟動(dòng)關(guān)閉操作教程
- 詳解Linux系統(tǒng)中Oracle數(shù)據(jù)庫(kù)程序的啟動(dòng)和關(guān)閉方式
- Linux下啟動(dòng)Oracle服務(wù)和監(jiān)聽(tīng)程序步驟
- Linux環(huán)境下重啟Oracle數(shù)據(jù)庫(kù)詳細(xì)圖文教程
- Linux系統(tǒng)下Oracle數(shù)據(jù)庫(kù)監(jiān)聽(tīng)啟動(dòng)關(guān)閉命令詳解
- Linux下如何啟動(dòng)Oracle命令
- Linux系統(tǒng)下啟動(dòng)/關(guān)閉Oracle數(shù)據(jù)庫(kù)
相關(guān)文章
Oracle 數(shù)據(jù)庫(kù)導(dǎo)出(exp)導(dǎo)入(imp)說(shuō)明
exp 將數(shù)據(jù)庫(kù)內(nèi)的各對(duì)象以二進(jìn)制方式下載成dmp文件,方便數(shù)據(jù)遷移。2009-02-02Oracle 11g服務(wù)器安裝詳細(xì)步驟圖文詳解
Oracle 11g提供了高性能、伸展性、可用性和安全性,并能更方便地在低成本服務(wù)器和存儲(chǔ)設(shè)備組成的網(wǎng)格上運(yùn)行 ,相對(duì)過(guò)往版本而言,Oracle 11g具有了與眾不同的特性。接下來(lái)通過(guò)本文給大家介紹Oracle 11g服務(wù)器安裝詳細(xì)步驟圖文詳解,需要的朋友參考下吧2017-11-11MS Server和Oracle中對(duì)NULL處理的一些細(xì)節(jié)差異
SQL Server和Oracle中對(duì)插入數(shù)據(jù)值包含空的處理有所差異,在SQL Server中,我們可以把表字段設(shè)計(jì)為非空,但我們?nèi)匀豢梢酝ㄟ^(guò)下面語(yǔ)句執(zhí)行插入操作2009-06-06oracle 11g數(shù)據(jù)庫(kù)安全加固注意事項(xiàng)
這篇文章主要介紹了oracle11g數(shù)據(jù)庫(kù)安全加固須謹(jǐn)慎 ,需要的朋友可以參考下2015-08-08Oracle如何批量將表中字段名全轉(zhuǎn)換為大寫(xiě)(利用簡(jiǎn)單存儲(chǔ)過(guò)程)
這篇文章主要給大家介紹了關(guān)于Oracle如何批量將表中字段名全轉(zhuǎn)換為大寫(xiě)的相關(guān)資料,主要利用的就是一個(gè)簡(jiǎn)單的存儲(chǔ)過(guò)程,文中通過(guò)示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)學(xué)習(xí)吧2020-11-11Oracle帶輸入輸出參數(shù)存儲(chǔ)過(guò)程(包括sql分頁(yè)功能)
這篇文章主要介紹了Oracle帶輸入輸出參數(shù)存儲(chǔ)過(guò)程(包括sql分頁(yè)功能)的相關(guān)知識(shí),非常不錯(cuò),具有一定的參考借鑒價(jià)值,需要的朋友可以參考下2018-10-10oracle SCN跟TIMESTAMP之間轉(zhuǎn)換
本文將詳細(xì)介紹oracle SCN跟TIMESTAMP之間轉(zhuǎn)換,需要的朋友可以參考下2012-11-11解決Oracle刪除重復(fù)數(shù)據(jù)只留一條的方法詳解
本篇文章是對(duì)Oracle刪除重復(fù)數(shù)據(jù)只留一條的解決方法進(jìn)行了詳細(xì)的分析介紹,需要的朋友參考下2013-05-05PLSQL安裝、漢化和激活的方法步驟實(shí)現(xiàn)
這篇文章主要介紹了PLSQL安裝、漢化和激活的方法步驟實(shí)現(xiàn),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)學(xué)習(xí)吧2019-09-09