Oracle Loader dans dbms_scheduler
	
	
		Bonjour, 
J'ai un fichier csv placé dans un chemin réseau tous les jours et que je dois intégrer dans une table oracle journalièrement.
J'exécute la partie oracle_loader, cela marche très bien, mais j'ai des erreurs quand je l'injecte dans un job ! Les erreurs sont du style :
ORA-06550: line ORA-06550: line 3, column 1: PLS-00103: Encountered the symbol "CREATE" when expecting one of the following: begin case declare exit for goto if loop mod null pragma raise return select update while with <an identifier> <a double-quoted delimited-identifier> <a bind variable> << close current delete fetch lock insert open rollback savepoint set sql execute commit forall merge <a single-quoted SQL string> pipe <an alternatively-quoted SQL string> , column : 
Merci d'avance de votre aide 
Voici mon code : 
 
	Code:
	
| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 
 | begin
 
CREATE OR REPLACE DIRECTORY indicateurs AS 'D:\oracle\indic';
CREATE TABLE cdc (
num NUMBER, 
lib varchar2(255)
)
ORGANIZATION EXTERNAL
(TYPE ORACLE_LOADER
DEFAULT DIRECTORY indicateurs
ACCESS PARAMETERS
(
RECORDS DELIMITED BY NEWLINE
CHARACTERSET US7ASCII
BADFILE indicateurs:'CentreCout.bad'
LOGFILE indicateurs:'CentreCout.log'
FIELDS TERMINATED BY ';'
OPTIONALLY ENCLOSED BY '"'
)
LOCATION ('CentreCout.csv'))
REJECT LIMIT UNLIMITED PARALLEL;
 
commit;
end; |