登录ant脚本运行.SQL [英] logging in ant script for running .sql

查看:146
本文介绍了登录ant脚本运行.SQL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有包含20 tables.I创建脚本正在通过蚂蚁运行这个.sql文件。

I have a .sql file which contain create script for 20 tables.I am running this through ant.

在Ant脚本是

<target name="CompleteDBRollCreate" >
        <sql classpath="D:\lib\ojdbc14.jar"      driver="oracle.jdbc.driver.OracleDriver"     
        url="jdbc:oracle:thin:@12326:1521:orcl"      
        userid="scott"      password="tiger"    
        src="D:\dropalltables.sql"  /> 
        </target>

但在蚂蚁没有记录,所以如果在SQL文件被正确执行我不知道。任何一个可以请建议如何做日志记录到一个单独的LOCALFILE /蚂蚁控制台上。我只是想知道我需要改变.sql文件或Ant脚本。

but there is no logging in ant so I can't know if the SQL file was executed correctly. Can any one please suggest how to do logging into a separate localfile/on the ant console. I just want to know where I need to change the .sql file or the ant script.

推荐答案

有被蚂蚁记录。 退房运行Apache Ant的 - 命令行

日志-logfile使用指定的文件

-logfile use given file for log

这篇关于登录ant脚本运行.SQL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