Error while compiling Pro*C program

Hi,
I get the following error while compiling and linking Pro*C program.
/home/barts/builddir $ make build_get_plc_data
Making Object files for get_plc_data.c
/usr/ccs/bin/cc -c +DD64  -I. -I../lib  -I/u01/dba/oracle/product/1012ias/precomp/public get_plc_data.c
/usr/ccs/bin/cc -o get_plc_data get_plc_data.o -L/u01/dba/oracle/product/1012ias/lib -lclntsh +DD64
ld: Unsatisfied symbol "sqlcx2t" in file get_plc_data.o
ld: Unsatisfied symbol "main" in file <no file>
2 errors.
*** Error exit code 1 (ignored)
/bin/rm -f get_plc_data.o
Please suggest what could be causing this issue?
Regrads,
Dhivya

I don't see a specific Proc or precompiler forum around here.
Perhaps your best bet would be at [Call interface (OCI)|http://forums.oracle.com/forums/forum.jspa?forumID=67] forum or maybe [SQL and PL/SQL|http://forums.oracle.com/forums/forum.jspa?forumID=75] since it's more of a developers' forum.

Similar Messages

  • Error while compiling Web Dynpro program due to missing JAR files

    Hi Experts,
    I am getting error message while compiling Web Dynpro program. The erring lines are as below:
              Message message = new MimeMessage(session);
              try {
                   message.setFrom(new InternetAddress(fromMailId));
                   message.addRecipient(
                        Message.RecipientType.TO,
                        new InternetAddress(toMailId));
                   message.setSubject(mailSubject);
                   message.setText(mailBody);
                   message.setHeader("X-Mailer", "E-Mail");
                   message.setSentDate(new Date());
                   Transport.send(message);
    The error messages are:
    Message.ReceipientType can not be resolved
    The method send(Message) is undefined for the type Transport
    The method setFrom(InternetAddress) is undefined for the type Message
    The method setHeader(String, String) is undefined for the type MessageThe method setSentDate(Date) is undefined for the type Message
    The method setSubject(String) is undefined for the type Message
    The method setText(String) is undefined for the type Message
    Type mismatch: cannot convert from MimeMessage to Message
    Can you please help me in resolving the issue. It seems that some API is missing. I believe if some one can tell me the name of JAR file / API then I will be able to sort out the issue. I will add these JAR file in my program.
    Thanks,
    S

    HI Stuart,
    you are missing the jar files required for sending mail in java
    Installing JavaMail
    You will need the latest version of JavaMail (Version 1.2) available here:
    http://java.sun.com/products/javamail/
    Download and unzip the file, in the newly created top level JavaMail directory you will find a number of jar files,
    these need adding to your classpath.
    To do this in Eclipse, right click on your project in the tree view, select properties, select the libraries tab.
    Now click the 'Add external jars' button, navigate to your JavaMail directory and click on the jars.
    The tutorial also makes use of the Java Activation Framework, which is available here:
    http://java.sun.com/products/javabeans/glasgow/jaf.html
    Instalation of JAF is identical to JavaMail
    activation.jar / mail.jar are 2 distinct names i remember rest you will get above
    P.S: close the question to assist other users narrow the search and find solutions
    Message was edited by:
            Armin Reichert

  • Java error while compiling Web Dynpro program

    Hi Experts,
    I am getting following error message while compiling Web Dynpro program. The erring lines are as below:
              Message message = new MimeMessage(session);
              try {
                   message.setFrom(new InternetAddress(fromMailId));
                   message.addRecipient(
                        Message.RecipientType.TO,
                        new InternetAddress(toMailId));
                   message.setSubject(mailSubject);
                   message.setText(mailBody);
                   message.setHeader("X-Mailer", "E-Mail");
                   message.setSentDate(new Date());
                   Transport.send(message);
    The error messages are:
    Message.ReceipientType can not be resolved
    The method send(Message) is undefined for the type Transport
    The method setFrom(InternetAddress) is undefined for the type Message
    The method setHeader(String, String) is undefined for the type MessageThe method setSentDate(Date) is undefined for the type Message
    The method setSubject(String) is undefined for the type Message
    The method setText(String) is undefined for the type Message
    Type mismatch: cannot convert from MimeMessage to Message
    Can you please help me in resolving the issue. It seems that some API is missing. I believe if some one can tell me the name of JAR file / API then I will be able to sort out the issue. I will add these JAR file in my program.
    Thanks,
    S

    Hi,
    Have you imported the required JavaMail jar?
    Please tell me what API you are using for the same.
    Also check Barcode Printing from EP --using barcode4J (Gurus kindly help me) forum to check how to add external jar files into WebDynpro project
    Let me know if you need more help on it.
    Regards,
    Ashutosh

  • Error while compiling pro*c code in oracle 11gR2 on AIX6.1 (64bit)..

    Hi ,
    We are migrating from oracle 10gR2 on AIX 5.3 to oracle 11gR2 on AIX 6.1 (64bit Kernal) . As pat of this , we need to migrate all the pro*c codes and for that we are trying to complie those files on the new server . But while compiling , we are getting error as :
    *1586-119 (U) The 32-bit file "/lib/crt0_64.o" is being linked in 64-bit mode, or vice versa.*
    We have only one library in $ORACLE_HOME which is lib..Lib32 is not present .
    Could you please help me in resolving this error ?
    The details , that I feel will be helpful ,is provided below :
    COMP_PROC ]>echo $ORACLE_HOME
    */data/oracle/product/11.2.0.2*
    */COMP_PROC ]>echo $LD_LIBRARY_PATH*
    */data/oracle/product/11.2.0.2/lib*
    COMP_PROC ]>echo $LIBPATH
    */data/oracle/product/11.2.0.2/lib*
    COMP_PROC ]>echo $PATH
    */data/oracle/product/11.2.0.2:/data/oracle/product/11.2.0.2/bin:/applications/tf3/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/bin:.::/dbjobs/utils/adsm:.:/applications/tf3/bin:/applications/tf3/bin/ctm/source:/usr/vac/bin:/applications/tf3/bin:/usr/lib:/tshome/tfapp:/tshome/tfapp/app/genio::/tshome/tfapp/app/genio/odbc:/tshome/tfapp/app/genio/odbc/lib:/data/oracle/product/11.2.0.2/lib:/data/oracle/product/11.2.0.2/bin:/tshome/tf01/:/usr/bin:/etc:/usr/sbin:/usr/ucb:/tshome/tfapp/bin:/usr/bin/X11:/sbin*
    Compiler version :
    COMP_PROC ]>cc -v
    exec: /usr/bin/pg(/usr/bin/pg,/usr/vac/exe/default_msg/vac.help,NULL)
    C for AIX Compiler, Version 6
    os version :
    COMP_PROC ]>uname -a
    AIX 1 6 00F6249E4C00
    Make file :
    # File : makeheader.h #
    # Description : #
    # The target 'build' puts together an executable $(EXE) from the .o files
    # in $(OBJS) and the libraries in $(PROLDLIBS). It is used to build the
    # c sample programs. The rules to make .o files from .c and .pc files are
    # later in this file.
    # ($(PROLDLIBS) includes the client shared library, and $(STATICPROLDLIBS) does
    # not.)
    # Here are some rules for converting .pc -> .c -> .o and for .typ -> .h.
    # If proc needs to find .h files, it should find the same .h files that the
    # c compiler finds. We use a macro named INCLUDE to hadle that. The general
    # format of the INCLUDE macro is
    # INCLUDE= $(I_SYM)dir1 $(I_SYM)dir2 ...
    # Normally, I_SYM=-I, for the c compiler. However, we have a special target,
    # pc1, which calls $(PROC) with various arguments, include $(INCLUDE). It
    # is used like this:
    # $(MAKE) -f $(MAKEFILE) <more args to make> I_SYM=include= pc1
    # This is used for some of $(SAMPLES) and for $(OBJECT_SAMPLE).
    USERID=xxxxx/yyyyy@zzzzzzz
    SHELL=/bin/ksh
    MQMLIBS=/usr/lpp/mqm/lib/libmqm.a
    MQMCLIENTLIBS=/usr/lpp/mqm/lib/libmqic.a
    #MQMLIBS=/pvcs/compile/proc/libmqm.a
    CONVLIBS=/usr/lib/libiconv.a
    NETWORKHOME=$(ORACLE_HOME)/network/
    PLSQLHOME=$(ORACLE_HOME)/plsql/
    #INCLUDE=$(I_SYM). $(I_SYM)$(PRECOMPHOME)public $(I_SYM)$(RDBMSHOME)public $(I_SYM)$(RDBMSHOME)demo $(I_SYM)$(PLSQLHOME)public $(I_SYM)$(NETWORKHOME)public
    I_SYM=-I
    AS_EXT=s
    LIB_EXT=a
    OBJ_EXT=o
    PLB_EXT=plb
    SO_EXT=so
    LOCK_EXT=lk
    SQL_EXT=sql
    SYM_EXT=sym
    LIB_PREFIX=lib
    LDLIBFLAG=-l
    LDPATHFLAG=-L
    AS=as
    AWK=awk
    CAT=cat
    CC=/usr/vac/bin/cc
    CD=cd
    CHMOD=chmod
    CP=cp
    CPP=cpp
    DATE=date
    ECHO=echo
    ECHON=echo -n
    EXEC=exec
    FIND=find
    FOLLOW=-follow
    NOLEAF=-noleaf
    GREP=grep
    KILL=kill
    SLEEP=sleep
    LD=ld
    LMAKE=make
    LN=ln
    LNS=ln -s
    MKDIR=mkdir
    MKDIRP=mkdir -p
    MV=mv
    NM=nm
    PERL=perl
    RM=rm
    RMF=rm -f
    RMRF=rm -rf
    SED=sed
    SORT=sort
    TOUCH=touch
    XARGS=xargs
    LS=ls
    SPFLAGS=
    MATHLIB=-lm
    LOCALLIBS=
    OPTIMIZE=-O5
    OTHERLIBS = `cat $(ORACLE_HOME)/lib/sysliblist`
    CCFLAGS= -g
    SO=a
    LLIBTHREAD=-lpthreads
    EXOSLIBS=
    LIBBSD=
    SECLIBS=
    M6LIBS=
    LIBHOME=$(ORACLE_HOME)/lib
    VER =11
    BASENAME =n
    NETWORKHOME = $(ORACLE_HOME)/network/
    NETWORKLIB = $(NETWORKHOME)lib/
    RONAME=${BASENAME}ro${VER}
    PFLAGS=
    PFLAGS= $(INCLUDE) $(SPFLAGS) $(LPFLAGS)
    RDBMS_VERSION = 11
    LIBSERVERNAME=server$(RDBMS_VERSION)
    LIBSERVER=$(LIBHOME)$(LIB_PREFIX)$(LIBSERVERNAME).$(LIB_EXT)
    LLIBSERVER=$(LDLIBFLAG)$(LIBSERVERNAME)$(LIB_SUFFIX)
    LIBCLIENTNAME=client$(RDBMS_VERSION)
    LIBCLIENT=$(LIBHOME)$(LIB_PREFIX)$(LIBCLIENTNAME).$(LIB_EXT)
    LLIBCLIENT=$(LDLIBFLAG)$(LIBCLIENTNAME)
    LIBGENERICNAME=generic$(RDBMS_VERSION)
    LIBGENERIC=$(LIBHOME)$(LIB_PREFIX)$(LIBGENERICNAME).$(LIB_EXT)
    LLIBGENERIC=$(LDLIBFLAG)$(LIBGENERICNAME)
    LIBDSBTSHNAME=dsbtsh$(RDBMS_VERSION)
    LIBDSBTSH=$(RDBMSLIB)$(LIB_PREFIX)$(LIBDSBTSHNAME).$(SO_EXT)
    LIBSKGXPNAME=skgxp$(RDBMS_VERSION)
    LIBSKGXP=$(LIBHOME)$(LIB_PREFIX)$(LIBSKGXPNAME).$(SKGXP_EXT)
    LLIBSKGXP=$(LDLIBFLAG)$(LIBSKGXPNAME)
    LIBCOMMONNAME=common$(RDBMS_VERSION)
    LIBCOMMON=$(LIBHOME)$(LIB_PREFIX)$(LIBCOMMONNAME).$(LIB_EXT)
    LLIBCOMMON=$(LDLIBFLAG)$(LIBCOMMONNAME)
    LIBVSNNAME=vsn$(RDBMS_VERSION)
    LIBVSN=$(LIBHOME)$(LIB_PREFIX)$(LIBVSNNAME).$(LIB_EXT)
    LLIBVSN=$(LDLIBFLAG)$(LIBVSNNAME)
    LIBAGENTNAME=agent$(RDBMS_VERSION)
    LIBAGENT=$(LIBHOME)$(LIB_PREFIX)$(LIBAGENTNAME).$(LIB_EXT)
    LLIBAGENT=$(LDLIBFLAG)$(LIBAGENTNAME)
    LIBDBTOOLSNAME=dbtools$(RDBMS_VERSION)
    LIBDBTOOLS=$(RDBMSLIB)$(LIB_PREFIX)$(LIBDBTOOLSNAME).$(LIB_EXT)
    #DEF_ON= $(RDBMSLIB)kpudfo.$(OBJ_EXT)
    #DEF_OFF= $(RDBMSLIB)kpundf.$(OBJ_EXT)
    #DEF_OPT= $(RDBMSLIB)defopt.$(OBJ_EXT)
    LIBSLAXNAME=slax8
    LIBSLAX=$(LIBHOME)$(LIB_PREFIX)$(LIBSLAXNAME).$(LIB_EXT)
    LLIBSLAX=$(LDLIBFLAG)$(LIBSLAXNAME)
    LIBSQLNAME=sql11
    LIBSQL=$(LIBHOME)/$(LIB_PREFIX)$(LIBSQLNAME).$(LIB_EXT)
    LLIBSQL=$(LDLIBFLAG)$(LIBSQLNAME)
    #SCOREPT = $(LIBHOME)/scorept.$(OBJ_EXT)
    #SSCOREED = $(LIBHOME)/sscoreed.$(OBJ_EXT)
    LIBORA=$(LIBCLIENT) $(LIBCOMMON) $(LIBGENERIC)
    LLIBORA=$(LLIBCLIENT) $(LLIBCOMMON) $(LLIBGENERIC)
    LIBSQLNET = $(LDFLAGSLIST) $(ANOLIBD) $(PROTOCOLLIBD) $(NATIVELIBD) $(NATIVESYSLIBD) $(LIBNETWORK) $(LIBNL)
    LLIBSQLNET = $(LDFLAGSLIST) $(ANOLIBS) $(PROTOCOLLIBS) $(NATIVELIBS) $(NATIVESYSLIBS) $(LLIBNETWORK) $(LLIBNL)
    LIBRPC = $(LIBHOME)$(LIB_PREFIX)$(RONAME).$(LIB_EXT)
    LLIBRPC = $(LDLIBFLAG)$(RONAME)
    NETLIBS = $(LLIBSQLNET) $(LLIBRPC) $(LLIBSQLNET)
    NETLIBD = $(LIBSQLNET) $(LIBRPC)
    LDFLAGSFILE=$(NETWORKLIB)ldflags
    LDFLAGSLIST=`$(CAT) $(LDFLAGSFILE)`
    LDFLAGSLIST=
    LIBNLSRTLNAME = nls11
    LIBNLSRTL= $(LIBHOME)$(LIB_PREFIX)$(LIBNLSRTLNAME).$(LIB_EXT)
    LLIBNLSRTL= $(LDLIBFLAG)$(LIBNLSRTLNAME)$(LIB_SUFFIX)
    CORE_LIB_VER = 11
    CORE_LIB_NAME = core
    LIBCORE = $(LIBHOME)$(LIB_PREFIX)$(CORE_LIB_NAME)$(CORE_LIB_VER).$(LIB_EXT)
    LLIBCORE = $(LDLIBFLAG)$(CORE_LIB_NAME)$(CORE_LIB_VER)
    RDBMSHOME=$(ORACLE_HOME)/rdbms/
    RDBMSLIB=$(RDBMSHOME)lib/
    RDBMSADMIN=$(RDBMSHOME)admin/
    LIBCLNTSHNAME=clntsh
    LIBCLNTSH=$(LIBHOME)$(LIB_PREFIX)$(LIBCLNTSHNAME).$(SO_EXT)
    LLIBCLNTSH=$(LDLIBFLAG)$(LIBCLNTSHNAME)
    LIBAGTSHNAME=agtsh
    LIBAGTSH=$(LIBHOME)$(LIB_PREFIX)$(LIBAGTSHNAME).$(SO_EXT)
    LLIBAGTSH=$(LDLIBFLAG)$(LIBAGTSHNAME)
    LIBKNLOPTNAME=knlopt
    LIBKNLOPT=$(RDBMSLIB)$(LIB_PREFIX)$(LIBKNLOPTNAME).$(LIB_EXT)
    LLIBKNLOPT=$(LDLIBFLAG)$(LIBKNLOPTNAME)
    #LIBTRACENAME=trace9
    #LIBTRACE=$(LIBHOME)$(LIB_PREFIX)$(LIBTRACENAME).$(LIB_EXT)
    #LLIBTRACE=$(LDLIBFLAG)$(LIBTRACENAME)$(LIB_SUFFIX)
    #LIBEPC=$(LIBHOME)$(LIB_PREFIX)$(LIBTRACENAME).$(LIB_EXT)
    #LLIBEPC=$(LDLIBFLAG)$(LIBTRACENAME)$(LIB_SUFFIX)
    CORELIBS = $(LLIBNLSRTL) $(LLIBCV6) $(LLIBCORE) $(LLIBNLSRTL) $(LLIBCORE) \
    $(LLIBNLSRTL)
    OTHERLIBS=`cat $(ORACLE_HOME)/lib/sysliblist`
    DEVTTLIBS=$(NETLIBS) $(LLIBORA) $(NETLIBS) $(LLIBORA) $(LIBPLSHACK) \
    $(LLIBEPC) $(CORELIBS) $(SPLIBS) $(LOCALLIBS) $(EXOSLIBS) $(LIBBSD) `cat $(ORACLE_HOME)/lib/sysliblist` $(MATHLIB)
    CC=/usr/vac/bin/cc
    PCC=proc
    PROC=proc CODE=ANSI_C define=_64BIT_ define=_IBM_C define=_LONG_LONG sqlcheck=full userid=$(USERID) oraca=yes mode=oracle unsafe_null=yes dbms=v8
    PCCINCLUDE=include=$(ORACLE_HOME)/precomp/lib
    PCCFLAGS=$(PCCINCLUDE) sqlcheck=full ltype=none parse=full userid=$(USERID) lines=yes unsafe_null=yes dbms=v8
    CFLAGS= $(GFLAG) -qmaxmem=8192 $(OPTIMIZE) $(CDEBUG) $(CCFLAGS) $(QACCFLAGS) $(PFLAGS) $(SHARED_CFLAG) $(ENV_FLAGS) -L$(LIBHOME)
    ECHO=
    STATICPROLDLIBS=$(LLIBCLIENT) $(LIBSQL) $(SCOREPT) $(SSCOREED) $(DEF_ON) $(DEVTTLIBS) $(LLIBTHREAD)
    PROLDLIBS=$(LLIBCLNTSH) $(STATICPROLDLIBS)
    Tail of make.log :
    [applications/tf3/bin/COMP_PROC ]>echo $ORACLE_HOME
    /data/oracle/product/11.2.0.2
    [applications/tf3/bin/COMP_PROC ]>cd $ORACLE_HOME
    [data/oracle/product/11.2.0.2 ]>cd install
    [data/oracle/product/11.2.0.2/install ]>tail -15 make.log
    mv: cannot rename /data/oracle/product/11.2.0.2/bin/nmo to /data/oracle/product/11.2.0.2/bin/nmo0:
    No such file or directory
    mv /data/oracle/product/11.2.0.2/sysman/lib/nmo /data/oracle/product/11.2.0.2/bin/
    make: The error code from the last command is 1.
    make: Ignored error code 1 from last command.
    /bin/make -f /data/oracle/product/11.2.0.2/sysman/lib/ins_emagent.mk relink_exe EXENAME=nmhs
    ld -b64 -o /data/oracle/product/11.2.0.2/sysman/lib/nmhs -L/data/oracle/product/11.2.0.2/lib/ -L/data/oracle/product/11.2.0.2/sysman/lib/ -lld -lm `cat /data/oracle/product/11.2.0.2/lib/sysliblist` -lm /data/oracle/product/11.2.0.2/sysman/lib/s0nmhs.o -lnmhs -lcore11 -lld -lm `cat /data/oracle/product/11.2.0.2/lib/sysliblist` -lm
    rm -f /data/oracle/product/11.2.0.2/bin/nmhs.0
    cp /data/oracle/product/11.2.0.2/sysman/lib/nmhs /data/oracle/product/11.2.0.2/bin/nmhs.0
    mv -f /data/oracle/product/11.2.0.2/bin/nmhs /data/oracle/product/11.2.0.2/bin/nmhs0
    mv: cannot rename /data/oracle/product/11.2.0.2/bin/nmhs to /data/oracle/product/11.2.0.2/bin/nmhs0:
    No such file or directory
    make: The error code from the last command is 1.
    make: Ignored error code 1 from last command.
    mv /data/oracle/product/11.2.0.2/sysman/lib/nmhs /data/oracle/product/11.2.0.2/bin/
    Edited by: Minu on Dec 3, 2011 12:36 AM

    Apparently you are trying to mix 32-bit code and 64-bit code. You must ensure that the 32-bit or 64-bit option is used consistently on every command, compiling and linking. The form of the option can depend on the version of the C compiler you are using, and whether you are on an x86 or sparc system. Consult the Pro*C and C compiler documentation.

  • PLS-S-00487, Invalid reference to variable while compiling PRO*C program

    Hi,
    I am writing a PRO*C code and get an error in compilation.
    Code is as below:
    +#include <stdio.h>+
    +#include <string.h>+
    EXEC SQL INCLUDE sqlca.h;
    int main(int argc , char **argv)
    +{+
    int i;
    EXEC SQL BEGIN DECLARE SECTION;
    VARCHAR connString[100];
    struct emp_record
    +{+
    char name[25];
    char dept[10];
    int id;
    int salary;
    int comm;
    int tot_sal;
    +}e1;+
    EXEC SQL END DECLARE SECTION;
    strcpy (connString.arr, "abcd/efgh@ijkl");
    connString.len = strlen ( connString.arr);
    +printf("\n Connection is [%d][%s]",connString.len,connString.arr);+
    +EXEC SQL CONNECT :connString;+
    +if(sqlca.sqlcode!=0)+
    +{+
    +printf("\nFailed to Connect, sqlcode is %d\n",sqlca.sqlcode);+
    +printf("\nOracle Message = %s", sqlca.sqlerrm.sqlerrmc);+
    +exit(-1);+
    +}+
    +else+
    +{+
    +printf("\nConnected\n");+
    +}+
    +EXEC SQL EXECUTE+
    +BEGIN+
    +emp_calc ( :e1.name,+
    +:e1.id,+
    +:e1.salary,+
    +:e1.tot_sal+
    +);+
    +END;+
    +END-EXEC;+
    +if(sqlca.sqlcode!=0)+
    +{+
    +printf("Oracle Error:[%d][%s]",sqlca.sqlcode,sqlca.sqlerrm.sqlerrmc);+
    +}+
    +}+
    Procedure code is:
    +CREATE OR REPLACE PROCEDURE "EMP_CALC" (+
    +pi_empname in emp.ename%type,+
    +pi_empno in emp.empno%type,+
    +pi_sal in emp.sal%type,+
    +po_totsal out NUMBER)+
    +is+
    +begin+
    +po_totsal := 1.1 * pi_sal;+
    +dbms_output.put_line('Total Salary is:' || po_totsal);+
    +end;+
    *My main aim is to use elements of a structure in procedure call as parameters*
    *But when I compile I get error on such usage as follows:*
    Pro*C/C++: Release 11.2.0.3.0 - Production on Tue Apr 30 16:59:22 2013
    Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
    System default option values taken from: /mtsapp1/ora11g/product/11.2.0.3/dbhome_1/precomp/admin/pcscfg.cfg
    Error at line 52, column 20 in file singleStructOra.pc
    emp_calc ( :e1.name,
    ...................1
    PLS-S-00487, Invalid reference to variable 'E1'
    Error at line 52, column 1 in file singleStructOra.pc
    emp_calc ( :e1.name,
    1
    PLS-S-00000, Statement ignored
    Semantic error at line 50, column 1, file singleStructOra.pc:
    BEGIN
    1
    PCC-S-02346, PL/SQL found semantic errors
    *I would like to know how to resolve this compilation error and how do I use members of structures in such a procedure call.*
    Thanks....

    Sadly PL/SQL blocks do not understand structs (or arrays). DML statements do understand them.
    This is not very clearly stated in the manual, but it does say:
    http://docs.oracle.com/cd/E11882_01/appdev.112/e10825/pc_08arr.htm#autoId33
    Restrictions on Arrays of Structs
    The following restrictions apply to the use of arrays of structs in Pro*C/C++:
    Arrays of structs (just as with ordinary structs) are not permitted inside an embedded PL/SQL block.
    http://docs.oracle.com/cd/E11882_01/appdev.112/e10825/pc_07pls.htm#autoId13
    Do not use C pointer or array syntax in PL/SQL blocks. The PL/SQL compiler does not understand C host-variable expressions and is, therefore, unable to parse them.
    Although the example uses an array of structs, simple structs also fail. I have always had to copy the fields to and from simple variables when calling stored procedures.
    regards,
    David

  • Error While compiling Pro*C in sun solaris

    hi,
    i am using solaris 5.8 , Pro*C - 1.6 and Oracle-7.3 versions.i am not able to compile a proc program in these combination of versions.
    pls give the details regarding the compilation scripts and the configurations to be done prior to the compilation.
    rgds
    Dileep.S

    Pro*C is Oracle's Precompiler Product.
    You probably should ask the vendor.
    Rose

  • Error while compile .Java to .class

    I am new in java card. I have some problem when compile java card applet.
    1. I installed j2sdk1.4.2_07 and java_card_kit- 2_2_2 to build a sample java card. I set the environment as:
    @echo off
    set JC_HOME=C:\java_card_kit-2_2_2-windows\java_card_kit-2_2_2
    set JAVA_HOME=c:\j2sdk1.4.2_07
    set PATH=.;%JC_HOME%\bin;%JAVA_HOME%\bin;%PATH%
    I created a java applet and saved in C\STCard, and I use windows command to compile, the command is:
    c:\java_card_kit-2_2_2-windows\java_card_kit-2_2_2\samples>javac -g -classpath c:\STCard;..\lib\api.jar;..lib\installer.jar c:\STCard\*.java
    but the error is: "cannot access javacard.framework.APDU"
    What am I wrong?
    2. I use eclipse 3.3.2, eclipse jcde 0.1, java_card_kit-2_2_2, jdk1.6.0 to compile java card applet. The compilation from .java to .class was no problem, but from the .class to .cap has problem:
    java com.sun.javacard.converter.Converter -config .\converter2.opt
    error: stcard.STCard: unsupported class file format of version 50.0.
    What should I do to convert from .class to .cap?
    Thx all

    I have a typically problem , I am a student and learning core java am just a beggineer in java,i have sucessfully installed my JavaEE1.5 software on my computer but have got a problem while compiling my Java programs ,while passing the commands in my command prompt i am encounteering a problem ,am geeting an error message in my command prompt" 'javac' is not recoginized as an internal or external command ,operable program or batch file".i had also tried my own software cd of JavaEE1.5 version and installed at others computers it is running sucessfully but can i know Why it is not geeting in to my Pc & giving compilation error while compiling my java programs. so kindly sujjest me my remedy of my problem.

  • Error while running a Java Program

    Can anyone help me,
    I am getting the following error while running a Java program, Below is the exception thrown, please help.
    java.nio.BufferOverflowException
    at java.nio.Buffer.nextPutIndex(Buffer.java:425)
    at java.nio.DirectByteBuffer.putChar(DirectByteBuffer.java:463)
    at org.jetel.data.StringDataField.serialize(StringDataField.java:295)
    at org.jetel.data.DataRecord.serialize(DataRecord.java:283)
    at org.jetel.graph.DirectEdge.writeRecord(DirectEdge.java:216)
    at org.jetel.graph.Edge.writeRecord(Edge.java:288)
    at com.tcs.re.component.RESummer1.run(RESummer1.java:505)
    java.nio.BufferOverflowException
    at java.nio.Buffer.nextPutIndex(Buffer.java:425)
    at java.nio.DirectByteBuffer.putChar(DirectByteBuffer.java:463)
    at org.jetel.data.StringDataField.serialize(StringDataField.java:295)
    at org.jetel.data.DataRecord.serialize(DataRecord.java:283)
    at org.jetel.graph.DirectEdge.writeRecord(DirectEdge.java:216)
    at org.jetel.graph.Edge.writeRecord(Edge.java:288)
    at com.tcs.re.component.RECollectCont.run(RECollectCont.java:304)

    Ok, let's see. Write the following class:
    public class Grunt {
      public static void main(String[] args) {
        System.out.println("Hello Mars");
    }Save it as "C:\Grunt.java", compile by typing:
    javac c:\Grunt.javaRun by typing:
    java -classpath "C:\" GruntDoes it say "Hello Mars"? If yes, go back to your program and compare for differences (maybe you used the "package" statement?).
    Regards

  • Error while compiling java file using J2SE 1.5.0

    Dear Sir,
    I'm getting the following error while compiling the java file.The code is also given.
    package test;
    public class TestRowSet {
    public TestRowSet() {
    "TestRowSet.java": cannot access java.lang.Object,bad class file: D:\Program Files\Java\jdk1.5.0\jre\lib\rt.jar\java\lang\Object.class,class file has wrong version 49.0, should be 48.0,Please remove or make sure it appears in the correct subdirectory of the classpath. at line 4, column 1
    Please help me out.
    --Suketu Naik.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    But I'm compiling within "Borland JBuilder 9.0". I've
    set the JDK path of the current project to point to
    the path of JDK 1.5.0 . I've also tried to compile at
    command prompt with "javac". I'm getting the same
    error of "Undefinedclassloader" with long StatckTrace.
    I don't know anything about JBuilder either. If you use the command prompt and enter the full path to the 1.5 javac.exe then that will prove whether the issue is using an older javac or not. For example "c:\j2sdk1.5.0_01\bin\javac HelloWorld.java"

  • Error while compiling model in Visual Composer 7.1.

    Hi,
    I am getting a error while compiling model in Visual Composer 7.1.
    An exception occurred at the server while running the build process, reason: Extension with id com.sap.vc.runtimeproviders.null not found. For more details please refer to the log file.
    Can any one please tell me what the error is?

    Hello
    This problem usually indicates the model Runtime provider is not set properly
    Please goto configure pane and check the RT provider that is et for the model or any other model in the same DC
    Also services usages require this property to be set accordingly
    To make sure the services are set properly please look into the configuration pane when the respective service usage is selected (and check the same)
    Please let me know if this helped or not
    Guy

  • Getting a bad bind variable error while compiling a custom form in R12

    Hi,
    I am getting a bad bind variable error while compiling a custom form.
    I tried setting the forms_path variable and I am still getting the error. Can anyone please suggest what can be done?
    DECLARE
    BEGIN
    IF :parameter.p_line_ship_to = 'T'
    THEN
    IF :SYSTEM.cursor_item = 'LINE.SHIP_TO'
    THEN
    :parameter.lov_num_param1 := :line.ship_to_customer_id;
    oe_lines.ship_to ('WHEN-VALIDATE-ITEM');
    :parameter.lov_num_param1 := :line.ship_to_customer_id;
    END IF;
    :parameter.p_line_ship_to := 'F';
    END IF;
    END;
    I am getting this error:
    Bad bind variable 'parameter.p_line_ship_to'

    The Parameter is not defined in the form.. But, this form is already been compiled and deployed.. I have to make some changes to the form and tried to compile it, when i am getting this error. Is it possible that the parameter would be defined in some other form or can this error be due to some other reasons?
    Thanks in Advance.

  • Error while compiling the PO Item Category KFF

    Kindly help me. I am new and learning Purchasing module and now stuck because of an error while compiling the PO Item Category KFF. This is because a segment is saved in the database incompletely.
    Now the segment does not show in the Segments Summary form. But when I enter the same Number, I get the error APP-FND-00924: You chose a sement number that is used by another segment.
    When I freeze and compile the structure with different segments, I get the error
    APP-FND-00668: The data that defines the flexfield on this field may be inconsistent. Inform your system administrator that the function: FDFRKS could not find the structure definition for the flexfield specified by Application = &APPL, Code = MCAT and Structure number = 201 (APPID=401)
    APP-FND-00738: Error detected when attempting to load value set on Context: &CONTEXT for Segment: &SEGMENT in Routine: FDFBKS
    APP-FND-01564: ORACLE error 1403 in FDFAVS3
    Cause: FDFAVS3 failed due to ORA-01403: no data found.
    The SQL statement being executed at the time of the error was:  and was executed from the file &ERRFILE.
    Regards
    Reem

    Hi Sandeep
    Sorry that I am bothering with basic questions, but I am not able to run any Select queries. It gives error Table or View does not exist. I can see the table from ALL_TABLES view, but I cannot Select.
    I have logged in as oracle user. This is not Vision datbase. Can you let me know the default dba user and password or how to get the permission?
    Regards
    Reem

  • Error while compiling Model in VC 7.1

    Hi,
    I am getting a error while compiling model in Visual Composer 7.1.
    An exception occurred at the server while running the build process, reason: Extension with id com.sap.vc.runtimeproviders.null not found. For more details please refer to the log file.
    Can any one please tell me what the error is?

    Hi
    The common reason for this kind of error is a misconfigured model or data service proxy
    To verify this is not the case please follow these steps:
    1. In the DC where you get the error open your models one by one and verify that the runtime provider that is configured is set properly (usually should be WebDynpro but could be Voice or Portal if this is the runtime that you are targeting your application to)
    This configuration is accessible in the configure panel when your model is in focus
    2. Do the same as described in bullet 1 on your data services' usages as well. Select the usage of the data service and check that the runtime provider is set properly
    3. remove any unused service in your DC (this is a good practive regardless of the current problem. To view your data services in a certain DC open the "Manage Models Dialog". Select the "Data Services" entry in the filter dropdown on the top right corner. Drill down into the DC you are clearing and delete services you do not think they are in use. Please note that removing a service must be done carefully since you might delete services that could be in use by other models in the same DC or by dynamic entry list of a control in your model, etc.)
    Please let me know if it helped
    Guy

  • Error while registering the Concurrent Program

    Hi,
    I am getting the following error while registering the concurrent program.
    The executable is registered as shell script and this executable sends a mail with attachment. can any one of you tell me the cause of the error?
    ORA-20160: ORACLE error -4091 in SUBMIT: others
    Cause: SUBMIT: others failed due to ORA-04091: table APPLSYS.FND_CONCURRENT_PROGRAMS is mutating, trigger/function may not see it.
    The SQL statement being executed at the time of the error was: &SQLSTMT and was executed from the file &ERRFILE.
    ORA-06512: at "APPS.ALR_FND_CONCURRENT_PROGRAM_IAR", line 1
    ORA-04088: error during execution of trigger 'APPS.ALR_FND_CONCURRENT_PROGRAM_IAR'
    ORA-06512: at "APPS.FND_CONCURRENT_PROGRAMS_PKG", line 63
    FRM-40735: ON-INSERT trigger raised unhandled exception ORA-20160.
    Thanks in advance

    Check Note: 391795.1 - Frm-40735: On-Insert Trigger Raised Unhandled Exception Ora-04062 in APPS.FND_CONCURRENT_PROGRAMS_PKG
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=391795.1

  • Error While Compiling Jdbc Application

    Hi,
    I am getting an error while compiling a JDBC application ... as shon below...
    please help me regardinmg this and also please specify how to include jar file ....
    JdbcApp.java:5: package Oracle.jdbc.driver does not exist
    DriverManager.registerDriver(new Oracle.jdbc.driver.OracleDriver());

    Thanx for that!!!
    but i am still getting the exception...
    D:\Java>java JdbcApp
    Exception in thread "main" java.sql.SQLException: Io exception: The Network Adap
    ter could not establish the connection
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:334)
    at oracle.jdbc.ttc7.TTC7Protocol.handleIOException(TTC7Protocol.java:366
    8)
    at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:353)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:371)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va:551)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:351)
    at java.sql.DriverManager.getConnection(DriverManager.java:525)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    at JdbcApp.main(JdbcApp.java:7)
    kindly solve this...

