I have a system requirement that I can't have hard coded userids and passwords.
I have a unix user, in the DBA group, that has an Oracle userid also, and is a SYSDBA.
Produces the error:
ORA-01031: insufficient privileges (DBD ERROR: OCISessionBegin) at /oracle/perlsql line 6.
I have regenerated the password file in vain.
How do I get around providing a password ?
Oracle 8.0.6
HPUX11
Perl 5
Thanks for any suggestions.
I have a unix user, in the DBA group, that has an Oracle userid also, and is a SYSDBA.
Code:
#!/opt/perl/bin/perl
#
use Oraperl;
$lda = ora_login("my_database_name", "internal", " ", { ora_session_mode => 2 } ) or die "$ora_errnum: $ora_errstr";
$csr1 = ora_open($lda, "select sysdate from dual") or die;
while (($data) = ora_fetch($csr1)) {
print $data;
}
ora_close($csr1);
ora_logoff($lda);
Produces the error:
ORA-01031: insufficient privileges (DBD ERROR: OCISessionBegin) at /oracle/perlsql line 6.
I have regenerated the password file in vain.
How do I get around providing a password ?
Oracle 8.0.6
HPUX11
Perl 5
Thanks for any suggestions.