|
- select * from dba_sql_profiles;
- begin
- dbms_advisor.quick_tune(
- advisor_name => 'SQL Access Advisor',
- task_name => 'MYQUICK1',attr1 => 'select count(*) from hr.tbig group by type',template => 'SQLACCESS_WAREHOUSE') ;
- end;
-
- begin
- dbms_Stats.gather_table_stats('HR','TBIG');
- end;
-
- begin
- dbms_advisor.quick_tune(
- advisor_name => 'SQL Access Advisor',
- task_name => 'MYQUICK2',attr1 => 'select count(*) from hr.tbig group by type',template => 'SQLACCESS_WAREHOUSE') ;
- end;
-
-
- begin
- dbms_advisor.quick_tune(
- advisor_name => 'SQL Access Advisor',
- task_name => 'MYQUICK3',attr1 => 'select count(*) from hr.tbig group by type',template => 'SQLACCESS_OLTP') ;
- end;
-
-
- begin
- dbms_advisor.quick_tune(
- advisor_name => 'SQL Access Advisor',
- task_name => 'MYQUICK4',
- attr1 => 'select * from hr.tbig where text like ''create or replace%'' ',template => 'SQLACCESS_OLTP') ;
- end;
-
-
- select * from dba_scheduler_jobs j order by j.job_name;
-
- select * from dba_outstanding_alerts;
-
- select * from dba_alert_history;
复制代码
|
|