1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
1 declare
2 x number;
3 begin
4 SYS.DBMS_JOB.SUBMIT
5 ( job => X
6 ,what => 'BEGIN DBMS_STATS.gather_schema_stats('||'ownname => ''SCOTT'', ''TITI'', ''TOTO'', cascade => TRUE, options => ''GATHER AUTO'
'); END;'
7 ,next_date => trunc(next_day (sysdate,'SUN'))
8 ,interval => 'next_day (add_months(trunc(sysdate,''MON''),1),''SUN'')'
9 ,no_parse => FALSE
10 );
11 SYS.DBMS_OUTPUT.PUT_LINE('Job Number is: ' || to_char(x));
12 COMMIT;
13* END;
ERROR at line 1:
ORA-06550: line 1, column 99:
PLS-00306: wrong number or types of arguments in call to 'GATHER_SCHEMA_STATS'
ORA-06550: line 1, column 99:
PL/SQL: Statement ignored
ORA-06512: at "SYS.DBMS_JOB", line 82
ORA-06512: at "SYS.DBMS_JOB", line 139
ORA-06512: at line 4 |
Partager