Solaris PHP 5.2.12 Oracle Instant Client error

We test an Oracle Solaris 11 Express Server with the standard installation of Apache and PHP. But we have the Oracle Instant client and module oci8 enabled for applications of our society.

We did it using the. / pecl install oci8 in usr/php/5.2/bin. We set the LD_LIBRARY_PATH in /etc/apache2/2.2/envvars

version 32 bit for solaris (x 86) of the Oracle Instant Client 11.2 is installed in/opt/oracle/instantclient_11_2 with the symbolic link.

envvars:
LD_LIBRARY_PATH = / opt/oracle/instantclient_11_2
ORACLE_HOME = / opt/oracle/instantclient_11_2
ORACLE_BASE = / opt/oracle/instantclient_11_2

PHP and the oci8 module set the charge.

phpinfo(); output:

OCI8
OCI8 Support enabled
Version 1.4.6
Revision $Revision: $313688
Persistent connections active 0
Active connections 0
Oracle Client Run-time Library Version 11.2.0.2.0
Oracle Instant Client Version 11.2
A temporary Lob support is enabled

When we discover everything first a site there is no problem but very random, we get the following error:

OCIEnvNlsCreate() failed. There is a problem with your system - please check LD_LIBRARY_PATH includes the directory with Oracle Instant Client libraries*.

but when we use echo getenv ("LD_LIBRARY_PATH"); in php, the output is "/ opt/oracle/instantclient_11_2.

now, the strange, that it's as random as it appears he disappears we can load the web page without a problem and after a few clicks of the error is back. If we wait for a cup of seconds you can reload the page and it loads normally.
The error seems to be random and we get it over and over again, it comes and goes after a cpl of pages are read. It seems to appear more when there are multiple users browsing the Web site.

Is there any solution for this? is this a known bug? It seems strange that the instant client works sometimes and fails a second later without a change in the system.
Hope someone can help us.

Published by: user10978378 on Sep 3, 2011 04:20

Action of the host:
This message has been moved to the Solaris 11 forum the Forum of the OIC for reconciliation of the subject.
The Solaris forum readers won't have a clue as to the nuances of the OIC.

Tags: Oracle

