Create a Batch File[merged topic] [message #288383] |
Mon, 17 December 2007 05:27 |
pritesh
Messages: 5 Registered: December 2007
|
Junior Member |
|
|
Does anyone have ideas how to call stored
procedures from batch file? I want to crate a batch file in dos to call Stored Procedure written in oracle.
|
|
|
|
Re: Create a Batch File [message #288389 is a reply to message #288386] |
Mon, 17 December 2007 05:49 |
pritesh
Messages: 5 Registered: December 2007
|
Junior Member |
|
|
Hi Michel, Thank you very much.
But I have differ database.
how can I give datbase name?
Details:
DataBase Name: ora-pip
username : Xyz
Password : Abc
|
|
|
|
Re: Create a Batch File [message #288398 is a reply to message #288394] |
Mon, 17 December 2007 06:39 |
pritesh
Messages: 5 Registered: December 2007
|
Junior Member |
|
|
Hey ,
I am giving you troble once again.
Needed: I want to call Stored Procedure using batch file.
I have crrated sample.sql in c:/sample.sql
Then In SP.BAT file, what should I write?
I have tried followed code.
code:
START C:\oracle\ora92\bin\sqlplusw.exe u100@New/u100
exec pr2(500,'pritesh', 50000)
EXIT
Note: pr2 is my SP. first input is number then varchar2 and number.
Thx.
|
|
|
|
Re: Create a Batch File [message #288406 is a reply to message #288404] |
Mon, 17 December 2007 07:43 |
pritesh
Messages: 5 Registered: December 2007
|
Junior Member |
|
|
Hey Michel,
Can u re-look my problem?
Because, I am not Oracle programmer.
I am working in java.I don't have much info.
I am using window as OS.
Sorry for troubling more.
Thank a lot.
regards,
Pritesh Shah
|
|
|
|
|
|