Oracle library

Hey,
I have oracle 10gR2 version 3, and it running perfectly with out any problem.
i am wondering if i want to replace $ORACLE_BASE/LIB/* AND $ORACLE_BASE/LIB32/* with another files from other servers with the same oracle release and version , what will happen?
my Question: can i do that without affecting my DB? and if i did that what should i become ware of?
i think i have some packages corrupted and i have to replace them.
Regards

-rw-r--r-- 1 oracle oinstall 8545 Dec 20 2006 libskgxns.so
-rw-r--r-- 1 oracle oinstall 10329 Dec 20 2006 libskgxp10.so
-rw-r--r-- 1 oracle oinstall 10329 Dec 20 2006 libskgxpd.so
-rw-r--r-- 1 oracle oinstall 161385 Nov 3 2006 libskgxpg.so
-rw-r--r-- 1 oracle oinstall 161385 Nov 3 2006 libskgxpr.so
-rw-r--r-- 1 oracle oinstall 173705 Sep 17 2005 libskgxpu.so
on lib32:
-rw-r--r-- 1 oracle oinstall 8069 Sep 8 2005 libskgxn2.so
-rw-r--r-- 1 oracle oinstall 8069 Sep 8 2005 libskgxns.so
-rw-r--r-- 1 oracle oinstall 10329 Sep 4 09:40 libskgxp10.so

Similar Messages

  • BRCONNECT unable to find oracle library

    Hi
    After SAP upgrade to Netweaver 7.0 with Oracle 10.2 on HP-UX system, the BRCONNECT program unable to execute DBA jobs. It is ending with following error with user <sid>adm
    Execute logical command BRCONNECT On host <wxyz>
    Parameters: -u / -jid CHECK20080812023451 -c -f check
    /usr/lib/pa20_64/dld.sl: Unable to find library 'libclntsh.sl.10.1'.
    Process died due to signal 9
    And if I run it using user ora<sid>, it ends with insufficient privileges.
    BR0801I BRCONNECT 7.00 (32)
    BR0301E SQL error -1031 at location BrLicCheck-14, SQL statement:
    'SELECT COUNT(*) FROM SAP_SAPLIKEY'
    ORA-01031: insufficient privileges
    BR0804I BRCONNECT terminated with errors
    The roles granted to users OPS$<SID>ADM and OPS$ORA<SID> are RESOURCE, CONNECT and SAPDBA.
    please provide your inputs on these issues i.e. how to make the oracle library available when running brconnect using <sid>adm user and how to remove the "ORA-01031: insufficient privileges"  when running brconnect using ora<sid> user.
    Thanks
    Vinod

    Hi All
    I have tried executing it on <sid>adm commandline but it is giving same error.
    >brconnect -u / -c -f check
    /usr/lib/pa20_64/dld.sl: Unable to find library 'libclntsh.sl.10.1'.
    Killed
    The following are the env for <sid>adm
    _=/usr/bin/env
    THREAD=NOPS
    SHLIB_PATH=/usr/sap/<SID>/SYS/exe/run:/oracle/client/10x_64/instantclient
    ORACLE_PSRV=<SID>
    PATH=/oracle/<SID>/102_64/bin:/home/<SID>adm:/usr/sap/<SID>/SYS/exe/run:/opt/sudo/bin:/opt/sudo/sbin:/usr/bin:/opt/ansic/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/hparray/bin:/opt/nettladm/bin:/opt/upgrade/bin:/opt/fcms/bin:/opt/pd/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/resmon/bin:/opt/perf/bin:/opt/prm/bin:/opt/mx/bin:/opt/ignite/bin:/opt/gnome/bin:/opt/mozilla:/opt/wbem/bin:/opt/wbem/sbin:/opt/langtools/bin:/opt/imake/bin:/opt/graphics/common/bin:/usr/sbin/diag/contrib:/opt/sudo/bin:/opt/networker/bin:/opt/hpnpl//bin:/opt/OV/bin/OpC:/opt/OV/bin:/opt/cfg2html:/opt/ssh/bin:/opt/java1.4/bin:.
    NLS_LANG=AMERICAN_AMERICA.WE8DEC
    COLUMNS=125
    ORACLE_BASE=/oracle
    EDITOR=vi
    LOGNAME=<sid>adm
    dbs_ora_tnsname=<SID>
    ORACLE_SID=<SID>
    ERASE=^H
    PS1=
    <sid>adm>
    DB_SID=<SID>
    DIR_LIBRARY=/usr/sap/<SID>/SYS/exe/run
    ORA_NLS10=/oracle/<SID>/102_64/nls/data
    dbs_ora_schema=SAP<SID>
    SHELL=/usr/bin/sh
    JAVA_HOME=/opt/java1.4/bin
    SAPDATA_HOME=/oracle/<SID>
    HOME=/home/<SID>adm
    TERM=xterm
    ORACLE_HOME=/oracle/<SID>/102_64
    PWD=/home/<SID>adm
    TZ=CST6CDT
    dbms_type=ORA
    SAPSYSTEMNAME=<SID>
    LINES=44
    The following is command outputs as requested by Fidel
    ls -lR /oracle/client
    drwxr-xr-x   3 ora<sid>     dba           1024 May 30 11:32 10x_64
    drwxr-xr-x   8 ora<sid>     dba           1024 Jan 10  2007 9207
    drwxr-xr-x   4 ora<sid>     dba             96 Mar 12  2004 92x_64
    /oracle/client/10x_64:
    total 87438
    -rwxr-xr-x   1 ora<sid>     dba        44765594 May 30 11:28 OCL10264.SAR.1
    -rw-rr   1 ora<sid>     dba            100 May  4  2006 dbclient.lst
    lrwxr-xr-x   1 ora<sid>     dba             19 May 30 11:32 instantclient -> instantclient_10202
    drwxr-xr-x   2 ora<sid>     dba           1024 May  4  2006 instantclient_10202
    /oracle/client/10x_64/instantclient_10202:
    total 231858
    -rrr--   1 ora<sid>     dba        1594191 Apr 20  2006 classes12.jar
    -rwxr-xr-x   1 ora<sid>     dba        36684488 Apr 20  2006 libclntsh.so.10.1
    -rwxr-xr-x   1 ora<sid>     dba        5231200 Apr 20  2006 libnnz10.so
    -rwxr-xr-x   1 ora<sid>     dba        3322720 Apr 20  2006 libocci.so.10.1
    -rwxr-xr-x   1 ora<sid>     dba        70117848 Apr 20  2006 libociei.so
    -rwxr-xr-x   1 ora<sid>     dba         201112 Apr 20  2006 libocijdbc10.so
    -rrr--   1 ora<sid>     dba        1540457 Apr 20  2006 ojdbc14.jar
    /oracle/client/9207:
    total 2
    drwxr-xr-x   5 ora<sid>     dba             96 Jan 10  2007 jdbc
    drwxr-xr-x   2 ora<sid>     dba           1024 Jan 10  2007 lib
    drwxr-xr-x   3 ora<sid>     dba             96 Jan 10  2007 network
    drwxr-xr-x   3 ora<sid>     dba             96 Jan 10  2007 ocommon
    drwxr-xr-x   5 ora<sid>     dba             96 Jan 10  2007 oracore
    drwxr-xr-x   3 ora<sid>     dba             96 Jan 10  2007 rdbms
    /oracle/client/9207/jdbc:
    total 62
    -rwxr-xr-x   1 ora<sid>     dba          30654 Jan 10  2007 Readme.txt
    drwxr-xr-x   2 ora<sid>     dba             96 Jan 10  2007 demo
    drwxr-xr-x   2 ora<sid>     dba             96 Jan 10  2007 doc
    drwxr-xr-x   2 ora<sid>     dba           1024 Jan 10  2007 lib
    /oracle/client/9207/jdbc/demo:
    total 880
    -rwxr-xr-x   1 ora<sid>     dba         450560 Jan 10  2007 demo.tar
    /oracle/client/9207/jdbc/doc:
    total 14140
    -rwxr-xr-x   1 ora<sid>     dba        3619840 Jan 10  2007 javadoc.tar
    -rwxr-xr-x   1 ora<sid>     dba        3619840 Jan 10  2007 jdbcdoc.tar
    /oracle/client/9207/jdbc/lib:
    total 34090
    -rwxr-xr-x   1 ora<sid>     dba        1413613 Jan 10  2007 classes111_g.jar
    -rwxr-xr-x   1 ora<sid>     dba        1423863 Jan 10  2007 classes111_g.zip
    -rwxr-xr-x   1 ora<sid>     dba        1234433 Jan 10  2007 classes12.jar
    -rwxr-xr-x   1 ora<sid>     dba        1245538 Jan 10  2007 classes12.zip
    -rwxr-xr-x   1 ora<sid>     dba        1476640 Jan 10  2007 classes12_g.jar
    -rwxr-xr-x   1 ora<sid>     dba        1487705 Jan 10  2007 classes12_g.zip
    -rwxr-xr-x   1 ora<sid>     dba        1240587 Jan 10  2007 classes12dms.jar
    -rwxr-xr-x   1 ora<sid>     dba        1483154 Jan 10  2007 classes12dms_g.jar
    -rwxr-xr-x   1 ora<sid>     dba        1848170 Jan 10  2007 nls_charset12.jar
    -rwxr-xr-x   1 ora<sid>     dba        1878202 Jan 10  2007 nls_charset12.zip
    -rwxr-xr-x   1 ora<sid>     dba          37761 Jan 10  2007 ocrs12.jar
    -rwxr-xr-x   1 ora<sid>     dba          37785 Jan 10  2007 ocrs12.zip
    -rwxr-xr-x   1 ora<sid>     dba        1212964 Jan 10  2007 ojdbc14.jar
    -rwxr-xr-x   1 ora<sid>     dba        1427311 Jan 10  2007 ojdbc14_g.jar
    /oracle/client/9207/lib:
    total 52960
    lrwxr-xr-x   1 ora<sid>     dba             16 May 27 08:31 libclntsh.so -> libclntsh.so.9.0
    -rwxrwxrwx   1 ora<sid>     dba        25754472 Jan 10  2007 libclntsh.so.9.0
    -rwxr-xr-x   1 ora<sid>     dba         406606 Jan 10  2007 libocijdbc9.a
    -rwxr-xr-x   1 ora<sid>     dba         226656 Jan 10  2007 libocijdbc9.so
    -rwxr-xr-x   1 ora<sid>     dba         284592 Jan 10  2007 libocijdbc9_g.so
    -rwxr-xr-x   1 ora<sid>     dba         421258 Jan 10  2007 libocijdbcst9.a
    -rwxr-xr-x   1 ora<sid>     dba          18664 Jan 10  2007 libwtc9.so
    /oracle/client/9207/network:
    total 2
    drwxr-xr-x   2 ora<sid>     dba           1024 May 30 13:46 admin
    /oracle/client/9207/network/admin:
    total 8
    -rw-rr   1 ora<sid>     dba             24 May 29 15:38 snmp_ro.ora
    -rw-r-xr-x   1 ora<sid>     dba            277 May 29 15:38 sqlnet.ora
    -rw-r-xr-x   1 ora<sid>     dba           1332 May 29 15:38 tnsnames.ora.old
    /oracle/client/9207/ocommon:
    total 0
    drwxr-xr-x   3 ora<sid>     dba             96 Jan 10  2007 nls
    /oracle/client/9207/ocommon/nls:
    total 0
    drwxr-xr-x   3 ora<sid>     dba             96 Jan 10  2007 admin
    /oracle/client/9207/ocommon/nls/admin:
    total 28
    drwxr-xr-x   2 ora<sid>     dba          14336 Jan 10  2007 data
    /oracle/client/9207/ocommon/nls/admin/data:
    total 41676
    -rwxr-xr-x   1 ora<sid>     dba            721 Jan 10  2007 lx00001.nlb
    -rwxr-xr-x   1 ora<sid>     dba         124146 Jan 10  2007 lx607d01.nlb
    /oracle/client/9207/oracore:
    total 2
    drwxr-xr-x   2 ora<sid>     dba             96 Jan 10  2007 lib
    drwxr-xr-x   2 ora<sid>     dba           1024 Jan 10  2007 mesg
    drwxr-xr-x   2 ora<sid>     dba             96 Jan 10  2007 zoneinfo
    /oracle/client/9207/oracore/lib:
    total 4210
    -rwxr-xr-x   1 ora<sid>     dba        2155296 Jan 10  2007 libcore9.so
    /oracle/client/9207/oracore/mesg:
    total 116
    -rwxr-xr-x   1 ora<sid>     dba           8704 Jan 10  2007 lfiesa.msb
    -rwxr-xr-x   1 ora<sid>     dba           7168 Jan 10  2007 lfius.msb
    -rwxr-xr-x   1 ora<sid>     dba          27588 Jan 10  2007 lfius.msg
    -rwxr-xr-x   1 ora<sid>     dba           4608 Jan 10  2007 lrmesa.msb
    -rwxr-xr-x   1 ora<sid>     dba           4608 Jan 10  2007 lrmus.msb
    -rwxr-xr-x   1 ora<sid>     dba           4441 Jan 10  2007 lrmus.msg
    /oracle/client/9207/oracore/zoneinfo:
    total 1022
    -rwxr-xr-x   1 ora<sid>     dba           2297 Jan 10  2007 readme.txt
    -rwxr-xr-x   1 ora<sid>     dba         370494 Jan 10  2007 timezlrg.dat
    -rwxr-xr-x   1 ora<sid>     dba         148797 Jan 10  2007 timezone.dat
    /oracle/client/9207/rdbms:
    total 2
    drwxr-xr-x   2 ora<sid>     dba           1024 Jan 10  2007 mesg
    /oracle/client/9207/rdbms/mesg:
    total 8854
    -rwxr-xr-x   1 ora<sid>     dba           8704 Jan 10  2007 bbedus.msb
    -rwxr-xr-x   1 ora<sid>     dba         124079 Jan 10  2007 ulus.msg
    /oracle/client/92x_64:
    total 0
    drwxr-xr-x   2 ora<sid>     dba             96 Mar 12  2004 ietc
    lrwxr-xr-x   1 ora<sid>     dba             23 Mar 12  2004 jdbc -> /oracle/<sid>/920_64/jdbc
    lrwxr-xr-x   1 ora<sid>     dba             22 Mar 12  2004 lib -> /oracle/<sid>/920_64/lib
    drwxr-xr-x   3 ora<sid>     dba             96 Mar 12  2004 ocommon
    /oracle/client/92x_64/ietc:
    total 40
    -rwxr-xr-x   1 ora<sid>     dba          19961 Mar 12  2004 CROCLLNK
    /oracle/client/92x_64/ocommon:
    total 0
    drwxr-xr-x   3 ora<sid>     dba             96 Mar 12  2004 nls
    /oracle/client/92x_64/ocommon/nls:
    total 0
    drwxr-xr-x   2 ora<sid>     dba             96 Mar 12  2004 admin
    /oracle/client/92x_64/ocommon/nls/admin:
    total 0
    lrwxr-xr-x   1 ora<sid>     dba             41 Mar 12  2004 data -> /oracle/<sid>/920_64/ocommon/nls/admin/data
    <sid>adm> which brconnect
    /usr/sap/<SID>/SYS/exe/run/brconnect
    <sid>adm> pwd
    /sapmnt/<sid>/exe
    <sid>adm> ldd brconnect
            libnsl.1 =>     /usr/lib/pa20_64/libnsl.1
            libpthread.1 => /usr/lib/pa20_64/libpthread.1
            libm.2 =>       /usr/lib/pa20_64/libm.2
            Unable to find library 'libclntsh.sl.10.1'.
    Also it is not working even after adding oracle instant client path in SHLIB_PATH
    Regards,
    Vinod

  • Multi-threaded java application and deadlock down in Oracle library

    Hello,
    I was running our Java (JDK 1.6_14) application from Windows XP hitting an Oracle (10g) instance on Linux and came across a deadlock issue with two (of 10) threads. Below is the stacktraces (based on Java thread-dump at the command line). This code I've run 30-40 times with no problems of deadlocks.
    The Oracle library that we're using for our Java application is ojdbc14.jar and sdoapi.jar (for spatial).
    We create our Connection as follows (for each thread -- 10 of them):
    public class Worker implements Runnable
    private Connection _Conn;
    public Worker(...)
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    _Conn = DriverManager.getConnection(url, username, password);
    _Conn.setAutoCommit(false);
    The code that is already executing these same lines below was already executed by other threads (in their own instance of Worker). So this is very confusing.
    Any ideas? Version of the .jar files? Place how we're calling "DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());"?
    Thanks, Jim
    Found one Java-level deadlock:
    =============================
    "WORKER_1":
    waiting to lock monitor 0x02b50d8c (object 0x22e8af80, a oracle.jdbc.driver.T4CConnection),
    which is held by "WORKER_0"
    "WORKER_0":
    waiting to lock monitor 0x02b50d24 (object 0x22f6d258, a oracle.sql.StructDescriptor),
    which is held by "WORKER_1"
    Java stack information for the threads listed above:
    ===================================================
    "WORKER_1":
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3410)
    - waiting to lock <0x22e8af80> (a oracle.jdbc.driver.T4CConnection)
    at oracle.sql.StructDescriptor.initMetaData1_9_0(StructDescriptor.java:1516)
    - locked <0x22f6d258> (a oracle.sql.StructDescriptor)
    - locked <0x22eabd80> (a oracle.jdbc.driver.T4CConnection)
    at oracle.sql.StructDescriptor.initMetaData1(StructDescriptor.java:1408)
    at oracle.sql.StructDescriptor.isInstantiable(StructDescriptor.java:892)
    at oracle.sql.STRUCT.<init>(STRUCT.java:148)
    at oracle.spatial.geometry.JGeometry.store(JGeometry.java:2954)
    at oracle.spatial.geometry.JGeometry.store(JGeometry.java:3777)
    .......... <our package/class>
    "WORKER_0":
    at oracle.sql.StructDescriptor.initMetaData1_9_0(StructDescriptor.java:1494)
    - waiting to lock <0x22f6d258> (a oracle.sql.StructDescriptor)
    - locked <0x22e8af80> (a oracle.jdbc.driver.T4CConnection)
    at oracle.sql.StructDescriptor.initMetaData1(StructDescriptor.java:1408)
    at oracle.sql.StructDescriptor.isInstantiable(StructDescriptor.java:892)
    at oracle.sql.STRUCT.<init>(STRUCT.java:148)
    at oracle.spatial.geometry.JGeometry.store(JGeometry.java:2954)
    at oracle.spatial.geometry.JGeometry.store(JGeometry.java:3777)
    ..........<our package/class>
    Edited by: Jim Atharris on Aug 24, 2009 6:23 PM

    Thanks Toon for your reply.
    Yes each Worker (executing in their own thread) has their own instance of Connection as per the Constructor (shown in original post). That is why this is weird.
    I'll check the v$session when I get into work.
    Based on our code that I put in the original email, Connection is a non-static variable. We have a per Thread per instance of Worker of which that Worker instance has its own instance of Connection. So I'm wonder if the following needs to occur:
    Both of these lines (from original email) need to happen in the main thread as follows:
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    for (i=0;i<NUM_OF_WORKERS)
    _Conn = DriverManager.getConnection(url, username, password);
    new Worker(_Conn);
    Thanks,Jim

  • Oracle Library Location change

    Oracle 8 installs 32-bit libraries in $ORACLE_HOME/lib and 64-bit libraries in $ORACLE_HOME/lib64.
    Oracle 9i installs 64-bit libraries in $ORACLE_HOME/lib and 32-bit libraries in $ORACLE_HOME/lib32
    I know this change is done definitely on solaris Platform
    Could you please confirm all the other UNIX platforms that this change was made on ?
    Thanks in advance,
    Rajpal Paryani

    When I read your title, my first thought was "My Oracle library is exactly where it always has been - top 2 shelves left wall of my office. It's so importannt, why would anyone chage their Library??"
    But - in answer to your question, I highly recommend reading the relevant Metalink Note:131321.1 and Note:271451.1

  • 32-bit C++ program call 64 bit oracle library

    Currently I had a 32-bit program written in C++, and it called some 64-bit Oracle libraries.
    Since occasionally, we found that there is some core dump error when the program executed for more than 3 hours, and our DBA highlight this finding to us.
    I would like to check if it is safe to call the 64-bit libraries in a 32-bit program.
    How can I recompile my exe to 64-bit
    Currently, the program is run on SunOS 5.8
    Thanks
    Regards,
    Eddie

    It is not possible for a 32-bit program to link to or dlopen a 64-bit library. So your 32-bit program is not calling 64-bit functions. If you somehow managed to make such a call (and I don't see how you could) the program would crash immediately.
    Maybe you mean you are opening a large file (bigger than 4GB) by means of LARGEFILE macros. The program itself is still limited to a 32-bit address space, but can read, write, and move around inside the large file.
    If your program crashes, try running dbx, pointing it to the program and the core file and see where it crashed. Or run the program under dbx.
    You can compile your program to run as a 64-bit program (automatically getting large-file support) by adding the option -xarch=v9 to every compile and link command line. All parts of the program, including all libraries you use, must also have been compiled with -xarch=v9. The compiler will automatically use the 64-bit versions of system libraries when you use -xarch=v9. If you link to 3rd-party libraries (such as Oracle), follow the vendor's instructions for 64-bit code.
    If the program was not written to be a 64-bit program, it might have hidden assumptions that prevent it from working as a 64-bit program. Typical problems are assuming that ints and longs, or ints and pointers, are the same size. For C code, you can use lint options to warn about 64-bit portability problems. For C++ code, you can use the option combination "-xarch=v9 -xport64" to get portability warnings. Refer to the C and C++ manuals for more information.
    The Solaris "file" command will tell you whether a program or library uses 32-bit or 64-bit code.
    For example:
    % file /usr/lib/libc.so.1
    /usr/lib/libc.so.1:     ELF 32-bit MSB dynamic lib SPARC Version 1, dynamically linked, not stripped
    % file /usr/lib/sparcv9/libc.so.1
    /usr/lib/sparcv9/libc.so.1:     ELF 64-bit MSB dynamic lib SPARCV9 Version 1, dynamically linked, not stripped

  • Oracle library for Python

    Hi everyone,
    I'm starting a little python program that requires oracle support.
    Anyone can recommend a good python library?

    Jared, I found the test suite in the source code for cx_Oracle and upon investigating a little bit I found that you can simply use the datetime class to pass parameters to an instruction.
    I built this test case to work out of the box for you to test. Regarding the python script, just paste it in a file and run it from the command line. I know I could have written a smaller example (the biggest part of the code are comments, error handlers and input parameters checks) but I'm a passionate developer... :)
    My locale date format is dd/mm/yyyy and as this script worked ok here I think issues regarding the date format are taken care. I still have to verify if there's some kind of performance penalty using the class (I will try with bulk inserts to check). From a developer view I find this method clearer to use and less code to write.
    First the objects to be created in the database.
    create sequence dat_test_seq;
    create table dat_test_tab (c_id number, c_date date);
    create or replace procedure dat_test_prc (p_date in dat_test_tab.c_date%type)
    is
    begin
    insert into dat_test_tab (c_id, c_date) values (dat_test_seq.nextval, p_date);
    commit;
    end dat_test_prc;
    /Now the Python script:
    #! /usr/bin/env python
    # -- coding: utf-8 --
    import cx_Oracle as ora
    from optparse import OptionParser
    import locale
    import datetime as dt
    # check the local settings.-
    locale.setlocale(locale.LC_ALL, '')
    dateformat = locale.nl_langinfo(locale.D_FMT)
    # a little cosmetic work to output the expected date format
    dateformat = dateformat.replace('%', '')
    dateformat = dateformat.replace('d', 'dd')
    dateformat = dateformat.replace('m', 'mm')
    dateformat = dateformat.replace('y', 'yyyy')
    # these are the options the script accepts
    parser = OptionParser(description="Testing dates as input parameters in oracle using cx_Oracle.")
    parser.add_option("-u", "--ora-usr", dest="usr", help="User")
    parser.add_option("-p", "--ora-pwd", dest="pwd", help="Password")
    parser.add_option("-d", "--ora-dbn", dest="dbn", help="Database")
    parser.add_option("-t", "--ex-date", dest="dat", help="Date to be imported, format model: "+dateformat)
    (options, args) = parser.parse_args()
    for option in vars(options):
        if getattr(options, option)==None:
           parser.error("Wrong number of parameters.")
    # we work with the date input parameter to cast a date.-
    lexp = dateformat.split('/')
    lrea = options.dat.split('/')
    try:
      dia = int(lrea[lexp.index('dd')])
      mes = int(lrea[lexp.index('mm')])
      ano = int(lrea[lexp.index('yyyy')])
    except IndexError, errmsg:
    print "The format delimiter is wrong. Error message: ",errmsg
    sys.exit(1)
    # We initiate the class passing our values.
    try:
      dat = dt.date(ano,mes,dia)
    except TypeError, errmsg:
        print "Wrong Input parameters for date. Error message: ",errmsg
        sys.exit(2)
    # Let's try the database connection
    try:
    con = ora.connect(options.usr, options.pwd, options.dbn)
    con.module = "%prog"
    except ora.DatabaseError, errmsg:
    print "Connection error. Error message: ",errmsg
    sys.exit(3)
    cur = con.cursor()
    # we execute the procedure, we're passing the date parameter as a python datetime class
    try:
        cur.callproc("DAT_TEST_PRC", [dat])
    except ora.DatabaseError, errmsg:
    print "Execution error. Error message: ",errmsg
    sys.exit(5)
    # let's see what's in the table:
    try:
        cur.execute('SELECT * FROM DAT_TEST_TAB')
        row = cur.fetchall()
        print row
    except ora.DatabaseError, errmsg:
    print "Execution error. Error message: ",errmsg
    sys.exit(6)
    # We're done, let's go
    con.close()
    print "Database connection close."
    print "Script ends"Suggestions, criticism and more tips to share are always welcome.

  • Using Notes and Oracle Client in the same application on Linux crashes

    This thread is copied from a thread of the same name under Database - General, since I cannot get any replies there.
    Could someone from Oracle PLEASE comment on this.
    Our application on Linux loads the Notes client libraries and then the Oracle client libraries. The application will crashes when connectimg to an Oracle server. This is because the T_* symbols in libnnz11.so get fixed up into libnotes.so rather than locally into libnnz11.so where the functions are defined.
    #10 0xb4779ea6 in T_malloc () from /opt/ibm/lotus/notes/libnotes.so
    #11 0xae7ca050 in CMP_reallocNoCopy ()
    from /opt/oracle/product/10.2/db_1/lib/libnnz11.so
    #12 0xae7ccf7b in CMP_OctetStringToCMPInt ()
    from /opt/oracle/product/10.2/db_1/lib/libnnz11.so
    #13 0xae7c91fd in A_X931RandomInit ()
    from /opt/oracle/product/10.2/db_1/lib/libnnz11.so
    #14 0xaec09e0d in ztcriv ()
    from /opt/oracle/product/10.2/db_1/lib/libclntsh.so.10.1
    #15 0xaec09cef in ztcrbp ()
    from /opt/oracle/product/10.2/db_1/lib/libclntsh.so.10.1
    #16 0xaec09ca4 in ztcr2seed ()
    from /opt/oracle/product/10.2/db_1/lib/libclntsh.so.10.1
    #17 0xaec09c54 in ztcrseed3 ()
    from /opt/oracle/product/10.2/db_1/lib/libclntsh.so.10.1
    #18 0xaeb40683 in ztcsh ()
    from /opt/oracle/product/10.2/db_1/lib/libclntsh.so.10.1
    #19 0xaea631c4 in kpusattr ()
    from /opt/oracle/product/10.2/db_1/lib/libclntsh.so.10.1
    #20 0xaea7847e in OCIAttrSet ()
    from /opt/oracle/product/10.2/db_1/lib/libclntsh.so.10.1
    #21 0xb081cb9f in COCIObject::Connect ()
    from /opt/criticalpath/common/bin/libor9i.so
    We have circumvented the problem for the time being by making sure that we load the Oracle libraries before Notes, but we cannot go with that as a long term solution.
    In my opinion the Oracle library is wrongly linked since all the T_* functions are defined in libnnz11.so. When we load Oracle first, the loader debug trace shows the correct fixups. When we load Notes first, the loader trace shows the incorrect fixups. We are using dlopen(libor9i.so, RTLD_LOCAL) for Oracle and dlopen(libnotes.so, RTLD_LOCAL) for Notes. libor9i.so has a dependency on libclntsh.so.10.1.
    An opinion would really be appreciated.
    Thanks,
    John Unsworth

    Thanks again.
    We don't have an Oracle support contract because we do not use Oracle ourselves. We supply an application that synchronises data between multiple data servers and server types, of which Oracle is one and Notes is another, as well as LDAP servers and many other types.
    Producing a full resolved binary is therefore not an option since the types of data server are configured when the apploication is installed, and then the client software for each server is loaded as required.
    The end user of the application supplies the client libraries and has a support contract for the servers, in particular Oracle and Notes in this case. So the other option is for the end user to raise a ticket using his support contract, but he is reluctant to do that since he considers that this is our problem as we supply the application that is having the problem. So we are in a dead water area. We do not want to take out a support contract just to get what is an Oracle product problem resolved. I imagine that this problem is something that has not been encountered before, because our use of the client library in conjunction with other client libraries is probably unusual.
    So that is why I am hoping, without any success so far, that someone from Oracle will pick this up.

  • Unable load  library '/usr/lib64/php/modules/oci8.so' - libclntsh.so.11.1

    Dear all,
    I have a problem with OCI8 installation and I would appreciate if you could kindly guide me how to solve this issue.
    I started reading the following articles in order to learn how to install the OCI8 package allowing to connect from PHP to oracle
    http://www.php.net/manual/en/oci8.installation.php
    http://www.oracle.com/technetwork/articles/technote-php-instant-084410.html
    Here is my environment description
    OS: Fedora Core 17 (X86_64)
    Oracle version: Oracle Enterprise Edition 11gR2 (11.2.0.1.0) X86_64
    PHP Version: 5.4.13
    Apache version: 2.2.23Just a detail: almost every documentation starts by explaining the instant client installation. However, on the same physical machine, before even installing Apache and PHP. Oracle server had been completely installed, that is, both server and client (SQL*Plus, SQL*Loader, . . .). As a result, I omitted this step in the documentation and I continued by installation direcly OCI8 and apparently everything was compiled successfully (no error message).
    Problem: OCI8 doesn't show up in phpinfo()
    So it seems that there is a problem. I'm going to write down exactly how I proceeded and I would appreciate if you could kindly take a look at these steps and tell whether I made mistake(s)
    I started by running as ROOT. As I said the oracle server was already installed on the machine and so all the required environment variables such as LD_LIBRARY_PATH, ORACLE_SID, . . . were already defined in ~/.bash_profile
    And if you look at the below output, you can see that for example ORACLE_HOME was detected automatically during the installation (*checking Oracle ORACLE_HOME install directory... /u01/app/oracle/product/11.2.0/db_1*)
    # pecl install oci8This gave me the following output
    # pecl install oci8
    downloading oci8-1.4.9.tgz ...
    Starting to download oci8-1.4.9.tgz (169,255 bytes)
    .....................................done: 169,255 bytes
    10 source files, building
    running: phpize
    Configuring for:
    PHP Api Version:         20100412
    Zend Module Api No:      20100525
    Zend Extension Api No:   220100525
    Please provide the path to the ORACLE_HOME directory. Use 'instantclient,/path/to/instant/client/lib' if you're compiling with Oracle Instant Client [autodetect] :
    building in /var/tmp/pear-build-rootGiD7YE/oci8-1.4.9
    running: /var/tmp/oci8/configure --with-oci8
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for a sed that does not truncate output... /usr/bin/sed
    checking for cc... cc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether cc accepts -g... yes
    checking for cc option to accept ISO C89... none needed
    checking how to run the C preprocessor... cc -E
    checking for icc... no
    checking for suncc... no
    checking whether cc understands -c and -o together... yes
    checking for system library directory... lib
    checking if compiler supports -R... no
    checking if compiler supports -Wl,-rpath,... yes
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking target system type... x86_64-unknown-linux-gnu
    checking for PHP prefix... /usr
    checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib
    checking for PHP extension directory... /usr/lib64/php/modules
    checking for PHP installed headers prefix... /usr/include/php
    checking if debug is enabled... no
    checking if zts is enabled... no
    checking for re2c... no
    configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
    checking for gawk... gawk
    checking for Oracle Database OCI8 support... yes, shared
    checking PHP version... 5.4.13, ok
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking size of long int... 8
    checking checking if we're on a 64-bit platform... yes
    checking Oracle ORACLE_HOME install directory... /u01/app/oracle/product/11.2.0/db_1
    checking ORACLE_HOME library validity... lib
    checking Oracle library version compatibility... 11.1
    checking how to print strings... printf
    checking for a sed that does not truncate output... (cached) /usr/bin/sed
    checking for fgrep... /usr/bin/grep -F
    checking for ld used by cc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface... BSD nm
    checking whether ln -s works... yes
    checking the maximum length of command line arguments... 1572864
    checking whether the shell understands some XSI constructs... yes
    checking whether the shell understands "+="... yes
    checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
    checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
    checking for /usr/bin/ld option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... pass_all
    checking for dlltool... no
    checking how to associate runtime and link libraries... printf %s\n
    checking for ar... ar
    checking for archiver @FILE support... @
    checking for strip... strip
    checking for ranlib... ranlib
    checking for gawk... (cached) gawk
    checking command to parse /usr/bin/nm -B output from cc object... ok
    checking for sysroot... no
    checking for mt... no
    checking if : is a manifest tool... no
    checking for dlfcn.h... yes
    checking for objdir... .libs
    checking if cc supports -fno-rtti -fno-exceptions... no
    checking for cc option to produce PIC... -fPIC -DPIC
    checking if cc PIC flag -fPIC -DPIC works... yes
    checking if cc static flag -static works... no
    checking if cc supports -c -o file.o... yes
    checking if cc supports -c -o file.o... (cached) yes
    checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... no
    configure: creating ./config.status
    config.status: creating config.h
    config.status: executing libtool commands
    running: make
    /bin/sh /var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/libtool --mode=compile cc  -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/include -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/main -I/var/tmp/oci8 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/u01/app/oracle/product/11.2.0/db_1/rdbms/public -I/u01/app/oracle/product/11.2.0/db_1/rdbms/demo  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/oci8/oci8.c -o oci8.lo
    libtool: compile:  cc -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/include -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/main -I/var/tmp/oci8 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/u01/app/oracle/product/11.2.0/db_1/rdbms/public -I/u01/app/oracle/product/11.2.0/db_1/rdbms/demo -DHAVE_CONFIG_H -g -O2 -c /var/tmp/oci8/oci8.c  -fPIC -DPIC -o .libs/oci8.o
    /bin/sh /var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/libtool --mode=compile cc  -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/include -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/main -I/var/tmp/oci8 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/u01/app/oracle/product/11.2.0/db_1/rdbms/public -I/u01/app/oracle/product/11.2.0/db_1/rdbms/demo  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/oci8/oci8_lob.c -o oci8_lob.lo
    libtool: compile:  cc -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/include -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/main -I/var/tmp/oci8 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/u01/app/oracle/product/11.2.0/db_1/rdbms/public -I/u01/app/oracle/product/11.2.0/db_1/rdbms/demo -DHAVE_CONFIG_H -g -O2 -c /var/tmp/oci8/oci8_lob.c  -fPIC -DPIC -o .libs/oci8_lob.o
    /bin/sh /var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/libtool --mode=compile cc  -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/include -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/main -I/var/tmp/oci8 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/u01/app/oracle/product/11.2.0/db_1/rdbms/public -I/u01/app/oracle/product/11.2.0/db_1/rdbms/demo  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/oci8/oci8_statement.c -o oci8_statement.lo
    libtool: compile:  cc -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/include -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/main -I/var/tmp/oci8 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/u01/app/oracle/product/11.2.0/db_1/rdbms/public -I/u01/app/oracle/product/11.2.0/db_1/rdbms/demo -DHAVE_CONFIG_H -g -O2 -c /var/tmp/oci8/oci8_statement.c  -fPIC -DPIC -o .libs/oci8_statement.o
    /bin/sh /var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/libtool --mode=compile cc  -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/include -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/main -I/var/tmp/oci8 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/u01/app/oracle/product/11.2.0/db_1/rdbms/public -I/u01/app/oracle/product/11.2.0/db_1/rdbms/demo  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/oci8/oci8_collection.c -o oci8_collection.lo
    libtool: compile:  cc -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/include -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/main -I/var/tmp/oci8 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/u01/app/oracle/product/11.2.0/db_1/rdbms/public -I/u01/app/oracle/product/11.2.0/db_1/rdbms/demo -DHAVE_CONFIG_H -g -O2 -c /var/tmp/oci8/oci8_collection.c  -fPIC -DPIC -o .libs/oci8_collection.o
    /bin/sh /var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/libtool --mode=compile cc  -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/include -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/main -I/var/tmp/oci8 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/u01/app/oracle/product/11.2.0/db_1/rdbms/public -I/u01/app/oracle/product/11.2.0/db_1/rdbms/demo  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/oci8/oci8_interface.c -o oci8_interface.lo
    libtool: compile:  cc -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/include -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/main -I/var/tmp/oci8 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/u01/app/oracle/product/11.2.0/db_1/rdbms/public -I/u01/app/oracle/product/11.2.0/db_1/rdbms/demo -DHAVE_CONFIG_H -g -O2 -c /var/tmp/oci8/oci8_interface.c  -fPIC -DPIC -o .libs/oci8_interface.o
    /bin/sh /var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/libtool --mode=link cc -DPHP_ATOM_INC -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/include -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/main -I/var/tmp/oci8 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/u01/app/oracle/product/11.2.0/db_1/rdbms/public -I/u01/app/oracle/product/11.2.0/db_1/rdbms/demo  -DHAVE_CONFIG_H  -g -O2   -o oci8.la -export-dynamic -avoid-version -prefer-pic -module -rpath /var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/modules  oci8.lo oci8_lob.lo oci8_statement.lo oci8_collection.lo oci8_interface.lo -Wl,-rpath,/u01/app/oracle/product/11.2.0/db_1/lib -L/u01/app/oracle/product/11.2.0/db_1/lib -lclntsh
    libtool: link: cc -shared  -fPIC -DPIC  .libs/oci8.o .libs/oci8_lob.o .libs/oci8_statement.o .libs/oci8_collection.o .libs/oci8_interface.o   -L/u01/app/oracle/product/11.2.0/db_1/lib -lclntsh  -O2 -Wl,-rpath -Wl,/u01/app/oracle/product/11.2.0/db_1/lib   -Wl,-soname -Wl,oci8.so -o .libs/oci8.so
    libtool: link: ( cd ".libs" && rm -f "oci8.la" && ln -s "../oci8.la" "oci8.la" )
    /bin/sh /var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/libtool --mode=install cp ./oci8.la /var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/modules
    libtool: install: cp ./.libs/oci8.so /var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/modules/oci8.so
    libtool: install: cp ./.libs/oci8.lai /var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/modules/oci8.la
    libtool: finish: PATH="/usr/bin:/usr/lib64/qt-3.3/bin:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/.local/bin:/root/bin:/usr/local/jdk1.7.0_05/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/u01/app/oracle/product/11.2.0/db_1/bin:/opt/libreoffice4.0/program:/root/.local/bin:/root/bin:/usr/local/jdk1.7.0_05/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/u01/app/oracle/product/11.2.0/db_1/bin:/opt/libreoffice4.0/program:/root/.local/bin:/root/bin:/usr/local/jdk1.7.0_05/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/u01/app/oracle/product/11.2.0/db_1/bin:/opt/libreoffice4.0/program:/root/.local/bin:/root/bin:/usr/local/jdk1.7.0_05/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/u01/app/oracle/product/11.2.0/db_1/bin:/opt/libreoffice4.0/program:/root/.local/bin:/root/bin:/usr/local/jdk1.7.0_05/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/u01/app/oracle/product/11.2.0/db_1/bin:/op
    t/libreoffice4.0/program:/root/.local/bin:/root/bin:/usr/local/jdk1.7.0_05/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/u01/app/oracle/product/11.2.0/db_1/bin:/opt/libreoffice4.0/program:/sbin" ldconfig -n /var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/modules
    Libraries have been installed in:
       /var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/modules
    If you ever happen to want to link against installed libraries
    in a given directory, LIBDIR, you must either use libtool, and
    specify the full pathname of the library, or use the `-LLIBDIR'
    flag during linking and do at least one of the following:
       - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
         during execution
       - add LIBDIR to the `LD_RUN_PATH' environment variable
         during linking
       - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
       - have your system administrator add LIBDIR to `/etc/ld.so.conf'
    See any operating system documentation about shared libraries for
    more information, such as the ld(1) and ld.so(8) manual pages.
    Build complete.
    Don't forget to run 'make test'.
    running: make INSTALL_ROOT="/var/tmp/pear-build-rootGiD7YE/install-oci8-1.4.9" install
    Installing shared extensions:     /var/tmp/pear-build-rootGiD7YE/install-oci8-1.4.9/usr/lib64/php/modules/
    running: find "/var/tmp/pear-build-rootGiD7YE/install-oci8-1.4.9" | xargs ls -dils
    3679979   4 drwxr-xr-x. 3 root root   4096 Apr  4 15:48 /var/tmp/pear-build-rootGiD7YE/install-oci8-1.4.9
    3680009   4 drwxr-xr-x. 3 root root   4096 Apr  4 15:48 /var/tmp/pear-build-rootGiD7YE/install-oci8-1.4.9/usr
    3680010   4 drwxr-xr-x. 3 root root   4096 Apr  4 15:48 /var/tmp/pear-build-rootGiD7YE/install-oci8-1.4.9/usr/lib64
    3680011   4 drwxr-xr-x. 3 root root   4096 Apr  4 15:48 /var/tmp/pear-build-rootGiD7YE/install-oci8-1.4.9/usr/lib64/php
    3680012   4 drwxr-xr-x. 2 root root   4096 Apr  4 15:48 /var/tmp/pear-build-rootGiD7YE/install-oci8-1.4.9/usr/lib64/php/modules
    3680008 596 -rwxr-xr-x. 1 root root 606865 Apr  4 15:48 /var/tmp/pear-build-rootGiD7YE/install-oci8-1.4.9/usr/lib64/php/modules/oci8.so
    Build process completed successfully
    Installing '/usr/lib64/php/modules/oci8.so'
    install ok: channel://pecl.php.net/oci8-1.4.9
    configuration option "php_ini" is not set to php.ini location
    You should add "extension=oci8.so" to php.ini
    # Once OCI8 was installed I updated the */etc/php.ini* accordingly by adding the following entries
    ; Dynamic Extensions ;
    ; If you wish to have an extension loaded automatically, use the following
    ; syntax:
    ;   extension=modulename.extension
    extension=oci8.so
    ; Paths and Directories ;
    ; UNIX: "/path1:/path2"
    extension_dir="/usr/lib64/php/modules"Also I updated the */etc/sysconfig/httpd* in order to export the specified set of OS environment variables. So I added the following lines at the end of the file
    ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
    LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/db_1/lib:/u01/app/oracle/product/11.2.0/db_1/network/lib
    LD_LIBRARY_PATH64=/u01/app/oracle/product/11.2.0/db_1/lib:/u01/app/oracle/product/11.2.0/db_1/network/lib
    TNS_ADMIN=/u01/app/oracle/product/11.2.0/db_1/network/admin
    NLS_LANG=AMERICAN_AMERICA.WE8MSWIN1252
    ORACLE_SID=db01In order to check that these values are actually taken into account by Apache, I run
    # service httpd restartThen I run a PHP script with phpinfo() and in the section Environment the above values were present in particular the LD_LIBRARY_PATH variable.
    However, as I said, there is no OCI8 entry in phpinfo() output. I checked the apache log file and I saw that there is a problem
    # cat /var/log/httpd/error_log
    [Thu Apr 04 16:02:13 2013] [notice] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
    [Thu Apr 04 16:02:13 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
    [Thu Apr 04 16:02:13 2013] [notice] Digest: generating secret for digest authentication ...
    [Thu Apr 04 16:02:13 2013] [notice] Digest: done
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/oci8.so' - libclntsh.so.11.1: cannot open shared object file: No such file or directory in Unknown on line 0
    [Thu Apr 04 16:02:13 2013] [warn] mod_wsgi: Compiled for Python/2.7.2.
    [Thu Apr 04 16:02:13 2013] [warn] mod_wsgi: Runtime using Python/2.7.3.
    [Thu Apr 04 16:02:13 2013] [notice] Apache/2.2.23 (Unix) DAV/2 PHP/5.4.13 mod_wsgi/3.3 Python/2.7.3 configured -- resuming normal operations
    #What I understand from the above log is that the shared library libclntsh.so.11.1 cannot be found. Yet I checked and I saw that it is present in LD_LIBRARY_PATH
    # locate libclntsh.so
    /u01/app/oracle/product/11.2.0/db_1/inventory/Scripts/ext/lib/libclntsh.so.11.1
    /u01/app/oracle/product/11.2.0/db_1/inventory/backup/2012-06-25_12-08-41PM/Scripts/ext/lib/libclntsh.so.11.1
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.10.1
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1
    # So the last line, shows that the specified library exists in */u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1*.
    So I don't really seem what is the problem and the more strange thing is that in command line PHP seem to detect my oracle server parameters.
    $ php --ri oci8
    oci8
    OCI8 Support => enabled
    Version => 1.4.9
    Revision => $Id: e2241cffb72c940cb2ca267b7a6a0ce436de7e5e $
    Active Persistent Connections => 0
    Active Connections => 0
    Oracle Run-time Client Library Version => 11.2.0.1.0
    Oracle Version => 11.2
    Compile-time ORACLE_HOME => /u01/app/oracle/product/11.2.0/db_1
    Libraries Used => -Wl,-rpath,/u01/app/oracle/product/11.2.0/db_1/lib -L/u01/app/oracle/product/11.2.0/db_1/lib  -lclntsh
    Temporary Lob support => enabled
    Collections support => enabled
    Directive => Local Value => Master Value
    oci8.max_persistent => -1 => -1
    oci8.persistent_timeout => -1 => -1
    oci8.ping_interval => 60 => 60
    oci8.privileged_connect => Off => Off
    oci8.statement_cache_size => 20 => 20
    oci8.default_prefetch => 100 => 100
    oci8.old_oci_close_semantics => Off => Off
    oci8.connection_class => no value => no value
    oci8.events => Off => Off
    $ I thought maybe there are several different php.ini and the one used within GUI is not the same used in CLI but a search showed that there is just one php.ini file
    # locate php.ini
    /etc/php.ini
    # php -i | grep Configuration
    Configuration File (php.ini) Path => /etc
    Loaded Configuration File => /etc/php.ini
    Configuration
    #It is almost 3 days that I'm googling without success to find the solution to this problem.
    So, could someone help me, what is the problem? Why the OCI8 module cannot be loaded by PHP and become visible in the phpinfo() output?
    Thanks in advance,
    Regards,
    Dariyoosh

    cj wrote:
    Try disabling SELinux. On Oracle Linux you would edit /etc/selinux/config, set SELINUX to DISABLED, and reboot. Also see the setenforce command.Yes !!!!!!!!
    Thanks man it worked !! It was SELinux which was blocking the library load. Now I have OCI8 entry in phpinfo(). At the same time as we saw before the PHP in command line could detect OCI8, maybe this means that SELinux doesn't have the same impact in CLI as in GUI. Conclusion, you were totally correct about defining the environment variables in /etc/syscnfig/httpd. The variables were actually defined (with a slight difference in syntax that I will show below), yet SELinux prevented PHP from loading the oracle libraray.
    I also wrote a test SQL script (SELECT employee_id FROM employees WHERE department_id = 100) and the result was printed on the screen perfectly.
    So for those who may have encountered the same problem with the same environment parameters I'm going to give a summary of how I proceeded in the case where it might be helpful for others.
    My environment
    OS: Linux Fedora Core 17 (X86_64)
    Oracle version: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit
    Apache version (httpd): Apache 2.0
    PHP version: 5.4.13
    Before the installation
    Before the installation I disabled SELinux. At the time of writing I'm not an expert of SELinux so I don't know any rule modification in order to modify SELinux policy accordingly allowing to OCI8 module to load oracle libraries. As a result I finally disabled completely the SELinux on my system which may have serious security impacts! This can be done in the following way (being as root)
    # vim  /etc/selinux/configThe file content is something similar to the following
    # This file controls the state of SELinux on the system.
    # SELINUX= can take one of these three values:
    #     enforcing - SELinux security policy is enforced.
    #     permissive - SELinux prints warnings instead of enforcing.
    #     disabled - No SELinux policy is loaded.
    SELINUX=enforcing
    # SELINUXTYPE= can take one of these two values:
    #     targeted - Targeted processes are protected,
    #     minimum - Modification of targeted policy. Only selected processes are protected.
    #     mls - Multi Level Security protection.
    SELINUXTYPE=targeted So what I did was that I put a comment at the beginning of the line SELINUX=enforcing and instead I added a new line right after that line which was SELINUX=disabled.
    Finally I rebooted the system.
    Installation:
    - Make sure that all oracle environment variables are defined in ~/.bash_profile of the user who installs OCI8. Otherwise you will have to enter manually the path to $ORACLE_HOME. I tested both ways and each method works pretty well. Yet I find the first one more elegant because it detects automatically everything
    - In my case, PHP, Apache and Oracle server were all on the same physical machine, therefore I didn't need to install the Oracle Instant client*. All the required oracle libraries for OCI8 were therefore already available.
    - being as ROOT, I run the following (I don't know whether this was mandatory but I prefered to stop httpd before installing OCI8)
    # pecl install oci8(On my machine pecl was already there, if not you can install it by using yum)
    - Once installation is over, at the end of the installation report in the terminal you will get something like this
    >
    Build process completed successfully
    Installing '/usr/lib64/php/modules/oci8.so'
    install ok: channel://pecl.php.net/oci8-1.4.9
    configuration option "php_ini" is not set to php.ini location
    You should add "extension=oci8.so" to php.ini
    >
    The two bold lines above shows what you have to put in your php.ini file (on my computer this file is in */etc/php.ini* )
    So I updated the php.ini file in the following way:
    ; Dynamic Extensions ;
    ; If you wish to have an extension loaded automatically, use the following
    ; syntax:
    ;   extension=modulename.extension
    extension=oci8.so
    ; Paths and Directories ;
    ; UNIX: "/path1:/path2"
    extension_dir="/usr/lib64/php/modules"Then you have to define the required oracle environment variables for Apache. According to what I read in http://www.oracle.com/technetwork/topics/php/underground-php-oracle-manual-098250.html and in several forums while I was googling for this problem and also based on my own tests, it seems to me that depending on which Apache version you're using, the syntax for declaring the environment variables in */etc/sysconfig/httpd* is not the same.
    Here is what I added at the end of the file /etc/sysconfig/httpd
    ORACLE_BASE=/u01/app/oracle
    ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
    LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/db_1/lib:/u01/app/oracle/product/11.2.0/db_1/network/lib
    TNS_ADMIN=/u01/app/oracle/product/11.2.0/db_1/network/admin
    NLS_LANG=AMERICAN_AMERICA.WE8MSWIN1252
    ORACLE_SID=db01I tried to use the export keyword before the variable names but it didn't work for me, yet I saw in other forums that there were people who apparently had used that syntax successfully. So again it is a matter of personal observation. For me using Apache 2.0, only the above syntax works. Also if I use $ in order to expand the environment variables it doesn't work
    so for example instead of writing
    ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/network/libI had to write explicitly the expanded values myself, that is,
    ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
    LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/db_1/lib:/u01/app/oracle/product/11.2.0/db_1/network/libOnce this is done, restart httpd
    # service httpd startIf everything went well, normally you will see the OCI8 entry if you run phpinfo() in a test PHP script.
    Hope this may help others,
    Once again, thanks a lot to cj for his time and his valuable help for solving my problem.
    Regards,
    Dariyoosh

  • Is this supposed to be the most reliable database server? A msg to oracle.

    Hi, it's been 3 weeks now that I'm fiddling with oracle 11g and I am surprised with the amount of installation/startup/shutdown/management issues that I am facing. I need to evaluate oracle as a possible replacement for sql server, I am supposed to test oracle's scalability vs sql server scalability but so far I was messed up by all kind of installation/management issues. Is Oracle a product always in alpha stage?
    I am not new with oracle, I've used oracle 10g in the past and I went through all the oracle library documentation (concepts, dba guide, sql reference etc). By now I am pretty confident with db concepts like control files, redo logs, spfile, tablespaces etc.
    I've installed it on 4 machines:
    1. windows xp 64bit, 40GB Ram
    installation went ok, database + listener + dbconsole started correctly. I did a few things but after rebooting the machine the db did not start! (it complained that it tried to allocate 0 bytes of memory where it needed 2mb for some reason).
    dbca is supposed to configure an instance but guess what? To configure the instance if first must start the instance and ofcourse in my case it couldn't start the instance!!!
    After reading docs, googling etc, I exported spfile to pfile , manually edited the pfile, imported the pfile as spfile and the db finally started working.
    Why on earth a product costing so much can't survive a reboot?
    2. centos 5.3 64bit on a P4 machine with 2gb ram
    installed ok, database + listener + dbconsole started ok after install. There is no script that I am aware which starts or shuts down the db nor the installer prompted me to install the db as a service (/etc/init.d). So I manually had to create scripts to start/shutdown the db by exporting ORACLE_HOME, ORACLE_SID and using dbstart.sh and dbshut.sh and also calling emctrl start dbconsole.
    Which means that if someone doesn't shut down the instance before rebooting linux, will the db shut down abnormally?
    I would expect a product that costs £13k to install itself properly on linux. mysql is free but comes with proper installations in most linux flavors.
    3. centos 5.3, 64bit on an athlon 64 3000+ with 1gb ram.
    installed ok, database + listener + dbconsole started ok after install. As you can guess, it didn't survive a reboot. Anyway to make long story short, I managed to create startup/shutdown scripts and all started working.
    Then I tried to play admin for a while, i.e. tried to move tablespaces, backup/restore db, backup tablespaces and so on, using dbconsole. Oh well, I can't count the times dbconsole was failing... Are we the beta testers of dbconsole?
    But then I needed to change the domain name of the machine and bang! All db services broken again. After fiddling with listener.ora and other config files that I don't remember, I managed to make db and listener work again but not the dbconsole which doesn't want to start and also I don't know where are the log files (there are so many log folders....) Anyway I am still digging into the documentation.
    4. fedora 9 32 bit, 2gb ram. Same issues like #2,#3.
    I've the following suggestions for oracle:
    1. Less configuration files for oracle's next version.
    2. Installation should "do it all" for the user in all operating systems
    3. a dedicated testing team for dbconsole - it's just buggy
    4. improvements on db,tablespace backups and movements. Is it so hard to create a utility that create a zipped backup of tablespaces or the database which can be used on a different server to restore the files?
    I've still not worked on my main task : to test scalability. More comments will follow...
    Regards,
    Kostas

    Hi, found the log file, it is under .../dbhome_1/oc4j/j2ee/OC4J_DBConsole_server.lan_orcl/log
    It appears that oc4j was trying to load the encryption keys file from OC4J_DBConsole_localhost_orcl, didn't find it, oc4j was then exiting but emctl was constantly trying to restart oc4j!!! One more cool "feature" of oracle.
    Anyway, I managed to fix that issue but now oc4j/dbconsole still doesn't start, dunno why, the log says:
    <MESSAGE>
    <HEADER>
    <TSTZ_ORIGINATING>2010-01-07T21:35:39.517+00:00</TSTZ_ORIGINATING>
    <COMPONENT_ID>oc4j</COMPONENT_ID>
    <MSG_TYPE TYPE="WARNING"></MSG_TYPE>
    <MSG_LEVEL>1</MSG_LEVEL>
    <HOST_ID>server.lan</HOST_ID>
    <HOST_NWADDR>192.168.1.4</HOST_NWADDR>
    <MODULE_ID>network</MODULE_ID>
    <THREAD_ID>13</THREAD_ID>
    <USER_ID>ariskk</USER_ID>
    </HEADER>
    <CORRELATION_DATA>
    <EXEC_CONTEXT_ID><UNIQUE_ID>192.168.1.4:94967:1262900139517:43</UNIQUE_ID><SEQ>0</SEQ></EXEC_CONTEXT_ID>
    </CORRELATION_DATA>
    <PAYLOAD>
    <MSG_TEXT>Exception in NIOServerSocketDriver:selectForRead</MSG_TEXT>
    <SUPPL_DETAIL><![CDATA[java.nio.channels.ClosedChannelException
         at java.nio.channels.spi.AbstractSelectableChannel.configureBlocking(AbstractSelectableChannel.java:252)
         at oracle.oc4j.network.NIOServerSocketDriver$SelectorThreadTask.selectForRead(NIOServerSocketDriver.java:331)
         at oracle.oc4j.network.NIOServerSocketDriver.selectForRead(NIOServerSocketDriver.java:58)
         at oracle.oc4j.network.ServerSocketAcceptHandler.persistConnection(ServerSocketAcceptHandler.java:389)
         at oracle.oc4j.network.ServerSocketAcceptHandler.endReadHandlerRun(ServerSocketAcceptHandler.java:409)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:275)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    ]]></SUPPL_DETAIL>
    </PAYLOAD>
    </MESSAGE>
    I also got an other problem. I have a heap table and I've created the same table as index organized. I am trying to copy the data over :
    insert into header2 select * from header nologging;
    But after around 5000 secs, sql developer gives me this error:
    SEVERE     117     1314807          java.io.PipedInputStream.checkStateForReceive(PipedInputStream.java:246)
    and the dml stops running. I've run that 3-4 times and it fails from 4800 to 5200 secs so I recon a time out is in place, any idea how to remove this timeout?

  • Oracle 8.1.7 OCI question: Some threads hang in OCIServerAttach indefinetly after rem

    Configuration: MS Win2k SP2, MS Visual C++ 6.0 SP6, Oracle 8.1.7 via OCI
    I have 128 threads doing the following:
    1) Create environment (OCI_THREADED, OCI_ENV_NO_MUTEX), setup handles, try to connect to remote database 2) If connect fails, log the error message and try again after 2 seconds 3) Execute simple stored procedure 4) Disconnect from remote database ( + cleanup of all handles including environment ) 5) ... repeat from 1)
    When I go to the remote database and perform shutdown of the whole operating system (by choosing shutdown in Windows), something peculiar happens. First I get: ORA-12500 and ORA-12541 error messages. Then most of the channels go to ORA-12535 error message and they loop in that message until I exit the application. However, some of the threads remain hanging in OCIServerAttach function and do not allow my application to exit.
    Needless to say, OCIBreak function doesn't help here (I've tried).
    When I attach the debugger to the hanging process, I get the attached stack trace. It looks like some sockets remain hanging - a terrible thing to happen.
    In the attachment are also Oracle error descriptions that I mentioned.
    I would be thankful for any suggestions here...
    -- Tomislav.
    "Real sharpness comes without effort,
    No growth without assistance,
    No action without reaction,
    Now give yourself up and find yourself again."
    "Crouching tiger, hidden dragon"
    NTDLL! 77f827e8()
    MSAFD! 74fd8e33()
    WS2_32! 75031275()
    ORANTCP8! 6470565f()
    ORANTCP8! 64703536()
    ORAN8! 60b78f5a()
    ORAN8! 60b7c8a8()
    ORAN8! 60b44d24()
    ORAN8! 60b3fd0a()
    ORAN8! 60b3f474()
    ORAN8! 60b157a0()
    ORAN8! 60b61c7c()
    ORACLIENT8! 60429b1e()
    ORACLIENT8! 604b4695()
    ORACLIENT8! 604b9ece()
    ORACLIENT8! 604823a3()
    ORACLIENT8! 60429f64()
    ORACLIENT8! 60401340()
    OCI! 015059ab()
    CLibOCI::OCIServerAttach(OCIServer * 0x0dff13e0, OCIError * 0x0dff15d4,
    unsigned char * 0x0de9b810, int 21, unsigned int 0) line 282 + 28 bytes
    FCALLDLL! 014d2c03()
    MSVCRT! 7800a3c0()
    KERNEL32! 77e8758a()
    "TNS-12500 TNS:listener failed to start a dedicated server process
    Cause: The process of starting up a dedicated server process failed. The executable could not be found or the environment may be set up incorrectly.
    Action: Turn on tracing at the ADMIN level and re-execute the operation. Verify that the Oracle Server executable is present and has execute permissions enabled. Ensure that the Oracle environment is specified correctly in LISTENER.ORA. The Oracle Protocol Adapter that is being called may not be installed on the local hard drive. Check that the correct Protocol Adapter are successfully linked. If the error persists, contact Oracle Customer Support.
    TNS-12541 TNS:no listener
    Cause: The connection request could not be completed because the listener is not running.
    Action: Ensure that the supplied destination address matches one of the addresses used by the listener. Compare the TNSNAMES.ORA entry with the appropriate LISTENER.ORA file (or TNSNAV.ORA if the connection is to go by way of an Interchange). Start the listener on the remote machine.
    TNS-12535 TNS:operation timed out
    Cause: The requested connection could not be completed within the timeout period specified by the CONNECT_TIMEOUT parameter in LISTENER.ORA. This error arises from the TNSLSNR.
    Action: Either reconfigure CONNECT_TIMEOUT to be 0, which means wait indefinitely, or reconfigure CONNECT_TIMEOUT to be some higher value. Or, if the timeout is unacceptably long, turn on tracing for further information."

    Hi,
    What is going on in your case is :
    1. Oracle library (OCI) is failing to identify a Dead Connection properly all the time.
    2. According to the errors you have received, all of them seems to be appropriate to what you have described in your message.
    a. TNS failed to start a dedicated server process. This error is returned when the number of server processes are excessive or memory is low etc - I am not sure why this is returned to you
    b. TNS listener is not available - May be the listener has already shutdown, since the system is being shutdown.
    c. TNS operation timed out. This will be returned by your local TNS client library, which says CONNECT(socket operation) failed, since the other end has already SHUTDOWN.
    Getting an error is good for you, since you can always sleep 2 seconds and reconnect.
    The hanging thread is due to a problem that Oracle folks call as DCD(Dead COnnection Detection) logic. The DCD can be turned on by setting sqlnet.expire timeout to be some number of minutes in the sqlnet.ora file. Please check on the Metalink on the DCD issue.
    What I have personally seen is that DCD does not always work, even if turned ON.

  • ERROR = DlLoadLib: dlopen()= Unable to find library 'libwtc9.sl'.in trans.

    Hi All,
    Getting following error while starting up the SAP.
    4 ETW000                                                                             167  0.000980
    4 ETW000  [dlux.c      ,00000]  *** ERROR => DlLoadLib: dlopen()= Unable to find library 'libwtc9.sl'. -> DLENOACCESS (0,Error
    0)
    4 ETW000                                                                            2302  0.003282
    4 ETW000  [dbcon.c     ,00000]  *** ERROR => Couldn't load library '/usr/sap/DA1/SYS/exe/run/dboraslib.sl'
    4 ETW000                                                                              48  0.003330
    2EETW169 no connect possible: "maybe someone set invalid values for DIR_LIBRARY ('/usr/sap/DA1/SYS/exe/run') or dbms_type ('OR
    A')"
    thanks,
    Anu

    Hi,
    Two oracle library files are missing. Please check it again.
    1. Unable to find library 'libwtc9.sl'.
    A. This file is not available in /usr/sap/DA1/SYS/exe/run. Check if its not there copy from kernel cd or DVD or some another systems in to the above path.
    2. Couldn't load library '/usr/sap/DA1/SYS/exe/run/dboraslib.sl'
    A. This file is not available in /usr/sap/DA1/SYS/exe/run. Check if its not there copy from kernel cd or DVD or some another systems in to the above path.
    3. Finally, check ENV variales at OS level for sidadm.
    sidadm> type env and check DBMS_TYPE =?
    Put exact DBMS type here. if its not there export it in to env variables.
    4. Check DIR_LIBRARY = /usr/sap/DA1/SYS/exe/run ..it should be like this.
    Regards,
    Srini Nookala

  • Data Guard in oracle 11G

    Hi Friends,
    I am new in orcle & my boss told me to configur a dataguard in oracle 11g.we have two server with same configuration. First server is primary server & second server is standby. I have created two database name as PIDB & PIHIST for RTGS system. I have gave a database name to primary server is PIHIST,PIDB & for standby PIDBSTDBY,PIHISTSTDBY, Is it right ? is it right then how i configure a dataguard?
    Thanks,
    XYZ

    Hi ,
    Check Below Links
    http://www.oracle.com/global/uk/education/downloads/uwe_data_guard.pdf (Pdf File)
    http://wiki.oracle.com/page/DataGuard+%3A+Step-by-Step+Instructions+for+Creating+a+Physical+Standby+Database
    You can go to Oracle Library and also get the pdf file which explains you Step-By-Step Process to creating Physical Or Logical Standby Database.
    And also explain need and configuration of each and every parameter of Standby or Primary database.
    Thanks & Regards
    Rahul Sharma

  • Oracle Client 10.1.0.2.0 Core Dumps

    I have a strange problem where I intermittently receive Oracle client core dumps. I am running version 6 of the WebSphere Message Broker, which communicates with a remote Oracle database. I am using DataDirect to connect to the database and am running the following Oracle versions:
    Client: 10.1.0.2.0
    Database: 10.1.0.5.0 64 bit
    The following is an excerpt from the broker’s .odbc.ini file:
    [OTDAWMB]
    Driver=/opt/IBM/mqsi/6.0/merant/lib/UKor820.so
    Description=DataDirect 5.0 Oracle
    EnableDescribeParam=1
    OptimizePrepare=1
    ServerName=DTHU
    WorkArounds=536870912
    ProcedureRetResults=1
    ColumnSizeAsCharacter=1
    Here’s the problem:
    We submit batch loads where 50,000 messages are put on a queue. Each message processed by the broker involves multiple database inquiries and insert statements. On average we process 10 messages / second which means we’re constantly hitting the database for over an hour. On occasion, we receive a core dump from the broker which points to an Oracle library. The following is an excerpt from the broker’s abend file:
    ----------------------------- Stack dump for current thread ( 6426)
    (0xd70cea34+0x000004e8) ttcdrv [opt/oracle/OraHome_1/lib32/libclntsh.a(shr.o)]
    (0xd6e5ee1c+0x00000050) nioqwa [opt/oracle/OraHome_1/lib32/libclntsh.a(shr.o)]
    (0xd6b6eef4+0x00000588) upirtrc [opt/oracle/OraHome_1/lib32/libclntsh.a(shr.o)]
    (0xd6c4f984+0x0000006c) kpurcsc [opt/oracle/OraHome_1/lib32/libclntsh.a(shr.o)]
    (0xd6d33028+0x000005dc) kpuexecv8 [opt/oracle/OraHome_1/lib32/libclntsh.a(shr.o)]
    (0xd6d34328+0x00001004) kpuexec [opt/oracle/OraHome_1/lib32/libclntsh.a(shr.o)]
    (0xd6d22174+0x0000001c) OCIStmtExecute [opt/oracle/OraHome_1/lib32/libclntsh.a(shr.o)]
    (0xd67cb3f8+0x00000000) <no name available> [opt/IBM/mqsi/6.0/merant/lib/UKor820.so]
    (0xd675bc20+0x00000000) <no name available> [opt/IBM/mqsi/6.0/merant/lib/UKor820.so]
    (0xd675a8a8+0x00000000) <no name available> [opt/IBM/mqsi/6.0/merant/lib/UKor820.so]
    (0xd6796340+0x00000000) <no name available> [opt/IBM/mqsi/6.0/merant/lib/UKor820.so]
    (0xd5f2f248+0x00000000) <no name available> [opt/IBM/mqsi/6.0/lib/libodbc.a(odbc.so)]
    (0xd5eeb1b8+0x00000000) <no name available> [opt/IBM/mqsi/6.0/lib/libodbc.a(odbc.so)]
    (0xd472260c+0x0000010c) execute__16ImbOdbcStatementFv [opt/IBM/mqsi/6.0/lib/libMessageServices.a(libMessageServices.a.so)]
    This can happen at any time and can happen multiple times throughout the load. IBM says it’s a problem with the Oracle client (ILLEGAL INSTRUCTION) and there’s nothing that can be done from their end.
    Has anyone run across something similar? Could this be network related?

    From dump message, looks like your client are calling whole banch of 32bit library. Are your application server also 64 bit ? Can you try install a 64bit client?
    It's also a good idea to patch up your client a bit.
    You should also consider submit a SR on metalink.

  • Pl/SQL Practice (in Oracle 10g)

    Hi All,
    Could you please help me by giving URL/website address from where i may find the practice on PL/SQL. i have completed the PL/SQL courses and right now i need to have more practice on PL/SQL. i have a small database with the following common tables:
    EMPLOYEES, EMP, ACCOUNT, BONUS,
    COUNTRIES, DEPARTMENTS
    If you are aware of any site where there will be some practice examples as well as some questions which will be asked to resolve by the user, pls. let me know. this will help me.
    i tried myself to find the same in the web but failed. your help is well appreciated.
    regards,
    Shariful

    hi,
    welcome to forum..:)
    This could be a good start :
    [http://download-uk.oracle.com/docs/cd/B10501_01/appdev.920/a96624/toc.htm]
    Oracle library.
    [http://www.oracle.com/pls/db102/portal.portal_db?selected=2]
    Oracle Documents.
    [http://tahiti.oracle.com/]
    ask tom
    [http://asktom.oracle.com]
    Edited by: user291283 on Oct 1, 2009 9:41 AM

  • Oracle certification study material

    Want to prepare for certification for oracle implementor specialist : GL Exam code 1Z0-516.Please would confirm where will I get study material to preapre for this certification

    Hi,
    This is the official forum of Oracle, and I dont think any one would help you to get a copy of the Official study material.
    Any how you can refer the following doc from Oracle Library for General Ledger:
    http://docs.oracle.com/cd/B34956_01/current/acrobat/120glig.pdf
    http://docs.oracle.com/cd/B34956_01/current/acrobat/120glrg.pdf
    Hope this helps
    Regards,

Maybe you are looking for

  • 11.5.7 form in 11.5.10.2 environment??

    Hello All, We did a migrate from 11.5.7 to 11.5.10.2 a while back. The user's are claiming/compalining that at least 2 of the forms are not behaving as they used to. One of them is the Supplier Inquiry form (APXVDMVD.fmb). There was a mod to it where

  • Asset Group Transfer

    Hi all, I want to transfer whole Asset Group to Another group asset in same company. We have t-code ABUMN to transfer asset to another asset. Can I know which t-code I should use to transfer asset group from 1 asset group to another. Thanks & Regds,

  • CF Card Access over OTG

    Hi, Has anyone being successful in accessing a compact flash (CF) card using any OTG cable? If yes, can you tell me how you did it? Which cable you used? Thanks in advance, Partha

  • No trusted certificate found (91);Cannot connect to the LDAP server

    HI All, I am trying to connect to LDAP server with the following code. JSSESocketFactory fact = null; private LDAPConnection conn = null; String keystore = "C:\\j2sdk1.4.2_15\\jre\\lib\\security\\cacerts"; System.setProperty("javax.net.ssl.trustStore

  • How can i put de number 2 over km 2?  Comment mettre le 2 surélevé pour km carré?

    How can i put de number 2 over km 2?  Comment mettre le 2 surélevé pour km carré?