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

Home -> Community -> Usenet -> c.d.o.tools -> Re: ORA-01004: default username feature not supported in Perl

Re: ORA-01004: default username feature not supported in Perl

From: Shawn Shiwei Qiu <sqiu_at_ans.net>
Date: Thu, 2 Aug 2001 18:12:28 -0400
Message-ID: <V8ka7.2$411.13@news.aa.ans.net>

Try this:

$dbHandle = DBI->connect('dbi:Oracle:','/');

-Sanjay

"Shawn Shiwei Qiu" <sqiu_at_ans.net> wrote in message news:2xX97.2$2y6.28_at_news.aa.ans.net...
> With Oracle 8.1.6 (Solaris 2.6 sparc) I don't have problem to logon as
> external user "/" in sqlplus. However when I tried to logon in same way
> from
> Perl, I got error (we don't have sqlnet.ora file at all).:
>
> DBI->connect failed: ORA-01004: default username feature not supported;
> logon
> denied (DBD ERROR: OCISessionBegin) at p.pl line 6
> Connect Error
>
> This the source code is:
>
> #!/usr/local/bin/perl
> use DBI;
> $dbHandle = DBI->connect('dbi:Oracle:ustatsam','/');
> if(!defined $dbHandle)
> {
> die "Connect Error\n";
> }
>
>
> I tried also set sqlnet.authentication_services=(none) in sqlnet.ora and
 it
> did
> not work either (even sqlplus / didn't work !).
>
> Does it mean Perl doesn't support Oracle external user like "/"
>
>
>
>
>
>
Received on Thu Aug 02 2001 - 17:12:28 CDT

Original text of this message

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