cela change rien
ORA-01846: not a valid day of the week
ORA-06512: at line 4
Version imprimable
Le NLS de la base n'est pas américain chez toi .
que donne sous sys
Code:
1
2 sho parameter nls
si c'est pas american le nls_language regarde ici ,
http://oracle.developpez.com/guide/d...ages/dbms_job/
c'est un exemple nls_language francais , s'il est autre .... je ne sais pas !
je suis déjà en americaCode:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ nls_calendar string nls_comp string nls_currency string nls_date_format string nls_date_language string nls_dual_currency string nls_iso_currency string nls_language string AMERICAN nls_length_semantics string BYTE nls_nchar_conv_excp string FALSE nls_numeric_characters string NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ nls_sort string nls_territory string AMERICA nls_time_format string nls_time_tz_format string nls_timestamp_format string nls_timestamp_tz_format
The options to resolve this Oracle error are:
1. Enter a valid day of the week.
* For the D format code, 1-7 are valid values.
* For the DAY format code, Sunday-Saturday are valid values.
* For the DD format code, 1-31 are valid values.
* For the DDD format code, 1-366 are valid values.
* For the DY format code, Sun-Sat are valid values.
http://forums.oracle.com/forums/thre...hreadID=654340
si tu y arrives pas ,il faut peut etre passer a un scheduler OS , un crontab !
J'avoue que je ne comprends plus ce que tu lances !
non cela me souale
je lance cela
c 'est de l open vms donc pas possible en cron
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14 DECLARE X NUMBER; BEGIN SYS.DBMS_JOB.SUBMIT ( job => X ,what => 'BEGIN DBMS_STATS.gather_schema_stats('||'ownname => ''SCOTT'', cascade => TRUE, options => ''GATHER AUTO''); END;' ,next_date => trunc(next_day (sysdate,'SUN')) ,interval => 'next_day (add_months(trunc(sysdate,''MON''),1),''SUN'')' ,no_parse => FALSE ); SYS.DBMS_OUTPUT.PUT_LINE('Job Number is: ' || to_char(x)); COMMIT; END;
pas de scheduler sur open vms ???
meme windows en a un depuis Winnt et compagnie!!!
bon je sais pas , il faut voir d'autres personnes ici ou chez matalink alors en spécifiant que tu as open vms !!!