Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> Re: ORA-01004: default username feature not supported in Perl
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
![]() |
![]() |