Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Oracle Names - Loading tnsnames.ora automatically on Windoze

Oracle Names - Loading tnsnames.ora automatically on Windoze

From: <Jared.Still_at_radisys.com>
Date: Thu, 25 Apr 2002 12:28:27 -0800
Message-ID: <F001.0044FDB3.20020425122827@fatcity.com>


Hey list!

Once again I find myself doing far more work than should be necessary to do something on Windoze that is simple on Unix.

Here's what I need to do: When the Oracle Names service is started after a reboot, I want it to load tnsnames.ora automatically.

This sounds simple enough, but apparently it is not. The executable that runs the names service is NAMES.EXE. This does not seem to have any documented command line parameters. I tried hacking the registry to add a command file as can be done with NAMESCTL.EXE, but NAMES.EXE just ignores it.

I *did* create a solution to this, but I really don't like to do it this way.

Using Perl ( what else? ) with the Win32::Daemon module, I created a load_tnsnames.pl Perl service. This works, but it really seems like overkill for something that should be so simple. It also means I have to productionize and document it.

That's more work than the Perl was.

Anyone ever succeeded at doing this?

And yes, I know Oracle Names is at the terminal release in 9i, and I don't care. ;)

Jared

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author:
  INET: Jared.Still_at_radisys.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Thu Apr 25 2002 - 15:28:27 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US