亚洲AV无码成人网站久久精品大最新的|A区色逼逼不卡91AV一区二区|免费涩涩夜夜骑一区|亚洲中日韩成人在钱|男女视频在线观看无人一区二区|欧美精品成人在线观看一区二区|国产青青草原一区二区三区精品在线|久久免费观看伊人网|亚洲一区二区在线导航|日韩字幕一区二区

學(xué)習(xí)啦>學(xué)習(xí)電腦>操作系統(tǒng)>Linux教程>

如何在Linux中設(shè)置開機(jī)自動(dòng)啟動(dòng)oracle

時(shí)間: 曉斌668 分享

  對于LINUX操作系統(tǒng)有很多技術(shù)知識(shí)是我們需要學(xué)習(xí)的。這里學(xué)習(xí)啦小編就給大家介紹Linux中設(shè)置oracle開機(jī)自動(dòng)啟動(dòng)的方法。一起來看看吧。

  Linux中設(shè)置oracle開機(jī)自動(dòng)啟動(dòng)的方法

  在terminal中切換到root用戶

  查看/etc/oratab文件的內(nèi)容,其內(nèi)容如下

  [root@golonglee ~]# cat /etc/oratab | grep -v ^$

  #

  # This file is used by ORACLE utilities. It is created by root.sh

  # and updated by the Database Configuration Assistant when creating

  # a database.

  # 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::

  #

  # 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.

  #

  #

  oel63:/home/oracle/app/oracle/product/11.2.0/dbhome_1:N

  使用命令vi /etc/oratab編輯文件/etc/oratab,在最后添加如下內(nèi)容

  ##### what I have written is as following

  oel63:/home/oracle/app/oracle/product/11.2.0/dbhome_1:Y

  #####Finished wrote in 2015-12-24

  說明:/home/oracle/app/oracle/product/11.2.0/dbhome_1為oracle的安裝目錄,要根據(jù)實(shí)際情況進(jìn)行修改。

  (注意:圖中學(xué)習(xí)啦小編用紅色標(biāo)記的N要改成Y)

  找到最后的內(nèi)容

  oel63:/home/oracle/app/oracle/product/11.2.0/dbhome_1:N

  復(fù)制該行oel63:/home/oracle/app/oracle/product/11.2.0/dbhome_1:N并注釋掉

  粘貼該行,并將該行

  oel63:/home/oracle/app/oracle/product/11.2.0/dbhome_1:N最后的N

  改為Y

  最后按2次ESC鍵,并輸入:wq并按下enter保存,退出

  使用命令vi /etc/rc.d/rc.local編輯rc.local文件,添加如下內(nèi)容

  ##### what I have written is as following

  su oracle -lc "/home/oracle/app/oracle/product/11.2.0/dbhome_1/bin/lsnrctl start"

  su oracle -lc /home/oracle/app/oracle/product/11.2.0/dbhome_1/bin/dbstart

  #####Finished wrote in 2015-12-24

  說明:因?yàn)榈谝恍忻钪杏锌崭袼杂秒p引號(英文的雙引號)

  /home/oracle/app/oracle/product/11.2.0/dbhome_1為oracle的安裝目錄,要根據(jù)實(shí)際情況進(jìn)行修改。

  最后按2次ESC鍵,并輸入:wq并按下enter保存,退出,重啟機(jī)器,驗(yàn)證成功。

  是不是很簡單呢~快跟著學(xué)習(xí)啦小編一起學(xué)習(xí)吧!!!如果覺得這篇文章不錯(cuò)的話就給學(xué)習(xí)啦小編點(diǎn)一個(gè)贊吧。

391195