Focal Point
tnsnames Issues

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5021088331

July 21, 2005, 09:47 PM
Josh
tnsnames Issues
I am trying to connect to an Oracle9i database server through WebFocus 5.3. Our development process involves moving our procedures, synonyms, and metadata to another server where we may or may not have access to the Oracle tnsnames.ora file that WebFocus uses.

Is there a way to either (a) redirect where WebFocus looks for this tnsnames file, allowing us to specify our own, or (b) dynamically assigning server/connection names so that we need only change a config file, environment variable, etc when we make the switch?

Or perhaps there's even an option C that I'm compeletely missing.

Any help or insight would be appreciated.
July 22, 2005, 12:17 PM
Boogarweed
I'm not an Oracle expert but what you are describing is exactly how our environment is set up. I believe all you have to do is install the oracle client where webfocus lives. Then you will have a tnsnames.ora for the client to point at the database.
July 22, 2005, 04:03 PM
Josh
We've done that so far. The problem is that all of the access files for out metadata (*.acx) all point to the one tnsname listed in the edasprof.cfg. When we're pointing to server X on our development box, and then switch to our production server which has a different tnsnames.ora, we have to hack the tnsname.ora of our production box to have the same tnsname, but point to a different database.

What I'm asking is if there is a way to dynamically choose (say, at runtime, or server startup) this connection name in the ACX files? I would rather not have to go through and change all 50+ acx files every time I upload my latest build.
July 22, 2005, 04:14 PM
Francis Mariani
Generate the Masters and Access files once on both servers and don't include the Masters and Access files in your build upload.

I've put my Masters and Access files in an apps folder separate from the Fexes.
July 22, 2005, 05:27 PM
Josh
quote:
Originally posted by Francis Mariani:
[qb] Generate the Masters and Access files once on both servers and don't include the Masters and Access files in your build upload.

I've put my Masters and Access files in an apps folder separate from the Fexes. [/qb]
That is a good idea, however there's the problem that I won't know the tnsname of the Oracle server until I upload it. I want to try and avoid writing some script just to parse/edit the access files.

Is there a way to create a single access file, and then point all my master files back to it? If this is possible, I would only need to edit the single 'master' access file.