码迷,mamicode.com
首页 > 其他好文 > 详细

Baseline模板管理

时间:2015-11-05 16:33:42      阅读:211      评论:0      收藏:0      [点我收藏+]

标签:

SQL> alter session set NLS_DATE_FORMAT= yyyy-mm-dd hh24:mi:ss; 

创建单一基线模板:

SQL> exec dbms_workload_repository.create_baseline_template (
    start_time => 2015-11-05 10:00:00,
    end_time => 2015-11-05 18:00:00,
    baseline_name => baseline_090402,
    template_name => template_090402, 
    expiration => 8,
    dbid => 1725496767);

创建可重复基线模板:

SQL> exec dbms_workload_repository.create_baseline_template (
    day_of_week => monday, 
    hour_in_day => 17,
    duration => 3, 
    expiration => 8,
    start_time => 2015-11-05 10:00:00,
    end_time => 2015-11-05 19:00:00,
    baseline_name_prefix => baseline_2015_mondays_,
    template_name => template_2015_mondays,
    dbid => 1725496767);

删除基线模板:

SQL> exec dbms_workload_repository.drop_baseline_template (template_name => template_090402,dbid => 1725496767);

 

Baseline模板管理

标签:

原文地址:http://www.cnblogs.com/abclife/p/4939947.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!