Welcome Guest, Not a member yet? Register   Sign In
Connect Codeigniter to Oracle 11g
#5

[eluser]duartix[/eluser]
Sending the full connect string was the only way I could find to connect at that time.

However today we discovered that on a Linux machine connected to a remote database, we had to setup the Apache environment variables in order to get our tnsnames.ora and sqlnet.ora loaded (we needed the last one for LDAP authentication).
Here (look for "TNS_ADMIN", it's at "Enabling the PHP OCI8 Extension on Linux", on step 6): http://www.oracle.com/technetwork/articl...84410.html

As soon as the TNS_ADMIN environment variable is set for the Apache session and pointing to tnsnames.ora, it becomes possible to establish connections to the database by SID, without the need to feed in the whole connection string.


Messages In This Thread
Connect Codeigniter to Oracle 11g - by El Forum - 12-23-2012, 11:53 AM
Connect Codeigniter to Oracle 11g - by El Forum - 09-23-2013, 12:25 AM
Connect Codeigniter to Oracle 11g - by El Forum - 09-23-2013, 03:00 AM
Connect Codeigniter to Oracle 11g - by El Forum - 09-23-2013, 04:15 AM
Connect Codeigniter to Oracle 11g - by El Forum - 12-27-2013, 07:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB