RedHat(Linux) Oracle資料庫設定開機自啟動
1 首先修改/etc/oratab檔案新增如下行:
ycr:/u01/app/oracle/product/12.1.0/dbhome_1:Y
關於/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 field 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.
#
#
ycr:/u01/app/oracle/product/12.1.0/dbhome_1:Y
上面三個引數的意義分別為,例項名、ORACLE HOME、是否允許使用dbstart啟動資料庫
2 修改檔案/etc/rc.d/rc.local,新增如下行:
su oracle -lc "/u01/app/oracle/product/12.1.0/dbhome_1/bin/lsnrctl start"
su oracle -lc "/u01/app/oracle/product/12.1.0/dbhome_1/bin/dbstart"
關於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 -lc "/u01/app/oracle/product/12.1.0/dbhome_1/bin/lsnrctl start"
su oracle -lc "/u01/app/oracle/product/12.1.0/dbhome_1/bin/dbstart"
/etc/rc.d/rc.local做為初始化指令碼中,的最後一個隨開機啟動。
ycr:/u01/app/oracle/product/12.1.0/dbhome_1:Y
關於/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 field 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.
#
#
ycr:/u01/app/oracle/product/12.1.0/dbhome_1:Y
上面三個引數的意義分別為,例項名、ORACLE HOME、是否允許使用dbstart啟動資料庫
2 修改檔案/etc/rc.d/rc.local,新增如下行:
su oracle -lc "/u01/app/oracle/product/12.1.0/dbhome_1/bin/lsnrctl start"
su oracle -lc "/u01/app/oracle/product/12.1.0/dbhome_1/bin/dbstart"
關於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 -lc "/u01/app/oracle/product/12.1.0/dbhome_1/bin/lsnrctl start"
su oracle -lc "/u01/app/oracle/product/12.1.0/dbhome_1/bin/dbstart"
/etc/rc.d/rc.local做為初始化指令碼中,的最後一個隨開機啟動。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29135257/viewspace-2123768/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 設定Oracle資料庫開機自啟動Oracle資料庫
- oracle資料庫開機自動啟動Oracle資料庫
- linux下單例項資料庫開機自啟動設定Linux單例資料庫
- RedHat54下設定Oracle自動啟動RedhatOracle
- LINUX開機自動啟動ORACLE資料庫和監聽指令碼LinuxOracle資料庫指令碼
- linux 中oracle開機啟動設定LinuxOracle
- 開機自動啟動ORACLE ON LinuxOracleLinux
- Linux下Oracle隨機自動啟動指令碼設定LinuxOracle隨機指令碼
- TongWeb在Linux下設定開機自啟動WebLinux
- Linux下設定Oracle自啟動LinuxOracle
- [Oracle]設定Oracle隨Linux系統開機啟動OracleLinux
- linux設定開機啟動Linux
- Linux平臺下oracle設定開機啟動LinuxOracle
- Linux下開機自動啟動OracleLinuxOracle
- linux下開機自動開啟單機oracleLinuxOracle
- Windows下OracleServiceSID服務開啟資料庫自動open設定WindowsOracle資料庫
- Oracle Linux 7.1 透過systemctl將Weblogic設定為開機自啟動OracleLinuxWeb
- redhat enterprise linux中vsftp開機自啟動RedhatLinuxFTP
- linux設定開機自啟動指令碼的最佳方式Linux指令碼
- Redhat as4 下oracle10g自啟動指令碼設定RedhatOracle指令碼
- 設定開機自啟動nginx和httpdNginxhttpd
- AIX 開機自啟動指令碼設定AI指令碼
- linux7 開機自啟動oracleLinuxOracle
- 4 配置Oracle資料庫自動啟動Oracle資料庫
- oracle開機自啟動Oracle
- 【OEM】Oracle oem取消開機自動啟動(linux)OracleLinux
- Linux下原始碼安裝MySQL後設定開機自動啟動Linux原始碼MySql
- centos7.5 設定Mysql開機自啟動CentOSMySql
- systemctl 命令設定開機自啟動失敗
- [ubuntu]設定開機自啟動程式的方法Ubuntu
- windows下redis設定redis開機自啟動WindowsRedis
- Linux中設定oracle例項和asm同時隨機自動啟動LinuxOracleASM隨機
- Linux下oracle庫自啟動LinuxOracle
- 手動安裝Oracle資料庫的方法(Redhat Linux)Oracle資料庫RedhatLinux
- windows開機自動啟動oracleWindowsOracle
- Solaris下設定Oracle自啟動Oracle
- 設定msyqlphp-fpm開機自動啟動指令碼PHP指令碼
- oracle配置開機自啟動Oracle