Dynamic library+ Linux + ORACLE 10.2

Hello !
I have Linux + ORACLE 10.2
$ env | grep LAN
NLS_LANG=AMERICAN_AMERICA.UTF8
LANG=en_US.UTF-8
database parameters:
1 NLS_LANGUAGE AMERICAN
2 NLS_TERRITORY AMERICA
3 NLS_CHARACTERSET UTF8
4 NLS_NCHAR_CHARACTERSET AL16UTF16
I have a dynamic library and plsql function:
#include <stdio.h>
int sysrun(char command, char ying, char *yang)
FILE *fpointer ;
fpointer = fopen("out6.txt","wt");
if (!fpointer)
printf( "!!! file error \n" );
return;
fprintf(fpointer,"ying:%s yang:%s command:%s \n",ying,yang,command);
fclose(fpointer);
return 0;
//return system(command);
create or replace function sysrun_2 (syscomm in varchar2, ying IN VARCHAR2, yang IN VARCHAR2 )
return binary_integer
as language C
name "sysrun"
library shell_lib
parameters(syscomm string, ying string,yang string);
I send to library russian words(by sqlplus), but it write in a file bad symbols
'п╡я▀'
I run query on sqlplus:
SELECT CONVERT('п╡я▀', VALUE) conv,VALUE FROM
v$nls_valid_values v
where parameter = 'CHARACTERSET';
And see, that the best code page is CL8KOI8R
why CL8KOI8R? And where's from ?
And how can I change it ?
P.S. when I call library from Linux it's ok !!

Hi,
I'm not familiar with Russian characters and charsets like CL8KOI8R. Have you tried creating a table in the database and inserting the same characters to verify if that works?
It might be worth verifying if the environment variables are correct for the extproc process as well. I'm not sure if the environment variables you listed are for the "oracle" user or not.
Also, are you using the Oracle C++ Call Interface (OCCI) with this?
Regards,
Mark

