Step3:
SQL> SELECT status FROM USER_ADVISOR_TASKS WHERE task_name = 'm41b_tuning_task';
STATUS
-----------
COMPLETED
SQL> SET LONG 1000
SET LONGCHUNKSIZE 1000
SET LINESIZE 100
SELECT DBMS_SQLTUNE.REPORT_TUNING_TASK( 'm41b_sql_tuning_task')
FROM DUAL;
SQL> ERROR:
ORA-13605: The specified task or object m41b_sql_tuning_task does not exist for the current user.
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
ORA-06512: at "SYS.PRVT_ADVISOR", line 4744
ORA-06512: at "SYS.DBMS_SQLTUNE", line 1082
ORA-06512: at line 1
But I see the task is owned by SYS user
SQL> select task_name,owner from dba_advisor_log where owner in ('SYS','SAPR3') and task_name like'm41%';
Actually I had gone thru the
Create SQL_ADVISOR Job Fails on Error ORA-13605 [ID 549285.1] in metalink article before posting this message . I am not using EM/Grid Control etc for this sql tuning instead I am trying it from sqlplus
So where do I set the following then
SQL> sho parameter nls_language
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
nls_language string AMERICAN
SQL>
Bookmarks