如何自动停止oracle服务 [英] how to stop oracle services automatically
本文介绍了如何自动停止oracle服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在每天的11.30 pm自动停止oracle服务.
how to stop the oracle services automatically in every day 11.30 pm.
推荐答案
一个示例是在服务器上安排要执行.BAT的任务运行SQL * Plus命令脚本的文件.在脚本中,您以SYSDBA身份连接到数据库并发出立即关闭"命令.
脚本命令
sqlplus/nolog @ shut_db.sql
shut_db.sql
以sysdba的身份连接db_admin
立即关闭;
One example is to schedule a task on the server that is to execute a .BAT file that runs a SQL*Plus command script. Within the script you connect to the database as SYSDBA and issue the ''shutdown immediate'' command.
Script command
sqlplus /nolog @shut_db.sql
shut_db.sql
connect db_admin as sysdba
shutdown immediate;
这篇关于如何自动停止oracle服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文