Hi Rick, 

Here's what I did... granted I have never been able to get os-authenticated
logons to work on Windows (have you?) 

*       Created a config file that has pairs of values (ex: elvis_pw
elvis)
*       Created a module that accepts a hash as a parameter, reads the
config file, populates the hash with the pairs of values, and returns the
hash to the calling program. 
*       Anytime I connect to sql*plus (I don't do it with DBI) I use the
system call and refer to the parameter value in  the hash within my connect
string:  $$parms_ref{'elvis_pw'}.  I don't use DBI because my calls are to
fire stored procedures, and if I remember right the DBI doesn't support
calling stored procs.  Please correct me if I'm wrong. 

Not pretty but it works.  My password is only stored in one place. 

If you'd like to see the code email me directly. 

Lisa Koivu
Oracle Database TANK
Fairfield Resorts, Inc.
954-935-4117


> -----Original Message-----
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, April 03, 2002 8:58 AM
> To:   Multiple recipients of list ORACLE-L
> Subject:      Connecting to Oracle via Perl
> 
> Hi DBAs,
> 
> Environment is Oracle 8.1.6 NT 4.0
> 
> What is the best way to connect to Oracle using Perl?  I do not want to
> hard-code password in script if not necessary. I could not find a way to
> embed
> in dsn creation. Any suggestions/working examples on how to achieve this
> is
> appreciated?  I do not have any kind of password server.
> 
> Thanks
> Rick
> 
> 
> -- 
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> -- 
> Author: 
>   INET: [EMAIL PROTECTED]
> 
> 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: [EMAIL PROTECTED] (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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Koivu, Lisa
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).

Reply via email to