execute oracle procedure from linux script and sqlplus
I use:
sqlplus USERNAME/PASSWORD@sid <<EOF
exec pr$ocedure;
EOF
or
sqlplus USERNAME/PASSWORD@sid <<EOF
begin
pr$ocedure;
end;
/
EOF
gives as result:
Excuting script.. sending output to mylogdir
BEGIN pr; END;
(or in the first case:
BEGIN pr; END;
*
ERROR at line 1:
ORA-06550: line 1, column 7:
PLS-00201: identifier 'PR' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
((Our procedures in Oracle are named pr$....))
Is seems that is isnt' working??
Anybody any idea what's going wrong/ what I'm missing??
Last edited by Stilltray; 07-02-2008 at 06:40 AM.
|