DBD::Oracle & Instant client - don't find tnsnames.ora

Hello,
I'm trying to use tns names in Perl scripts to connect with Instant client. I always get the ORA-12154 error when connecting with Perl :
ORA-12154: TNS:could not resolve the connect identifier specified (DBD ERROR: OCIServerAttach).
The perl command that raise the error is :
+$dbh = DBI->connect("dbi:Oracle:MYDB","user","password") or die $DBI::errstr."\n";+
I checked my Oracle installation and everything seems fine. Connection with sqlplus work without problem using the same connection string (sqlplus user/passowrd@MYDB).
I stat'ed my tnsnames.ora file to check if it's accessed : it is with sqlplus, but not with my perl script.
Instant Client has been installed with the zip files made available by Oracle (not RPM). ORACLE_HOME points to the installation directory and tnsnames.ora is located in $ORACLE_HOME//network/admin/. Server is a Red Hat Entreprise 5.
In my knowledge DBD::Oracle use OCI so there should not have difference between sqlplus and DBD::Oracle. Am I wrong ? Anyone have had this problem before ?
Thanks for your help
Florent

Hi,
Environment variables was correctly defined, but your comment put me on the right track.
I printed the %ENV content to check ORACLE_HOME which was OK.
I check the directory and remind I put a sqlnet.ora file in the same directory than tnsnames.ora with the followin content :
AUTOMATIC_IPC = OFF
TRACE_LEVEL_CLIENT = OFF
names.directory_path = (TNSNAMES)
names.default_domain = world
name.default_zone = world
I removed this file and everything is ok now. I don't really know what this file is used for, but if I keep it online and change MYDB in the connection name to MYDB.world, it worked. I think I have to learn more about names...
Thanks for your help anyway !
Regards,
Florent

