Oracle instant client & unixODBC did not work on Fedora 4

Dear experts,
Please try to fix the following problem.
I want to connect to oracle 10g on windows XP from client that runs Fedora 4 using ODBC.
*1.     I installed oracle instant client on Fedora:*
•     oracle-instantclient11.2-basic-11.2.0.1.0-1.i386.rpm
•     oracle-instantclient11.2-devel-11.2.0.1.0-1.i386.rpm
•     oracle-instantclient11.2-odbc-11.2.0.1.0-1.i386.rpm
•     oracle-instantclient11.2-sqlplus-11.2.0.1.0-1.i386.rpm
*2.     Set the following environment variables:*
•     ORACLE_HOME          =/usr/lib/oracle/11.2/client
•     ORACLE_HOME_LISTNER=/usr/lib/oracle/11.2/client/bin
•     LD_LIBRARY_PATH     =/usr/lib/oracle/11.2/client/lib
•     SQLPATH               =/usr/lib/oracle/11.2/client/lib
•     TNS_ADMIN               =/usr/lib/oracle/11.2/client/bin
•     TWO_TASK               =//xxx.xxx.xxx.xxx:1521/orcl
*3.     Test connection from Fedora to Windows and it works perfect.*
sqlplus system/pass@//xxx.xxx.xxx.xxx:1521/orcl
*4.     Intsall unixODBC-2.3.0.tar.gz*
*5.     Add Oracle ODBC entry in odbc.ini*
[ORCL]
Driver          = Oracle 11g ODBC driver
ServerName     = xxx.xxx.xxx.xxx
Database     = orcl
DSN           = ORCL
Port          = 1521
*6.     And this’s the Oracle ODBC driver entry in odbcinst.ini*
[Oracle 11g ODBC driver]
Description          = Oracle ODBC driver for Oracle 11g
Driver               = /usr/lib/oracle/11.2/client/lib/libsqora.so.11.1
Driver64          =
Setup               =
Setup64          =
UsageCount          =
CPTimeout          =
CPReuse          =
FileUsage          =
*7.     Now, isql -v orcl system pass, fails and reports the following error:*
[S1000][unixODBC][Oracle][ODBC][Ora]ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA
[ISQL]ERROR: Could not SQLConnect
Here’s my tnsnames.ora:
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = xxx.xxx.xxx.xxx)(PORT = 1521))
(CONNECT_DATA =
(SID = ORCL)
(SERVICE_NAME = ORCL)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
Here’s my listener.ora:
SID_LIST_ORCL =
(SID_LIST =
(SID_DESC =
(SID_NAME = ORCL)
(ORACLE_HOME = /usr/lib/oracle/11.2/client)
(GLOBAL_NAME = ORCL)
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /usr/lib/oracle/11.2/client)
(PROGRAM = extproc)
ORCL =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = xxx.xxx.xxx.xxx)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
Here’s my sqlnet.ora:
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
tnsnames.ora, listener.ora & sqlnet.ora are at /usr/lib/oracle/11.2/client/bin
Please I’m waiting your help, sorry for long post.
Best regards,
Edited by: 788062 on Aug 15, 2010 2:32 PM

It works now after removing listener.ora & sqlnet.ora and modifying ServerName from xxx.xxx.xxx.xxx to //xxx.xxx.xxx.xxx:1521/orcl.
Thanks for your time.

Similar Messages

  • Oracle Instant Client - Redistributable or not?

    Is Oracle Instant Client Redistributable?

    As said, talk to your Oracle rep to get something in writing that confirms the statements on the IC home page
    http://www.oracle.com/technology/tech/oci/instantclient/index.html

  • 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.DataAccess.Client.OracleDataAdapter.Update not working

    Hi
    I am using the Oracle.DataAccess.Client.OracleDataAdapter from Oracle.DataAccess runtime version v4.0.30319. I set the SelectCommand and retrieve data from Oracle without any problems using the adapter to fill a datatable. I then use the DataTable.Clear method to remove all rows and fill it again from a different source using a different adapter. I use the Oracle.DataAccess.Client.OracleCommandBuilder to create the Insert and Update commands and finally I call the update command of the using the original adapter in order to update the Oracle database but nothing is updated.
    I examine the table row count at each stage and also display the table using a DataGridView on a form and all appears to be fine. No exception is thrown so I am stumped.
    I would be grateful for any suggestions as to what I am doing wrong.
    My environment is VS2010 Express
    Edited by: user1947494 on 04-Feb-2011 05:46

    Hi,
    Pretty tough without seeing any code. I really do not believe it has anything to do with the DataAdapter. What changed the specific row/rows after the second fill?
    But, as a guess, take a look at the DataTable - Rows - RowState. Run the below(or some variant) method just prior to your update.
    r,
    dennis
           public static DataTable GetDataTableChanges_Modified(DataSet dataSet, string dataTableName)
                if (dataSet.Tables[dataTableName].Rows.Count > 0)
                    DataTable dt = dataSet.Tables[dataTableName].Clone(); ;
                    int c = 0;
                    foreach (DataRow r in dataSet.Tables[dataTableName].Rows)
                        DataRowState state = r.RowState;
                        switch (state)
                            case DataRowState.Modified:
                                DataRow anewrow_dr = dt.NewRow();
                                anewrow_dr.ItemArray = r.ItemArray;
                                dt.Rows.Add(anewrow_dr);
                                c = c + 1;
                                break;
                            default:
                                break;
                    if (c > 0)
                        return dt;
                    else
                        return null;
                else
                    return null;
            }

  • 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 OCI CLIENT 11g is not connecting with PHP & Apache on Fedora

    Dear all... we are facing following issue... similar to other but not able to resolve ...
    Warning: oci_connect() [function.oci-connect]: OCIEnvNlsCreate() failed. There is something wrong with your system - please check that LD_LIBRARY_PATH includes the directory with Oracle Instant Client libraries in /var/www/html/waseem2.php on line 2
    our PHPinfo(); is showing following the OCI8 Extenstion Enabled
    PHP Version 5.2.9
    System      Linux localhost.localdomain 2.6.27.5-117.fc10.i686 #1 SMP Tue Nov 18 12:19:59 EST 2008 i686
    Build Date      Apr 17 2009 03:29:46
    Configure Command      './configure' '--build=i386-redhat-linux-gnu' '--host=i386-redhat-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--enable-gd-native-ttf' '--with-t1lib=/usr' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-wddx' '--with-kerberos' '--enable-ucd-snmp-hack' '--enable-shmop' '--enable-calendar' '--without-mime-magic' '--without-sqlite' '--with-libxml-dir=/usr' '--enable-xml' '--with-system-tzdata' '--with-apxs2=/usr/sbin/apxs' '--without-mysql' '--without-gd' '--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-pdo' '--disable-xmlreader' '--disable-xmlwriter' '--disable-json' '--without-pspell'
    Server API      Apache 2.0 Handler
    Virtual Directory Support      disabled
    Configuration File (php.ini) Path      /etc
    Loaded Configuration File      /etc/php.ini
    Scan this dir for additional .ini files      /etc/php.d
    additional .ini files parsed      /etc/php.d/dbase.ini, /etc/php.d/json.ini, /etc/php.d/ldap.ini, /etc/php.d/mbstring.ini, /etc/php.d/mysql.ini, /etc/php.d/mysqli.ini, /etc/php.d/pdo.ini, /etc/php.d/pdo_mysql.ini, /etc/php.d/pdo_sqlite.ini, /etc/php.d/zip.ini
    PHP API      20041225
    PHP Extension      20060613
    Zend Extension      220060519
    Debug Build      no
    Thread Safety      disabled
    Zend Memory Manager      enabled
    IPv6 Support      enabled
    Registered PHP Streams      php, file, data, http, ftp, compress.bzip2, compress.zlib, https, ftps, zip
    Registered Stream Socket Transports      tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
    Registered Stream Filters      string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, convert.iconv.*, bzip2.*, zlib.*
    Zend logo This program makes use of the Zend Scripting Language Engine:
    Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
    PHP Credits
    Configuration
    PHP Core
    Directive     Local Value     Master Value
    allow_call_time_pass_reference     Off     Off
    allow_url_fopen     On     On
    allow_url_include     Off     Off
    always_populate_raw_post_data     Off     Off
    arg_separator.input     &     &
    arg_separator.output     &     &
    asp_tags     Off     Off
    auto_append_file     no value     no value
    auto_globals_jit     On     On
    auto_prepend_file     no value     no value
    browscap     no value     no value
    default_charset     no value     no value
    default_mimetype     text/html     text/html
    define_syslog_variables     Off     Off
    disable_classes     no value     no value
    disable_functions     no value     no value
    display_errors     On     On
    display_startup_errors     Off     Off
    doc_root     no value     no value
    docref_ext     no value     no value
    docref_root     no value     no value
    enable_dl     On     On
    error_append_string     no value     no value
    error_log     no value     no value
    error_prepend_string     no value     no value
    error_reporting     6143     6143
    expose_php     On     On
    extension_dir     /usr/lib/php/modules     /usr/lib/php/modules
    file_uploads     On     On
    highlight.bg     #FFFFFF     #FFFFFF
    highlight.comment     #FF8000     #FF8000
    highlight.default     #0000BB     #0000BB
    highlight.html     #000000     #000000
    highlight.keyword     #007700     #007700
    highlight.string     #DD0000     #DD0000
    html_errors     On     On
    ignore_repeated_errors     Off     Off
    ignore_repeated_source     Off     Off
    ignore_user_abort     Off     Off
    implicit_flush     Off     Off
    include_path     .:/usr/share/pear:/usr/share/php     .:/usr/share/pear:/usr/share/php
    log_errors     On     On
    log_errors_max_len     1024     1024
    magic_quotes_gpc     Off     Off
    magic_quotes_runtime     Off     Off
    magic_quotes_sybase     Off     Off
    mail.force_extra_parameters     no value     no value
    max_execution_time     30     30
    max_input_nesting_level     64     64
    max_input_time     60     60
    memory_limit     32M     32M
    open_basedir     no value     no value
    output_buffering     4096     4096
    output_handler     no value     no value
    post_max_size     8M     8M
    precision     14     14
    realpath_cache_size     16K     16K
    realpath_cache_ttl     120     120
    register_argc_argv     Off     Off
    register_globals     Off     Off
    register_long_arrays     Off     Off
    report_memleaks     On     On
    report_zend_debug     On     On
    safe_mode     Off     Off
    safe_mode_exec_dir     no value     no value
    safe_mode_gid     Off     Off
    safe_mode_include_dir     no value     no value
    sendmail_from     no value     no value
    sendmail_path     /usr/sbin/sendmail -t -i     /usr/sbin/sendmail -t -i
    serialize_precision     100     100
    short_open_tag     On     On
    SMTP     localhost     localhost
    smtp_port     25     25
    sql.safe_mode     Off     Off
    track_errors     Off     Off
    unserialize_callback_func     no value     no value
    upload_max_filesize     2M     2M
    upload_tmp_dir     no value     no value
    user_dir     no value     no value
    variables_order     EGPCS     EGPCS
    xmlrpc_error_number     0     0
    xmlrpc_errors     Off     Off
    y2k_compliance     On     On
    zend.ze1_compatibility_mode     Off     Off
    apache2handler
    Apache Version      Apache/2.2.11 (Fedora)
    Apache API Version      20051115
    Server Administrator      root@localhost
    Hostname:Port      localhost.localdomain:0
    User/Group      apache(48)/48
    Max Requests      Per Child: 4000 - Keep Alive: off - Max Per Connection: 100
    Timeouts      Connection: 120 - Keep-Alive: 15
    Virtual Server      No
    Server Root      /etc/httpd
    Loaded Modules      core prefork http_core mod_so mod_auth_basic mod_auth_digest mod_authn_file mod_authn_alias mod_authn_anon mod_authn_dbm mod_authn_default mod_authz_host mod_authz_user mod_authz_owner mod_authz_groupfile mod_authz_dbm mod_authz_default util_ldap mod_authnz_ldap mod_include mod_log_config mod_logio mod_env mod_ext_filter mod_mime_magic mod_expires mod_deflate mod_headers mod_usertrack mod_setenvif mod_mime mod_dav mod_status mod_autoindex mod_info mod_dav_fs mod_vhost_alias mod_negotiation mod_dir mod_actions mod_speling mod_userdir mod_alias mod_rewrite mod_proxy mod_proxy_balancer mod_proxy_ftp mod_proxy_http mod_proxy_connect mod_cache mod_suexec mod_disk_cache mod_file_cache mod_mem_cache mod_cgi mod_perl mod_php5 mod_proxy_ajp mod_python mod_ssl
    Directive     Local Value     Master Value
    engine     1     1
    last_modified     0     0
    xbithack     0     0
    Apache Environment
    Variable     Value
    LD_LIBRARY_PATH      /home/zubair/instantclient_11_1_
    HTTP_HOST      localhost
    HTTP_USER_AGENT      Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.4) Gecko/2008111217 Fedora/3.0.4-1.fc10 Firefox/3.0.4
    HTTP_ACCEPT      text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    HTTP_ACCEPT_LANGUAGE      en-us,en;q=0.5
    HTTP_ACCEPT_ENCODING      gzip,deflate
    HTTP_ACCEPT_CHARSET      ISO-8859-1,utf-8;q=0.7,*;q=0.7
    HTTP_KEEP_ALIVE      300
    HTTP_CONNECTION      keep-alive
    HTTP_COOKIE      PHPSESSID=he50pdhvtihu74lhmjnvggfr42
    PATH      /sbin:/usr/sbin:/bin:/usr/bin
    SERVER_SIGNATURE      <address>Apache/2.2.11 (Fedora) Server at localhost Port 80</address>
    SERVER_SOFTWARE      Apache/2.2.11 (Fedora)
    SERVER_NAME      localhost
    SERVER_ADDR      127.0.0.1
    SERVER_PORT      80
    REMOTE_ADDR      127.0.0.1
    DOCUMENT_ROOT      /var/www/html
    SERVER_ADMIN      root@localhost
    SCRIPT_FILENAME      /var/www/html/waseem.php
    REMOTE_PORT      39529
    GATEWAY_INTERFACE      CGI/1.1
    SERVER_PROTOCOL      HTTP/1.1
    REQUEST_METHOD      GET
    QUERY_STRING      no value
    REQUEST_URI      /waseem.php
    SCRIPT_NAME      /waseem.php
    HTTP Headers Information
    HTTP Request Headers
    HTTP Request      GET /waseem.php HTTP/1.1
    Host      localhost
    User-Agent      Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.4) Gecko/2008111217 Fedora/3.0.4-1.fc10 Firefox/3.0.4
    Accept      text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language      en-us,en;q=0.5
    Accept-Encoding      gzip,deflate
    Accept-Charset      ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive      300
    Connection      keep-alive
    Cookie      PHPSESSID=he50pdhvtihu74lhmjnvggfr42
    HTTP Response Headers
    X-Powered-By      PHP/5.2.9
    Connection      close
    Transfer-Encoding      chunked
    Content-Type      text/html; charset=UTF-8
    bz2
    BZip2 Support      Enabled
    Stream Wrapper support      compress.bz2://
    Stream Filter support      bzip2.decompress, bzip2.compress
    BZip2 Version      1.0.5, 10-Dec-2007
    calendar
    Calendar support      enabled
    ctype
    ctype functions      enabled
    curl
    cURL support      enabled
    cURL Information      libcurl/7.18.2 NSS/3.12.1.1 zlib/1.2.3 libidn/0.6.14 libssh2/0.18
    date
    date/time support      enabled
    "Olson" Timezone Database Version      0.system
    Timezone Database      internal
    Default timezone      Asia/Karachi
    Directive     Local Value     Master Value
    date.default_latitude     31.7667     31.7667
    date.default_longitude     35.2333     35.2333
    date.sunrise_zenith     90.583333     90.583333
    date.sunset_zenith     90.583333     90.583333
    date.timezone     no value     no value
    exif
    EXIF Support      enabled
    EXIF Version      1.4 $Id: exif.c,v 1.173.2.5.2.27 2008/12/31 11:17:37 sebastian Exp $
    Supported EXIF Version      0220
    Supported filetypes      JPEG,TIFF
    filter
    Input Validation and Filtering      enabled
    Revision      $Revision: 1.52.2.45 $
    Directive     Local Value     Master Value
    filter.default     unsafe_raw     unsafe_raw
    filter.default_flags     no value     no value
    ftp
    FTP support      enabled
    gettext
    GetText Support      enabled
    gmp
    gmp support      enabled
    GMP version      4.2.2
    hash
    hash support      enabled
    Hashing Engines      md2 md4 md5 sha1 sha256 sha384 sha512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru gost adler32 crc32 crc32b haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5
    iconv
    iconv support      enabled
    iconv implementation      glibc
    iconv library version      2.9
    Directive     Local Value     Master Value
    iconv.input_encoding     ISO-8859-1     ISO-8859-1
    iconv.internal_encoding     ISO-8859-1     ISO-8859-1
    iconv.output_encoding     ISO-8859-1     ISO-8859-1
    json
    json support      enabled
    json version      1.2.1
    ldap
    LDAP Support      enabled
    RCS Version      $Id: ldap.c,v 1.161.2.3.2.14 2008/12/31 11:17:39 sebastian Exp $
    Total Links      0/unlimited
    API Version      3001
    Vendor Name      OpenLDAP
    Vendor Version      20412
    SASL Support      Enabled
    libxml
    libXML support      active
    libXML Version      2.7.3
    libXML streams      enabled
    mbstring
    Multibyte Support      enabled
    Multibyte string engine      libmbfl
    Multibyte (japanese) regex support      enabled
    Multibyte regex (oniguruma) version      4.4.4
    Multibyte regex (oniguruma) backtrack check      On
    mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.
    Directive     Local Value     Master Value
    mbstring.detect_order     no value     no value
    mbstring.encoding_translation     Off     Off
    mbstring.func_overload     0     0
    mbstring.http_input     pass     pass
    mbstring.http_output     pass     pass
    mbstring.internal_encoding     no value     no value
    mbstring.language     neutral     neutral
    mbstring.strict_detection     Off     Off
    mbstring.substitute_character     no value     no value
    mysql
    MySQL Support     enabled
    Active Persistent Links      0
    Active Links      0
    Client API version      5.0.84
    MYSQL_MODULE_TYPE      external
    MYSQL_SOCKET      /var/lib/mysql/mysql.sock
    MYSQL_INCLUDE      -I/usr/include/mysql
    MYSQL_LIBS      -L/usr/lib/mysql -lmysqlclient
    Directive     Local Value     Master Value
    mysql.allow_persistent     On     On
    mysql.connect_timeout     60     60
    mysql.default_host     no value     no value
    mysql.default_password     no value     no value
    mysql.default_port     no value     no value
    mysql.default_socket     no value     no value
    mysql.default_user     no value     no value
    mysql.max_links     Unlimited     Unlimited
    mysql.max_persistent     Unlimited     Unlimited
    mysql.trace_mode     Off     Off
    mysqli
    MysqlI Support     enabled
    Client API library version      5.0.84
    Client API header version      5.0.77
    MYSQLI_SOCKET      /var/lib/mysql/mysql.sock
    Directive     Local Value     Master Value
    mysqli.default_host     no value     no value
    mysqli.default_port     3306     3306
    mysqli.default_pw     no value     no value
    mysqli.default_socket     no value     no value
    mysqli.default_user     no value     no value
    mysqli.max_links     Unlimited     Unlimited
    mysqli.reconnect     Off     Off
    oci8
    OCI8 Support      enabled
    Version      1.3.5
    Revision      $Revision: 1.269.2.16.2.38.2.32 $
    Active Persistent Connections      0
    Active Connections      0
    Oracle Instant Client Version      11.1
    Temporary Lob support      enabled
    Collections support      enabled
    Directive     Local Value     Master Value
    oci8.connection_class     no value     no value
    oci8.default_prefetch     100     100
    oci8.events     Off     Off
    oci8.max_persistent     -1     -1
    oci8.old_oci_close_semantics     Off     Off
    oci8.persistent_timeout     -1     -1
    oci8.ping_interval     60     60
    oci8.privileged_connect     Off     Off
    oci8.statement_cache_size     20     20
    openssl
    OpenSSL support      enabled
    OpenSSL Version      OpenSSL 0.9.8g 19 Oct 2007
    pcre
    PCRE (Perl Compatible Regular Expressions) Support      enabled
    PCRE Library Version      7.8 2008-09-05
    Directive     Local Value     Master Value
    pcre.backtrack_limit     100000     100000
    pcre.recursion_limit     100000     100000
    PDO
    PDO support     enabled
    PDO drivers      mysql, sqlite
    pdo_mysql
    PDO Driver for MySQL, client library version     5.0.84
    pdo_sqlite
    PDO Driver for SQLite 3.x     enabled
    PECL Module version      1.0.1 $Id: pdo_sqlite.c,v 1.10.2.6.2.4 2008/12/31 11:17:42 sebastian Exp $
    SQLite Library      3.5.9
    posix
    Revision      $Revision: 1.70.2.3.2.22 $
    Reflection
    Reflection     enabled
    Version      $Id: php_reflection.c,v 1.164.2.33.2.55 2008/12/31 11:17:42 sebastian Exp $
    session
    Session Support      enabled
    Registered save handlers      files user
    Registered serializer handlers      php php_binary wddx
    Directive     Local Value     Master Value
    session.auto_start     Off     Off
    session.bug_compat_42     Off     Off
    session.bug_compat_warn     On     On
    session.cache_expire     180     180
    session.cache_limiter     nocache     nocache
    session.cookie_domain     no value     no value
    session.cookie_httponly     Off     Off
    session.cookie_lifetime     0     0
    session.cookie_path     /     /
    session.cookie_secure     Off     Off
    session.entropy_file     no value     no value
    session.entropy_length     0     0
    session.gc_divisor     1000     1000
    session.gc_maxlifetime     1440     1440
    session.gc_probability     1     1
    session.hash_bits_per_character     5     5
    session.hash_function     0     0
    session.name     PHPSESSID     PHPSESSID
    session.referer_check     no value     no value
    session.save_handler     files     files
    session.save_path     /var/lib/php/session     /var/lib/php/session
    session.serialize_handler     php     php
    session.use_cookies     On     On
    session.use_only_cookies     Off     Off
    session.use_trans_sid     0     0
    shmop
    shmop support      enabled
    SimpleXML
    Simplexml support     enabled
    Revision      $Revision: 1.151.2.22.2.46 $
    Schema support      enabled
    sockets
    Sockets Support      enabled
    SPL
    SPL support     enabled
    Interfaces      Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject
    Classes      AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, DirectoryIterator, DomainException, EmptyIterator, FilterIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RegexIterator, RuntimeException, SimpleXMLIterator, SplFileInfo, SplFileObject, SplObjectStorage, SplTempFileObject, UnderflowException, UnexpectedValueException
    standard
    Regex Library      Bundled library enabled
    Dynamic Library Support      enabled
    Path to sendmail      /usr/sbin/sendmail -t -i
    Directive     Local Value     Master Value
    assert.active     1     1
    assert.bail     0     0
    assert.callback     no value     no value
    assert.quiet_eval     0     0
    assert.warning     1     1
    auto_detect_line_endings     0     0
    default_socket_timeout     60     60
    safe_mode_allowed_env_vars     PHP_     PHP_
    safe_mode_protected_env_vars     LD_LIBRARY_PATH     LD_LIBRARY_PATH
    url_rewriter.tags     a=href,area=href,frame=src,input=src,form=fakeentry     a=href,area=href,frame=src,input=src,form=fakeentry
    user_agent     no value     no value
    sysvmsg
    sysvmsg support      enabled
    Revision      $Revision: 1.20.2.3.2.8 $
    tokenizer
    Tokenizer Support      enabled
    wddx
    WDDX Support     enabled
    WDDX Session Serializer      enabled
    xml
    XML Support      active
    XML Namespace Support      active
    libxml2 Version      2.7.3
    zip
    Zip      enabled
    Extension Version      $Id: php_zip.c,v 1.1.2.49 2009/02/05 19:53:22 pajoye Exp $
    Zip version      1.8.11
    Libzip version      0.9.0
    zlib
    ZLib Support      enabled
    Stream Wrapper support      compress.zlib://
    Stream Filter support      zlib.inflate, zlib.deflate
    Compiled Version      1.2.3
    Linked Version      1.2.3
    Directive     Local Value     Master Value
    zlib.output_compression     Off     Off
    zlib.output_compression_level     -1     -1
    zlib.output_handler     no value     no value
    Additional Modules
    Module Name
    dbase
    sysvsem
    sysvshm
    Environment
    Variable     Value
    TERM      xterm
    LD_LIBRARY_PATH      /home/zubair/instantclient_11_1/
    PATH      /sbin:/usr/sbin:/bin:/usr/bin
    PWD      /
    LANG      C
    SHLVL      2
    ORACLE_HOME      /home/zubair/instantclient_11_1/
    _      /usr/sbin/httpd
    PHP Variables
    Variable     Value
    _REQUEST["PHPSESSID"]     he50pdhvtihu74lhmjnvggfr42
    _COOKIE["PHPSESSID"]     he50pdhvtihu74lhmjnvggfr42
    SERVER["LDLIBRARY_PATH"]     /home/zubair/instantclient_11_1
    _SERVER["HTTP_HOST"]     localhost
    _SERVER["HTTP_USER_AGENT"]     Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.4) Gecko/2008111217 Fedora/3.0.4-1.fc10 Firefox/3.0.4
    _SERVER["HTTP_ACCEPT"]     text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    _SERVER["HTTP_ACCEPT_LANGUAGE"]     en-us,en;q=0.5
    _SERVER["HTTP_ACCEPT_ENCODING"]     gzip,deflate
    _SERVER["HTTP_ACCEPT_CHARSET"]     ISO-8859-1,utf-8;q=0.7,*;q=0.7
    _SERVER["HTTP_KEEP_ALIVE"]     300
    _SERVER["HTTP_CONNECTION"]     keep-alive
    _SERVER["HTTP_COOKIE"]     PHPSESSID=he50pdhvtihu74lhmjnvggfr42
    _SERVER["PATH"]     /sbin:/usr/sbin:/bin:/usr/bin
    _SERVER["SERVER_SIGNATURE"]     <address>Apache/2.2.11 (Fedora) Server at localhost Port 80</address>
    _SERVER["SERVER_SOFTWARE"]     Apache/2.2.11 (Fedora)
    _SERVER["SERVER_NAME"]     localhost
    _SERVER["SERVER_ADDR"]     127.0.0.1
    _SERVER["SERVER_PORT"]     80
    _SERVER["REMOTE_ADDR"]     127.0.0.1
    _SERVER["DOCUMENT_ROOT"]     /var/www/html
    _SERVER["SERVER_ADMIN"]     root@localhost
    _SERVER["SCRIPT_FILENAME"]     /var/www/html/waseem.php
    _SERVER["REMOTE_PORT"]     39529
    _SERVER["GATEWAY_INTERFACE"]     CGI/1.1
    _SERVER["SERVER_PROTOCOL"]     HTTP/1.1
    _SERVER["REQUEST_METHOD"]     GET
    _SERVER["QUERY_STRING"]     no value
    _SERVER["REQUEST_URI"]     /waseem.php
    _SERVER["SCRIPT_NAME"]     /waseem.php
    _SERVER["PHP_SELF"]     /waseem.php
    _SERVER["REQUEST_TIME"]     1253301146
    _ENV["TERM"]     xterm
    _ENV["LD_LIBRARY_PATH"]     /home/zubair/instantclient_11_1/
    _ENV["PATH"]     /sbin:/usr/sbin:/bin:/usr/bin
    _ENV["PWD"]     /
    _ENV["LANG"]     C
    _ENV["SHLVL"]     2
    _ENV["ORACLE_HOME"]     /home/zubair/instantclient_11_1/
    _ENV["_"]     /usr/sbin/httpd
    PHP License
    This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE
    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact [email protected].
    Have a nice day!
    Fatal error: Call to undefined function odbc_connect() in /var/www/html/waseem.php on line 20
    ------------------------------------------------------------------------------------------

    Is the problem with oci_connect or odbc_connect?
    The phpinfo() output shows '--without-unixODBC' which may be a root cause. There is no 'odbc' section shown in the phpinfo() output so I wouldn't expect odbc calls to work.
    But if the issue is with OCI8, then make sure that Oracle environment variables and LD_LIBRARY_PATH are set BEFORE starting Apache.
    More information on OCI8 and PHP is in http://www.oracle.com/technology/tech/php/underground-php-oracle-manual.html
    Also see http://wiki.oracle.com/page/PHP+Oracle+FAQ
    The PHP forum on OTN is http://www.oracle.com/technology/forums/php.html

  • Imp Exp utility in ubuntu 10.4 with oracle instant client 10

    Hi,
    I have a problem with the imp/exp utility on Ubuntu 10.4.
    I have installed the oracle instant client 10, and I have followed this thread
    [http://download.oracle.com/docs/cd/B25329_01/doc/admin.102/b25107/impexp.htm#CHDDBGDF]
    So, I've set env variable in my .bashrc
    ORACLE_HOME=/home/lucia/Programmi/instantclient10_1
    export ORACLE_HOME
    LD_LIBRARY_PATH=/home/lucia/Programmi/instantclient10_1:${LD_LIBRARY_PATH}
    export LD_LIBRARY_PATH
    PATH=/home/lucia/Programmi/instantclient10_1:${PATH}
    export PATH
    SQLPATH=/home/lucia/Programmi/instantclient10_1:${SQLPATH}
    export SQLPATH
    Sqlplus works fine, but when I try to use the utility exp/imp
    exp DB_USER/DB_PW@DB_SCHEMA owner=DB_USER buffer=300000 LOG=DB_USER.log FILE=DB_USER.dmp compress=n
    I have the following error:
    No command 'exp' found, did you mean:
    Command 'xep' from package 'pvm-examples' (universe)
    Command 'ex' from package 'vim' (main)
    Command 'ex' from package 'nvi' (universe)
    Command 'ex' from package 'vim-nox' (universe)
    Command 'ex' from package 'vim-gnome' (main)
    Command 'ex' from package 'vim-tiny' (main)
    Command 'ex' from package 'vim-gtk' (universe)
    Command 'axp' from package 'axp' (universe)
    Command 'expr' from package 'coreutils' (main)
    Command 'expn' from package 'sendmail-base' (universe)
    Command 'epp' from package 'e16' (universe)
    exp: command not found
    (I cannot use data pump exp)
    Any suggestions?
    thanks in advance.
    Lucia

    root@laptop:~# /tmp/CVU_11.2.0.1.0_lucia/runfixup.sh
    Response file being used is :/tmp/CVU_11.2.0.1.0_lucia/fixup.response
    Enable file being used is :/tmp/CVU_11.2.0.1.0_lucia/fixup.enable
    Log file location: /tmp/CVU_11.2.0.1.0_lucia/orarun.log
    [: 845: true: unexpected operator
    [: 860: unexpected operator
    Any suggestions?
    thanks
    LuciaHello,
    I had the same problem. It was related to the shell script interpreter being used: it is really a bash script asking to be interpreted as sh. For the impatient, the solution was to change the first line of the script orarun.sh to read as:
    #!/bin/bash
    Explanation:
    1. The script runfixup.sh calls orarun.sh. The latter is the one that fails starting at line 845.
    2. The script is really a bash script as can be seen from the if syntax used. For example at line 191 we see the double equall sign ==:
    if [ "`echo $SET_KERNEL_PARAMETERS | tr A-Z a-z`" == "true" ]
    3. The bash man page says:
    string1 == string2
    string1 = string2
    True if the strings are equal. = should be used with the test command for POSIX conformance.
    string1 != string2
    True if the strings are not equal.
    (End of man page excerpt)
    Notice in particular that for a bash script to be POSIX it should avoid the == and just use =
    4. orarun.sh has on its first line #!/bin/sh. On my Ubuntu system, sh is a softlink to dash and the dash man page says:
    s1 = s2 True if the strings s1 and s2 are identical.
    s1 != s2 True if the strings s1 and s2 are not identical.
    5. So this script script uses bash syntax but is interpreted by dash. It is possible that this worked fine for the Oracle developer if on their system sh was softlinked to bash (which is often the case). Apparently, one should then be very careful to not use idioms that are not POSIX compliant.
    6. Another solution is to change the /bin/sh softlink from dash to bash. Personally, I was less comfortable doing this (the possible repercussions were wider than the proposed solution above).
    After making the change, the script ran perfectly. I think the best solution is for Oracle to update the script to be POSIX compliant or to identify itself as bash.
    Hope that helped,
    Mark Gaber
    Edited by: user1112514 on Jun 30, 2010 3:28 AM

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

  • Problem in SQL with CURSOR( ) ,Why the CURSOR did not work?

    hi All:
    I have a problem in SQL with CURSOR.
    The data is as the attachments.
    Here is the SQL statement as follow:
    SELECT A.WADCTO,A.WADOCO,B.IGCOST,CURSOR (SELECT X.IGLITM
    FROM F3102 X
    WHERE X.IGDOCO=A.WADOCO
    AND X.IGCOST IN ('B1','D1','C3')) AS DETAIL
    FROM F4801 A INNER JOIN F3102 B ON A.WADOCO=B.IGDOCO AND A.WADCTO=B.IGDCTO AND B.IGCOST>' '
    WHERE A.WADOCO='10004'
    The statement above returns records as follow:
    WADC WADOCO IGCOST DETAIL
    WO 10004 A1 CURSOR STATEMENT : 4
    CURSOR STATEMENT : 4
    IGLITM
    1KV90CPG2
    1KV90CPG2
    1KV90CPG2
    But, after I add one statement in the subquery, there is no record returned from CURSOR.
    Here is the SQL statement:
    SELECT A.WADCTO,A.WADOCO,B.IGCOST,CURSOR (SELECT X.IGLITM
    FROM F3102 X
    WHERE X.IGDOCO=A.WADOCO
    AND X.IGCOST=B.IGCOST
    AND X.IGCOST IN ('B1','D1','C3')) AS DETAIL
    FROM F4801 A INNER JOIN F3102 B ON A.WADOCO=B.IGDOCO AND A.WADCTO=B.IGDCTO AND B.IGCOST>' '
    WHERE A.WADOCO='10004'
    The statement above returns records as follow:
    WADC WADOCO IGCOST DETAIL
    WO 10004 A1 CURSOR STATEMENT : 4
    CURSOR STATEMENT : 4
    no rows selected
    Why the CURSOR did not work?
    The database version is Oracle Database 10g Release 10.2.0.4.0 - 64bit Production.
    F3102 DATA:
    IGDOCO     IGDCTO     IGLITM     IGCOST
    10004     WO     1KV90CPG2      A1
    10004     WO     1KV90CPG2      B1
    10004     WO     1KV90CPG2      C3
    10004     WO     1KV90CPG2      D1
    F4801 DATA:
    WADCTO     WADOCO
    WO     10004
    Edited by: user2319139 on 2010/3/2 上午 1:17
    Edited by: user2319139 on 2010/3/2 上午 1:20

    Why this structure and not a join?
    The cursor() function returns a cursor handle that needs to be processed - in other words, the client needs to fetch data from it. The Oracle® Database SQL Reference+ (http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/expressions005.htm#i1035107) describes it as being equivalent to a ref cursor handle.
    Thus why are you creating ref cursor handles as a column in a SQL projection - where each row will have a "+nested+" ref cursor handle to process. What problem are you attempting to hack solve this way?

  • Solaris PHP 5.2.12 Oracle Instant Client Error

    We are testing a Oracle Solaris Express 11 Server with the standard Apache and PHP installation. But we need the Oracle Instant client and the oci8 module enabled for our company applications.
    We did this by using ./pecl install oci8 in /usr/php/5.2/bin. We set the LD_LIBRARY_PATH in /etc/apache2/2.2/envvars
    a 32bits solaris (x86) version of the Oracle Instant Client 11.2 is installed in /opt/oracle/instantclient_11_2 with the symbolic link made.
    envvars:
    LD_LIBRARY_PATH=/opt/oracle/instantclient_11_2
    ORACLE_HOME=/opt/oracle/instantclient_11_2
    ORACLE_BASE=/opt/oracle/instantclient_11_2
    he oci8 module installed and php loads it.
    phpinfo(); output:
    oci8
    OCI8 Support enabled
    Version 1.4.6
    Revision $Revision: 313688 $
    Active Persistent Connections 0
    Active Connections 0
    Oracle Run-time Client Library Version 11.2.0.2.0
    Oracle Instant Client Version 11.2
    Temporary Lob support enabled
    When we first view a site there is no problem but very randomly we get the following error:
    OCIEnvNlsCreate() failed. There is something wrong with your system - please check that 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 this is as randomly as it appears it disappears we can load the web-page without problems and after a couple of clicks the error is back. if we wait a coupe of seconds you can reload the page and it loads normaly.
    The error appears to be random and we get it over and over agian, it comes and goes after a cpl of pages are viewed. It seems to appear more when there are multiple users browsing on the website.
    Is there a fix for this? is this an known bug? It seems strange the instant client works some times and fails a second later without a change in the system.
    Hope someone can help us.
    Edited by: user10978378 on Sep 3, 2011 4:20 AM

    Solved it by compiling apache 2.2.20 into 64bits using:
    CFLAGS="-m64" CXXFLAGS="-m64" LDFLAGS="-m64" ./configure enable-so enable-cgi enable-info enable-rewrite enable-deflate enable-ssl
    and compiling php 5.3.8 into 64bits:
    CFLAGS="-m64" CXXFLAGS="-m64" LDFLAGS="-m64" ./configure with-apxs2=/usr/local/apache2/bin/apxs with-gd with-zlib disable-ipv6 with-jpeg-dir=/usr/ with-png-dir=/usr/ with-freetype-dir=/usr/ with-pear with-openssl with-oci8=instantclient,/opt/oracle/instantclient_10_2
    and using the 10.2.0.4 instant client.
    there might be a bug in the 11.x ones, they dont seem to work on Oracle Solaris 11.

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

  • 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

  • Request: enable use of sql*plus via Oracle Instant Client.

    hi,
    great project....
    I've just installed Raptor release 3 on top of oracle instant client, and it seems to be running fine. my sql*plus from the instant client functions from the command line, but the sql*plus menu item in the tools menu is grayed out.
    review of the help files say's that oracle_home must be set, but instant client does not need an oracle_home. (uses tns_admin instead).
    is there a work around for this? (other than loading the full oracle client w/ it's sql*plus)
    thanks
    GT

    The SQL*Plus menu item does not seem to be correctly detecting the current connection context. I'm filing this as a bug to be fixed before we ship. In the current version, however, you can enable the menu item by ensuring first that the connection is selected in the Connections navigator.
    When the menu is invoked, you will be prompted for the location of the SQL*Plus executable. On Windows, this should just be the path to sqlplus.exe (or sqlplusw.exe). On Unix platforms, you should include 'xterm' or an equivalent in order to ensure that SQL*Plus invokes in a window.
    - John
    Raptor Development Team

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

Maybe you are looking for

  • In-house production time in MRP2 View

    Hi, Please advise what to mention in in-house production days field in mrp2 view, whether we need to mention the time required to  produce 1 part or any qty? please advise.

  • Prints from Safari Reader crops edges

    Hello, printing from Safari Reader to PDF or paper results in cropped edges, meaning that text is being cut off (not printed) on all sides. The preview in Reader looks fine. Changing margins manually in the printer's dialog is being overriden and so

  • Volume and click wheel all funky on me....

    My ipod nano has a problem that when ever i turn it on the click wheel goes crazy and i have to scroll little by little to get where i want or it goes crazy. also my volume that when im listening to a song the volume just fumbles and i have to use th

  • MB Air cannot see TC 1T '09 while connected via WiFi and Ethernet.

    I have a TC 1T 2009 7.4.1 that I have set up successfully with MB Pro and MB White. However I cannot set it up with MB Air v.1 which is connected to TC via WiFi AND Ethernet cable. Internet is fine (Safari) but no TM - when I run APU 5.4.1 it cannot

  • Update Context File Manually

    I am working on bringing up a 12.1.3 EBS VM Template instances on Amazon EC2 and one of the last steps in the MetaLink Doc ( 1205963.1) askes that I update the applications context file (see below) How can I update these values manually since I am un