Re: Please help me.
| From: | Somsak RAKTHAI | Date: | Tue, 08 Jan 2002 08:31:30 +0000 |
| Subject: | Re: Please help me. | ||
| References: | 1 | Groups: | php.mirrors |
| Request: | Send a blank email to php-mirrors+get-8127@lists.php.net to get a copy of this message | ||
Dear sir,
I ever post to "php-db@lists.php.net" but no anyone
can help me. If you know person that expert about
how to set PHP with Apache to support Oracle function
please let me know.
thank you very much.
regards,
Somsak.
On Mon, 7 Jan 2002, Gabor Hojtsy wrote:
> Please ask support questions on our mailing lists. You
> can subscribe to one at http://www.php.net/support.php
>
> Goba [one webmaster@php.net]
>
> > Dear sir,
> > Would you please forward my mail to person that
> > can help me.
> > I have problem about Oracle 8 functions. (OCILogon)
> > I follow
> > "http://www.php.net/manual/en/ref.oci8.php"
> > but don't work.
> > I used RedHat-7.2 runing Oracle 9i, PHP-4.1.1 and Apche-1.3.22.
> >
> > I config "httpd.conf" below. ( used user root to run Apache)
> >
> > SetEnv ORACLE_HOME /u01/app/oracle/product/9.0.1
> > SetEnv ORACLE_SID mis
> > #SetEnv LD_PRELOAD
> > SetEnv LD_LIBRARY_PATH /u01/app/oracle/product/9.0.1/lib
> > SetEnv NLS_LANG AMERICAN_AMERICA.US7ASCII
> > #SetEnv ORA_NLS33
> > SetEnv TNS_ADMIN
> /u01/app/oracle/product/9.0.1/network/admin/tnsnames.ora
> > SetEnv TWO_TASK
> /u01/app/oracle/product/9.0.1/network/admin/tnsnames.ora
> > SetEnv ORACLE_BASE /home/oracle
> >
> > And my source below.
> > <?php
> > $db = "";
> > $c1 = ocilogon("scott","tiger",$db);
> > $c2 = ocilogon("scott","tiger",$db);
> > ?>
> >
> > When run this source, it has error messages below.
> >
> > Warning: _oci_open_server: Error while trying to retrieve text for error
> > ORA-12546 in /usr/local/apache/htdocs/registra/oracle2mysql/a.php on line
> > 3
> >
> > Warning: _oci_open_server: Error while trying to retrieve text for error
> > ORA-12546 in /usr/local/apache/htdocs/registra/oracle2mysql/a.php on line
> > 4
> >
> > Please help me. Hope to hear from you soon.
> > thank yoy very much.
> > regards,
> > Somsak.
> >
> >
> >
>
>
>
>