oracle connect ; manual eror handling

Discussion in 'Perl' started by JONL, Mar 18, 2005.

  1. JONL

    JONL Guest

    Have been connecting to oracle using the following with success
    my $dbHandle = DBI->connect($sConnectString, $sUsername, $sPassword );
    adding ,\%attr after password permits me to set the db handle options

    But now we use a different connect syntax to support OS authentication:
    my $sLoginString = "$sUsername/$sPassword";
    my $dbHandle = DBI->connect($sConnectString, $sLoginString) ;

    this will work but if I add \%attr after the LoginString, the connect
    complains that I gave it an empty password. What I need to be able to
    do is to use the second syntax but still be able to set dbh options.
    ANy ideas?
     
    JONL, Mar 18, 2005
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. yyt
    Replies:
    0
    Views:
    521
  2. Justin Dutoit
    Replies:
    1
    Views:
    3,839
    Justin Dutoit
    Oct 5, 2004
  3. =?Utf-8?B?S2VubmV0aCBQ?=

    KHost.exe - Program eror

    =?Utf-8?B?S2VubmV0aCBQ?=, Oct 30, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    2,616
    =?Utf-8?B?S2VubmV0aCBQ?=
    Nov 1, 2004
  4. Benson, John
    Replies:
    1
    Views:
    2,444
    Aurelio Martin
    Jan 28, 2004
  5. donxfabio

    HTPPD eror on red hot linux

    donxfabio, Jul 3, 2006, in forum: Python
    Replies:
    1
    Views:
    469
    gregarican
    Jul 3, 2006
  6. Replies:
    2
    Views:
    626
  7. Feyruz
    Replies:
    4
    Views:
    3,024
    Sherm Pendley
    Oct 14, 2005
  8. Am Nym
    Replies:
    4
    Views:
    974
    Am Nym
    May 21, 2012
Loading...