您好,登錄后才能下訂單哦!
小編給大家分享一下配置操作系統重啟后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'
看完了這篇文章,相信你對“配置操作系統重啟后Oracle數據庫和監聽自動啟動的示例分析”有了一定的了解,如果想了解更多相關知識,歡迎關注億速云行業資訊頻道,感謝各位的閱讀!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。