Hi!
I need to change user during a procedure.
I tried this way:
FOR I IN EXECUTIONS.FIRST .. EXECUTIONS.LAST LOOP
IF UPPER(EXECUTIONS(I).EX_COMPTE) <> UPPER(COMPTE_COUR)
OR COMPTE_COUR IS NULL THEN
REQ_EXEC := 'CONNECT :1/:2@UNIF';
EXECUTE IMMEDIATE REQ_EXEC
USING EXECUTIONS(I).EX_COMPTE, EXECUTIONS(I).EX_PASSWD ;
END IF;
REQ_EXEC := 'EXECUTE ' || EXECUTIONS(I).EX_MAPPING || '.MAIN()';
EXECUTE IMMEDIATE REQ_EXEC;
END LOOP;
But it doesn't work. Seems like he dont want to do a CONNECT in procedure..
Do you know hoe to make it?
Thanks..
Desperate Fanny
I need to change user during a procedure.
I tried this way:
FOR I IN EXECUTIONS.FIRST .. EXECUTIONS.LAST LOOP
IF UPPER(EXECUTIONS(I).EX_COMPTE) <> UPPER(COMPTE_COUR)
OR COMPTE_COUR IS NULL THEN
REQ_EXEC := 'CONNECT :1/:2@UNIF';
EXECUTE IMMEDIATE REQ_EXEC
USING EXECUTIONS(I).EX_COMPTE, EXECUTIONS(I).EX_PASSWD ;
END IF;
REQ_EXEC := 'EXECUTE ' || EXECUTIONS(I).EX_MAPPING || '.MAIN()';
EXECUTE IMMEDIATE REQ_EXEC;
END LOOP;
But it doesn't work. Seems like he dont want to do a CONNECT in procedure..
Do you know hoe to make it?
Thanks..
Desperate Fanny