This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes JDBC and the fly likes Directly run SQL Script file using JDBC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Bookmark "Directly run SQL Script file using JDBC" Watch "Directly run SQL Script file using JDBC" New topic
Author

Directly run SQL Script file using JDBC

L Goundalkar
Ranch Hand

Joined: Jul 05, 2001
Posts: 395
Hi,

Is there anyway I can run .sql script file ( which is present in my application directory ) directly using JDBC API on to Oracle Database without manually running the sql file in SQL * Plus tool.

Cheers.


SCJP, SCWCD
Avi Abrami
Ranch Hand

Joined: Oct 11, 2000
Posts: 1134

Hi LG,
Did you not search the other posts in this forum?
Did you not see this one:
http://www.coderanch.com/t/298527/JDBC/java/executing-PL-SQL-through-JDBC
Does it not help you?
Good Luck,
Avi.
 
 
subject: Directly run SQL Script file using JDBC