Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: how to call oracle package procedure from DOS batch file?
Try this (contents of the batch file):
REM that's the contents of batch file
(echo connect %1
echo exec my_package.my_procedure ^(:%2, :3%^)
echo ^);
echo exit
) | sqlplus /nolog
Note: one extra ")".
Igor Neyman, OCP DBA
ineyman_at_perceptron.com
-----Original Message-----
From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Guang Mei
Sent: Friday, March 04, 2005 4:54 PM
To: Oracle-L (E-mail)
Subject: how to call oracle package procedure from DOS batch file?
Hi,
Just started to program on WindowXP side using DOS batch file. I have
this
question.
REM : try to call my_package.my_procedure with two parameters REM: %1 is user/pass_at_db
sqlplus -S %1 "exec my_package.my_procedure (:%2, :3% ) << EOF
exit
EOF
does not seem to work.
TIA. Guang
--
http://www.freelists.org/webpage/oracle-l
Received on Fri Mar 04 2005 - 17:45:52 CST