in reply to Re: Re: connect to Oracle through CGI
in thread connect to Oracle through CGI

The *actual* message from the error_log is what everyone is looking for.
  • Comment on Re: Re: Re: connect to Oracle through CGI

Replies are listed 'Best First'.
Re: Re: Re: Re: connect to Oracle through CGI
by Anonymous Monk on Jan 03, 2003 at 19:07 UTC
    sorry about that...I misunderstood. Here is the actual error

    Premature end of script headers: attendance.pl
    DBI->connect() failed: ORA-12640: Authentication adapter initialization failed (DBD ERROR: OCIServerAttach) at C:/Program Files/Apache Group/Apache2/cgi-bin/attendance.pl line 50
    ORA-12640: Authentication adapter initialization failed (DBD ERROR: OCIServerAttach) at C:/Program Files/Apache Group/Apache2/cgi-bin/attendance.pl line 50.

Re: Re: Re: Re: connect to Oracle through CGI
by OM_Zen (Scribe) on Jan 03, 2003 at 19:59 UTC
    Hi ,

    The Oracle Environment Parameters are not set from with in the CGI when called from HTML , I guess and hence get those Oracle env parameters in a file and require "./oraenv.pl"; in your CGI . This may help recognize the Oracle env. Also see the error message in web server log.

    Regards ,
    Padmaraj K.Shankar (Pad)
Re: Re: Re: Re: connect to Oracle through CGI
by OM_Zen (Scribe) on Jan 03, 2003 at 20:01 UTC
    The Oracle Environment Parameters are not set from with in the CGI when called from HTML , I guess and hence get those Oracle env parameters in a file and

    require "./oraenv.pl";

    in your CGI . This may help recognize the Oracle env. Also see the error message in web server log.