Similar Messages

  • Linux - SQL Server Native Client : Unable to locate driver dynamic library. BCP cannot continue.

    Hi all.
    I've been trying for a while now to get BCP working on Linux but with no success.
    The error message I'm getting i
    Unable to locate driver dynamic library. BCP cannot continue..
    I saw one historic post on this topic but it was related to the installation being on the incorrect version of Linux.
    Please see version details below for our installation.
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    cat /etc/*-release
    LSB_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch
    Red Hat Enterprise Linux Server release 6.5 (Santiago)
    Red Hat Enterprise Linux Server release 6.5 (Santiago)
    uname -a
    Linux rhabsqlvt1 2.6.32-431.el6.x86_64 #1 SMP Sun Nov 10 22:19:54 EST 2013 x86_64 x86_64 x86_64 GNU/Linux
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    sqlcmd works without issue
    The following directories are included in PATH
    /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/microsoft:/opt/microsoft/msodbcsql/lib64
    BCP is symbolic linked as follows 
    lrwxrwxrwx. 1 root root 44 Apr 24 10:57 bcp -> /opt/microsoft/msodbcsql/bin/bcp-11.0.2270.0
    Any suggestions or assistance would be much appreciated.
    Many thanks.
    Ruairi

    hai mike,
    Please refer below configuration file,
    [oradev@testebs ~]$ cat /usr/local/etc/odbc.ini
    [tirchyroad]
    Driver = /opt/microsoft/sqlncli/lib64/libsqlncli-11.0.so.1790.0
    Description = SqlServer for ODBC Driver
    ConvToUtf = Yes
    ConvWToUtf = Yes
    VarMaxAsLong = Yes
    Database = BACKOFF
    UID = erp
    PWD = oracle
    Server = 122.165.224.173
    Port = 1433
    AnsiNPW = Yes
    AutoTranslate = Yes
    trace = 1
    Trusted_Connection = Yes
    Regards
    Dharma

  • DBCA fails with java.lang.UnsatisfiedLinkError: Can't load library: /u01/oracle/prod/tech_st/product/11.2.0/db_1/oui/lib/linux/liboraInstaller.so Error in Oracle 11g

    Hi,
    After ORACLE 11G software installation i tried to change the ORACLE_HOME directory.
    OS : RHEL 4.5
    DB : 11.2.0
    Previous Home Location :
    [oracle@localhost ~]$ echo $ORACLE_HOME
    /u01/oracle/prod/tech_st/product/11.2.0/db_1
    Current Home Loc:
    [oracle@localhost ~]$ echo $ORACLE_HOME
    /u01/oracle/db/tech_st/product/11.2.0/db_1
    When i am trying the DBCA command i am getting the below error:
    [oracle@localhost ~]$ dbca
    java.lang.UnsatisfiedLinkError: Can't load library: /u01/oracle/prod/tech_st/product/11.2.0/db_1/oui/lib/linux/liboraInstaller.so
            at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1650)
            at java.lang.Runtime.load0(Runtime.java:769)
            at java.lang.System.load(System.java:968)
            at oracle.sysman.oii.oiip.osd.unix.OiipuUnixOps.loadNativeLib(OiipuUnixOps.java:387)
            at oracle.sysman.oii.oiip.osd.unix.OiipuUnixOps.<clinit>(OiipuUnixOps.java:122)
            at oracle.sysman.oii.oiip.oiipg.OiipgEnvironment.getEnv(OiipgEnvironment.java:201)
            at oracle.sysman.oii.oiip.oiipg.OiipgPropertyLoader.initUnixPtrFileLoc(OiipgPropertyLoader.java:212)
            at oracle.sysman.oii.oiip.oiipg.OiipgPropertyLoader.<clinit>(OiipgPropertyLoader.java:125)
            at oracle.sysman.oii.oiic.OiicStandardInventorySession.updateProperties(OiicStandardInventorySession.java:492)
            at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicStandardInventorySession.java:266)
            at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicStandardInventorySession.java:240)
            at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicStandardInventorySession.java:189)
            at oracle.sysman.assistants.util.InventoryUtil.getOUIInvSession(InventoryUtil.java:346)
            at oracle.sysman.assistants.util.InventoryUtil.getHomeName(InventoryUtil.java:87)
            at oracle.sysman.assistants.util.OracleHome.getInventoryHomeName(OracleHome.java:1023)
            at oracle.sysman.assistants.dbca.backend.Host.<init>(Host.java:798)
            at oracle.sysman.assistants.dbca.ui.UIHost.<init>(UIHost.java:257)
            at oracle.sysman.assistants.dbca.ui.InteractiveHost.<init>(InteractiveHost.java:54)
            at oracle.sysman.assistants.dbca.Dbca.getHost(Dbca.java:164)
            at oracle.sysman.assistants.dbca.Dbca.execute(Dbca.java:112)
            at oracle.sysman.assistants.dbca.Dbca.main(Dbca.java:184)
    Exception in thread "main" java.lang.UnsatisfiedLinkError: no oraInstaller in java.library.path
            at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
            at java.lang.Runtime.loadLibrary0(Runtime.java:822)
            at java.lang.System.loadLibrary(System.java:993)
            at oracle.sysman.oii.oiip.osd.unix.OiipuUnixOps.loadNativeLib(OiipuUnixOps.java:405)
            at oracle.sysman.oii.oiip.osd.unix.OiipuUnixOps.<clinit>(OiipuUnixOps.java:122)
            at oracle.sysman.oii.oiip.oiipg.OiipgEnvironment.getEnv(OiipgEnvironment.java:201)
            at oracle.sysman.oii.oiip.oiipg.OiipgPropertyLoader.initUnixPtrFileLoc(OiipgPropertyLoader.java:212)
            at oracle.sysman.oii.oiip.oiipg.OiipgPropertyLoader.<clinit>(OiipgPropertyLoader.java:125)
            at oracle.sysman.oii.oiic.OiicStandardInventorySession.updateProperties(OiicStandardInventorySession.java:492)
            at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicStandardInventorySession.java:266)
            at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicStandardInventorySession.java:240)
            at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicStandardInventorySession.java:189)
            at oracle.sysman.assistants.util.InventoryUtil.getOUIInvSession(InventoryUtil.java:346)
            at oracle.sysman.assistants.util.InventoryUtil.getHomeName(InventoryUtil.java:87)
            at oracle.sysman.assistants.util.OracleHome.getInventoryHomeName(OracleHome.java:1023)
            at oracle.sysman.assistants.dbca.backend.Host.<init>(Host.java:798)
            at oracle.sysman.assistants.dbca.ui.UIHost.<init>(UIHost.java:257)
            at oracle.sysman.assistants.dbca.ui.InteractiveHost.<init>(InteractiveHost.java:54)
            at oracle.sysman.assistants.dbca.Dbca.getHost(Dbca.java:164)
            at oracle.sysman.assistants.dbca.Dbca.execute(Dbca.java:112)
            at oracle.sysman.assistants.dbca.Dbca.main(Dbca.java:184)
    [oracle@localhost ~]$
    I tried all possible ways with google help but still i am facing the same issue.Kindly check and suggest to solve the issue.
    Thanks in advance.
    Vijay.

    Hi all,
    I give you the clear details about the issue what i am currently facing,
    1. I installed the 11g (11.2.0) database alone(No EBS) in my local vmware machine.
    2. Created my ORACLE_HOME under /u01/oracle/prod/tech_st/product/11.2.0/db_1 directory after that i tried to change my home location from /u01/oracle/prod/tech_st/product/11.2.0/db_1 location to /u01/oracle/db/tech_st/product/11.2.0/db_1 location, like created /u01/oracle/db directory and moved files from /u01/oracle/prod location.
    3. I changed my bash_profile and exported home with the modified location also deregistered an old home and registered the new home.
    4. When i am issuing echo $ORACLE_HOME it is showing the current home location and ORACLE_SID is same what i created before.
    5. But when i am trying to create one more db using DBCA utility it is through the above error.
    Please suggest me is it possible to change the location after db creation or any extra steps i have to do for this issue.
    Thanks.

  • Help / Configure PHP+IIS+Oracle "Unable to load dynamic library....."

    Hello,
    I am a seasoned Oracle user and PHP developer and for the life of me I cannot get our development server to load the php_oci8.dll file. I have spent hours searching the web, the Oracle forums and reading the FAQs and can still not get the web server to load correctly. Below are some specs about the environment we are running:
    -OS: Win2k Server SP4
    -Web Server: IIS 5.0
    -PHP Version: 5.1.4 PHP
    -Full Oracle Admin 10gr2 client is installed on web server
    When I pull up a page, I get the following warning: "PHP Warning: PHP Startup: Unable to load dynamic library 'D:\temp\php_oci8.dll' - The specified module could not be found. in Unknown on line 0 "
    Here is what I have done to troubleshoot:
    -'everyone' user has full access to the extension directory
    -I have tried moving the php_oci8.dll to other directories and changing the extension_dir in my php.ini
    -I am confident that my extension_dir in the ini file is correct
    -I have tried the Oracle instant client and the full admin OEM client. The machine currently has the full OEM client installed
    -All environment variables appear to be correct
    I rarely post to forums but I am running out of options. If I cannot figure this out soon, we will have to go another route for resolution. Any help is tremendously appreciated.
    Dave.
    [email protected]
    Message was edited by:
    user527623

    Should I explicity create environment variables named: ORACLE_HOME and NLS_LANGYep, you need to create those specific variables.
    Nooooo don't use ODBC!!!!
    Actually, I don't really care either way, I'm pretty much technology agnostic. Different things have different uses and you have to pick the best tool for the job. If I was a zealot I'd say "Don't use IIS" :p
    ~Jer

  • Sybase gateway problem - Failed to load dynamic library 'hsdbsyb'

    Having problems getting the Sybase gateway working on XP. Environment in Oracle 9.2.0.6 on Linux, Sybase on AIX 5.1 (moving to linux, gateway currently working well on this box) gateway on XP. I get the following error when trying to use my db link: Help appreciated
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Transparent gateway for SYBASE]DRV_InitTdp: DBTYPE.C (473): ; The specified module could not be found.
    ; at FIND_IMAGE_SYMBOL
    DBTYPE.C (7): ; [C079] Failed to load dynamic library 'hsdbsyb'
    tnsnames on linux box has:
    CIT001TSTW =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = tcp)(HOST = lons00106694)(PORT = 1521))
    (CONNECT_DATA =
    (SID = cit001tst)
    (HS = OK)
    on gateway windows box (has oracle client and gateway software and sybase client)
    listener.ora:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = c:\progra~1\oracle)
    (PROGRAM = extproc)
    (SID_DESC=
    (SID_NAME = cit001tst)
    (ORACLE_HOME = c:\progra~1\oracle)
    (PROGRAM = tg4sybs)
    initcit001tst.ora
    HS_FDS_CONNECT_INFO=CIT1_LON_TST_SQL.cit001tst
    HS_FDS_TRACE_LEVEL=ON
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    HS_FDS_TRACE_LEVEL=4
    HS_FDS_FILE_NAME=trace
    # Environment variables required for Sybase
    set SYBASE=c:\progra~1\sybase\oc1251
    sql.ini
    [CIT1_LON_TST_SQL]
    win3_query=WNLWNSCK,loncmxs0004.uk.net.intra.,5000
    query=NLWNSCK,loncmxs0004.uk.net.intra.,5000

    Yes, this VI is damaged. I can not open it.
    Colin
    LV7.1/8.2/8.2.1/8.5/8.6/9.0/2010/2013; testing system development
    Please Mark the solution as accepted if your problem is solved and donate kudoes
    Home--www.colinzhang.net

  • C++ Dynamic Library, iostream: No such file

    Hi, I'm trying to build a dynamic library in Xcode and running into a compilation error finding iostream. The library code is written in C++ and compiles on linux. When compiling in Xcode (2.4.1), I created the project as a C++ Standard Dynamic Library (and later C++ Dynamic Library, same problem) and get the following when building:
    Building target “MC_VICommon” of project “MC_VICommon” with configuration “Debug”
    Checking Dependencies
    ProcessPCH++ /Library/Caches/com.apple.Xcode.501/SharedPrecompiledHeaders/MCVICommon_Prefix-dbtpcuqquksioscuujethfosvirt/MC_VICommonPrefix.pch.gch MCVICommonPrefix.pch normal ppc c++ com.apple.compilers.gcc.4_0
    cd /Users/sullivan/Code/Source/VI/MC_VICommon
    /usr/bin/gcc-4.0 -x c++-header -arch ppc -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -fmessage-length=0 -mtune=G5 -fvisibility-inlines-hidden -mfix-and-continue -mmacosx-version-min=10.4 -gdwarf-2 -I/Users/sullivan/Code/Builds/Intermediate/MCVICommon.build/Debug/MC_VICommon.build/libMCVICommon.hmap -F/Users/sullivan/Code/Builds/Debug -I/Users/sullivan/Code/Builds/Debug/include -I/Users/sullivan/Code/Builds/Intermediate/MCVICommon.build/Debug/MCVICommon.build/DerivedSources -isysroot /Developer/SDKs/MacOSX10.4u.sdk -c /Users/sullivan/Code/Source/VI/MCVICommon/MC_VICommonPrefix.pch -o /Library/Caches/com.apple.Xcode.501/SharedPrecompiledHeaders/MCVICommon_Prefix-dbtpcuqquksioscuujethfosvirt/MC_VICommonPrefix.pch.gch
    ProcessPCH /Library/Caches/com.apple.Xcode.501/SharedPrecompiledHeaders/MCVICommon_Prefix-cdgabvnmevghggbxbomensvfvhzy/MC_VICommonPrefix.pch.gch MCVICommonPrefix.pch normal ppc c com.apple.compilers.gcc.4_0
    cd /Users/sullivan/Code/Source/VI/MC_VICommon
    /usr/bin/gcc-4.0 -x c-header -arch ppc -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -fmessage-length=0 -mtune=G5 -mfix-and-continue -mmacosx-version-min=10.4 -gdwarf-2 -I/Users/sullivan/Code/Builds/Intermediate/MCVICommon.build/Debug/MC_VICommon.build/libMCVICommon.hmap -F/Users/sullivan/Code/Builds/Debug -I/Users/sullivan/Code/Builds/Debug/include -I/Users/sullivan/Code/Builds/Intermediate/MCVICommon.build/Debug/MCVICommon.build/DerivedSources -isysroot /Developer/SDKs/MacOSX10.4u.sdk -c /Users/sullivan/Code/Source/VI/MCVICommon/MC_VICommonPrefix.pch -o /Library/Caches/com.apple.Xcode.501/SharedPrecompiledHeaders/MCVICommon_Prefix-cdgabvnmevghggbxbomensvfvhzy/MC_VICommonPrefix.pch.gch
    /Users/sullivan/Code/Source/VI/MCVICommon/MC_VICommonPrefix.pch:6:20: error: iostream: No such file or directory
    Later I tried starting the project as a Carbon dynamic library and it seems to work fine. Now granted, "if it ain't broke don't fix it", but I am curious and worried this will cause problems later.
    One obviously relevant difference between the working Carbon and non-working C++ is the project_prefix.pch files:
    // Prefix header for all source files of the 'MC_VICommon' target in the 'MC_VICommon' project.
    #include <iostream>
    vs.
    // Prefix header for all source files of the 'CarbonTest' target in the 'CarbonTest' project.
    #include <Carbon/Carbon.h>
    Should I just accept that the carbon one works? Am I doing something wrong? Is there documentation about linking to Carbon vs. not?
    Thanks!

    Thanks for the suggestion. With Xcode though, the build and link parameters are determined automatically. I'm under the impression that it will separate out the .c's and .cpp's to compile with their own parameters. I am wondering now why the prefix.pch file, which is compiled with both -x c++-header and -x c-header, includes iostream. Anyway, I found if I just comment out that line in the prefix file, everything works fine. Even if I clean and re-build, the comment is not over-written and everything builds.
    99% of the time using Xcode is more convenient than makefiles, but on these occasions when an automatically generated file causes problems, I get curious as to what happens behind the scenes when I build a project template like C++ Dynamic Library. I presume there is a way to change my code such that this won't happen, but if I knew why it happened it would help. Anyway, since this work-around is good enough, I should probably just be happy and move on.

  • PHP Startup: Unable to load dynamic library './oci8.so' - ./oci8.so:

    I have oracle 11g, php5, and apache2 are running on server(A). One of my php application need to connect Oracle 10g on server(B). so I have to configure PHP5 and OCI8. Here is what I have done.
    #env
    ORACLE_SID=demo
    ORACLE_BASE=/u01/app/oracle
    ORACLE_HOME=/u01/app/oracle/product/11.1.0/db_1
    LD_LIBRARY_PATH=/u01/app/oracle/product/11.1.0/db_1/lib
    TNS_ADMIN=/u01/app/oracle/product/11.1.0/db_1/network/admin
    ## PHP configured
    #./configure prefix=/usr/local/php5 with-apxs2=/usr/local/apache2/bin/apxs --with-oci8=/u01/app/oracle/product/11.1.
    0/db_1 enable-sigchild with-config-file-path=/usr/local/apache2/conf
    ##OCI8
    ./configure -with-oci8=shared,/u01/app/oracle/product/11.1.0/db_1
    Then I add "extension=oci8.so" on the php.ini file (/usr/local/php/conf/php.ini)
    ## Here is a problem
    # php phpinfo.php |grep oci
    PHP Warning: PHP Startup: Unable to load dynamic library './oci8.so' - ./oci8.so: cannot open shared object file: No such file or directory in Unknown on line 0
    oci8
    oci8.default_prefetch => 10 => 10
    oci8.max_persistent => -1 => -1
    oci8.old_oci_close_semantics => 0 => 0
    oci8.persistent_timeout => -1 => -1
    oci8.ping_interval => 60 => 60
    oci8.privileged_connect => Off => Off
    oci8.statement_cache_size => 20 => 20
    OLDPWD => /usr/local/apps/oci8-1.3.4
    _SERVER["OLDPWD"] => /usr/local/apps/oci8-1.3.4                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    what is your OS?
    Under Fedora 9 I used :
    locate oci8.soI had to use yumex to install a bunch of php files (pecl and phpize) that had the programs to dowload and install oci8.
    Another post has the instructions! Search on phpize or pecl
    in /etc/php.ini put :
    extension=oci8.so

  • Apache 2.0: Unable to load dynamic library dbxml

    Examples in dbxml run quite well when I command "php -c /etc/php.ini ..."
    However, apache 2.0 error_log says:
    PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4/dbxml.so' - /usr/lib/php4/dbxml.so: undefined symbol: db_env_ce_get in Unknown on line 0
    If any dbxml objects are referenced in PHP code, httpd segfaults. I have read all the resources on web I could get my hands onto, but still haven't figured out what's wrong. Can you help me?

    Hi,
    thanks to you both for your help. I tried adding the following to my apachectl script:
    LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/dbxml-2.3.10/install/lib:/usr/lib:/usr/local/lib
    export LD_LIBRARY_PATH
    ...but it didn't really help. I still don't get this. For your information:
    My system is Linux 2.6.9-023stab044.11-enterprise running i686, dbxml is 2.3.10, PHP 4.3.10 in Apache 2.0 Handler.
    Running ldd /usr/lib/php4/ gives
    libxqilla.so.1 => /usr/local/dbxml-2.3.10/install/lib/libxqilla.so.1 (0xb7c77000)
    libxerces-c.so.27 => /usr/local/dbxml-2.3.10/install/lib/libxerces-c.so.27 (0xb78dc000)
    libdbxml-2.3.so => /usr/local/dbxml-2.3.10/install/lib/libdbxml-2.3.so (0xb76c5000)
    libdb_cxx-4.5.so => /usr/local/dbxml-2.3.10/install/lib/libdb_cxx-4.5.so (0xb75cb000)
    libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0xb750a000)
    libm.so.6 => /lib/libm.so.6 (0xb74e8000)
    libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb74e0000)
    libc.so.6 => /lib/libc.so.6 (0xb73bc000)
    libnsl.so.1 => /lib/libnsl.so.1 (0xb73aa000)
    libpthread.so.0 => /lib/libpthread.so.0 (0xb7359000)
    /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xb7fee000)

  • OCI8 Driver, what is it? - a dynamic library?

    Greetings:
    My platform: OS X (10.3.8) "Panther".
    I'm doing coding (C++/Obj-C) and need a database driver to access Oracle tables. I've read that I need 'OCI8' (or equiv.) for Oracle 10g.
    My question: is the 'OCI driver' actually a dynamic library?
    Is 'libocci.dylib.10.1' the C++ OCI driver that's used to interface with Oracle from C++?
    I don't see any 'liboci.dynlib' for 'OCI'.
    If so, do I merely link this dynlib during the 'make' process?
    Ric.
    {[email protected]}

    On most platforms it is a shared library/dynamic link library. I can't speak for that specific platform, never tried it.
    Understand that it goes beyond a single library though. You need the OCI library and then the other client libraries (which it will invoke). The instant client is the smallest distribution of libraries.

  • Can we use Dynamic SQL in Oracle Reports ?

    Hi ,
    Can we use Dynamic SQL in Oracle Reports ?
    If yes please give some examples .
    Thanx
    srini

    I believe the built-in package SRW.Do_Sql is what you are looking for
    Example from the document:
    /* Suppose you want to create a "table of contents" by getting the
    ** first character of a columns value, and page number on which its
    ** field fires to print. Assume that you want to put the "table of
    contents"
    ** into a table named SHIP. You could write the following construct:
    DECLARE
    PAGE_NO NUMBER;
    PAGE_FOR INDEX NUMBER;
    SORT_CHAR CHAR(1);
    CMD_LINE CHAR(200);
    BEGIN
    SORT_CHAR := :SORT_NAME ;
    IF :CALLED = Y THEN
         SRW.GET_PAGE_NUM(PAGE_FOR_INDEX);
         SRW.USER_EXIT(RWECOP PAGE_FOR_INDEX
         P_START_PAGENO);
         SRW.MESSAGE(2,TO_CHAR(:P_START_PAGENO));
    END IF;
    SRW.GET_PAGE_NUM(PAGE_NO);
    CMD_LINE := INSERT INTO SHIP VALUES
                          (||SORT_CHAR||,||TO_CHAR(PAGE_NO)||);
    SRW.MESSAGE(2,CMD_LINE);
    SRW.DO_SQL(CMD_LINE);
    COMMIT;
    EXCEPTION
      WHEN DUP_VAL_ON_INDEX THEN
            NULL;
      WHEN SRW.DO_SQL_FAILURE THEN
            SRW.MESSAGE(1,FAILED TO INSERT ROW INTO SHIP TABLE);
      WHEN OTHERS THEN
           COMMIT;
    END;

  • How to link dynamic library in the Xcode

    Hi all,
    I want to link the dynamic library which is installed in the directory "/usr/local/lib", but I don't know how to set the Xcode to use this library. When I compile the source code by linking the dynamic library, Xcode prints the error information:
    "Checking Dependencies
    Ld /Users/apple/Desktop/test/SPETest/tdstest/build/Release/tdstest normal i386
    cd /Users/apple/Desktop/test/SPETest/tdstest
    /Developer/usr/bin/gcc-4.0 -o /Users/apple/Desktop/test/SPETest/tdstest/build/Release/tdstest -L/Users/apple/Desktop/test/SPETest/tdstest/build/Release -L/Developer/SDKs/MacOSX10.5.sdk/usr/local/lib -L/usr/local/pcsc/lib -F/Users/apple/Desktop/test/SPETest/tdstest/build/Release -filelist /Users/apple/Desktop/test/SPETest/tdstest/build/tdstest.build/Release/tdstest.b uild/Objects-normal/i386/tdstest.LinkFileList -lpcsclite.1.0.0 -arch i386 -dynamiclib -mmacosx-version-min=10.5 /usr/local/lib -isysroot /Developer/SDKs/MacOSX10.5.sdk
    ld: in /Developer/SDKs/MacOSX10.5.sdk/usr/local/lib, can't map file, errno=22
    collect2: ld returned 1 exit status"
    Any suggestion I will appreciate!

    Post to the Developer/SW Development forums under OS X Technologies.

  • Unable to load dynamic library oci8.so

    Hello All,
    When I try to start lampp, I am getting the below error.
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/oci8.so' - libclntsh.so.10.1: cannot open shared object file: No such file or directory in Unknown on line 0
    But I have  libclntsh.so.11.1 in my system. Why it is searching for libclntsh.so.10.1?

    Madhu.149 wrote:
    Hello All,
    When I try to start lampp, I am getting the below error.
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/oci8.so' - libclntsh.so.10.1: cannot open shared object file: No such file or directory in Unknown on line 0
    But I have  libclntsh.so.11.1 in my system. Why it is searching for libclntsh.so.10.1?
    Madhu.149 wrote:
    Hello All,
    When I try to start lampp, I am getting the below error.
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/oci8.so' - libclntsh.so.10.1: cannot open shared object file: No such file or directory in Unknown on line 0
    But I have  libclntsh.so.11.1 in my system. Why it is searching for libclntsh.so.10.1?
    >Why it is searching for libclntsh.so.10.1?
    old PHP software that does not know about V11
    So just create a softlink as below
    ln -s libclntsh.so.11.1 libclntsh.so.10.1

  • SOLUTION MANAGER 7.1 install on linux/oracle java error on ABAP IMPORT

    Hello sdn experts, Im trying to install the Solution Manager 7.1 on linux/oracle, but It always stops at the abap import,
    The error is in the Program "Migration Monitor", that exit with error.
    Reviewing the logs, it seems that is trying to execute a java command line with a unrecognized option:
    "Execution of the command "/opt/IBMJava2-amd64-142/bin/java -classpath migmon.jar -showversion -Xmx1024m com.sap.inst.migmon.imp.ImportMonitor -sapinst" finished with return code 1. Output:
    JVMJ9VM007E Command-line option unrecognized : -Xjvm:j9vm23"
    Usage : java [-options] class...
    As you can see, the sdk used is from IBM, and it works for all other saps we have here.
    Is the wrong jdk? Which I should use if its wrong?
    If is the right jdk, how could I get rid of this option and change it?
    Any idea would be appreciated.
    Thank you

    Hi Maurici,
    have you checked this note already?
    [https://service.sap.com/sap/support/notes/1159935|https://service.sap.com/sap/support/notes/1159935]
    It is about your error message. ...
    Best, Hannes

  • Error configuration tools EPM 11.1.2.0.0 on Linux  Oracle Enterprise 64bit

    Dear all,
    I have my Hyperion EPM 11.1.2.0.0 installed on server Linux Oracle Enterprise 64bit
    the installation succeeded, until i try to run configuration, it wont show up. I already tried to run confgtool.sh, then it shows error message like below
    ============================================================================================
    Launching the Hyperion Configuration Utility, please wait...
    Running preconfig checks...
    Running EPM_ORACLE_HOME check...
    EPM_ORACLE_HOME environment variable value:
    /home/hyperion/Oracle/Middleware/EPMSystem11R1
    JAVA_HOME environment variable value:
    /home/hyperion/Oracle/Middleware/EPMSystem11R1/../jdk160_11
    EPM_ORACLE_HOME check succeeded
    Running .oracle.products check... .oracle.products check succeeded Running Jars manifest check...
    Time spent for manifests parsing: 342 ms
    Maximum jars depth achieved: 9, while restriction was: unrestricted
    Parsed 417 manifests
    Total jars and classpath entries encountered: 417
    Total not-existing referenced classpath entries count: 56
    Total classpath elements to check: 67
    ERROR:
    /home/hyperion/Oracle/Middleware/oracle_common/modules/oracle.dms_11.1.1/dms.jar
    not exists; file depth: 2; referenced from /home/hyperion/Oracle/Middleware/EPMSystem11R1/common/jlib/11.1.2.0/epm_j2se.jar
    referenced from
    /home/hyperion/Oracle/Middleware/EPMSystem11R1/common/config/11.1.2.0/configtool.jar
    ERROR:
    /home/hyperion/Oracle/Middleware/oracle_common/modules/oracle.odl_11.1.1/ojdl.jar
    not exists; file depth: 2; referenced from /home/hyperion/Oracle/Middleware/EPMSystem11R1/common/jlib/11.1.2.0/epm_j2se.jar
    referenced from
    /home/hyperion/Oracle/Middleware/EPMSystem11R1/common/config/11.1.2.0/configtool.jar
    ERROR:
    /home/hyperion/Oracle/Middleware/oracle_common/modules/org.apache.commons.beanutils_1.6.jar
    not exists; file depth: 1; referenced from /home/hyperion/Oracle/Middleware/EPMSystem11R1/common/config/11.1.2.0/configtool.jar
    ERROR:
    /home/hyperion/Oracle/Middleware/oracle_common/modules/oracle.http_client_11.1.1.jar
    not exists; file depth: 2; referenced from /home/hyperion/Oracle/Middleware/EPMSystem11R1/common/jlib/11.1.2.0/epm_soa.jar
    referenced from
    /home/hyperion/Oracle/Middleware/EPMSystem11R1/common/config/11.1.2.0/configtool.jar
    ERROR:
    /home/hyperion/Oracle/Middleware/oracle_common/modules/oracle.jmx_11.1.1/jmxframework.jar
    not exists; file depth: 2; referenced from /home/hyperion/Oracle/Middleware/EPMSystem11R1/common/jlib/11.1.2.0/epm_soa.jar
    referenced from
    /home/hyperion/Oracle/Middleware/EPMSystem11R1/common/config/11.1.2.0/configtool.jar
    FATAL ERROR: Jars manifest check failed with message "Some referenced jars do not exist"
    Exiting in 30 seconds
    ============================================================================================
    i already create new user that have access to oracle middleware home (not ROOT user)
    Any idea on this problem?
    Thanks a lot

    Dear John,
    Thanks for replying
    i've downloaded and extracted all files on edelivery.oracle.com sections Oracle EPM (11.1.2.0.0) Media Pack for Linux x86-64.
    1st symptoms : i've installed it all, at the first attempt, Oracle HTTP Server always failed to install. But on the 2nd try it succeeded (install only oracle http server), so i assumed all part already installed well.
    2nd symptoms : after installation, there is config button on the GUI, but after i click it, it only closed the GUI, and nothing happen. So i running configtool.sh from config directories. and it show the error.
    For user account, already have full access to relevant directories.
    I checked on every logs folder on hyperion home, there is no related logs for this installation. any idea where the install log is?
    I can't find "oracle_common" folder, i think this is the root cause, because the error logs referring to jar files from this folder
    Thanks
    Edited by: nerv18 on Sep 17, 2010 10:24 AM

  • WHERE ARE Linux Oracle Services (as in NT) ?

    WHERE ARE the Linux Oracle Services created by the OUI (such as listener, db, apache, etc) and how cn i start / stop them automatically ?
    Also, is there in any place "the oracle program group menus" like in WINDOWS START MENU, so we can see all programs installed ?
    I Installed 9iAS release 2 in RedHat
    Thanks

    I use 8.1.7 on LInux. There are dbshut and dbstart scripts in $ORACLE_HOME/bin and there is example of "service-script" in Installation Guiede. So you can create "service-scripts", put in in /etc/rc.d/init.d and usecommends like /etc/rc.d/init/oradb start/stop, besides it you can make links for this script in rc.0, rc.6, rc.3 etc.. (like other services). You may write me a letter ([email protected]) and I'll send you service-scripts, if you will have troubles.

Maybe you are looking for

  • New Windows 8 Laptop? Can I install Photoshop CS6?

    Two problems: 1) I have lost my PS CS6 disk, (still have serial number, etc) and 2) I have this new Dell Laptop I want to install on, running Win 8. What is it going to take for me to get Photoshop on this machine?

  • No visual in DVD player

    I recently tried to watch a tv show on my macbook pro, and after inserting the disc the DVD player popped up automatically and then sound started playing but there was no visual. I then tried another disc and the same thing happened again, no visual.

  • Filenames in ufs_write and zfs_write probes?

    I'm trying to find a way to get dtrace to capture filenames of files that are being written to in ufs or zfs filesystems. I don't want, for example, writes to device files. I got the following from a post on the OpenSolaris forum (http://opensolaris.

  • XA support - Please answer

    Hi All Does Oracle 805 EE on linux support XA Interface. If it is where is the XA library, is it libxa.a and where is the xa.h file. -prabha null

  • Do i need To download an app To use airmedia on my iPad?

    Do i need To download an app To use airmedia on my iPad?