How can I connect to an Oracle database from Ant using the tnsname?
问题 I am looking for something similar to the Ant sql task but that will accept a JDBC url of the format: jdbc:oracle:thin:@TNS_NAME One possible approach seems to be to write my own Ant task that uses an OracleDataSource to create the Connection, but is there a way to do this straight in Ant? EDIT: Thanks for the responses so far guys. I hope it helps if I elaborate a bit more on the error I'm getting. My Ant task looks as follows: <target name="MyTarget" > <property name="oracle.net.tns_admin"