ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 特殊表分析

特殊表分析

原创 Linux操作系统 作者:aishu521 时间:2013-03-06 14:11:35 0 删除 编辑
################ Analyze some special table ##########################
00 10 * * 1,4 sh /home/oracle/analyze/analyze_part.sh >/home/oracle/analyze/analyze_part.log 2>&1
#30 12 * * * sh /home/oracle/analyze/dailycheck.sh >/home/oracle/analyze/dailycheck.log 2>&1
#40 12 * * * sh /home/oracle/analyze/rename.sh

[root@testdb01 ~]# cat /home/oracle/analyze/analyze_part.sh
su - oracle -c "sqlplus system/syspass"<
  @/home/oracle/analyze/analyze_part.sql
  select to_char(sysdate,'YYYYMMDD W HH24:MI:SS') from dual;
[root@testdb01 ~]# cat /home/oracle/analyze/dailycheck.sh
su - oracle -c "sqlplus system/orapass"<
  @/home/oracle/analyze/dailycheck.sql
  select to_char(sysdate,'YYYYMMDD W HH24:MI:SS') from dual;
        exit;
sh rename.sh
[root@testdb01 ~]# cat /home/oracle/analyze/rename.sh
#!/bin/bash
cd /u10/orabackup/check/
dat='date +%m%d'
mv dailycheck.out dailycheck$dat.out

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/15187685/viewspace-755367/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 資料庫監控
请登录后发表评论 登录
全部评论

注册时间:2012-05-26

  • 博文量
    139
  • 访问量
    721098