自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

Oracle11g在linux系統(tǒng)下開機(jī)自啟動設(shè)置

數(shù)據(jù)庫 Oracle
oracle服務(wù)器一般來說最好是手動啟動,這樣碰到問題的話,可以現(xiàn)場解決,但是也擔(dān)心有時候機(jī)器故障,自動重啟后,為了快速恢復(fù)應(yīng)用,需要自動開機(jī)啟動oracle,而且發(fā)現(xiàn)在不同的os下,啟動的設(shè)置都不太一樣

  oracle服務(wù)器一般來說***是手動啟動,這樣碰到問題的話,可以現(xiàn)場解決,但是也擔(dān)心有時候機(jī)器故障,自動重啟后,為了快速恢復(fù)應(yīng)用,需要自動開機(jī)啟動oracle,而且發(fā)現(xiàn)在不同的os下,啟動的設(shè)置都不太一樣

  1,centos操作系統(tǒng)下,可以這樣設(shè)置

  直接在rc.local里面添加

 

  1. <code class="hljs cs">[root@localhost ~]# vim /etc/rc.local 
  2. touch /var/lock/subsys/local 
  3. su - oracle < lsnrctl start  
  4. sqlplus / as sysdba 
  5. startup 
  6. quit 
  7. EOF 
  8. su - oracle < export ORACLE_SID=pddev1 
  9. sqlplus / as sysdba 
  10. startup 
  11. quit 
  12. EOF</code> 

 

  重啟后生效,PS:但是在redhat系統(tǒng)下失效

  2,redhat操作系統(tǒng)下面,用dbstart的方式

  2.1,測試

  1. <code class="hljs cs">[oracle@localhost ~]$ /oracle/app/oracle/product/11.2.0/dbhome_1/bin/dbstart 
  2. ORACLE_HOME_LISTNER is not SET, unable to auto-start Oracle Net Listener 
  3. Usage: /oracle/app/oracle/product/11.2.0/dbhome_1/bin/dbstart ORACLE_HOME 
  4. [oracle@localhost ~]$  
  5. </code> 

 

  

  有報錯信息,提示ORACLE_HOME不識別,如下解決方案,修改dbstart和dbstut,有的版本dbstut找不到不存在,可以忽略。

  vim /oracle/app/oracle/product/11.2.0/dbhome_1/bin/dbstart

  vim /oracle/app/oracle/product/11.2.0/dbhome_1/bin/dbstut

  將

  ORACLE_HOME_LISTNER =$1

  改成

  ORACLE_HOME_LISTNER=$ORACLE_HOME

  2.2,[root@localhost ~]# vim /etc/oratab

  powerdes:/oracle/app/oracle/product/11.2.0/dbhome_1:Y

  2.3 在rc.local里面設(shè)置開機(jī)自啟動

  1. <code class="hljs cs"><code class="hljs bash">[root@localhost bin]# vim /etc/rc.local 
  2.   
  3. #!/bin/sh 
  4. # This script will be executed *afterall the other init scripts. 
  5. # You can put your own initialization stuff in here if you don't 
  6. # want to do the full Sys V style init stuff. 
  7. touch /var/lock/subsys/local 
  8. su - oracle -lc "/oracle/app/oracle/product/11.2.0/dbhome_1/bin/lsnrctl start" 
  9. su - oracle -c "/oracle/app/oracle/product/11.2.0/dbhome_1/bin/dbstart"</code></code> 

 

  db服務(wù)器重啟生效。

責(zé)任編輯:honglu 來源: 紅黑聯(lián)盟
相關(guān)推薦

2009-10-10 09:01:50

RHEL5啟動與關(guān)閉

2011-08-01 12:50:18

LinuxOracle10GOracle11G

2010-04-01 15:41:26

Oracle11g

2010-01-04 10:05:18

linux掛載windows

2009-11-11 10:26:02

LinuxOracle監(jiān)聽自啟動

2010-04-12 13:56:44

Oracle11g

2010-04-15 15:59:31

Oracle11g

2023-09-21 22:03:30

oracle11g數(shù)據(jù)庫

2013-01-18 17:30:32

Linux系統(tǒng)

2010-04-15 13:14:18

linux下Oracl

2010-04-12 10:07:03

Oracle數(shù)據(jù)庫11

2009-11-24 10:06:21

SUSE enterp

2023-03-02 23:45:23

linux開機(jī)啟動Windows

2011-07-26 10:47:38

Oracle 11g客Linux系統(tǒng)

2022-11-14 16:56:43

項目開發(fā)WiFi程序

2011-05-13 11:21:51

linuxoracle 10g安裝

2010-03-31 10:52:09

Oracle11g r

2010-02-03 09:47:34

Linux smb服務(wù)

2018-03-02 13:28:19

Linux開機(jī)自啟動

2016-09-23 15:50:25

Windows 7VirtualBox虛擬機(jī)
點贊
收藏

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