in reply to Re: perl array with oracle db name
in thread perl array with oracle db name

Thank you for your reply... I'm able to connect database without any problem... my problem is 1. read tnsentry file (tnsfile.txt) 2. Search for db alias (SID = db1 , SID = db2 etc) 3. Store each db alias temporary into array 4. Use each alias for db connection in $dbConnect function I can read the file but extracting distinct db alias and use them for connection is the challenge for me.

Replies are listed 'Best First'.
Re^3: perl array with oracle db name
by wjw (Priest) on May 22, 2014 at 20:12 UTC

    I did find one more place where someone seems to have been wanting to do what you are also after:

    Here is the code... and here is the originating article...

    Hope that fits the bill a bit better...

    ...the majority is always wrong, and always the last to know about it...

    Insanity: Doing the same thing over and over again and expecting different results...