How to call a stored procedure in oracle from shell -
i have installed cygwin , have oracle 10 g want connect database shell.can me??
sql> create or replace procedure get_area 2 (n_length in number, 3 n_width in number, 4 n_area out number) 5 6 begin 7 n_area := n_length*n_width; 8 end get_area; 9 /
this procedure have created in oracle 10g.i want call get_area shell
i doing start process subho@subho-pc ~$ #!/bin/csh-f
you can this
sqlplus login/pass @get_area.sql
where get_area.sql contains sql code
the last detail put exit;
@ end of script oftherwise stay on sql >
prompt
Comments
Post a Comment