利用windows计划任务定时调用BAT执行oracle数据库重建索引
来源:互联网 发布:淘宝上两个号会黑吗? 编辑:程序博客网 时间:2024/05/22 10:36
1、创建一个BAT文件,内容如下:
rem 把rebuildIndex.bat和rebuildIndexSql.sql放在D盘根目录下
rem 才能正常执行
d:
rem 重建索引,该BAT文件有windows系统定时调用
rem 建议每周执行一次
echo 开始执行重建索引任务。。。。。。
echo 登陆数据库
sqlplus username/password@SID @rebuildIndexSql
2、再创建rebuildIndexSql.sql文件,内容如下:
alter index index_name rebuild online compute statistics;
exit
3、在windows系统里创建计划任务定时执行BAT文件即可。
- 利用windows计划任务定时调用BAT执行oracle数据库重建索引
- 【转】利用windows计划任务定时调用BAT执行oracle数据库重建索引
- 利用windows定时任务通过BAT压缩备份oracle数据库
- Windows Server 2008通过计划任务定时执行bat文件
- Windows Server 2008通过计划任务定时执行bat文件
- Windows Server 2008通过计划任务定时执行bat文件
- Windows Server 2008通过计划任务定时执行bat文件
- Windows Server 2008通过计划任务定时执行bat文件
- Windows Server 2008通过计划任务定时执行bat文件
- Windows Server 2012计划任务定时执行bat文件
- Windows Server 2008通过计划任务定时执行bat文件
- Windows Server 2008通过计划任务定时执行bat文件
- Windows Server 2008通过计划任务定时执行bat文件
- Windows通过计划任务定时执行bat文件
- windows定时计划任务,定时执行数据库的备份任务
- Windows Server 2008中使用计划任务定时执行BAT bat进行PHP脚本的执行
- 利用Windows的任务计划,定时执行oracle存储过程或语句块
- Oracle定时执行计划任务
- Windows核心编程 (1)
- 遇到的问题
- CFReadStreamCopyProperty() returns NULL?
- Change the default Phone ringtone and notification ringtone
- Windows核心编程 (2)
- 利用windows计划任务定时调用BAT执行oracle数据库重建索引
- Linux设备驱动开发概述
- 用VC++修改注册表----让我们踏出第一步(适合初学者)
- Windows核心编程 (3)
- VC6.0打开文件,出现“MSDEV.EXE-应用程序错误 遇到问题需要关闭
- 软件设计本质论——白话面向对象
- Windows核心编程 (4)
- 年轻和成熟
- FlexUnit 的用法