Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2006

Tip: Looking for answers? Try searching our database.

Ant task for Sql scripts

Thread view: 
Bhavin - 28 Jun 2006 10:28 GMT
Hello,

I am working on ant script which dumps the stored procs and packages
into oracle 9i database. I defined one task in ant script which dumps
all the scripts from Source safe to oracle database. This works fine
but when i check into the database i get the packages and stored procs
with errors. The script dumps all the scripts in a linear way, the
indentation of the code of PL Sql is lost. I am looking for the
solution through which i can dump all the scripts with its original
structure.

do i need to put additional task in database itself so that my scripts
gets executed in a proper way with its original structure or i need to
put settings in my Ant script ?

Pls suggest me
Andy Dingley <dingbat@codesmiths.com> - 28 Jun 2006 11:53 GMT
> I am working on ant script which dumps the stored procs and packages
> into oracle 9i database. I defined one task in ant script which dumps
> all the scripts from Source safe to oracle database. This works fine
> but when i check into the database i get the packages and stored procs
> with errors. The script dumps all the scripts in a linear way, the
> indentation of the code of PL Sql is lost.

Sounds like Unix / Windows linefeed character issues. I doubt if it's
Ant's fault, probably SourceSafe is the culprit.  Check what you're
actually getting, before you load it into the DB client.

PS - Ditch SourceSafe and go to Subversion. You won't regret it!
Bhavin - 28 Jun 2006 12:22 GMT
Cool, i get the db scripts from vss as
<filename>.spc,<filename>.prc,<filename>.bdy

and i dump these files into database through ant script. I created one
.sql file in my local machine and dumped the file to database through
ant script and it works. i am wondering why its not working with other
files.

-bhavin

> > I am working on ant script which dumps the stored procs and packages
> > into oracle 9i database. I defined one task in ant script which dumps
[quoted text clipped - 8 lines]
>
> PS - Ditch SourceSafe and go to Subversion. You won't regret it!


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.