Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

perl-Ora connectivity prob "ORA-24315: illegal attribute type"

453071Sep 9 2005
Hi,

I am using perl with the DBI and DBD packages, to access Oracle on solaris machine. However when using the following syntax:

use DBI qw(:sql_types);

# Connect to the Database
my $db = DBI->connect("dbi:Oracle:dbname ", "username", "password" );


I get the following error: DBI connect failed: ORA-24315: illegal attribute type (DBD ERROR: OCIAttrGet OCI_ATTR_ENV_CHARSET_ID) etc

I have checked the tnsnames.ora, it is set up correctly. I'm able to connect using sqlplus username/password@dbname successfully.

In my perl code i'm not setting any atribute at all, still its giving error for this "OCI_ATTR_ENV_CHARSET_ID" particular atribute.


Any help would be greatly appreciated...

Regards
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 7 2005
Added on Sep 9 2005
0 comments
149 views