Similar Questions

  • Oracle Instant Client Basic + SDK for AIX (OIC link problem)

    Dear Oracle experts,

    I installed the Oracle Instant Client for AIX, base and the SDK on an AIX server.

    LIBPATH has been export and point to the folder of the Oracle Instant Client. And I successfully build files .o for the program written in c by using OIC.

    However, I met errors when I try to link the .o and oracle files.

    I get the following error message:
    Shell > gcc-L/oracle/instantclient_10.2/-I/oracle/instantclient_10.2/sdk/include/ o someExe main.o someDotOFile.o - lclntsh - lld - lm - lpthreads

    LD: 0711-317 ERROR: Undefined symbol:. OCIInitialize
    LD: 0711-317 ERROR: Undefined symbol:. OCIEnvInit
    LD: 0711-317 ERROR: Undefined symbol:. OCIHandleAlloc
    LD: 0711-317 ERROR: Undefined symbol:. OCILogon
    LD: 0711-317 ERROR: Undefined symbol:. OCIErrorGet
    LD: 0711-317 ERROR: Undefined symbol:. OCILogoff
    LD: 0711-317 ERROR: Undefined symbol:. OCIHandleFree
    LD: 0711-317 ERROR: Undefined symbol:. OCIStmtPrepare
    LD: 0711-317 ERROR: Undefined symbol:. OCIDefineByPos
    LD: 0711-317 ERROR: Undefined symbol:. OCIStmtExecute
    LD: 0711-317 ERROR: Undefined symbol:. OCIStmtFetch
    LD: 0711-345 use - bloadmap or - bnoquiet for more information.
    collect2: ld returned 8 output status
    make: 1254-004 the error code of the last command is 1.

    A few tips on how to solve this problem would be greatly appreciated.

    Thanks in advance

    This error seems to confirm my suspicions, it is due to the fact that main.o (and perhaps someDotOFile.o too) have been compiled for 32-bit.

    You must also add - maix64 when you compile the two objects in source files.

    I mean, I am not sure that the bit incompatibility really is the problem here, but it would at least explain why the linker can't find these symbols in libclntsh.a.

    I guess you made sure that libclntsh.a is in/oracle/instantclient_10.2, right?

    Yours,
    Laurenz Albe

  • IIS to DSN Oracle using Oracle Instant Client 12.1

    Hello

    I hope someone here can help me, because it turns out to be a real chore.

    I need a web application of .NET in order to connect to an Oracle database.

    I use IIS 7.5 on a Web of Windows 2008R2 server 0 x 64 and ASP.NET framework 4.0

    I know very little about Oracle, I'm afraid (I'm a dedicated man of SQL Server - sorry!), so I duly donwloaded and installed the 12.1 client instant 0 x 64.

    I followed all the instructions, created the environment variables PATH and TNS_ADMIN (located at c:\instantclient_12_1, where are installed the Oracle), I had some problems with a missing 0 x 64 DLL (visual .net distribution mfc100.dll) delivered with the instant client (since this is a production almost Virgin Web server, and I don't want to install anything I don't need) , but I finally managed to make the system ODBC DSN to connect successfully.

    The tnsnames.ora file has been provided by the DBA and is as follows;

    xxx =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = TCP)(HOST = xx.xx.xx.xx) (PORT = 1521))

    )

    (CONNECT_DATA =

    (SID = xxxx)

    (SERVER = DEDICATED)

    )

    )

    Great, I thought. Now for IIS.

    My IIS connection string is of the form;

    Dim conn As New Odbc.OdbcConnection("DSN=xxx;) UID = xxx; Pwd = xxx; »)

    However, whenever I try to open the said connection, I get the ubiquitous;

    "ERROR [08004] [Oracle] [ODBC] [Ora] ORA-12154: TNS: could not resolve the connection identifier specifiedERROR [IM006] [Microsoft] [ODBC Driver Manager] driver's SQLSetConnectAttr failed.

    After much research, I came to realize that I'm not the only person with the above error. He seems to be everywhere.

    This means that my IIS application is probably not rethink research tnsnames.ora reference?

    OK, I thought, let's add all accounts of IIS to the c:\instantclient_12_1 (read and execute). It's IIS do not have access to the tnsnames.ora file permissions, but still no joy.

    I also tried to set the identity of the application pool to run under a domain with privalidges account additional IIS, but still the same error.

    I tried to play with various permutations of connection string. I tried it;

    Dim conn As New Odbc.OdbcConnection ("Driver = {Oracle in instantclient_12_1}; ("Source = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST=xx.xx.xx.xx) (PORT = 1521))) (CONNECT_DATA = (SID = xxxx) (SERVER = DEDICATED))); uid = xxx; pwd = xxx") data

    and this one...

    Dim conn As New Odbc.OdbcConnection ("Driver = {Oracle in instantclient_12_1}; Data Source = (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=xx.xx.xx.xx) (PORT = 1521)) (CONNECT_DATA = (SERVICE_NAME = xxxx))); uid = xxx; pwd = xxx")

    The two caused a completely different error, but all too ubiquitous, it seems;

    "ERROR [HY000] [Oracle] [ODBC] [Ora] ORA-12560: TNS:protocol adapter interneErreur [IM006] failedERROR SQLSetConnectAttr in the [Microsoft] [ODBC Driver Manager] [HY000] [Oracle] [ODBC driver] [Ora] ORA-12560: TNS:protocol adapter error.

    In order to try the House on it, I tried to write a small VB SCript file to access the DSN using the same connection string, I first tried;

    Set adoConnection = CreateObject ("ADODB. Connection")

    adoConnection.ConnectionString = "DSN = xxx; UID = xxx; Pwd = xxx; »

    It worked a treat, and I was able to connect perfectly. To try to drill down to the problem, I run this file as the domain user, I put IIS to run as, and it worked a treat with IIS authentication information too.

    So I'm at the end of my mind. I don't understand why IIS can simply use the system DSN.


    Thanks to everyone in advance for their help. It is much appreciated.

    Ok. I spent some time on this and managed to get to the bottom of all this.

    Here's what the problem was, in the case where everyone faces a similar problem.

    By deliberately that gives a bad name DSN (another mistake) and an incorrect password (resulted in the same error), I was able to determine that the problem is really that the tnsnames.ora file is not get referenced. No traffic left the server at all, and so the password was not relevant.

    Next step was to check that relax TNS_ADMIN variable has been read by IIS.

    I used the command System.Environment.GetEnvironmentVariable ("TNS_ADMIN") to prove it was empty. That explains pretty much everything that. The recently set the environment variable has not been picked up by IIS. It was nothing to do with permissions to the location of the file tnsnames.ora to all. It's a Kipper.

    It would seem that, surprisingly, server restart is necessary for the work process IIS pick up new environment variables. Basically this simple problem cost me a lot of time and bother. NOT BELIEVE messages that say the restart of IIS or the application will pick up any changes to the environment variables - IT WILL NOT.

    There is a problem more annoying, and it's to make sure that you remove the spaces trrailing on behalf of the Service TNS odbc name box, but it was easier to drill down reletatively for, compared to having to restart the production server.

    Thanks ReubenC for your help. I didn't need to go down the road ODP.NET, but thanks for your suggestion. I wish only Oracle would be to write some notes about it, because I'm sure others will hit / have this problem too. It would also be too much to expect Oracle to include all DLLS in the download as well (!)

    In any case, I'm glad I'm on the right track.

  • SQL Loader for Oracle instant client 11

    I have a problem sqlldr.exe running on a machine having Oralce 11.1.0.6 instant client installed. I already copied all the DLL files it says that he needs and the whole repertoire of a machine with installation complete of RDBMS. This is the error I get:

    + SQL * Loader-704: Internal error: ulconnect: OCIEnvCreate [-1] +.

    I have no problem to connect what either using sqldeveloper. Are there files or the steps I'm missing?

    Thank you
    -Chris

    The add-on only supported for the moment customer is sqlplus, integration of other utilities is not supported. You can just mix DLLs of different software. There are a few documents on workarounds, for example:

    http://www.nyoug.org/presentations/2007/200703_Ji_Instant%20Client.PDF

    But no guarantee that it works and not support of Oracle.

    Werner

  • not able to connect to the database using the oracle instant client

    Hello

    I am not able to connect to the database using the instant oracle from my local PC client. They use to connect to the database files and sqlnet.ora files LDAP.ora. If I want to test the connection, I found this executable tns wasn't there, so not able to tnsping. So I'm not able to solve this problem.

    Please let me know if a solution for everything

    Client Oracle: oracle 10.2bFAT client 32-bit

    Platform: windows 7 64-bit

    Thank you
    Veera

    There is little that tnsping can do sqlplus can't.

    Instead of
    tnsping mydb.myorg.com
    Try
    sqlplus-s-L /@mydb.myorg.com
    or
    sqlplus-s-L user/[email protected]

    If you get
    ORA-12154: TNS: could not resolve the connect identifier specified
    you know that the customer could not resolve 'mydb.myorg.com '.

    If you get
    ORA-12541: TNS:no listener
    then "mydb.myorg.com" could be resolved, but there is no listener it running.

    If you get
    ORA-12514: TNS:listener is not currently of service requested in connect descriptor
    then "mydb.myorg.com" could be solved, the listener is in place, and the database is out of service.

    If you get
    ORA-01017: name of user and password invalid. connection refused
    you know that 'mydb.myorg.com' has been successfully resolved, and the database is running.

    If you want more details, such as how and what "mydb.myorg.com" is resolved, turn the tracking by adding the following to "sqlnet.ora:
    TRACE_LEVEL_CLIENT = ADMIN
    TRACE_DIRECTORY_CLIENT = C:\TEMP (a writable directory)

    Then you will find lines like this in the trace file:

    -THE INFORMATION SOURCE PARAMETER FOLLOWS-
    Attempt to load system pfile source C:\oracle\network\admin\sqlnet.ora
    Source of the setting successfully loaded

    Attempt to load the local pfile source C:\Dokumente und Einstellungen\lanadvall\sqlnet.ora
    The parameter source has not been loaded.

    This shows you which configuration files are read, followed by the settings real read.

    nnfgrne: will read if path adapters
    nnfgrne: switching adapter LDAP

    He's now looking for LDAP name resolution.

    nnfloidinfocache: Info: insert the value DIRECTORY_SERVSSL = oid.host.myorg.com:389 at index 0 in NLPA_CACHE

    These are LDAP servers, he is trying.

    nnflilc: conn sync opening of oid.host.myorg.com:389

    nnflfdn: turning simplified mydb.myorg.com name to a unique name.
    nnflfdn: using the administrative context: dc = prod
    nnflfdn: the domain name resulting is cn = mydb, cn = OracleContext, dc is myorg, dc = com

    nnflrne1: runs the directory for dn: cn = mydb, cn = OracleContext, dc is myorg, dc = com
    nnflqbf: search: Base: cn = mydb, cn = OracleContext, dc is myorg, dc = com, range: 0, filter: (objectclass = *)

    nnfgrne: query fails, the leap to the next map

    Did not work. Try the other adapters:

    nnfgrne: switching adapter EZCONNECT

    snlinGetAddrInfo: name resolution failed for test64.test

    No luck.

    If the resolution is approved, it will look like this:

    nnfloidinfocache: Info: insert the value DIRECTORY_SERVERS = oid.host.myorg.com:389 at index 0 in NLPA_CACHE

    nnflilc: conn sync opening of oid.host.myorg.com:389

    nnflfdn: turning simplified mydb.myorg.com name to a unique name.
    nnflfdn: using the administrative context: dc = prod
    nnflfdn: the domain name resulting is cn = mydb, cn = OracleContext, dc is myorg, dc = com

    nnflrne1: runs the directory for dn: cn = mydb, cn = OracleContext, dc is myorg, dc = com
    nnflqbf: search: Base: cn = mydb, cn = OracleContext, dc is myorg, dc = com, range: 0, filter: (objectclass = *)

    niotns: the call to address: (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=dbserver.host.myorg.com) (PORT = 1521)) (CONNECT_DATA = (SID = DBNAME) (CID = (PROGRAM = C:\Oracle\ora1020\bin\sqlplus.exe)(HOST=pc247596)(USER=lanadvall)))

    Yours,
    Laurenz Albe

  • Oracle Instant Client FAQ does not work

    Link to this FAQ work but most of the answers are empty: http://www.oracle.com/technetwork/database/features/oci/ic-faq-094177.html

    Fixed, changes will be out in 30 minutes.

  • Oracle Thin Client error when inserting

    Cold Fusion 8 fully patched on Windows Server 2008 fully patched
    8.1.7.1 Oracle Linux as DB with network (encryption) Option
    Oracle Client 10.2.0.3 Thin Client (tried with the ojdbc14 and ojdbc12 classes)

    SELECT, DELETE, UPDATE instructions all work fine.

    When an INSERT statement is sent to the DB, it is processed (the insert is done and committed!) but we receive a database error message 'Typlange grosser als Hochstwert', which translates as about type length is greater than the limit.

    Multiple threads show this as a problem when the return of the db is too large, but it is certainly not the case (a simple insertion of a line of small).

    The SQL that is executed to the DB includes a suffix of "ROWID of RETURN", which is not part of our SQL and is apparently added by CF or thin client. We do not handle the return value (we tried but that didn't help either).

    Due to the fact that the INSERT is actually made and committed, we assume that the problem must be at the end of the customer and not in the database.

    This is a blocking problem and seems to be limited to 8 CF with the customer.
    CF 8 with an ODBC to the same DB connection works OK.

    Be very happy for any help we want to go to production with this environment.

    See you soon
    Thomas

    I am able to use the Oracle 10.2 OCI or JDBC 'fat client' driver do updates and deletions to my 8.1.7 database. Only a few changes are needed with the already installed Oracle client. You must update the java.library.path Coldfusion8\runtime\bin\jvm.config to include the dll from the Oracle client directory. For me it was:
    Java.Library.Path=...,E:/Oraclient_10_2
    You must restart coldfusion for all java configuration updates.
    You must also change the JDBC URL of JDBC: thin:... to jdbc:oracle:oci:...

    You can still use the Oracle client where he works, using the OCI driver only if necessary. You could test your SQL with two drivers to see if you notice a significant difference in performance. Use what works the best.

  • Instant client

    Hi friends!
    SQL> select * from v$version
      2  ;
    
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Release 10.2.0.4.0 - 64bit Production
    PL/SQL Release 10.2.0.4.0 - Production
    CORE    10.2.0.4.0      Production
    TNS for 64-bit Windows: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    I need to install the Oracle Instant Client in another server to access this database.

    Do I have to install only Instant Client 10.2.0.4 Version or can I use Version 10.2.0.5?

    Please guide me.

    Thanks in advance.

    Nith

    You can install this.

    Check this note MOS * Client / Server / Support of interoperability between different Versions of Oracle [207303.1 ID] *.

  • Instant Client connection problem - Excel 2007 for Oracle 10 g

    Dear users,

    I want help to connect Excel to Oracle.
    I use Excel 2007 (32-bit) on Windows Vista Enterprise 64-bit. I want to connect to a database 10g to Oracle through our local network using ODBC. I need to retrieve data once in an excel sheet.
    There is no firewall or connection between my current computer problems, problems as I can connect to my machine, using SQL developer as a local client to the Oracle database that is located on another machine on the network.
    I tried to make an ODBC connection, but Oracle is not listed as a driver.
    In my view, what ODBC is the best way to do it, but please correct me if I'm wrong.

    It is an Oracle 10 G database.
    I downloaded instantclient-basiclite - 64 - 11.2.0.2.0.zip a windows.x
    I also downloaded the additional ODBC components: * Instant Client Package - ODBC: extra to allow ODBC applications libraries.

    I unzipped in a folder called C:\instantclient_11_2
    The system path include one. I checked after reboot.
    I placed my tnsnames.ora (that I copied from the server) in this folder.
    I got it from the server: D:\Oracle\Ora10gR2DB\network\admin\tnsnames.ora

    I ran the exe "odbc_install" and he told me that the ODBC has been successfully intalled.

    When I went to the Control Panel, administrative tools, ODBC

    On the user dsn tab

    I added a new entry. I chose the Oracle driver (previously it was not in the list)

    Use the following values

    Data Source name: OracleL
    123 description
    The TNS Service name: I chose for my prod environment drop-down list. (There are two entrances with the name of the production, one uppercase and one lowercase)


    UserID: my user name

    I tried the connection Test and got this:

    Unable to connect

    SQlState = S1000
    [Oracle] [ODBC] [Ora] ORA-12545: Connect failed because target host or object does not exist


    Any suggestions please.

    Thnaks in advance.


    A.











    Thanks for all your help in advance.

    Akajohn.

    Published by: user12282521 on May 19, 2011 13:47

    user12282521 wrote:
    I want help to connect Excel to Oracle.

    I use Excel 2007 (32-bit)
    I downloaded instantclient-basiclite - 64 - 11.2.0.2.0.zip a windows.x

    If Excel is 32-bit (2007a) and the Oracle client libraries are 64-bit, it will not work. needs 32-bit 32-bit.
    You should probably remove current ic packages and get the 32-bit instead.
    Start over.

    When I went to the Control Panel, administrative tools, ODBC

    On Windows x 64, to run the 32 - bit ODBC DSN/drivers, we need run the Windows\SysWoW64\odbcad32.exe tool.

  • Not able to download the instant client

    Tried several times. Go to The Instant Client downloads for Mac OS X (Intel x 86). Accept the agreement. Then click on the download link. Get this:

    Sorry

    !In order to download products from Oracle Technology Network, you must accept the OTN license terms.Make sure that...Your browser has 'cookies' and JavaScript active.You have clicked on "Accept license" for the product you want to download.You try the download within 30 minutes of the acceptance of the license.From here, you can go...
    Back to previous Page
    Site map
    OTN homepage

    Please report to us.  It should now work.

  • 4.0 set up Instant Client

    Hello

    I can't use v4.0 because the JDBC driver cannot display a 11.2.0.2 XMLTYPE data database.

    I thought a workaroud could be to use the driver OIC/thickness

    Download sqldeveloper - 4.0.1.14.48 - x 64.zip (JDK included)

    Download instantclient-basic - windows.x 64 - 12.1.0.1.0.zip (Instant Client - Basic)

    Configure it suite http://www.thatjeffsmith.com/archive/2014/01/oracle-sql-developer-4-and-the-oracle-client/

    I can't start SQL Developer directly, because the path of the instant client will not be the first entry of client in my path variable, so I start with a batch script

    set path = T:\SQLDeveloper\instantclient_12_1; T:\SQLDeveloper\4.0.1\jdk\jre\bin; C:\Windows\System32; C:\Windows;...

    start T:\SQLDeveloper\4.0.1\sqldeveloper.exe

    In help > topic > properties: sqldeveloper.oci.available = true

    Select * from a table with XMLTYPE column is ok

    Select * views of the same table that returns the relational data to XML I get

    With 'use pilot OIC/thickness' enabled: no orageneric11 in java.library.path

    With 'use pilot OIC/thickness' disabled: only LOB or the storage of the chain is supported by thin XMLType

    Is this what I need?

    Concerning

    Marcus

    Totally hear you. Developer SQL uses an old JDBC driver to 3.2 vs 4. XML support can be very finicky. You see an example of this now unfortunately.

  • Installing 11.1.0.7 instant client

    Hello

    How can I install the 11.1.0.7 instant client on windows server 2008.

    I am not able to find any files in the folder of decompression.

    user13364377 wrote:
    Hello

    How can I install the 11.1.0.7 instant client on windows server 2008.

    I am not able to find any files in the folder of decompression.

    http://www.Oracle.com/technetwork/topics/winx64soft-089540.html

    "Installation steps:

    1. download the Instant Client packages appropriate for your platform. All installations REQUIRE the basic package.

    2 unzip the packages in a single directory as "instantclient.
    3. set the library load path in your environment in the directory in step 2 ("instantclient"). On many UNIX platforms, LD_LIBRARY_PATH is the appropriate environment variable. On Windows, path must be used.

    4. launch your application and good luck. »

  • Instant client on windows 8

    Instant client works on windows 8?
    I have windows 8 x 32 Preview Release, the oracle client instant basic-nt 11.0.0.2 and launch error "Error trying to retrieve the error ORA-01019 text."
    PS: It works fine with the same settings on windows 7 (ORACLE_HOME, TNS_ADMIN, PATH) environment variables.

    Why is it?

    Support Win 8 and Server 2012 is in the plans or what it looks like. See SoD to http://www.oracle.com/technetwork/database/windows/whatsnew/index.html

    Note that it is more likely will not include any "Preview Release", the CTP or similar distributions. Only GA of Windows versions.

  • Oracle 10g client

    Hello

    I tried to search this forum and the site of oracle, but I couldn't find a link to download the oracle 10g client. I really need especificaly the 10g version.

    Anyone know the link or another way to download the client?

    Kind regards

    Homepage:
    http://www.Oracle.com/technetwork/database/features/instant-client/index-097480.html

    Win32 page (scroll to the bottom for the 10.x versions):
    http://www.Oracle.com/technetwork/topics/WinSoft-085727.html

  • Using the Instant Client via OIC

    Hello world

    A developer says he has problem to connect to Oracle and I asked how do you connect from his pc. He said that it is "use Instant Client via OIC."

    Is this the normal stuff like Oracle_sid, tnsnames and sqlnet in the pc of the client or something more than that?

    Please enlighten me on this.

    Thank you.

    OIC is the Oracle Call Interface and Instant Client implements this API.

    There is a large painting of OIC and how it fits into the pile of products [url http://download.oracle.com/docs/cd/E11882_01/server.112/e10729/ch7progrunicode.htm#i1005974] Oracle database access.

    Your application can be OIC based, as is the Sql * plus, .net Data provider, thick driver JDBC, etc. etc. (read the description following the figure for more examples).

Maybe you are looking for