Re: ORA-12154: TNS:could not resolve service name in XXX

From: Date: Thu, 22 Feb 2001 12:54:08 +0000
Subject: Re: ORA-12154: TNS:could not resolve service name in XXX
Groups: php.db 
Request: Send a blank email to php-db+get-6861@lists.php.net to get a copy of this message
I appears that PHP does not know about the paths for Oracle. I am only guessing at this because I haven't installed Oracle on a Linux/Apache box but I think Apache is not aware of the Oracle paths that are required. You might need to recompile Apache with the appropriate configuration parameters. -----Original Message----- From: Vlad <vlad@zircon.net.ua> To: php-db@lists.php.net <php-db@lists.php.net> Date: Thursday, February 22, 2001 7:40 AM Subject: Re: [PHP-DB] ORA-12154: TNS:could not resolve service name in XXX >Hi All >Oracle is installed on SCO UnixWare >Client that I use to connect on Windows 98 >env variables ORACLE_HOME, TNS_ADMIN for client is correctly defined >by the way I created ODBC source for my ORACLE connection and tested it. >Then I tryed to connect using PHP's odbc_connect and have the same >problem... >Is there any solution? >Thanks, Vlad > >> Make sure your tnsnames.ora file is setup correctly and that your >> environment variables are setup correctly. >> >> What OS are you using on the machine that Oracle is installed on? >> >> Peter J. Krawetzky >> -----Original Message----- >> From: Vlad <vlad@zircon.net.ua> >> To: php-db@lists.php.net <php-db@lists.php.net> >> Date: Thursday, February 22, 2001 3:25 AM >> Subject: [PHP-DB] ORA-12154: TNS:could not resolve service name in XXX >> >> >> >Hello All >> >I have some problems connecting ORACLe from my php script. >> >connection string: >> > $conn = OCILogon("asu", "asu", "asu"); >> >failed with >> > ORA-12154: TNS:could not resolve service name in XXX >> > >> >Regards, Vlad >> >e-mail: zzzvlad@ukr.net >> >IСQ: 1042225964 >> > >> > >> > >> >-- >> >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 >> > >> > >> >> >> -- >> 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 >> >> > > >-- >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 (#6861) next »