Instant Client speed issues?

We have a fairly large set of users that will be soon upgrading from version 8 client to hopefully 10g. I was looking at implementing the Instant Client, as that's much easier to script and deploy to multiple users. Our software development team is concerned that there will be a performance hit on the client side from not having a full version of the Oracle client installed. Some of the software can be database intense, but I don't see the real difference between full and instant if they're just making calls to the database. Has anybody noticed any noticeable speed or performance issues with the Instant Client that they don't get with the full client? Thank you.

Hi,
>>How about anybody that switched from full client to the instant client? Things seem to work the same?
There is no problem.
Instant Client allows you to run your applications without installing the standard Oracle client or having an ORACLE_HOME. OCI, OCCI, Pro*C, ODBC, and JDBC applications work without modification, while using significantly less disk space than before.
Here is a good article for you:
http://www.databasejournal.com/features/oracle/article.php/3371561
Cheers

Similar Messages

  • Interesting ftp client speed issue

    I've come across the poor ftp speeds on my home lan while the net.inet.tcp_sockthreshold = 0 instead of the normal 256. I had set it to 0 so I can force the send/recvspace mibs to 32768 for better internet operation and efficiency. I had no idea I would be sacrificing ftp speed on my lan. More detail: Lan is 100MBFD (verified), with sockthreshold =0, I get 1.8mb/sec on ftp transfers, with it set to the default of 256, the speed jumps to 8.8mb/sec. These speed ratings are produced at the end of the file transfer via the ftp client. I'm not sure if anyone else has seen this, I discovered it while trying to tweak some AFP/SMB copy speed settings.
    Power Mac G5 Dual 2Ghz/iBook G4 1.42Ghz   Mac OS X (10.4.6)   2.5 Gig, Rad 9800 Pro 256M

    No, I've never enabled that. I got samba tuned nicely with the SO_RCVBUF and SO_SNDBUF at 32768 (confirmed by tcpdump), but my ftp get is still pretty slow, I guess I'll stick to smb to transfer data.

  • Instant Client 10 Jar File Issue

    I'm following the instructions to install Instant Client 10, but the Jar files won't run on Windows.
    classes12 and ojdbc14 both give me "Failed to load Main-Class manifest attribute....", and when I check the manifest file, this info is in fact missing, along with the classpath.
    The instructions don't indicate anything about this. I'm wondering if I'm missing something here. I have the newest Java installed.

    What exactly are you trying to do? Install Client or execute classes?
    Once you instal your client it is so, if there were no problems on the installation there are no issues to solve.
    Which client did you install? On the Oracle Universal Installer there are several kinds of clients, regular and instant client.
    What do you need this client for?
    Once you have installed, I figure out you are trying to do some java programming, aren't you? How are you trying to use those classes?

  • Encoding issues with Instant Client and Win-1252 database

    Hi,
    I'm connecting to a Win-1252-encoded Oracle XE database from a Ruby on Rails application via ruby-oci8.
    NLS_CHARACTERSET WE8MSWIN1252
    NLS_NCHAR_CHARACTERSET AL16UTF16
    When the database and the application reside on the same physical server, the application retrieves the correct characters from the tables. But if the database resides on a different machine, then I use Oracle Instant Client; unfortunately the characters I get back from the database are then incorrect ('e' instead of 'é', 'a' instead of 'à', etc.).
    Is there some kind of setting (or another version of the Instant Client) that I can use to fix this encoding problem?
    Thanks,
    Chris.

    Hi,
    >>then I use Oracle Instant Client
    It's possible that maybe a NLS environment variables configuration problem ... For more information, I advise you to take a look at [url http://www.oracle.com/technology/tech/globalization/htdocs/nls_lang%20faq.htm] NLS_LANG FAQ
    Cheers
    Legatti

  • Failed to install php-oci8 with instant Client for linux 64

    Hello,
    I have a 64-bits Linux box with RHEL4, and PHP version has been upgraded from 4.3.9 to 5.1.6. I try to make the connection to remote oracle server.
    I download instantclient-basic-linuxppc-10.2.0.2-20060327.zip , and follow the instruction to
    install it.
    But when i try to install php-oci8*.rpm, no matter which i use:
    php-oci8-5.1.6-1.el5.i386.rpm or php-oci8-4.3.9-2.2.el4.i386.rpm
    The installation always failed due to dependencies errors with oracle instant client.
    I also tried with some other packages like: php-oci8-4.3.9-3.el4.x86_64.rpm
    All my tries gave me dependency errors.
    sometime like:
    error: Failed dependencies:
    libclntsh.so.10.1 is needed by php-oci8-5.1.6-1.el5.i386
    oracle-instantclient = 10.2.0.3 is needed by
    php-oci8-5.1.6-1.el5.i386And I cannt find the right RPM for oracle instant client for linux 64 bits box, and php-oci8 5.1.6 64 bits.
    I have been trying on this problem for more than one week, and so frustrated. I will appreciate if I can be guide on this issue.
    Thanks in advance!

    See my followup to your duplicate post in the PHP forum

  • Unable to install 64-bit Oracle ODBC Instant Client on Windows 2008 R2 machine.

    I am trying to upgrade the Oracle ODBC driver from the 32-bit version currently installed (ODBC Instant Client Release 10.1.0.5.0, April 2006) to a newer 64-bit version but have not been successful.  I have had success at uninstalling and reinstalling the existing 32-bit version package (release 10.1.0.5.0) however when I've tried to install the 64-bit ODBC Instant Client (Release 12.1, December 2012), I run the odbc_install.exe application inside the package.  it appears to run without issue/compliant, but then I do not see the 64-bit Oracle ODBC driver anywhere, either if I go via the traditional Administrator Tools --> ODBC Data Sources or if I go to the c:\windows\syswow64\odbcad32.exe route.  Further investigation into the ReadMe file (ODBC_IC_Readme_Win.html) reveals that you need the 3 DLLs oci.dll, oraociei11.dll and orannzsbb11.dll which the package does not come with. Where could I obtain the correct version of these DLLs or else where can I get an installation package which already contains them?
    Any help with this is greatly appreciated.  Thank you

    Welcome to the forums !
    Pl post this in the Instant Client forum - Instant Client
    HTH
    Srini

  • Windows 7 64bit speed issues

    Hi,
    Our company have been purchasing iMacs for the past 4-5 years and installing Windows XP without any problems.  Last year we started installing Windows 7 64 bit onto, the then current, leopard model without any issues.
    We have recently purchased a whole batch of i5 iMacs with lion installed. I have installed Windows 7 64 bit without any problems but have started noticing huge slowdown with what seems to be hard drive access o every single machine.  Even a single one we purchased when they first came out.
    Using Perfmon I cant see any stress on the CPU, GFX card or RAM but there seems to be something odd with the hard drive access.  I have stripped Windows 7 down to its bare minimum services removing Aero, themes, and all non essential services but still the speed issues occur.
    I have messed around with the pagefile size, indexing, etc, but nothing is having any impact.
    For example, when I save a simple spreadsheet the saving window appears in Windows 7 with the spinning circle for around 30 seconds.  This is a tiny file, why is it taking so long.  Its virtually instant if done on a Windows XP bootcamp machine or even in Windows 7 on an older Leopard iMac.
    There really isnt a great deal regarding this problem oin the internet but it has occurred on all the new i5 Lion iMacs we have.
    Does anyone have any other suggestions (serious ones ) that I could try?
    I am currently installing the 32 bit version to see if it is a driver issue.
    Cheers

    isn't apple now using propritary drive firmware in 2011 imac?
    I suspect 30 sec is drive delay spinup and is frequently happens with green drives, I have some and do this. swap for WD black or something.
    www.hardmac.com talks about imac drives

  • 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.

  • Query Takes more Time when i execute from the Instant client.

    Hi,
    Currently in our Env we have some Queries takes more time when we run from the Instant Client.
    System Details
    OS=Solaris 10 x86 64bit
    Oracle 10.2.0.4
    Client Side
    $ sqlplus trd_trd_ro/trd_trd_ro@prdba001/TRADE1
    SQL*Plus: Release 10.2.0.2.0 - Production on Mon Aug 9 16:26:25 2010
    Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Release 10.2.0.4.0 - Production
    SQL> set timing on
    SQL> select mod(lastinstmessagesequence, 1000000000) LastInstIDSeqNo from tibex_msgseqbyuseralias where useralias='2221';
    no rows selected
    Elapsed: 00:01:54.19
    SQL> Disconnected from Oracle Database 10g Release 10.2.0.4.0 - ProductionSame Query running on Server Side
    ^C130-oracle@prdba001 txt: sql
    Database: trd_trd_owner/trd_trd_owner@prdba001/TRADE1
    SQL*Plus: Release 10.2.0.4.0 - Production on Mon Aug 9 17:15:18 2010
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Release 10.2.0.4.0 - Production
    trd_trd_owner@TRADE1>  set timing on
    trd_trd_owner@TRADE1> select mod(lastinstmessagesequence, 1000000000) LastInstIDSeqNo from tibex_msgseqbyuseralias where useralias='2221';
    no rows selected
    Elapsed: 00:00:00.12
    trd_trd_owner@TRADE1> exitKindly help me what could be the Issues.

    Hi Charles,
    Thanks for your Quick response.I pulled the info.
    sys@TRADE1> SELECT  * FROM  TABLE(DBMS_XPLAN.DISPLAY_CURSOR('bpxr7axhxaqvy',NULL,'ALLSTATS LAST'));
    PLAN_TABLE_OUTPUT
    SQL_ID  bpxr7axhxaqvy, child number 0
    select /*+ GATHER_PLAN_STATISTICS */ mod(lastinstmessagesequence, :"SYS_B_0") LastInstIDSeqNo from
    tibex_msgseqbyuseralias where useralias=:"SYS_B_1"
    Plan hash value: 1955857846
    | Id  | Operation                       | Name                  | Starts | E-Rows | A-Rows |   A-Time   | Buffers |
    |   1 |  SORT GROUP BY NOSORT           |                       |      1 |     21 |      0 |00:00:00.06 |    6121 |
    |   2 |   VIEW                          |                       |      1 |     21 |      0 |00:00:00.06 |    6121 |
    |   3 |    UNION-ALL                    |                       |      1 |        |      0 |00:00:00.06 |    6121 |
    |   4 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.05 |    3073 |
    |*  5 |      TABLE ACCESS FULL          | TIBEX_QUOTE           |      1 |  30080 |      0 |00:00:00.05 |    3073 |
    |   6 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       3 |
    |   7 |      TABLE ACCESS BY INDEX ROWID| TIBEX_ORDER           |      1 |    971 |      0 |00:00:00.01 |       3 |
    |*  8 |       INDEX RANGE SCAN          | TIBEX_ORDER_IDX_OLT   |      1 |    971 |      0 |00:00:00.01 |       3 |
    |   9 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       3 |
    |* 10 |      TABLE ACCESS FULL          | TIBEX_TSTRADE         |      1 |      1 |      0 |00:00:00.01 |       3 |
    |  11 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       3 |
    |* 12 |      TABLE ACCESS FULL          | TIBEX_IOIREQUEST      |      1 |      1 |      0 |00:00:00.01 |       3 |
    |  13 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |     126 |
    |* 14 |      TABLE ACCESS FULL          | TIBEX_BESTEXREL       |      1 |      1 |      0 |00:00:00.01 |     126 |
    |  15 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |    2862 |
    |* 16 |      INDEX FAST FULL SCAN       | SYS_C0058325          |      1 |    339 |      0 |00:00:00.01 |    2862 |
    |  17 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |      31 |
    |* 18 |      TABLE ACCESS FULL          | TIBEX_EDPPULLORDERS   |      1 |      1 |      0 |00:00:00.01 |      31 |
    |  19 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       1 |
    |* 20 |      INDEX RANGE SCAN           | SYS_C0058803          |      1 |      1 |      0 |00:00:00.01 |       1 |
    |  21 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       1 |
    |* 22 |      INDEX RANGE SCAN           | SYS_C0057785          |      1 |      1 |      0 |00:00:00.01 |       1 |
    |  23 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       1 |
    |* 24 |      INDEX RANGE SCAN           | SYS_C0057827          |      1 |      1 |      0 |00:00:00.01 |       1 |
    |  25 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       3 |
    |* 26 |      TABLE ACCESS FULL          | TIBEX_DELETEADMIN     |      1 |      1 |      0 |00:00:00.01 |       3 |
    |  27 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       1 |
    |* 28 |      INDEX RANGE SCAN           | SYS_C0058148          |      1 |      1 |      0 |00:00:00.01 |       1 |
    |  29 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       1 |
    |* 30 |      INDEX RANGE SCAN           | SYS_C0058264          |      1 |      1 |      0 |00:00:00.01 |       1 |
    |  31 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       1 |
    |* 32 |      INDEX RANGE SCAN           | SYS_C0058516          |      1 |      1 |      0 |00:00:00.01 |       1 |
    |  33 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       1 |
    |* 34 |      INDEX RANGE SCAN           | SYS_C0058561          |      1 |      1 |      0 |00:00:00.01 |       1 |
    |  35 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       1 |
    |* 36 |      INDEX RANGE SCAN           | SYS_C0058783          |      1 |      1 |      0 |00:00:00.01 |       1 |
    |  37 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       1 |
    |* 38 |      INDEX RANGE SCAN           | SYS_C0058977          |      1 |      1 |      0 |00:00:00.01 |       1 |
    |  39 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       1 |
    |* 40 |      INDEX RANGE SCAN           | SYS_C0058859          |      1 |      1 |      0 |00:00:00.01 |       1 |
    |  41 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       1 |
    |* 42 |      INDEX RANGE SCAN           | SYS_C0059197          |      1 |      1 |      0 |00:00:00.01 |       1 |
    |  43 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       3 |
    |* 44 |      TABLE ACCESS FULL          | TIBEX_CANCELTRDADMIN  |      1 |      1 |      0 |00:00:00.01 |       3 |
    |  45 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       3 |
    |* 46 |      TABLE ACCESS FULL          | TIBEX_BULKCANCELADMIN |      1 |      1 |      0 |00:00:00.01 |       3 |
    Predicate Information (identified by operation id):
    PLAN_TABLE_OUTPUT
       5 - filter("LASTINSTUSERALIAS"=:SYS_B_1)
       8 - access("LASTINSTUSERALIAS"=:SYS_B_1)
      10 - filter(("LASTINSTUSERALIAS" IS NOT NULL AND "LASTINSTUSERALIAS"=:SYS_B_1))
      12 - filter(("LASTINSTUSERALIAS" IS NOT NULL AND "LASTINSTUSERALIAS"=:SYS_B_1))
      14 - filter(("LASTINSTUSERALIAS" IS NOT NULL AND "LASTINSTUSERALIAS"=:SYS_B_1))
      16 - filter("USERALIAS"=:SYS_B_1)
      18 - filter("USERALIAS"=:SYS_B_1)
      20 - access("USERALIAS"=:SYS_B_1)
      22 - access("USERALIAS"=:SYS_B_1)
      24 - access("USERALIAS"=:SYS_B_1)
      26 - filter(("USERALIAS" IS NOT NULL AND "USERALIAS"=:SYS_B_1))
      28 - access("USERALIAS"=:SYS_B_1)
      30 - access("USERALIAS"=:SYS_B_1)
      32 - access("USERALIAS"=:SYS_B_1)
      34 - access("USERALIAS"=:SYS_B_1)
      36 - access("USERALIAS"=:SYS_B_1)
      38 - access("USERALIAS"=:SYS_B_1)
      40 - access("USERALIAS"=:SYS_B_1)
      42 - access("USERALIAS"=:SYS_B_1)
      44 - filter("USERALIAS"=:SYS_B_1)
      46 - filter("USERALIAS"=:SYS_B_1)
    SQL_ID  bpxr7axhxaqvy, child number 1
    select /*+ GATHER_PLAN_STATISTICS */ mod(lastinstmessagesequence, :"SYS_B_0") LastInstIDSeqNo from
    tibex_msgseqbyuseralias where useralias=:"SYS_B_1"
    Plan hash value: 1955857846
    Plan hash value: 1955857846
    | Id  | Operation                       | Name                  | Starts | E-Rows | A-Rows |   A-Time   | Buffers |
    |   1 |  SORT GROUP BY NOSORT           |                       |      1 |     21 |      0 |00:00:00.12 |    8545 |
    |   2 |   VIEW                          |                       |      1 |     21 |      0 |00:00:00.12 |    8545 |
    |   3 |    UNION-ALL                    |                       |      1 |        |      0 |00:00:00.12 |    8545 |
    |   4 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.10 |    5496 |
    |*  5 |      TABLE ACCESS FULL          | TIBEX_QUOTE           |      1 |  21056 |      0 |00:00:00.10 |    5496 |
    |   6 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       4 |
    |   7 |      TABLE ACCESS BY INDEX ROWID| TIBEX_ORDER           |      1 |    660 |      0 |00:00:00.01 |       4 |
    |*  8 |       INDEX RANGE SCAN          | TIBEX_ORDER_IDX_OLT   |      1 |    660 |      0 |00:00:00.01 |       4 |
    |   9 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       3 |
    |* 10 |      TABLE ACCESS FULL          | TIBEX_TSTRADE         |      1 |      1 |      0 |00:00:00.01 |       3 |
    |  11 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       3 |
    |* 12 |      TABLE ACCESS FULL          | TIBEX_IOIREQUEST      |      1 |      1 |      0 |00:00:00.01 |       3 |
    |  13 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |     126 |
    |* 14 |      TABLE ACCESS FULL          | TIBEX_BESTEXREL       |      1 |      1 |      0 |00:00:00.01 |     126 |
    |  15 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.02 |    2862 |
    |* 16 |      INDEX FAST FULL SCAN       | SYS_C0058325          |      1 |    339 |      0 |00:00:00.02 |    2862 |
    |  17 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |      31 |
    |* 18 |      TABLE ACCESS FULL          | TIBEX_EDPPULLORDERS   |      1 |      1 |      0 |00:00:00.01 |      31 |
    |  19 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       1 |
    |* 20 |      INDEX RANGE SCAN           | SYS_C0058803          |      1 |      1 |      0 |00:00:00.01 |       1 |
    |  21 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       1 |
    |* 22 |      INDEX RANGE SCAN           | SYS_C0057785          |      1 |      1 |      0 |00:00:00.01 |       1 |
    |  23 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       1 |
    |* 24 |      INDEX RANGE SCAN           | SYS_C0057827          |      1 |      1 |      0 |00:00:00.01 |       1 |
    |  25 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       3 |
    |* 26 |      TABLE ACCESS FULL          | TIBEX_DELETEADMIN     |      1 |      1 |      0 |00:00:00.01 |       3 |
    |  27 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       1 |
    |* 28 |      INDEX RANGE SCAN           | SYS_C0058148          |      1 |      1 |      0 |00:00:00.01 |       1 |
    |  29 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       1 |
    PLAN_TABLE_OUTPUT
    |* 30 |      INDEX RANGE SCAN           | SYS_C0058264          |      1 |      1 |      0 |00:00:00.01 |       1 |
    |  31 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       1 |
    |* 32 |      INDEX RANGE SCAN           | SYS_C0058516          |      1 |      1 |      0 |00:00:00.01 |       1 |
    |  33 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       1 |
    |* 34 |      INDEX RANGE SCAN           | SYS_C0058561          |      1 |      1 |      0 |00:00:00.01 |       1 |
    |  35 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       1 |
    |* 36 |      INDEX RANGE SCAN           | SYS_C0058783          |      1 |      1 |      0 |00:00:00.01 |       1 |
    |  37 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       1 |
    |* 38 |      INDEX RANGE SCAN           | SYS_C0058977          |      1 |      1 |      0 |00:00:00.01 |       1 |
    |  39 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       1 |
    |* 40 |      INDEX RANGE SCAN           | SYS_C0058859          |      1 |      1 |      0 |00:00:00.01 |       1 |
    |  41 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       1 |
    |* 42 |      INDEX RANGE SCAN           | SYS_C0059197          |      1 |      1 |      0 |00:00:00.01 |       1 |
    |  43 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       3 |
    |* 44 |      TABLE ACCESS FULL          | TIBEX_CANCELTRDADMIN  |      1 |      1 |      0 |00:00:00.01 |       3 |
    |  45 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       3 |
    |* 46 |      TABLE ACCESS FULL          | TIBEX_BULKCANCELADMIN |      1 |      1 |      0 |00:00:00.01 |       3 |
    Predicate Information (identified by operation id):
       5 - filter("LASTINSTUSERALIAS"=:SYS_B_1)
       8 - access("LASTINSTUSERALIAS"=:SYS_B_1)
      10 - filter(("LASTINSTUSERALIAS" IS NOT NULL AND "LASTINSTUSERALIAS"=:SYS_B_1))
      12 - filter(("LASTINSTUSERALIAS" IS NOT NULL AND "LASTINSTUSERALIAS"=:SYS_B_1))
      14 - filter(("LASTINSTUSERALIAS" IS NOT NULL AND "LASTINSTUSERALIAS"=:SYS_B_1))
      16 - filter("USERALIAS"=:SYS_B_1)
      18 - filter("USERALIAS"=:SYS_B_1)
      20 - access("USERALIAS"=:SYS_B_1)
      22 - access("USERALIAS"=:SYS_B_1)
      24 - access("USERALIAS"=:SYS_B_1)
      26 - filter(("USERALIAS" IS NOT NULL AND "USERALIAS"=:SYS_B_1))
      28 - access("USERALIAS"=:SYS_B_1)
      30 - access("USERALIAS"=:SYS_B_1)
      32 - access("USERALIAS"=:SYS_B_1)
      34 - access("USERALIAS"=:SYS_B_1)
      36 - access("USERALIAS"=:SYS_B_1)
      38 - access("USERALIAS"=:SYS_B_1)
      40 - access("USERALIAS"=:SYS_B_1)
      42 - access("USERALIAS"=:SYS_B_1)
      44 - filter("USERALIAS"=:SYS_B_1)
      46 - filter("USERALIAS"=:SYS_B_1)
    SQL_ID  bpxr7axhxaqvy, child number 2
    select /*+ GATHER_PLAN_STATISTICS */ mod(lastinstmessagesequence, :"SYS_B_0") LastInstIDSeqNo from
    tibex_msgseqbyuseralias where useralias=:"SYS_B_1"
    Plan hash value: 1955857846
    | Id  | Operation                       | Name                  | Starts | E-Rows | A-Rows |   A-Time   | Buffers | Reads  |
    |   1 |  SORT GROUP BY NOSORT           |                       |      1 |     21 |      1 |00:00:00.13 |    8476 |      3 |
    |   2 |   VIEW                          |                       |      1 |     21 |      1 |00:00:00.13 |    8476 |      3 |
    |   3 |    UNION-ALL                    |                       |      1 |        |      1 |00:00:00.13 |    8476 |      3 |
    |   4 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.10 |    5283 |      0 |
    |*  5 |      TABLE ACCESS FULL          | TIBEX_QUOTE           |      1 |  21056 |      0 |00:00:00.10 |    5283 |      0 |
    |   6 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      1 |00:00:00.01 |     148 |      3 |
    |   7 |      TABLE ACCESS BY INDEX ROWID| TIBEX_ORDER           |      1 |    660 |    150 |00:00:00.01 |     148 |      3 |
    PLAN_TABLE_OUTPUT
    |*  8 |       INDEX RANGE SCAN          | TIBEX_ORDER_IDX_OLT   |      1 |    660 |    150 |00:00:00.01 |       5 |      0 |
    |   9 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       3 |      0 |
    |* 10 |      TABLE ACCESS FULL          | TIBEX_TSTRADE         |      1 |      1 |      0 |00:00:00.01 |       3 |      0 |
    |  11 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       3 |      0 |
    |* 12 |      TABLE ACCESS FULL          | TIBEX_IOIREQUEST      |      1 |      1 |      0 |00:00:00.01 |       3 |      0 |
    |  13 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |     126 |      0 |
    |* 14 |      TABLE ACCESS FULL          | TIBEX_BESTEXREL       |      1 |      1 |      0 |00:00:00.01 |     126 |      0 |
    |  15 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.02 |    2862 |      0 |
    |* 16 |      INDEX FAST FULL SCAN       | SYS_C0058325          |      1 |    339 |      0 |00:00:00.02 |    2862 |      0 |
    |  17 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |      31 |      0 |
    |* 18 |      TABLE ACCESS FULL          | TIBEX_EDPPULLORDERS   |      1 |      1 |      0 |00:00:00.01 |      31 |      0 |
    |  19 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       1 |      0 |
    |* 20 |      INDEX RANGE SCAN           | SYS_C0058803          |      1 |      1 |      0 |00:00:00.01 |       1 |      0 |
    |  21 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       1 |      0 |
    |* 22 |      INDEX RANGE SCAN           | SYS_C0057785          |      1 |      1 |      0 |00:00:00.01 |       1 |      0 |
    |  23 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       1 |      0 |
    |* 24 |      INDEX RANGE SCAN           | SYS_C0057827          |      1 |      1 |      0 |00:00:00.01 |       1 |      0 |
    |  25 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       3 |      0 |
    |* 26 |      TABLE ACCESS FULL          | TIBEX_DELETEADMIN     |      1 |      1 |      0 |00:00:00.01 |       3 |      0 |
    |  27 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       1 |      0 |
    |* 28 |      INDEX RANGE SCAN           | SYS_C0058148          |      1 |      1 |      0 |00:00:00.01 |       1 |      0 |
    |  29 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       1 |      0 |
    |* 30 |      INDEX RANGE SCAN           | SYS_C0058264          |      1 |      1 |      0 |00:00:00.01 |       1 |      0 |
    |  31 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       1 |      0 |
    |* 32 |      INDEX RANGE SCAN           | SYS_C0058516          |      1 |      1 |      0 |00:00:00.01 |       1 |      0 |
    |  33 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       1 |      0 |
    |* 34 |      INDEX RANGE SCAN           | SYS_C0058561          |      1 |      1 |      0 |00:00:00.01 |       1 |      0 |
    |  35 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       1 |      0 |
    |* 36 |      INDEX RANGE SCAN           | SYS_C0058783          |      1 |      1 |      0 |00:00:00.01 |       1 |      0 |
    |  37 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       1 |      0 |
    |* 38 |      INDEX RANGE SCAN           | SYS_C0058977          |      1 |      1 |      0 |00:00:00.01 |       1 |      0 |
    |  39 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       1 |      0 |
    |* 40 |      INDEX RANGE SCAN           | SYS_C0058859          |      1 |      1 |      0 |00:00:00.01 |       1 |      0 |
    |  41 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       1 |      0 |
    |* 42 |      INDEX RANGE SCAN           | SYS_C0059197          |      1 |      1 |      0 |00:00:00.01 |       1 |      0 |
    |  43 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       3 |      0 |
    |* 44 |      TABLE ACCESS FULL          | TIBEX_CANCELTRDADMIN  |      1 |      1 |      0 |00:00:00.01 |       3 |      0 |
    |  45 |     SORT GROUP BY NOSORT        |                       |      1 |      1 |      0 |00:00:00.01 |       3 |      0 |
    |* 46 |      TABLE ACCESS FULL          | TIBEX_BULKCANCELADMIN |      1 |      1 |      0 |00:00:00.01 |       3 |      0 |
    Predicate Information (identified by operation id):
       5 - filter("LASTINSTUSERALIAS"=:SYS_B_1)
       8 - access("LASTINSTUSERALIAS"=:SYS_B_1)
      10 - filter(("LASTINSTUSERALIAS" IS NOT NULL AND "LASTINSTUSERALIAS"=:SYS_B_1))
      12 - filter(("LASTINSTUSERALIAS" IS NOT NULL AND "LASTINSTUSERALIAS"=:SYS_B_1))
      14 - filter(("LASTINSTUSERALIAS" IS NOT NULL AND "LASTINSTUSERALIAS"=:SYS_B_1))
      16 - filter("USERALIAS"=:SYS_B_1)
      18 - filter("USERALIAS"=:SYS_B_1)
      20 - access("USERALIAS"=:SYS_B_1)
      22 - access("USERALIAS"=:SYS_B_1)
      24 - access("USERALIAS"=:SYS_B_1)
      26 - filter(("USERALIAS" IS NOT NULL AND "USERALIAS"=:SYS_B_1))
      28 - access("USERALIAS"=:SYS_B_1)
      30 - access("USERALIAS"=:SYS_B_1)
      32 - access("USERALIAS"=:SYS_B_1)
      34 - access("USERALIAS"=:SYS_B_1)
      36 - access("USERALIAS"=:SYS_B_1)
      38 - access("USERALIAS"=:SYS_B_1)
    PLAN_TABLE_OUTPUT
      40 - access("USERALIAS"=:SYS_B_1)
      42 - access("USERALIAS"=:SYS_B_1)
      44 - filter("USERALIAS"=:SYS_B_1)
      46 - filter("USERALIAS"=:SYS_B_1)
    249 rows selected.

  • Oraclle 11g instant client x64 doesn't  work in windows 7 x64

    First of all I've read the software requirements in the installation guides for 11g instant client x64 and no support for Windows 7 is mentioned.. I'm not sure if this is the case any how here is the details of the problem:
    I downloaded instant client (basic) and (sqlplus) and unzipped them on drive E, afterwards I created tnsnames.ora file with the following:
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP) (HOST = IGGY) (PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = ORCL)
    and saved it in the instant client directory, afterwards I included the instant client directory in the user variable PATH value, and created system variable TNS_ADMIN and added the location of tnsnames.ora in the value.
    Now the problem starts when I open MS-DOS and type: sqlplus system @ORCL, It then prompts for the password and when I try to enter anything the cursor doesn't move unless I press enter and the result is that I get the following error:
    ORA-12154: TNS: COULD NOT RESOLVE THE CONNECT IDENTIFIER SPECIFIED
    Any idea what the reason of this problem is?

    Hello again,
    I was able to reproduce ORA-12154 and the error raised beacause my DUMMY-HOST was not reachable. Using the correct hostname/IP address solved the issue. Can you check if you are able to ping and to telnet your hostname (IGGY).
    Regards,
    David
    # Reproducing issue
    E:\instantclient_11_1>sqlplus system/manager@//DUMMY-HOST:1521/PROD
    SQL*Plus: Release 11.1.0.7.0 - Production on Fri Nov 27 10:37:54 2009
    Copyright (c) 1982, 2008, Oracle. All rights reserved.
    ERROR:
    ORA-12154: TNS:could not resolve the connect identifier specified
    Enter user-name:
    # Hostname is not pingable
    E:\instantclient_11_1>ping DUMMY-HOST
    Ping request could not find host DUMMY-HOST. Please check the name and try again.
    # Pinging host which is alive
    E:\instantclient_11_1>ping stlin3p
    Pinging stlin3p [192.168.1.123] with 32 bytes of data:
    Reply from 192.168.1.123: bytes=32 time<1ms TTL=64
    Reply from 192.168.1.123: bytes=32 time<1ms TTL=64
    Reply from 192.168.1.123: bytes=32 time<1ms TTL=64
    Reply from 192.168.1.123: bytes=32 time<1ms TTL=64
    Ping statistics for 192.168.1.123:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms
    # Connecting to port 1521 at DUMMY-HOST fails as well
    E:\instantclient_11_1>telnet DUMMY-HOST 1521
    Connecting To DUMMY-HOST...Could not open connection to the host, on port 1521:
    Connect failed
    # Connecting to port 1521 at stlin3p is successful
    E:\instantclient_11_1>telnet stlin3p 1521
    ... connected ...
    # Content of tnsnames.ora
    PROD =
    DESCRIPTION =
    ADDRESS = (PROTOCOL = TCP) (HOST = stlin3p) (PORT = 1521)
    CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = PROD)
    # Connecting to DB server using TNS methods is successful
    E:\instantclient_11_1>sqlplus system/manager@PROD
    SQL*Plus: Release 11.1.0.7.0 - Production on Fri Nov 27 10:36:40 2009
    Copyright (c) 1982, 2008, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Release 10.2.0.4.0 - 64bit Production
    SQL> exit
    Disconnected from Oracle Database 10g Release 10.2.0.4.0 - 64bit Production
    # Connecting to DB server using EZCONNECT is also successful
    E:\instantclient_11_1>sqlplus system/manager@//stlin3p:1521/PROD
    SQL*Plus: Release 11.1.0.7.0 - Production on Fri Nov 27 10:38:21 2009
    Copyright (c) 1982, 2008, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Release 10.2.0.4.0 - 64bit Production
    SQL> exit
    Disconnected from Oracle Database 10g Release 10.2.0.4.0 - 64bit Production

  • Oracle instant Client and unixODBC for Linux has Error

    Hi experts,
    I have two Redhat EL 5. On the first Rehat(xxx.xxx.xxx.121 --> called Redhat1) I have installed Oracle 10g database server. On the second Redhat(xxx.xxx.xxx.123 --> called Redhat2) I want to connect to Oracle database server on xxx.xxx.xxx.121 via ODBC. But it does not work. Pls help me!
    I have done steps as following:
    Login to Redhat2 as root and type commands:
    1)Install Instant Client + sqlplus
    # rpm -ivh oracle-instantclient-basic-10.2.0.4-1.i386.rpm
    # rpm -ivh oracle-instantclient-sqlplus-10.2.0.4-1.i386.rpm
    2)Setting environment variable
    # LD_LIBRARY_PATH=/usr/lib/oracle/10.2.0.4/client/lib:${LD_LIBRARY_PATH}; export LD_LIBRARY_PATH
    # SQLPATH=/usr/lib/oracle/10.2.0.4/client/lib:${SQLPATH}; export SQLPATH
    3)Testing connection to Redhat1(Oracle DB server) using sqlplus
    # sqlplus abc/[email protected]:1521/lab2
    Connected.
    5)Begin to install unixODBC
    # rpm -ivh oracle-instantclient-odbc-10.2.0.4-1.i386.rpm
    # rpm -ivh unixODBC-2.2.11-7.1.i386.rpm
    # rpm -ivh unixODBC-devel-2.2.11-7.1.i386.rpm
    # rpm -ivh unixODBC-kde-2.2.11-7.1.i386.rpm
    6)After installation above packages I check for existing of odbc.ini and odbcinst.ini in /etc --> ok
    # ls /etc | grep odbc
    odbc.ini
    odbcinst.ini
    7) Tar unixODBC-2.2.14-linux-x86-32.tar.gz and copy file to /usr/local/bin, /usr/local/include, /usr/local/lib
    # tar -xzf unixODBC-2.2.14-linux-x86-32.tar.gz
    # ls /usr/local/bin/
    dltest isql iusql odbc_config odbcinst
    # ls /usr/local/include
    autotest.h odbcinstext.h odbcinst.h sqlext.h sql.h sqltypes.h sqlucode.h unixodbc_conf.h uodbc_extras.h uodbc_stats.h
    # ls /usr/local/lib
    libboundparam.la libgtrtst.la libodbccr.la libodbcinst.la libodbc.la
    libboundparam.so libgtrtst.so libodbccr.so libodbcinst.so libodbc.so
    libboundparam.so.1 libgtrtst.so.1 libodbccr.so.1 libodbcinst.so.1 libodbc.so.1
    libboundparam.so.1.0.0 libgtrtst.so.1.0.0 libodbccr.so.1.0.0 libodbcinst.so.1.0.0 libodbc.so.1.0.0
    # NLS_LANG=AMERICAN_AMERICA.UTF8; export NLS_LANG
    # TNS_ADMIN=/root; export TNS_ADMIN
    # ODBCINI=/etc/odbc.ini; export ODBCINI
    7)Retest sqlplus to Redhad1(Oracle database server) with local tnsname
    # sqlplus vonphoto/vonphoto@lab2
    SQL*Plus: Release 10.2.0.4.0 - Production on Sat Mar 27 03:20:55 2010
    Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    8) Edit odbc.ini and odbcinst.ini
    ---odbcinst.ini
    # Included in the unixODBC package
    [Oracle 10g ODBC driver]
    Description = Oracle ODBC driver for Oracle 10g
    Driver = /usr/lib/oracle/10.2.0.4/client/lib/libsqora.so.10.1
    Setup =
    FileUsage =
    CPTimeout =
    CPReuse =
    ---odbc.ini
    [ora_dns]
    Driver = Oracle 10g ODBC driver
    DSN = ora_dns
    ServerName = xxx.xxx.xxx.121
    UserID = vonphoto
    Application Attributes = T
    Attributes = W
    BatchAutocommitMode = IfAllSuccessful
    BindAsFLOAT = F
    CloseCursor = F
    DisableDPM = F
    DisableMTS = T
    EXECSchemaOpt =
    EXECSyntax = T
    Failover = T
    FailoverDelay = 10
    FailoverRetryCount = 10
    FetchBufferSize = 64000
    ForceWCHAR = F
    Lobs = T
    Longs = T
    MetadataIdDefault = F
    QueryTimeout = T
    ResultSets = T
    SQLGetData extensions = F
    Translation DLL =
    Translation Option = 0
    DisableRULEHint = T
    TraceFile = /backup/sql.log
    Trace = Yes
    9)Testing the driver and the data source
    # odbcinst -q -d
    [Oracle 10g ODBC driver]
    # odbcinst -q -s
    [ora_dns]
    10) Test connection via ODBC from Redhat2(xxx.xxx.xxx.123) to Redhat1(xxx.xxx.xxx.121)
    # isql -v ora_dns
    isql: error while loading shared libraries: libreadline.so.3: cannot open shared object file: No such file or directory
    I have spent 4 days to search on the internet. But it still error.
    Pls help me.

    Apologies - thought it was a database to database connection that you were trying to create.
    isql: error while loading shared libraries: libreadline.so.3: cannot open shared object file: No such file or directoryThe readline library is in package readline-4.3-13 on RHEL4 and in readline-5.1-1.1 for RHEL5 on my servers (minor version number are of course dependent on the kernel version used).
    This is also not an ODBC or Oracle issue. It seems that isql is using rlwrap or similar - this requires the readline library. And possibly LD_LIBRARY_PATH to be set too.

  • Php 5.1.2 doesn't seem to recognize the --with-oci8-instant-client option

    I just tried configuring php 5.1.2 with the --with-oci8-instant-client option and could never get phpinfo() to show the oci8 section...
    Finally went back and tried php 5.1.1 and it worked.
    If anyone else could verify this behavior, maybe the PHP folks should be notified??

    Discovered the issue:
    the configure script changed the format of the config option
    in php 5.1.1:
    --with-oci8[=DIR] Include Oracle (OCI8) support using an ORACLE_HOME
    install. The default DIR is ORACLE_HOME
    --with-oci8-instant-client[=DIR]
    Include Oracle (OCI8) support using
    Oracle Instant Client. DIR is the directory with the
    Instant Client libraries. On Linux it will default to
    /usr/lib/oracle/<most_recent_version>/client/lib
    Other platforms will need to have it explicitly specified
    HOWEVER, in php 5.1.2:
    --with-oci8[=DIR] Include Oracle (OCI8) support.
    The default DIR is ORACLE_HOME.
    Use --with-oci8=instantclient,/path/to/oic/lib
    to use Oracle Instant Client installation
    This explains why the --with-oci8-instant-client option is ignored.  The new format is:
    --with-oci8=instantclient,/path/to/libs                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • TNS_ADMIN (path to tnsnames.ora) using Instant Client IGNORED

    Hi,
    I developed a simple utility which uses OCCI LIB from 10g release. I'm deploying it with Oracle Instant Client lite libraries.
    Everything works fine when tnsnames.ora is present in the same dir. When I move it somewhere else and set TNS_ADMIN to that directory, it doesn't work anymore:
    C:\uplob>set TNS_ADMIN=c:\tns;
    C:\uplob>echo %tns_admin%
    c:\tns;
    C:\uplob>uplob u/p@xe 15 input.dat
    Exception:12154 ORA-12154: TNS:could not resolve the connect identifier specif
    ied
    This seems very simple, but I still cannot determine why TNS_ADMIN is not being taken into account.
    Thank you for any help with this issue,
    david

    I think for Windows ,
    You may have to set this in MY-COMPUTER-->Advanced-Env-Variables
    and reboot to take effect.
    rgds

  • Problem with Instant Client 10.2 with ODBC and Studio 6.0

    Has anyone else had the issue of not being able to make a second connection after the first connection has been closed and the free HENV is called via the object distructor? What actually fails is the second time thru the SQLDriverConnect call returns -1. If the connection object is a global but close is still called it will work. So this leads me to believe the problem might be from the SQLFreeEnv call in the distructor.
    If I run test using the 10.1 Instant cleint it works fine. I have included some code that I use to test with below.
    I am using:
    XP Pro sp2
    Visual Studio 6.0 sp6
    Instant Client 10.2
    MDAC 3.51
    Oracle Server 10g
    Thank you for anyone suggesting advice, help, direction....
    #include "stdafx.h"
    #include <afxdb.h>          
    #include "DriverTest.h"
    #include <odbcss.h>
    #ifdef _DEBUG
    #define new DEBUG_NEW
    #undef THIS_FILE
    static char THIS_FILE[] = __FILE__;
    #endif
    static char CONN_STRING[] = "DSN=TMTest2;UID=TMMain;PWD=TMMain1;";
    CWinApp theApp;
    using namespace std;
    CDatabase cdGlobalTMMainDB;
    BOOL TestOnStack();
    BOOL TestGlobal();
    int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])
         int nRetCode = 0;
         // initialize MFC and print and error on failure
         if (!AfxWinInit(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), 0))
              // TODO: change error code to suit your needs
              cerr << _T("Fatal Error: MFC initialization failed") << endl;
              nRetCode = 1;
         else
              // TODO: code your application's behavior here.
              cout << "---------------------- Testing connection as global ------------------------" << endl;
              TestGlobal();
              TestGlobal();
              cout << endl << "---------------------- Testing connection on stack -------------------------" << endl;
              TestOnStack();
              TestOnStack();
              cout << endl << "---------------------- Testing connection as global(again) -----------------" << endl;
              TestGlobal();
              TestGlobal();
         return nRetCode;
    BOOL TestOnStack()
         CString sMessage;
         BOOL bOkay = false;
         try
              CDatabase cdStackTMMainDB;
              // try open connection
              cout << "Attempt open on stack... " ;
         bOkay = cdStackTMMainDB.OpenEx( CONN_STRING, CDatabase::noOdbcDialog );
              // close connection
              cdStackTMMainDB.Close();
              cout << "Successful" << endl;
         catch( CDBException *pX )
              CString cszTheStr;
              printf("FAILED - CDBException has occurred %s\n", pX->m_strError );
              pX->Delete();
         catch( CMemoryException *pX )
              printf("FAILED - CMemoryException has occurred\n" );
              pX->Delete();
         catch( ... )
              printf("FAILED - Other exception has occurred.\n" );
         // return results
         return( bOkay );
    BOOL TestGlobal()
         CString sMessage;
         BOOL bOkay = false;
         try
              // try open connection
              cout << "Attempt open as global... " ;
         bOkay = cdGlobalTMMainDB.OpenEx( CONN_STRING, CDatabase::noOdbcDialog );
              // close connection
              cdGlobalTMMainDB.Close();
              cout << "Successful" << endl;
         catch( CDBException *pX )
              CString cszTheStr;
              printf("FAILED - CDBException has occurred %s\n", pX->m_strError );
              pX->Delete();
         catch( CMemoryException *pX )
              printf("FAILED - CMemoryException has occurred\n" );
              pX->Delete();
         catch( ... )
              printf("FAILED - Other exception has occurred.\n" );
         // return results
         return( bOkay );
    }

    For what it is worth, I am having a similar problem with an application I support. When I upgraded from 10.2.0.2 to 10.2.0.3 to fix a performance problem, we now have this connection problem. If I can not get a good solution for the InstantClient I will have to start using the Full 10.2.0.3 Client and I am not looking forward to deploying that.
    Steve Hicklin
    USA

  • 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

