Can't call method "prepare" on an undefined value
- From: Wei-Ling.Chong@xxxxxxx (Wei-Ling Chong)
- Date: Tue, 30 Jan 2007 18:23:02 +0800
Hi, I have one oracle database located at server A and setup the Oracle
HTTP Server at Server B. Both server are Solaris server. I have
installed DBI and DBD into Server B and setup the oraperl in my perl
script.
When I run the perl script, I am getting error:
Can't call method "prepare" on an undefined value at
/oracle/app/http/product/OA
S10.1.2.0.2/perl/lib/site_perl/5.6.1/sun4-solaris/Oraperl.pm line 121.
[Tue Jan 30 16:39:26 2007] [error] [client 165.204.172.185] [ecid:
1170146365:16
5.204.178.123:1213:0:7,0] Premature end of script headers:
/oracle/app/http/dl/w
eb/cgi/eppcd/ppcd_approval_ora.pl
It works fine when the oraperl is located same server as the database. I
search through internet and it might due to connection string problem. I
am able to sqlplus to this database in Server B: sqlplus
ppcd@xxxxxxxxxxxxxxx
Attached is my perl script. Is there any error on my oraperl code?
Please help, very appriate.
Thanks.
Best Regards,
Chong
Attachment:
ppcd_approval_ora.pl
Description: ppcd_approval_ora.pl
- Follow-Ups:
- RE: Can't call method "prepare" on an undefined value
- From: Ron Reidy
- Re: Can't call method "prepare" on an undefined value
- From: Alexander Foken
- RE: Can't call method "prepare" on an undefined value
- Prev by Date: AW: AW: Re: AW: CLOB Problem with DBD::ODBC/DBD::ADO for SQL Server
- Next by Date: Re: DBD::Oracle-1.19 installation errors
- Previous by thread: AW: AW: Re: AW: CLOB Problem with DBD::ODBC/DBD::ADO for SQL Server
- Next by thread: Re: Can't call method "prepare" on an undefined value
- Index(es):
Relevant Pages
|
|