grant advisor to scottconn scottdeclare
my_task_name varchar2(20);
my_sqltext CLOB;
begin
my_sqltext:='select * from hello';
my_task_name:=dbms_sqltune.create_tuning_task(
sql_text =>my_sqltext,
bind_list =>null,
user_name =>'scott',
scope =>'COMPREHENSIVE',
time_limit =>60,
task_name =>'vega_tuning_task',
description =>'tuning task'
);
end;
/
第 1 行出现错误:
ORA-13644: 用户 "scott" 无效。
ORA-06512: 在 "SYS.DBMS_SYS_ERROR", line 86
ORA-06512: 在 "SYS.PRVT_ADVISOR", line 2202
ORA-06512: 在 "SYS.DBMS_SQLTUNE", line 694
ORA-06512: 在 line 6为什么啊?多谢了