Maybe you are looking for

  • How do you watch a Final cut pro movie on TV

    Hi i'm new to FCP I have just put together a holiday movie using my Mac book pro and FCP ver. 10.1.3 using both stills and movie clips i'm struggling with the following can anyone help I'm trying to save the movie on my portable Toshiba hard drive wi

  • P67A-c43: Boot Screen / Status Codes / 35-40 sec hang

    I have a P67A-C43 motherboard.  Everything's working fine, but when I boot, I get a black screen with a white underscore cursor blinking in the upper left and a code in the lower right of B4.  It will stay that way for about 35 seconds, then the code

  • Date and Time since 1900 Jan 1st

    I have a cell with the number of days since Jan 1, 1900. How would I display or convert this to a date and time. 3599.4495424 to any date and time format. Thanks

  • Color problem printing from iBook G4

    having problems printing photos from an iBook G4 (10.3.9). The colors come out a bit over-saturated and muddy. The same photos printed from my G5 Quad (10.4.6) come out looking fine. I have used the iBook with a Canon ip6600 and ip6000 pixma photo pr

  • Newbie Action Script Help

    Hello List. This is my first try at Flash. I tried the drag and drop demo at http://monkeyflash.com/tutorials/flash-drag-and-drop/. It works well allowing me to drag an item and have it register when it is dropped on the correct target. I want to mod