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 / Databases / June 2005

Tip: Looking for answers? Try searching our database.

Run a command line statement from an ant task.

Thread view: 
hust6 - 17 Jun 2005 19:56 GMT
I have a very simple task, but I just can't seem to figure out how to
do it.  I want to export an Oracle database using ant.  The statement
is:

exp <username>/<password>@SID file=<dump name>.dmp

How would I do this in an ant task?

Thanks in advance for the help!
hust6 - 17 Jun 2005 21:24 GMT
Nevermind, I have alredy found the solution...

<exec executable="command">
 <arg value="">
</exec>
Markusin - 18 Jun 2005 09:23 GMT
Hi hust6,

I think you are able in ant to execute statements in jdbc. Take a look
at the ant side from apache and there you will find under the core task
how it will be possible.

regards Markus
Thomas Kellerer - 18 Jun 2005 09:38 GMT
Markusin wrote on 18.06.2005 10:23:
> Hi hust6,
>
> I think you are able in ant to execute statements in jdbc. Take a look
> at the ant side from apache and there you will find under the core task
> how it will be possible.

But the OP wants to run Oracle's EXP command line utility which is not
available through JDBC.

Thomas


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.