Home » Developer & Programmer » JDeveloper, Java & XML » Executing a .sql file from java
Executing a .sql file from java [message #121612] Tue, 31 May 2005 02:11 Go to next message
sreek_s
Messages: 45
Registered: May 2005
Location: Andaman Nikobar
Member
Hi,
I need java code snippet to execute .sql file (which consists of some CREATE,ALTER TABLE commands) from java program.
Pls help me out.

Regds,
Srikanth
Re: Executing a .sql file from java [message #121730 is a reply to message #121612] Tue, 31 May 2005 14:04 Go to previous message
andrew again
Messages: 2577
Registered: March 2000
Senior Member
I would run sqlplus from Java (you need to pass in user/pass though.
http://www.mountainstorm.com/publications/javazine.html
http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:952229840241
Previous Topic: JDeveloper problem: OrgImage error when retrieving image
Next Topic: oracle.sql and oracle.jdbc.driver packages
Goto Forum:
  


Current Time: Tue Feb 27 04:23:06 CST 2024