I have installed cygwin and i have Oracle 10 g now i want to connect database from shell.can anyone help me??
SQL> create or replace procedure get_area
2 (n_length in number,
3 n_width in number,
4 n_area out number)
5 as
6 begin
7 n_area := n_length*n_width;
8 end get_area;
9 /
This is my procedure i have created in oracle 10g.I want to call the get_area from shell
i am doing this to start that process subho@subho-PC ~$ #!/bin/csh-f
you can just do it like this
sqlplus login/pass @get_area.sql
where get_area.sql contains your SQL code
the last detail is to put an exit;
at the end of the script oftherwise you will stay on the SQL >
prompt
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.