Oracle DB 开机自启动和关闭
发表于:2025-11-07 作者:千家信息网编辑
千家信息网最后更新 2025年11月07日,参考http://docs.oracle.com/database/122/UNXAR/stopping-and-starting-oracle-software.htm#UNXAR417 Autom
千家信息网最后更新 2025年11月07日Oracle DB 开机自启动和关闭参考http://docs.oracle.com/database/122/UNXAR/stopping-and-starting-oracle-software.htm#UNXAR417 Automating Database Startup and Shutdown这个章节. [root@ecs-fb50-0002 ~]# cd /etc/init.d/ [root@ecs-fb50-0002 init.d]# vi dbora #! /bin/sh # description: Oracle auto start-stop script. # # Set ORACLE_HOME to be equivalent to the $ORACLE_HOME # from which you wish to execute dbstart and dbshut; # # Set ORA_OWNER to the user id of the owner of the # Oracle database in ORACLE_HOME.
ORA_HOME=/disk/oracle/product/11.2.0.4/db_1 ORA_OWNER=oracle
case "$1" in 'start') # Start the Oracle databases: # The following command assumes that the oracle login # will not prompt the user for any values # Remove "&" if you don't want startup as a background process. su - $ORA_OWNER -c "$ORA_HOME/bin/dbstart $ORA_HOME" & touch /var/lock/subsys/dbora ;;
'stop') # Stop the Oracle databases: # The following command assumes that the oracle login # will not prompt the user for any values su - $ORA_OWNER -c "$ORA_HOME/bin/dbshut $ORA_HOME" & rm -f /var/lock/subsys/dbora ;; esac
chgrp dba dbora chmod 750 dbora
ln -s /etc/init.d/dbora /etc/rc.d/rc0.d/K01dbora ln -s /etc/init.d/dbora /etc/rc.d/rc3.d/S99dbora ln -s /etc/init.d/dbora /etc/rc.d/rc5.d/S99dbora
ORA_HOME=/disk/oracle/product/11.2.0.4/db_1 ORA_OWNER=oracle
case "$1" in 'start') # Start the Oracle databases: # The following command assumes that the oracle login # will not prompt the user for any values # Remove "&" if you don't want startup as a background process. su - $ORA_OWNER -c "$ORA_HOME/bin/dbstart $ORA_HOME" & touch /var/lock/subsys/dbora ;;
'stop') # Stop the Oracle databases: # The following command assumes that the oracle login # will not prompt the user for any values su - $ORA_OWNER -c "$ORA_HOME/bin/dbshut $ORA_HOME" & rm -f /var/lock/subsys/dbora ;; esac
chgrp dba dbora chmod 750 dbora
ln -s /etc/init.d/dbora /etc/rc.d/rc0.d/K01dbora ln -s /etc/init.d/dbora /etc/rc.d/rc3.d/S99dbora ln -s /etc/init.d/dbora /etc/rc.d/rc5.d/S99dbora
章节
参考
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
php 服务器缓存
网络安全队伍尖兵部队定位
软件开发个人对项目的贡献
易飞如何打开服务器后台处理程序
中国人民解放军网络安全信息化
服务器为生物钟是什么意思
数据库服务器用的是什么
根据网络安全法 有下列
类似驾考科目一的软件开发
软件开发中台是什么
威海商城软件开发哪家便宜
南京市华博互联网科技官网
中国国人软件开发
美博网络技术有限公司怎么样
软件开发商英文缩写
深圳网络技术协会
陕西混合现实软件开发
职工培训论文 网络技术
asp访问数据库的原理
网络安全主题班会图片素材
无锡营销软件开发定做价格
怀旧服新服务器改造
申银万国下载软件开发
区块链数据库项目
访问web服务器时
哪里有美股的数据库
软件开发类高职
学科网数据库开通试用2022年
查看服务器并发
网络安全等级保护制度的核心内容