How to push a file to a dynamic location?

asked 2016-01-07 10:25:13 -0600

stevenrutkowski gravatar image

updated 2016-01-07 18:33:53 -0600

ramindk gravatar image

I am writing a DBA module and want to start with pushing the tnsnames.ora file to all the nodes. I am having trouble because the tnsnames.ora file needs to be pushed to $oracle_home/network/admin but the oracle_home directory is different on some nodes based on oracle version, type of server, etc. We have about 15 different variations of our oracle_home directory.

My thought is to either

  • create a fact that will pull the oracle_home information from the os environment variable $ORACLE_HOME but I'm not sure how or if it is even possible.

  • pull the oracle home from a file with a list of the oracle homes but again I am not sure if that it possible.

Any help would be appreciated!

edit retag flag offensive close merge delete


creating a fact to pull ORACLEHOME is a good start, see this:

maynero gravatar imagemaynero ( 2016-01-07 11:46:51 -0600 )edit