Re: Oracle connection

From: Date: Mon, 12 Mar 2001 23:22:15 +0000
Subject: Re: Oracle connection
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-7361@lists.php.net to get a copy of this message
You need to acquire the oracle network drivers for linux, from Oracle. I'm only aware of the ones that come with Oracle for linux, though they may have them bundled seperately. Fight your way through the inconcievably difficult installation process. After defining some environment variables (they can be set after the fact too) which point the the oracle/home;net drivers, compile php --with-oci8 or similar argument. Start apache server the proper set of environment variables, be sure to set your nls_lang, etc... Now you should be able to access 'em. There is a fair amount of work involved, but it seems to be working nicely for me. A little tenacity will prevail. :-) Oh, you can put_env(SID=ORCL) etc... in your php code, instead of setting up environment variables, prior to compile/apache start. If you have mutiple instances, this may be the preferred method. With a single instance, I find it simpler to start apache w/a script that sets the variables prior to startup. Oh yeah, lots of reading is involved too.... ;-) ""Marco Eyzaguirre"" <meyzagui@ilender.com.pe> wrote in message news:002601c0ab42$fac54f40$ce0410ac@ilender.com.pe... > > > I got a question: > > > > How can I access an Oracle database located on an Oracle 8i installed in > > Windows NT from PHP installed on a Linux box? > > > > thanx in advance for you answers > > > > Greetings > > > > Marco Eyzaguirre > > DB Administrator > > Ilender Peru S.A. > > www.ilender.com.pe > > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.db (#7361) next »