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. Advertising

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:
    428
  2. Justin Dutoit
    Replies:
    1
    Views:
    3,459
    Justin Dutoit
    Oct 5, 2004
  3. Benson, John
    Replies:
    1
    Views:
    2,215
    Aurelio Martin
    Jan 28, 2004
  4. Pieter Claerhout
    Replies:
    0
    Views:
    599
    Pieter Claerhout
    Jan 28, 2004
  5. Feyruz
    Replies:
    4
    Views:
    2,156
    Sherm Pendley
    Oct 14, 2005
Loading...

Share This Page