配置作業系統重啟後,Oracle資料庫和監聽自動啟動
--配置作業系統重啟後,例項自動啟動
--將例項所在行最後的標誌N改為Y
[oracle@localhost etc]$ vim /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.
#
#
fire:/u01/app/oracle/product/11.2.0/db_1:Y
--配置作業系統重啟後,資料庫監聽自動啟動
[root@localhost ~]# vim /etc/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
su - oracle -c 'dbstart'
su - oracle -c 'lsnrctl start'
--將例項所在行最後的標誌N改為Y
[oracle@localhost etc]$ vim /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.
#
#
fire:/u01/app/oracle/product/11.2.0/db_1:Y
--配置作業系統重啟後,資料庫監聽自動啟動
[root@localhost ~]# vim /etc/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
su - oracle -c 'dbstart'
su - oracle -c 'lsnrctl start'
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26506993/viewspace-2123101/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 配置Oracle資料庫和監聽隨Linux系統自啟動(轉)Oracle資料庫Linux
- 【AUTO】配置Oracle資料庫和監聽隨Linux系統自啟動Oracle資料庫Linux
- Oracle監聽啟動後自動關閉Oracle
- LINUX開機自動啟動ORACLE資料庫和監聽指令碼LinuxOracle資料庫指令碼
- 啟動資料庫監聽資料庫
- 4 配置Oracle資料庫自動啟動Oracle資料庫
- 由AIX系統故障導致系統重啟,使Oracle資料庫自動啟動例項AIOracle資料庫
- 3.1.5.8 隨系統啟動自動啟動資料庫資料庫
- oracle資料庫監聽啟動不了的原因分析Oracle資料庫
- 自動重新啟動oracle監聽程式 for windowsOracleWindows
- windows作業系統重啟時自動啟用備庫日誌應用Windows作業系統
- 啟動資料庫,啟動監聽,檢視是否歸檔資料庫
- Linux作業系統啟動時自動啟用oracle standby備庫日誌應用Linux作業系統Oracle
- oracle 監聽重啟Oracle
- oracle 隨系統開啟,自動啟動Oracle
- oracle資料庫開機自動啟動Oracle資料庫
- Oracle xe 手工建立新資料庫後,更改啟動停止指令碼,監聽 for windowsOracle資料庫指令碼Windows
- redhat 6.5 oracle 11.2.0.4 gi oracle asm在作業系統重啟cssd程式無法自動重啟簡析RedhatOracleASM作業系統CSS
- 系統重啟後卷不能自動掛載
- [重慶思莊每日技術分享]-ORACLE 19C資料庫啟動後,無監聽服務Oracle資料庫
- Oracle啟動兩個監聽Oracle
- Oracle sysman.mgmt_jobs導致資料庫自動重啟Oracle資料庫
- linux平臺下監聽器和Oracle的自動啟動與停止LinuxOracle
- 資料庫開啟監聽資料庫
- Oracle 19c 利用觸發器在資料庫啟動後自動開啟 PDBOracle觸發器資料庫
- 安裝GI後重啟作業系統後啟動ASM例項失敗及解決方法作業系統ASM
- Linux 下 自動啟動oracle資料配置說明LinuxOracle
- 隨系統啟動關閉的oracle資料庫Oracle資料庫
- 資料庫自動啟動關閉資料庫
- 資料庫系統檔案啟動資料庫資料庫
- Linux Oracle 隨系統自動啟動LinuxOracle
- Oracle監聽服務無法啟動Oracle
- oracle 10g rac資料庫不能自動啟動Oracle 10g資料庫
- springboot 配置熱啟動 不需重啟自動部署Spring Boot
- 設定Oracle資料庫開機自啟動Oracle資料庫
- 配置單例項自動重啟單例
- hyperf 啟動、重啟、停止、檔案變化監聽命令包
- LAB1 啟動作業系統作業系統