Re: error connecting to oracle.
| From: | Maxim Maletsky | Date: | Mon, 28 Oct 2002 10:25:59 +0000 |
| Subject: | Re: error connecting to oracle. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-121678@lists.php.net to get a copy of this message | ||
When one uncomments oci8 extension in PHP.INI, then restarts apache, you
get an error on Apache's start-up which will mean your dll is not forund,
or there are no oci.h lib (wrong $ORACLE_HOME dir, or there is no client
at all... whichever) but, if no errors on Apache start were given to you,
just type:
OCILogOn($schema, $pass, $listener);
And you should NOT have "undefined function" error enymore. If you do -
you got no client, if you don't you got things working well from the
PHP-Oracle side.
--
Maxim Maletsky
maxim@php.net
www.PHPBeginner.com // PHP for Beginners
www.maxim.cx // my Home
// my Wish List: ( Get me something! )
http://www.amazon.com/exec/obidos/registry/2IXE7SMI5EDI3
Gerald Roehrbein/Pctdmn<groehrbein@bigfoot.com> wrote... :
>
> Hello,
>
>
> at Solaris and Windows NT it's first necessary to install the Oracle Client
> software and then to configure PHP properly the way it is documented!
> I've done until know only three PHP installations with Oracle support but
> all three installations where very simple!
>
> Remember you have to set the Oracle Environmentvariables ($ORACLE_BASE,
> $ORACLE_HOME, $TNS<xyz>) before starting the WEB Server or PHP! For
> apchache you can do this in apachectl or a subroutine you call from
> apachectl. In a windows environment you have to set the variables with the
> appropriate tools (System/Environment/Add Variables)!
>
> In my cases this was everything to do. Try your Oracle Client Installation
> with tnsping and sqlplus at your machine! This should work before you try
> to configure PHP.
>
> best regards
> Gerald
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>