You can use from DTG a stored procedure that using the package
UTL_FILE will read, find the rows and change them in the file TNSNAME.ORA
This can be done using the ideas here:
http://www.oracle.com/technology/pub/articles/smiley-fsfo.htmlIt proposes to keep 2 variants of TNSNAMES.ORA.
So using UTIL_FILE it is possible to change the working tnsname.ora on the fly.