Similar Messages

  • Oracle 8i clients, inconsistent handling of tnsnames.ora (ORA-06401 gotcha)

    This is more of a bug report / oddity declaration than a real problem, though it was a pain in the butt to nail down. I post it here for the benefit of anyone else who may run into it down the road.
    Using the linux sqlplus client, I kept getting consistent failures connecting to one of a dozen db's, but tests with the (java) netasst client worked fine. After various debugging of other potential causes, it came down to strace'ing the sqlplus client, and noting that it was attempting to connect to the wrong host, despite what was specified on the command line.
    What we identified as the most probable cause:
    The routines that load and parse the tnsnames.ora file differ between the linux and java clients, with the java client being more tolerant/robust. The tnsnames.ora file I'd been supplied with had come from a fellow user's Win32 machine, and had been edited there, which probably included a couple ^M's or other non-visible characters within the file.
    The solution (at least, what I did):
    Load the tnsnames.ora file with netasst, and save it again with netasst. Netasst wrote the file in a manner that sqlplus could read accurately, and I got to go have a beer.
    - billn

    Hi Fredrik,
    You r right. But I have its entry in tnsnames.ora file. The entry looks like this -
    My_Service_Name.world =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (COMMUNITY = tcp.world)
    (PROTOCOL = TCP)
    (Server = Computer_Name_of_Server_having_Ora8i)
    (Host = IP_Add_of_Server_having_Ora8i)
    (Port = 1521)
    (Pipe = ORAPIPE)
    (CONNECT_DATA = (SID = ORCL)
    The same entry exists in the tnsnames.ora file on the local PCs (same office where the Oracle 8i Server is present) at Site 1 and these PCs connect the server without any problem.
    Thanks
    Lokesh

  • Oracle Instant Client question?

    I installed Oracle Instant Client 11.2 on a desktop with Win 7. Then I created a System DSN using MS ODBC Data Source Administrator (selected the Instant Client driver). The TNS Service Name is set to one of our databases on a separate server.
    1) Instead of having the tnsnames.ora file reside on the desktop. Is it possible to configure Instant Client to use a tnsnames.ora file on a different server? I'm trying have it so that when I create the System DSN, the TNS Service Name drop down box displays all the aliases listed in the remote server's tnsnames.ora file. Is this possible?
    I tried creating a new environment variable on the desktop named TNS_ADMIN. Setting the value to a mapped drive that I created. The map drive points to the directory location of the remote servers tnsnames.ora file (O:\network\admin).
    Your help is appreciated.

    If you want to avoid having to customize tnsnames.ora files on every client and use a centralized approach instead,
    you should use "directory naming".
    See http://docs.oracle.com/cd/E11882_01/network.112/e10836/concepts.htm#sthref144
    While using a tnsnames.ora file on a CIFS share is not something I would do for a production system,
    it should work. What problems do you encounter?
    Yours,
    Laurenz Albe

  • ODBC Error: Could't find Oracle Instant Client in present directory.

    I am getting the following error when I try to run odbc_install.exe with the Oracle 10g Instant Client Lite version 2:
    Could't find Oracle Instant Client in present directory.
    The 10g Instant Client Lite version (including the missing MFC71.DLL and MSVCR71.DLL files) is in the directory. What am I missing here??

    Can you detail your configuration? What files are in the directories? Environment variables?

  • To Find the version of Oracle Instant Client in SAP

    Hi,
    I am a newbie in SAP with oracle. I have planned to upgrade the Oracle Instant Client Version in our systems.
    The following is our system specificatiosn:
    SAP : ECC6.0
    Database : Oracle 10204
    OS : HP-UX 11.23 ia64
    I have the following observations with respect to finding the version of the Oracle Instant client in  SAP.
    a)  As per the SAP note : 819829, the version of the Oracle client can be found using the command "genezi-v" under the path 
    genezi -v
    Client Shared Library 64-bit - 10.2.0.4.0
    System name:    HP-UX
    Release:        B.11.23
    Version:        U
    Machine:        ia64
    b) From the SAPGUI, I have found the version of the DB Client library as  OCI_102 (10.2.0.1.0).
    Following are my queries:
    1) Which of the above methods can be considered to find the correct version of Oracle Instant client in SAP?
    2) If the method b gives the correrct version --> Where does this value is picked up from OS level?
    with regards,
    Arul

    Hello Arul,
    just look at a work process trace file .. you will find a section like this while starting SAP or restarting the work process.
    Loading DB library '/usr/sap/<SID>/SYS/exe/run/dboraslib.o' ...
    Library '/usr/sap/<SID>/SYS/exe/run/dboraslib.o' loaded
    Version of '/usr/sap/<SID>/SYS/exe/run/dboraslib.o' is "700.08", patchlevel (0.110)
    Got LIBPATH=/usr/sap/<SID>/SYS/exe/run:/usr/lib:/lib:/usr/sap/<SID>/SYS/exe/run:/opt/kerberos/lib:/oracle/client/10x_64/i
    Oracle Client Version: '10.2.0.4.0', (dbsl 701 140910)
    There you can find the actual used client version ... also SAP delivers a file called SAPIC_README in the oracle client directory, which gives you information about the client version and its applied patches.
    Regards
    Stefan

  • Oracle instant client 11g doesn`t connect to database 10g

    hi,
    i installed a oracle instant client 11g for windows xp on my pc, because i need a odbc connection.
    I don`nt know this product. I don`t find a tns.ora file, so how can i give them the right parameter for my oracle database and how can i make a odbc connection.
    Is it already the right client?
    Thanks in advance.
    Regards
    Nicole

    nicole4 wrote:
    Hi,
    now 've seen that installed this client win32_11gR2_client this isn't the instant basic client.
    Should i deinstall this client?
    Or how can i make there a odbc connection?
    Thanks
    NicoleODBC sits on top of the Oracle client. (or any other native client of a given db product).
    I don't think the ODBC drivers come with the instant client, though if you can locate a 3d party odbc driver for Oracle, that should work with the instant client.
    Oracle ODBC drivers do come with the full client, but even there don't install by default - at least not up through 10g. In that case you have to select 'custom installation' (which can be done after a basic run-time installation) and select 'windows components'.

  • Oracle Instant client

    Hi all,
    I have installed oracle instant client. How to check whether I have installed correctly or not?
    When I started the sqlplus.exe, it asked for username and password. But I don't have tnsnames.ora file. Do I have to manually create a tnsnames.ora file?
    If so is there any particular directory that I have to create it?
    I have installed the basic and sqlplus packages for 10g instant client in a directory C:\Oracle\instantclient_10_2
    Please help. How do I check connections to Oracle database in a different server?

    I got it. I manually created the tnsnames.ora file in the same dir as the instantclient, and it worked.

  • Triying to intall oracle instant client

    Hi Buddies;
    I have to install oracle instant client in linux5 Red hat Enterprise.
    I got to create the next:
    Instant Client Package - Basic and Instant Client Package - SQL*Plus unzip it and make sqlplus runnable from anywhere ( set new PATH or copy to defined PATH) and test SQLPLUS sqlplus user/passwd@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(Host=IP or hostname)(Port=port))(CONNECT_DATA=(SID=sid)))
    Is the first time I doing this; So I proceed to download the following files:
    instantclient-basic-linux32-10.2.0.3-20061115.zip
    oracle-instantclient-basic-10.2.0.3-1.i386.rpm
    I unzipped the firt one and now I got a new directory (instantclient_10_2) whi these files:
    -rwxrwxr-x 1 root root 72480394 Nov 15 2006 libociei.so
    -rwxrwxr-x 1 root root 67053 Nov 15 2006 genezi
    -r-xr-xr-x 1 root root 5486009 Nov 15 2006 libnnz10.so
    -rwxrwxr-x 1 root root 1398088 Nov 15 2006 libocci.so.10.1
    -rwxrwxr-x 1 root root 18825267 Nov 15 2006 libclntsh.so.10.1
    -r--r--r-- 1 root root 1600090 Nov 15 2006 classes12.jar
    -r--r--r-- 1 root root 1545954 Nov 15 2006 ojdbc14.jar
    -r-xr-xr-x 1 root root 120135 Nov 15 2006 libocijdbc10.so
    My doubt is, which of them to execute?
    And what I have to do with file oracle-instantclient-basic-10.2.0.3-1.i386.rpm?
    Besides, I don't see anything related with sqlplus, and I understand I need that.
    May be this is something simple, but I not sure what to do.
    Could somebody help me ?
    Thanks and best Regards;
    Al

    At first try to check the Instant Client download page again: http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/linuxsoft.html
    As you can see there are several categories of packages and description for these packages.
    Instant Client Package - Basic: All files required to run OCI, OCCI, and JDBC-OCI applications
    Instant Client Package - Basic Lite: Smaller version of the Basic, with only English error messages and Unicode, ASCII, and
    Instant Client Package - JDBC Supplement: Additional support for XA, Internationalization, and RowSet operations under JDBC
    Instant Client Package - SQL*Plus: Additional libraries and executable for running SQL*Plus with Instant Client
    Instant Client Package - SDK: Additional header files and an example makefile for developing Oracle applications with Instant
    Instant Client Package - ODBC: Additional libraries for enabling ODBC applications
    Instant Client Package - WRC: Workload Replay Client used to replay workload for RAT's DB Replay Feature
    You need to download those packages which are required for your application (for example).
    Packages are provided in two versions. ZIP and RPM (for Redhat Package Manager).
    You don't need to download both of versions. You can choose only one - ZIP or RPM, it depends on you.
    Now you said, you need to use SQLPLUS.
    1.So, you need to download these two packages (assume that you are running 32bit Linux):
    instantclient-basic-linux32-10.2.0.3-20061115.zip
    instantclient-sqlplus-linux32-10.2.0.3-20061115.zip2. Unzip these packages and you will see new directory named instantclient_10_2
    3. Place this directory where you want (i.e to /opt directory)
    mv instantclient_10_2 /opt/4. set the environment (still using /opt directory)
    export PATH=/opt/instantclient_10_2:$PATH
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/instantclient_10_2Note: To make this settings permanent put this commands to shell profile file (i.e.: For bash it is .bash_profile file) in user's directory or to /etc/profile file to make this settings global for any user.
    5. Tnsnames file. By default TNS settings is searched in these directories and in order as follows:
    /home/<current user>/.tnsnames.ora (Note the dot in .tnsnames.ora in this case)
    /etc/tnsnames.ora
    /<path to directory where the instant client directory is located>/instantclient_10_2/network/admin/tnsnames.ora (in our case it's the /opt directory)
    Hope that helps.

  • Using SQLDriverConnect with special characters in password fails, same info with ODBC (Oracle instant client) works fine

    Hi,
    on a windows 2008 machine that has the Oracle instant client 11_1 installed (11.01.00.06) i am calling SQLDriverConnect in the following way:
    std::string str = "Driver={Oracle in instantclient11_1};Dbq=//10.10.101.66:1521/orcl;;Uid=myUser;pwd=a;b";
    odbcRc = SQLDriverConnect(hdbc, NULL, (SQLTCHAR*)str.c_str(), str.size(), (SQLTCHAR*)szConnStrOut, 1024, &cbConnStrOut, SQL_DRIVER_NOPROMPT)) == SQL_ERROR);
    as long as the password contains no special chars (namely semicolon) it works fine. but when I try to use special chars in the password It stops working, with an invalid username/password error.
    State: 28000 Native error: 1017 Message: [Oracle][ODBC][Ora]ORA-01017: invalid username/password; logon denied
    i tried different variations of adding " (\") over the password, over the entire pwd=a;b or braces { but nothing seems to work.
    the thing is that using ODBC works! what I did was:
    open ODBC, go to System DSN tab, add "Oracle in instantclient11_1", then fill the following information:
    Data source name: Anything
    TNS Service Name: //10.10.101.66:1521/orcl
    User ID: myUser
    then i press test connection, enter the password "a;b"
    and it works!
    I cannot figure out what's my problem.
    Thanks,
    Roy.

    I've created your test table in my Oracle database using this extra character and I'm able to describe it properly.
    SQL> desc test;
    Name Null? Type
    ATTIVITÀ VARCHAR2(40)
    My character set being used is:
    SQL> select * from v$nls_parameters;
    NLS_CHARACTERSET
    WE8ISO8859P15
    NLS_NCHAR_CHARACTERSET
    AL16UTF16
    NLS_LENGTH_SEMANTICS
    BYTE
    So as long as it doesn't work for you in your native Oracle database I don't think it would work with DG4ODBC. So yes, it would be best to log a service request so that the Oracle database support can check out the NLS issue.
    Edited by: kgronau on Sep 28, 2011 9:21 AM
    To be complete here the describe of the MySQL table native and using DG4ODBC:
    mysql> create table TEST (attività Varchar(40));
    Query OK, 0 rows affected (0.00 sec)
    mysql> desc TEST;
    ---------------------------------------------------+
    | Field | Type | Null | Key | Default | Extra |
    ---------------------------------------------------+
    | attività | varchar(40) | YES | | NULL | |
    ---------------------------------------------------+
    1 row in set (0.00 sec)
    SQL*Plus: Release 11.2.0.2.0 Production on Wed Sep 28 09:20:17 2011
    SQL> desc "gateway"."TEST"@MYSQL_DG4ODBC_EMGTW_1122_DB;
    Name Null? Type
    attività VARCHAR2(80)
    So in general it should work.

  • Oracle Instant Client for Intel MacOS X

    Hi all, this is my first post here (so I don't know if it's the proper place, but to try it is free. Sorry for any inconvenience).
    Anybody, can confirm/explain why, one year after launch, there isn't one available download of Oracle Instant Client for Intel MacOS X?
    Without it's impossible, for example, to compile PHP with OCI support under Intel MacOS X (native mode) and it's really a pain.
    With PPC version existing since ages, wouldn't be absolutely easy to recompile that cool stuff for Intel MacOS X?
    TIA and ciao, Eloy Lafuente :-)

    Hi again...
    just to know a bit more... two months later... how is customer demand going...?
    Have you searched for "macos x instant client intel" ?
    Aren't PHP/Perl/Ruby applications enough?
    I sincerely think it's a big mistake to don't offer native connectivity for MacOS X Intel users... of course, your mistake.
    Some developers, like me, will stop developing/improving Oracle support in their applications just because they use MacOS X to develop. So, those applications won't run ok under Oracle, no matter where you deploy them.
    With thousands of applications running natively under MacOS X Intel... isn't there (@ Oracle) able to recompile that tiny piece of software to run under Intels... sorry but I cannot believe it.
    I'll email SJ right now! Ciao :-)

  • CR 2008 and ODBC connection using Oracle Instant Client driver?

    Two questions.
    I'm creating CR 2008 report using an ODBC connection. The ODBC driver is the Oracle Instant Client (version 10.2, I think.)
    When I define the connection, I see only a few tables. I do not see the Tables, Views, Qualifiers tree that I see with a normal Oracle Server connection.
    Does anybody know why this happens? Is there a CR ODBC driver that works better?
    Second question:  I have a .NET application that is pointing the report to another Oracle DB. In my db, table names are not unique -- each user has the same set of tables. I find that when the .net applciation sets the datasource, I get connected to the first table with a given name; I do not get the table scoped by the logon user.
    In the .net application, how do I scope the table name to a particular user.
    Any info helps. Thanks.
    Tim

    Hi Tim,
    Below are the replies to your questions:
    Answer 1: Please try the below steps:
    - Make sure that in File->Options->Database Tab in the Data Explorer section the corresponding checkboxes are checked for tables, views,system tables,synonyms and stored procedures and the Table name LIKE and Owner LIKE boxes are blank.
    - Please try with OLEDB connection and check the results.
    - You can also refer to this SAP note no# 1215994, the link to which is given below:
    [https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3132313539393426]
    Answer 2: If you are using RAS SDK only then you would be able to change table name. Please let us know if you are using RAS.
       If you are using RAS with Java please post your query in the Java forum else if you are using Visual Studio/.NET then please post your question in .NET Forum.
    Please update with the results.
    Thanks!

  • Error Compiling php 5.1.6 with Oracle Instant Client 10.1.0.5 on Fedora 5

    Hello
    I have Oracle 10.1.0 enterprise database installed on a Windows 2003 server.
    I have another machine that has Fedora Core 5 installed on it. I downloaded:
    Apache 2.2.3
    Php 5.1.6
    OracleInstantClient 10.1.0.5 (base and skdk packages) from technet.oracle.com
    I created a directory called /usr/lib/instantclient10_1 in which I unzipped
    the files for the Oracle Instant Client and the SDK into /usr/lib/instantclient10_1.
    So inside /usr/lib/instantclient10_1 I have:
    all the unzipped filed from the base for the instant client as well as
    a directory called sdk with files inside this subdirectory.
    I compiled and installed Apache.
    I then tried to configure php using the instantclient with the configure option
    --with-oci8=instantclient/usr/lib/instantclient10_1
    The first time I did this I got the error: "link from
    /usr/lib/instantclient10_1/libclntsh.so to libclntsh.so.10
    not found"
    Well I had the libclntsh.so.10 but no such link. So I did the following:
    ln -s libclntsh.so.10.1 libclntsh.so
    I assume this was OK to do but I found it strange that I had to do this.
    Question #1 - why should I have to do this?
    I then tried to configure php again but got an error that I paste in from
    the debug.log. From this debug log you can see the configure options I gave for
    php as well as the error. It says "cannot find -lirc". Now I did put into
    /etc/ld.so.conf the line /usr/lib/gaim since that is where libirc.so is and ran
    ldconfig but it still complained. When I copied libirc.so into /usr/lib it then said there were
    lots of errors in that libirc.so. The only item in the configure options depending on lirc is
    the with-oci8.  Why does with-oci8 depend on lirc?
    I also tried the above on Red Hat AS 4.0 and got the same errors.
    Question #2 -- what do I do?
    Thank You
    Gail Lange
    Here is the debug.log in the case when libirc.so is just in /usr/lib/gaim:
    CONFIGURE: './configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--enable-track-vars'
    '--enable-inline-optimization' '--with-gd' '--with-zlib' '--enable-debug'
    '--with-oci8=instantclient,/usr/lib/instantclient10_1' '--enable-sigchild'
    CC: gcc
    CFLAGS: -I/usr/include -g -O2
    CPPFLAGS:
    CXX:
    CXXFLAGS:
    INCLUDES: -I/usr/include/libxml2 -I/home/gail/php/php-5.1.6/ext/date/lib
    -I/usr/lib/instantclient10_1/sdk/include
    LDFLAGS: -L/usr/lib -Wl,-rpath,/usr/lib/instantclient10_1 -L/usr/lib/instantclient10_1
    LIBS: -lpng -lz -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lxml2 -lz -lm -ldl -lm -lnsl
    -lirc -lclntsh -lxml2 -lz -lm
    DLIBS:
    SAPI: apache2handler
    PHP_RPATHS: /usr/lib/instantclient10_1
    uname -a: Linux localhost.localdomain 2.6.15-1.2054_FC5smp #1 SMP Tue Mar 14 16:05:46 EST 2006
    i686 i686 i386 GNU/Linux
    gcc -o conftest -I/usr/include -g -O2 -L/usr/lib -Wl,-rpath,/usr/lib/instantclient10_1
    -L/usr/lib/instantclient10_1 conftest.c -lpng -lz -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm
    -lxml2 -lz -lm -ldl -lm -lnsl -lirc -lclntsh -lxml2 -lz -lm 1>&5
    conftest.c: In function 'main':
    conftest.c:3: warning: incompatible implicit declaration of built-in function 'exit'
    /usr/bin/ld: cannot find -lirc
    collect2: ld returned 1 exit status
    Thanks

    To be perfectly honest, I'm not sure. Everything I could find on it had to do with IRC or some kind of remote control thing (for controlling audio/media players). Maybe if Ivan stops by he'll know what it means... he knows quite a lot about the inner workings of many of these libraries.
    http://us3.php.net/install.unix was the most useful info I could find.
    There's also this thread:
    Cannot find ld -lirc PHP Linux
    ~Jer

  • Oracle Instant Client 10.1.0.3

    Hi,
    I'm trying to install Oracle Instant Client on a FreeBSD 6.0 machine. The PORTS system of FreeBSD requires the version 10.1.0.3, but the version available for download is 10.1.0.4. Does anyone konw where to get 10.1.0.3 version?
    Thanx,
    Habosh

    Hi,
    Here is the link where you can find the ports : http://www.freshports.org/search.php?query=linux-oracle-instantclient-&search=go&num=10&stype=name&method=match&deleted=excludedeleted&start=1&casesensitivity=caseinsensitive
    One question :
    I'm trying to run sqlplus, but have a pb of version :
    (sh)$ sqlplus
    sqlplus: /lib/libc.so.6: version `GLIBC_2.3' not found (required by /compat/linux/usr/lib/oracle/10.2.0.1.20050713/client/lib/libsqlplus.so)
    sqlplus: /lib/libpthread.so.0: version `GLIBC_2.3.2' not found (required by /compat/linux/usr/lib/oracle/10.2.0.1.20050713/client/lib/libclntsh.so.10.1)
    sqlplus: /lib/libc.so.6: version `GLIBC_2.3.3' not found (required by /compat/linux/usr/lib/oracle/10.2.0.1.20050713/client/lib/libclntsh.so.10.1)
    sqlplus: /lib/libc.so.6: version `GLIBC_2.3' not found (required by /compat/linux/usr/lib/oracle/10.2.0.1.20050713/client/lib/libclntsh.so.10.1)
    sqlplus: /lib/libc.so.6: version `GLIBC_2.3' not found (required by /compat/linux/usr/lib/oracle/10.2.0.1.20050713/client/lib/libnnz10.so)
    I had the same problem when I tried to compile directly from the client.
    I can't find GLIBC_2.3.3 on FreeBSD 5.3.
    Do you know if it works with another version of FreeBSD ? or should I install an emulator (I tried red hat 8.8, but doesn't work)? I tried to compile glib2.3.3, but it hasn't been ported on FreeBSD.
    Anyway, I will try with redhat9.
    Thanks,
    Basha

  • Oracle Instant Client is a memory hog?

    Hi all,
    I am having (potentially) an issue that I need to confirm with folks out there. I am not a DBA - I have a decent understanding of SQL and have been exposed to several RDBMS's, but this is my first time developing in PHP specifically with Oracle in mind.
    First, my setup (note this is for development, not production; ultimately, the final deployed environment will be 2 high-end SPARC servers (one for web, one for db)):
    1. DEV: Webserver running Solaris 10, Apache 2.0.52 and PHP 5.1.2 and Oracle Instant Client v.10.1.0.3 (note all versions except PHP haven been dictated by the customer). PHP is compiled with apxs2, postgres, sqlite-utf8 and oracle support (hooked into instant client).
    2. DEV: DB server running Oracle 10g on Windows 2003. Using stock configuration.
    I have a PHP application using AdoDB for abstraction and Smarty for templating; also using Fusebox.
    The whole setup as described above works flawlessly. I notice that the apache process(es) usually sit between 20-25M given the LoadModule configuration in Apache, and the extensions being loaded in PHP. Whenever I make connection to postgres, or sqlite, the processes stay within the described memory usage patterns above (so 20-25M).
    However, whenever I attempt making a connection using the Oracle Instant Client (using either native OCI8 or adoDB calls, using both persistent and non-persistent connections), the Apache process jumps from a meager 20-25M to 85M+... I don't even have to do a select - just the very action of establishing the connection results in this jump in memory usage.
    What I need to know is - is this normal? Is it normal for the client to have this size of a footprint on memory? If so, I need to ensure that the final deployed environment is capable of handling these kinds of jumps. If this is NOT normal, well, heck folks, I need some friendly pointers.
    Any and all help would be greatly appreciated.
    Thanks,

    I emailed the OCI team and got this:
    'Basically, the data shared library, which is about 85MB, gets mapped to the process
    virtual address when it is initially loaded by dlopen(). However, only the pages needed
    by the application are actually mapped to the physical memory, and they get swapped
    out by OS unless re-used. The data shared library is loaded as a shareable read-only
    const data. Therefore, a process memory map should show that it is shared among all
    Apache processes.'
    Some linking quirks on various platforms were ironed out pretty early, but on Solaris, if
    you have metalink access, check out bug 4304233 .
    There is an Instant Client forum at Instant Client
    -- cj

  • Oracle Instant Client libraries wouldn't install

    I tried installing Oracle libraries (main file is called "oracle-instantclient-basic-10.2.0.4-1.i386", SDK and SQL according to the manual Oracle provides here: http://download.oracle.com/docs/cd/B1930601/install.102/e12121/insttask.htm#CIHEJFGF
    After files is unzipped, manual instructs to use "runInstaller" command out of the directory where files are placed but this command is not recognized which tells me that either command file is missing or command is spelled wrong in the manual.
    If anybody has successfully installed Oracle Instant Client on OS X 10.6 from the official Oracle download, please help! Thanks in advance.

    Ok - I ran an ugly hack (similar to what I did with Linux) and manually moved files to locations which Oracle considers default and which do not require environmental variables, as follows:
    When in the directory where Oracle client files were unzipped, run these commands:
    cp sdk/include/*.h /usr/include
    cp sqlplus /usr/bin
    cp lib /usr/lib
    Also, to be able to install OCI8 PHP module, following symbolic link will need to be created:
    A symbolic link will need to be created as follows:
    cd /usr/lib
    ln -s libclntsh.dylib.10.1 libclntsh.dylib
    I then installed oci8 for PHP and DBD::oracle for Perl and ran some test files, they work. However, if somebody knows why libraries didn't install with the command, as manual instructs, please answer! Thanks in advance!

Maybe you are looking for

  • Can't Clear Completed Tasks from Outlook Today

    Normally, on the Outlook (2003) Today screen, tasks that are marked completed are shown in grey strikeout until the next day when they fall off the screen. Only current and overdue tasks are shown.  When I mark a task completed on my Blackberry, the

  • Control of serial numbers in productions (parts and final product serials)

    Hi, We are starting using our production module in SBO 9.0 PL11 and it is all quite messy. We need to manufacture an item that has a serial number made of parts, some of which have serial numbers. Just imagine a car. The car will have its own serial

  • Help needed in creating file structure

    Hi friends, - <Validity>   <Validity Time="1">12102010</Validity>   </Validity> This is a node of an xml file which i need to use in my scenario.but i was stuck in creating data type for this node.how to create data type for this node? as at target s

  • Problem with Illustrator toolbars

    I just bought the CS4 Design Premium Student Version from my school. When I opened up illustrator, it says this: "The document 'Print.ai' contains elements that are managed by plug-ins that are not currently available. You can delete or expand these

  • Adobe InDesign CS6 stopped working

    Up until late last year I was able to export to EPUB format without problems. Later on, when attempting to export to EPUB, I began receiving the error "Adobe InDesign CS6 has stopped working".  Even after reinstalling InDesign, the error persists.  A