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

Home -> Community -> Mailing Lists -> Oracle-L -> Parsing tnsnames.ora

Parsing tnsnames.ora

From: Orr, Steve <sorr_at_rightnow.com>
Date: Tue, 12 Nov 2002 07:09:51 -0800
Message-ID: <F001.00500F0D.20021112070951@fatcity.com>


Anyone have a ready-made regular expression to parse out the net8 service name labels from tnsnames.ora? Perl is OK. What I'm looking for is a way to get a list of possible connections from tnsnames.ora. For example, from the below I just want a regular expression which returns label1 and label2...



label1 = (description_list=
  (description=

(address=(...))
(connect_data=(...)))

  (description=

(address=(...))
(connect_data=(...)))

)

label2 = (description_list=
  (description=

(address=(...))
(connect_data=(...)))

  (description=

(address=(...))
(connect_data=(...)))

)


AtDhVaAnNkCsE !!!!!!!!

Steve Orr
Bozeman, Montana

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Orr, Steve
  INET: sorr_at_rightnow.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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 Tue Nov 12 2002 - 09:09:51 CST

Original text of this message

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