Maybe you are looking for

  • How do I include sub-folders in a Smart Mailbox?

    I've set up a Smart Mailbox using the following rules (ALL) : 1. Message is in Mailbox XXXX 2. Subject contains YYYY 3. Contains attachments But only 3 messages were found! I then realised that although I carefully selected a high-level mailbox (XXXX

  • Stock transfer from plant to depot

    Dear Experts, I have used special procurement type along with additive cost in DEPOT. There is one more tcode-okyo- Assign origin group to condition type.What is the use of the same?. one more doubt in STO from Plant to depot lets say- material(A) st

  • Spool Command with dbms_metadata.GET_DDL function

    Hi All, My requirement is before applying a patch on the Database Schema, I need to take a backup of the db objects DDL script, so that incase if I want to rollback I can use it. what I am trying to use is the dbms_metadata.GET_DDL function to get th

  • Nokia lumia 510 wifi network searching problem

    Recently I have got Nokia lumia 510......nice phone......but it fails to search any WiFi network......somtimes shows notifications at top of the display but doesn't wrk at ol..........So what to do.........help help

  • Help!  SQL Server to Oracle 10.1.0.2

    Hello! I need your help. I need to migrate SQL Server 2000 to Oracle 10g on HP-UX. I read the SQL Developer documentation, but it only seems to be available for Windows, MacOS, and Linux. Is there one available for Unix? Thank you in advance, si