我正在使用ant目标创建一个用户,如下所示如何将信息从ant传递给sql文件或过程
<target name="create_user">
<exec executable="sqlplus" dir="${basedir}/dbsetup">
<arg value="system/[email protected]"/>
<arg value="@create_user.sql"/>
</exec>
</target>
和sql文件如下........
create user test identified by password;
grant resource, connect to test ;
grant create view to test ;
grant create materialized view to test ;
grant create sequence to test ;
grant create procedure to test ;
grant create any directory to test ;
grant create database link to test ;
alter user test quota unlimited on users;
quit;
目前用户名是硬编码的create_user.sql
现在我想从ant提示用户名和密码并传递给sql文件。
请建议我如何实现这个或其他方式,我可以实现