/build/static/layout/Breadcrumb_cap_w.png

File renaming

Hopefully an easy one!!

I need to push out a new tnsnames.ora file for our Oracle client, I would also like to rename the existing one so it remains on the machine.

What would be the best way to do this with WPS, should I be looking at the movefile table, or a custom action or something completley different!?

Thanks in advance

0 Comments   [ + ] Show comments

Answers (2)

Posted by: AngelD 17 years ago
Red Belt
0
You could both use the MoveFile table or a custom action.
I would go for the MoveFiles action to do the work for you.
Posted by: anonymous_9363 17 years ago
Red Belt
0
You could both use the MoveFile table or a custom action.
I would go for the MoveFiles action to do the work for you.
With something as fundamental as TNSNAMES.ORA, I'd do it in script. That way, you can include tests to be sure your backup file got created, that the entry got added and that the new file was saved with a new date/time stamp. Not that I'm paranoid...

Also, if your working in-house, why on EARTH are you using a local copy of TNSNAMES.ORA? It belongs on a globally-accessible network share, read-only to users, with write access to a select group to a) eliminate the above issue and b) stop users interfering with it.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