Proc compile error

hi everyone:
Can anyone tell me how to solve
the following error ?
thanks,
qicheng ma
[oracle@max2-11-174 test]$ proc INAME=sample1
Pro*C/C++: Release 8.0.5.0.0 - Production on Sun Mar 21 0:44:24
1999
(c) Copyright 1998 Oracle Corporation. All rights reserved.
System default option values taken from:
/usr/local/oracle8.0.5/precomp/admin/pc
scfg.cfg
Error at line 13, column 10 in file /usr/include/_G_config.h
#include <stddef.h>
.........1
PCC-S-02015, unable to open include file
Error at line 47, column 10 in file /usr/include/libio.h
#include <stdarg.h>
.........1
PCC-S-02015, unable to open include file
Syntax error at line 317, column 19, file /usr/include/libio.h:
Error at line 317, column 19 in file /usr/include/libio.h
extern IOsize_t IOsgetn __P((_IO_FILE *, void*, IOsize_t));
PCC-S-02201, Encountered the symbol "_IO_sgetn" when expecting
one of thethe follow
ing:
; , = ( [
The symbol ";" was substituted for "_IO_sgetn" to continue.
Syntax error at line 66, column 9, file /usr/include/stdio.h:
Error at line 66, column 9 in file /usr/include/stdio.h
typedef IOsize_t size_t;
........1
PCC-S-02201, Encountered the symbol "size_t" when expecting one
of the following
auto, char, const, double, enum, float, int, long,
OCIBFileLocator OCIBlobLocator, OCIClobLocator, OCIDate,
OCINumber, OCIRaw, OCIString, register, short, signed,
sql_context, sql_cursor, static, struct, union, unsigned,
varchar, void, volatile, a typedef name,
The symbol "enum," was substituted for "size_t" to continue.
null

qicheng ma (guest) wrote:
: hi everyone:
: Can anyone tell me how to solve
: the following error ?
: thanks,
: qicheng ma
: [oracle@max2-11-174 test]$ proc INAME=sample1
: Pro*C/C++: Release 8.0.5.0.0 - Production on Sun Mar 21 0:44:24
: 1999
: (c) Copyright 1998 Oracle Corporation. All rights reserved.
: System default option values taken from:
: /usr/local/oracle8.0.5/precomp/admin/pc
: scfg.cfg
: Error at line 13, column 10 in file /usr/include/_G_config.h
: #include <stddef.h>
: .........1
: PCC-S-02015, unable to open include file
: Error at line 47, column 10 in file /usr/include/libio.h
: #include <stdarg.h>
: .........1
: PCC-S-02015, unable to open include file
: Syntax error at line 317, column 19, file /usr/include/libio.h:
: Error at line 317, column 19 in file /usr/include/libio.h
: extern IOsize_t IOsgetn __P((_IO_FILE *, void*,
IOsize_t));
: PCC-S-02201, Encountered the symbol "_IO_sgetn" when expecting
: one of thethe follow
: ing:
: ; , = ( [
: The symbol ";" was substituted for "_IO_sgetn" to continue.
: Syntax error at line 66, column 9, file /usr/include/stdio.h:
: Error at line 66, column 9 in file /usr/include/stdio.h
: typedef IOsize_t size_t;
: ........1
: PCC-S-02201, Encountered the symbol "size_t" when expecting one
: of the following
: auto, char, const, double, enum, float, int, long,
: OCIBFileLocator OCIBlobLocator, OCIClobLocator, OCIDate,
: OCINumber, OCIRaw, OCIString, register, short, signed,
: sql_context, sql_cursor, static, struct, union, unsigned,
: varchar, void, volatile, a typedef name,
: The symbol "enum," was substituted for "size_t" to continue.
Usually I do not use include file that refers to system heder
file such as stdio.h etc., before precompilation then I use that
(after precompilation).
null

Similar Messages

  • Can't Export Movie - Unknown Compile Error - Help!

    I edited a 32 minute movie in Premiere Elements 10, and now I'm trying to export it.  At some point during the export, and it seems to vary, I get an unknown compile error.  I've been trying to export the movie for the past week and all I get is failure despite trying just about everything I've found written about how to solve this.
    I have Win 7 Ultimate SP 1 running on a Lenovo desktop machine with an Intel Core 2 Quad CPU at 2.67 GHz, 4GB of RAM, 32 bit proc.
    Premiere is installed on system C drive with 6 GB of free space.
    Project and scrach disks are on D drive with 165 GB of free space.
    Media files are on 2nd E drive with 50GB of free space.
    Project and most source material is NTSC DV -- there are quite a few photos with motion, plus some iPhone HD video on the timeline, hundreds of clips in all plus narration, a few titles, etc.
    Export destination folder is on D drive.
    Everything will render to green lines atop timeline (sometimes it quits during render and I have to keep hitting Enter to continue rendering, but eventually it's all green)
    So far I've tried:
    - Reinstalling PE 10
    - Reinstalling Quicktime
    - Copying all the photos to their own separate folder
    - Editing each photo slightly (outside of PE 10) and resaving to make sure none of the photos are corrupted
    - Emptying the temp folder
    - Deleting all the renders and cache files and letting them rebuild
    - Exporting small pieces of the timeline to try to identify a bad clip -- this is a maddening process and I did find one clip that would generate the error, but I managed to export that to AVI and reimport and replace on timeline.  It would be awfully nice if PE would just TELL ME which clip it doesn't like if in fact it's a clip error.
    - Turning off the shadow / highlight feature I had on some clips, but this wasn't the issue, smaller sections with these clips exported fine
    - Tried exporting to various formats: Vimeo SD, MPEG DV Standard, iPad Standard High Quality, AVI -- all result in the same error (the format I want by the way is Vimeo SD)
    - Rebooting the machine and turning everything off that might possibly consume memory
    This machine has never had problems exporting in the past.  One thing I did try that worked -- installed PE 10 on another (less capable) Win 7 machine, and fed it all the media via an external drive.  The other machine did the export fine (though it took a while given it is underpowered).  This is nothing more than a work around though as I don't normally have access to this machine and I'm not done editing.
    I'm at my wits' end!  What else can I do to get this movie file to export?
    Appreciate any help or clues you can provide to solve this mystery.

    Oh, that is tragic!
    I never had any issues with mine. Maybe it knew how respectful I was, having come from manual rewinds and a sync block? The Moviola was a godsend, at least for me. I am glad that I got to edit film, and on many setups, as some of that translated well to digital Video. Back when I was in film school, Video was 2" tape, and the only editing was by cutting at a 45 degree angle, and splicing the tape. There was not even deck-to-deck editing, way back then. Also, Video looked like crap, at least to my eyes. We could only use a switcher, to "edit," or do a feed to air. Looked like crap!
    As for the Lexus, I can imagine all sorts of problems. My new LX-570 requires me to "Accept," when I put it into reverse, on the rear-view monitor! At least my wife's MB does not require that, but it is a 2011 model, so maybe the 2013 models will require that the user sign off on all sorts of "stuff."
    Now, I can play Finding Nemo, for my rear-seat passengers, while driving, but the front-seat passengers cannot see it, which is just fine. When driving, I am not even a fan of hands-free calls, and declined most of the streaming stock quotes, etc. for XM/Sirius radio. NOT while I am driving. I will save that for reading the WSJ in the club at the airport.
    Some years ago, our driver in London got a new BMW 7-series, and it allowed the playing of DVD's, even in the front, while driving. Not sure that I would want that, but such is life. At least his seats' ventilation system was "well-chilled," where ours' are just air. He almost froze my bum, showing off his new auto.
    Now, working with PS, or PrE in an auto, or even on a mobile device, is just not something that I can wrap my old head around. I want a fast computer, with a big display, and cannot imagine editing Images, or Video, on any handheld (or auto) device.
    Hunt

  • Why compilation error--when trying to access the table from itcsi schema

    Hi,
    when querying the table from itcsi.app iam able to see the data but used in proc saying invalid table name. Whats the problem
    when declared p_app_i_old app.app_i%type----It is throwing pls-00201 error
    1 Create or replace procedure Test_insert(p_app_i_old integer,
    2 p_app_i_new integer,
    3 p_APP_ISAC_CPT_I varchar2)
    4 is
    5 cursor c1 is
    6 select distinct table_name,owner
    7 from all_tab_columns
    8 where owner = 'ITCSI' and column_name='APP_I';
    9 t_tablename varchar2(25);
    10 t_string varchar2(300);
    11 t_num number;
    12 Begin
    13 For c2 in c1 loop
    14 t_num := 0;
    15 t_string := 'SELECT count(*) FROM ' || c2.owner ||'.'||c2.table_name||' WHERE APP_I = '||p_
    16 execute immediate t_string into t_num;
    17 if t_num > 0 then
    18 -- dbms_output.put_line('The table name is '||c1_rec.table_name);
    19 if c2.Table_name = 'APP' Then
    20 INSERT INTO itcsi.App
    21 SELECT p_app_i_new,
    22 app_acrnym_c,
    23 app_x,
    24 app_desc_t,
    25 app_ipads_t,
    26 app_prdcn_stat_t,
    27 app_prdcn_stat_d,
    28 app_isd_tier_c,
    29 app_bus_cont_c,
    30 app_extnl_cstm_c,
    31 app-ecrpt_lvl_c,
    32 app_isac_cpt_i,
    33 dsw_gpn_i,
    34 ed_cntnt_srce_t,
    35 usr_upd_uunm_i,
    36 ed_upd_m
    37 FROM itcsi.APP
    38 WHERE app_i = p_app_i_old;
    39 elsif c2.Table_name = 'APP_CETRN' Then
    40 Insert into itcsi.APP_CETRN
    41 select p_app_i_new,
    42 app_cetrn_i,
    43 app-curr_cmplnc_t,
    44 app_rqr_cmplnc_t,
    45 dsw_gpn_i,
    46 ed_cntnt_srce_t,
    47 usr_upd_uunm_i,
    48 ed_upd_m
    49 FROM itcsi.APP_CETRN
    50 WHERE app_i = p_app_i_old;
    51 elsif c2.Table_name = 'APP_GPC' Then
    52 Insert into itcsi.APP_GPC
    53 select p_app_i_new,
    54 gpc_dpnt_x,
    55 gpc_elemy_x,
    56 pro_i,
    57 dsw_gpn_i,
    58 ed_cntnt_srce_t,
    59 usr_usr_upd_uunm
    60 FROM itcsi.APP_GPC
    61 WHERE app_i = p_app_i_old;
    62 End if;
    63 End if;
    64 End loop;
    65 --Commit;
    66* End;
    SQL> /
    Warning: Procedure created with compilation errors.
    SQL> show errors
    Errors for PROCEDURE TEST_INSERT:
    LINE/COL ERROR
    20/2 PL/SQL: SQL Statement ignored
    37/23 PL/SQL: ORA-00942: table or view does not exist
    40/2 PL/SQL: SQL Statement ignored
    Thanks

    how do i check the grant?
    if am in my own schema,how do i connect to itcsi
    schema?if you are using a schema other than the ITCSI schema, you need to login as ITCSI. or if you have dba user account you can grant a privilege of
      GRANT ALL on ITCSI.APPS to <other SCHEMA>;

  • Help with Data Block Based on Procedure--getting compilation error

    I am trying to create a datablock based on a procedure , but im getting errors in compilation:
    Errors are :
    1) identifier 'HSM_WSH_DEL_UTIL.DEL_TBL' must be declared
    2)PL/SQL ERROR 320 at line 7, column 27
    the declaration of the type of this expression is incomplete or malformed
    ANy Help would be appreciated !
    Heres my pkg spec and body for the data block:
    CREATE OR REPLACE PACKAGE hsm_wsh_del_util IS
    TYPE del_record is record
    (delivery_id number);
    TYPE del_tbl is table of del_record INDEX BY BINARY_INTEGER;
    procedure do_query(p_del IN OUT del_tbl);
    END hsm_wsh_del_util ;
    CREATE OR REPLACE PACKAGE BODY hsm_wsh_del_util IS
    procedure do_query(p_del IN OUT del_tbl)
    IS
    idx number :=1;
    CURSOR DELIVERY IS
    SELECT DELIVERY_ID
    FROM abc_deliveries;
    begin
    FOR CUR IN DELIVERY LOOP
    p_del(idx).delivery_id :=cur.delivery_id;
    idx:= idx+1;
    END LOOP;
    end do_query;
    END hsm_wsh_del_util;
    Edited by: 981170 on Mar 13, 2013 1:08 PM

    Hi,
    Yes I did use the wizard,
    I agve it the package.proc name for query.
    it pulled up the field delivery ID,
    Hit finish, because I do not need update/delete/inserts.
    the query data source columns and arguments was defaulted correctly.
    THe QUERY-PROCEDURE was built by default.
    It is giving me an error though: wrong number or types of arguments in call to POPULATE_BLOCK..
    DECLARE
    bk_data HSM_WSH_DEL_UTIL.DEL_TBL;
    BEGIN
    hsm_wsh_del_util.do_query(bk_data);
    PLSQL_TABLE.POPULATE_BLOCK(bk_data, 'NEW_DELIVERIES');
    END;

  • Problem with .c code generated from proc compiler.

    I am having a problem compiling the c code generated from the proc pre-compiler.
    First some info on my system.
    [root@dell-xps-420-22 ~]# cat /etc/redhat-release
    Red Hat Enterprise Linux Client release 5.4 (Tikanga)
    [root@dell-xps-420-22 ~]# cat /proc/version
    Linux version 2.6.18-164.11.1.el5 ([email protected]) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)) #1 SMP Wed Jan 6 13:26:04 EST 2010
    [root@dell-xps-420-22 ~]# uname -a
    Linux dell-xps-420-22.drew.com 2.6.18-164.11.1.el5 #1 SMP Wed Jan 6 13:26:04 EST 2010 x86_64 x86_64 x86_64 GNU/Linux
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    I have written a simple PRO*C program to test the compile.
    [oracle@dell-xps-420-22 etl]$ cat Test.pc
    #include <stdio.h>
    main(int argc,char **argv)
    printf("Testing ........\n");
    [oracle@dell-xps-420-22 admin]$ cat pcscfg.cfg
    sys_include=(/usr/include,/usr/include/linux,/build/s630/precomp/public,/usr/lib/gcc/x86_64-redhat-linux/4.1.1/include)
    include=$(ORACLE_HOME)/precomp/public
    include=$(ORACLE_HOME)/precomp/hdrs
    include=$(ORACLE_HOME)/precomp/include
    CODE=cpp
    TYPE_CODE=ORACLE
    DEF_SQLCODE=YES
    VARCHAR=YES
    LTYPE=short
    define=__x86_64__
    When compiling the Test.pc program with the pcscfg.cfg file above.
    [oracle@dell-xps-420-22 etl]$ proc Test.pc
    Pro*C/C++: Release 10.2.0.1.0 - Production on Sun Feb 21 19:51:15 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    System default option values taken from: /u01/app/oracle/product/10.2.0/db_1/precomp/admin/pcscfg.cfg
    [oracle@dell-xps-420-22 etl]$ gcc -c ./Test.c -I . -I$ORACLE_HOME/precomp/public
    ./Test.c:117: error: expected identifier or '(' before string constant
    ./Test.c:131: error: expected identifier or '(' before string constant
    The code generated by the proc compiler that has problems is below.
    //File Test.c
    // Prototypes
    Line 117: extern "C" {
    void sqlcxt (void **, unsigned int *,
    struct sqlexd *, const struct sqlcxp *);
    void sqlcx2t(void **, unsigned int *,
    struct sqlexd *, const struct sqlcxp *);
    void sqlbuft(void **, char *);
    void sqlgs2t(void **, char *);
    void sqlorat(void **, unsigned int *, void *);
    // Forms Interface
    Line 131: extern "C" { void sqliem(char *, int *); }
    It seems like the compiler is generating c++ code but the gcc compiler is only compiling in cc mode. I've tried a number of options in the pcscfg.cfg file to no avail. I have tried the different options for the CODE=cpp in the pcscfg.cfg file but still get the same error and/or multiple errors. I have also tried to compile the oracle demo programs using the demo_proc.mk file and also get the same error.
    The install of Oracle is fine. I can start the database and have created a needed user and tables but cannot successfully compile the pro*C code.

    My proc is also compiling for cpp code but in the pcscfg.cfg file there is no "CODE=cpp"

  • ShObjIdl.h compile error when including Photoshop SDK header?

    I develop photoshop plugins on both Mac 10.6 and Windows 7, now my code has been built and run successfully on Mac, but on Windows there are curious compile errors in a file "ShObjIdl.h", this is a Windows SDK header file. ( my VC++ version is 2010 ). It seems including some adobe SDK header file will cause the error. Is there someone who had met this? I guess some macro define conflicts.

    Sophie
    did your program work ok under 10.3.6? Is it just Tiger that gives the problem?
    I have not used xmlrpc but I have used Pro*C on OS X with no probelms.
    Where did the xmlrpc.h you are using come from? I could not find it on OS X on either Tiger or Panther. However I do find an xmlrpc.cp and a make file so I assume you would include a shared library from it in the make file for your program to be able to make the xmlrpc calls you need to.
    In general, the include files are in sub directories of /System/Library/Frameworks and it would be worth a grep -r for the declarations you want to include and put the path in the include parameter to proc.
    I hope this info helps.
    Paul

  • Blackfin ez-lite compile error on 537 FlagCallba​ck example

    I received the following message from the details on Compile error when I "Rebuild All" on the ADSP-537 FlagCallbackExample.
    Sorry for the long message, but I don't know which part of it might be important.
    Any thoughts?
    Hummer 1
    *** compiler output ***
    C:\Program Files\National Instruments\LabVIEW 2009\examples\lvemb\Blackfin\BF537\Flag with callback\BF537 FlagWithCallback\BF537\VDK_Application>"C:\Program Files\Analog Devices\VisualDSP 5.0\ccblkfn.exe" -O1 -Ov100 -c -proc ADSP-BF537 -threads -labview -implicit-pointers -I. @.\prjHeaders.lst -DCHeadless -D__vdk -D__USE_FFT_REL45__ -Wsuppress 0001,1661 "C:\Program Files\National Instruments\LabVIEW 2009\examples\lvemb\Blackfin\BF537\Flag with callback\BF537 FlagWithCallback\BF537\VDK_Application\FlagCallbac​k1.c" @.\prjOptions.lst 
    C:\Program Files\National Instruments\LabVIEW 2009\examples\lvemb\Blackfin\BF537\Flag with callback\BF537 FlagWithCallback\BF537\VDK_Application>"C:\Program Files\Analog Devices\VisualDSP 5.0\ccblkfn.exe" -O1 -Ov100 -c -proc ADSP-BF537 -threads -labview -implicit-pointers -I. @.\prjHeaders.lst -DCHeadless -D__vdk -D__USE_FFT_REL45__ -Wsuppress 0001,1661 "C:\Program Files\National Instruments\LabVIEW 2009\examples\lvemb\Blackfin\BF537\Flag with callback\BF537 FlagWithCallback\BF537\VDK_Application\FlagCallbac​k2.c" @.\prjOptions.lst 
    C:\Program Files\National Instruments\LabVIEW 2009\examples\lvemb\Blackfin\BF537\Flag with callback\BF537 FlagWithCallback\BF537\VDK_Application>"C:\Program Files\Analog Devices\VisualDSP 5.0\ccblkfn.exe" -O1 -Ov100 -c -proc ADSP-BF537 -threads -labview -implicit-pointers -I. @.\prjHeaders.lst -DCHeadless -D__vdk -D__USE_FFT_REL45__ -Wsuppress 0001,1661 "C:\Program Files\National Instruments\LabVIEW 2009\examples\lvemb\Blackfin\BF537\Flag with callback\BF537 FlagWithCallback\BF537\VDK_Application\BF_Flag_Ope​n.c" @.\prjOptions.lst 
    C:\Program Files\National Instruments\LabVIEW 2009\examples\lvemb\Blackfin\BF537\Flag with callback\BF537 FlagWithCallback\BF537\VDK_Application>"C:\Program Files\Analog Devices\VisualDSP 5.0\ccblkfn.exe" -O1 -Ov100 -c -proc ADSP-BF537 -threads -labview -implicit-pointers -I. @.\prjHeaders.lst -DCHeadless -D__vdk -D__USE_FFT_REL45__ -Wsuppress 0001,1661 "C:\Program Files\National Instruments\LabVIEW 2009\examples\lvemb\Blackfin\BF537\Flag with callback\BF537 FlagWithCallback\BF537\VDK_Application\BF_Flag_Ins​tall_Callback.c" @.\prjOptions.lst 
    C:\Program Files\National Instruments\LabVIEW 2009\examples\lvemb\Blackfin\BF537\Flag with callback\BF537 FlagWithCallback\BF537\VDK_Application>"C:\Program Files\Analog Devices\VisualDSP 5.0\ccblkfn.exe" -O1 -Ov100 -c -proc ADSP-BF537 -threads -labview -implicit-pointers -I. @.\prjHeaders.lst -DCHeadless -D__vdk -D__USE_FFT_REL45__ -Wsuppress 0001,1661 "C:\Program Files\National Instruments\LabVIEW 2009\examples\lvemb\Blackfin\BF537\Flag with callback\BF537 FlagWithCallback\BF537\VDK_Application\FlagWithCal​lback.c" @.\prjOptions.lst 
    At end of source: : internal error: Uncaught exception Assertion failed raised
              at ../../../libutil/cii/src/array.c:38 (in pass final_annotate
              during compilation of _FlagWithCallback_BlockDiagram). Please submit
              a bug report with this message, the command line used, type of
              machine and the output of the compiler when you add -ED -v to the
              command line. Please also send us the pre-processed file that is
              generated by the -ED option (the file generated is named
              <original_filename>.i)
    1 catastrophic error detected in the compilation of "C:\Program Files\National Instruments\LabVIEW 2009\examples\lvemb\Blackfin\BF537\Flag with callback\BF537 FlagWithCallback\BF537\VDK_Application\FlagWithCal​lback.c".
    Compilation aborted.
    cc3089: fatal error: Compilation failed
    *** linker output ***
    Attachments:
    compiler output.pdf ‏49 KB

    Hi Hummer1,
    I will look into this error, but I have a couple questions.
    1.) Does this happen when you choose to "Build" as well?
    2.) Does this happen only with the FlagWithCallback example or with all examples?
    Aaron P
    National Instruments
    Applications Engineer
    http://www.ni.com/support

  • Sun Studio 11 f90 INTERNAL COMPILER ERROR: "FWOutput"

    Hello SUN-Users,
    I am new here, so I don't know I am right here!?
    I have a w2100z with two opteron proc. With Sun Studio 11 I am trying to compile the new MUMPS (Ver. 4.6) package, but I get still the error message:
    f90 -I/opt/mpich/include -Dpord -I. -I../include -c dmumps_ooc.F
    1:LEN$1:1INTERNAL COMPILER ERROR near line 2494 in dmumps_ooc.F (phase FWOutput):
    FWOutput: no visit function for class 'SubscriptTriplet'
    *** Error code 1
    make: Fatal error: Command failed for target `dmumps_ooc.o'
    I search with google for "FWOutput" and I found out, that a similar problem already was recognized in Sun Studio 9 and fixed with the patch 115985-04 (6351156 f90 compiler internal error "FWOutput: no vist function for class 'SubscriptTriplet').
    Here is some code near line 2494 from file dmumps_ooc.F:
          SUBROUTINE DMUMPS_614(id)
          I=id%MYID
          J=id%OOC_NB_FILES
          K=id%KEEP(35)
          L=MOD(id%KEEP(204),3)
    TMP_DIR=TRIM(id%DMUMPS_OOC_TMPDIR)
          TMP_FILE=TRIM(id%DMUMPS_OOC_PREFIX)
          DIM_DIR=LEN(TRIM(id%DMUMPS_OOC_TMPDIR))
          DIM_FILE=LEN(TRIM(id%DMUMPS_OOC_PREFIX))
        END SUBROUTINE DMUMPS_614The bolded line is the line 2494.
    I can not see anything worng in this routine, but maybe I am already too tired for today.... :-)
    Realy it is important to me to compile the MUMPS package,
    so I hope somebody can help me?
    ****With best regards****

    I think the TRIM should remove last character of the
    string. (?)TRIM removes the trailing blanks in a string. String assignment then adds trailing blanks, so there's no point writing something like
    s1 = TRIM(s2)
    Can you say me where can I make a bug report? What is
    to do?
    Maybe next time I can do also a bug report?That's a good question. If you have a support contract, then you should be able to submit a bug report through that. Until recently, I believe that would have been the only way to do it. However, we now have an online support service:
    http://developers.sun.com/developer_help/
    I imagine you could get a bug filed through that channel as well.

  • Cannot use oracle 10g ProC compiler

    Every time I run the ProC compiler of Oracle 10g I get the following error:
    PCC-F-NOERRFILE, unable to open error message file, facility PR2
    What does thidoPost=true

    You have your ORACLE_HOME environment variable incorrectly defined.
    C:\>set ORACLE_HOME=invalid
    C:\>proc
    PCC-F-NOERRFILE, unable to open error message file, facility PR2
    C:\>

  • Cannot compile with Oracle 10g ProC compiler.

    Every time I run the ProC compiler of Oracle 10g I get the following error:
    PCC-F-NOERRFILE, unable to open error message file, facility PR2
    What does this mean and how do I fix this.
    Thanks you
    Gilles Ferland

    Hi Gilles,
    try 'strace proc' and look for open statements.
    Try to check the filenames.
    HTH,
    Toni

  • Capture sql_test ||Trigger compilation errors.

    Thanks Liu Fan.
    I use the sql statement you gave me,it works well on sqlplus, but while put into trigger and have warning message:
    Warning: Trigger created with compilation errors.
    following is code snippet:
    create or replace trigger test_trg
    after UPDATE or DELETE or INSERT on emp
    declare
    this_sql_text varchar2(800);
    CURSOR c1 is
    select b.sql_text from v$session a, v$sqltext_with_newlines b where a.sql_address = b.address
    and a.audsid = (select userenv('SESSIONID') from dual)
    and a.sql_hash_value =b.hash_value
    order by b.piece;
    rec c1%ROWTYPE;
    begin
    open c1;
    loop
    fetch c1 into rec;
    exit when c1%NOTFOUND;
    this_sql_text := this_sql_text &#0124; &#0124; rec.sql_text;
    end loop;
    close c1;
    insert into change_audit (changeDate, mysql_text) values (sysdate,this_sql_text);
    end;
    Does Anyone have a clue why this is happening? Any help will be greatly appreciated.
    null

    I create the same trigger as yours to test. But it failed in compiling because the v$session view cannot be resolved. Then try to wrap the sql statement in dynamic sql. Then compilation is successful and cannot resolve the view during execution.
    My suggestion is that if you can do a test in your system schema to see if the view can be resolved. Following the the test script:
    (You can call this proc in your trigger.)
    PROCEDURE TEST_TRACESQL AS
    PRAGMA AUTONOMOUS_TRANSACTION;
    TYPE TestType IS REF CURSOR;
    test_cv TestType;
    sql_stmt VARCHAR2(200);
    sql_text VARCHAR2(2000);
    tmp_text VARCHAR2(200);
    BEGIN
    sql_stmt := 'select b.sql_text ' &#0124; &#0124;
    'from sys_session a, sys_sqltext b ' &#0124; &#0124;
    'where a.sql_address = b.address ' &#0124; &#0124;
    'and a.audsid = (select userenv(''SESSIONID'') from dual) ' &#0124; &#0124;
    'and a.sql_hash_value = b.hash_value';
    DBMS_OUTPUT.PUT_LINE(SQL_STMT);
    OPEN test_cv FOR sql_stmt;
    LOOP
    FETCH test_cv INTO tmp_text;
    EXIT WHEN test_cv%NOTFOUND;
    sql_text := sql_text &#0124; &#0124; tmp_text;
    END LOOP;
    CLOSE test_cv;
    INSERT INTO test_sql (sqltext) values(sql_text);
    COMMIT;
    END;
    null

  • Proc complie error!

    I used proc compile my code, the error message show:
    Syntax error at line 28, column 3, file /usr/include/sys/ipc.h:
    INTERNAL ERROR: Failed assertion [PGE Code=90105]
    I don't know how to fix it up, the precomp sample code can be compiled.
    I'm using RedHat 6.0 Linux 2.2.5-15smp
    The oracle version is 8.0.5
    Thank for your reply
    null

    I've downloaded oracle 8i 8.1.7 and i have linux mandrake 7.2 but the proc precompiler doesn't work.
    How do you have configured the pcscfg.cfg file? This file is empty and that doesn't work without it.
    Thank you for your help.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Michael Daskaloff ([email protected]):
    Hi,
    I think you'd better try with Oracle 8.1.6.1
    I've used it's Pro*C compiler and it works great. I've no problems with it.
    I'm using it on Mandrake 7.1<HR></BLOCKQUOTE>
    null

  • Compilation error while calling static method from another class

    Hi,
    I am new to Java Programming. I have written two class files Dummy1 and Dummy2.java in the same package Test.
    In Dummy1.java I have declared a static final variable and a static method as you can see it below.
    package Test;
    import java.io.*;
    public class Dummy1
    public static final int var1= 10;
    public static int varDisp(int var2)
    return(var1+var2);
    This is program is compiling fine.
    I have called the static method varDisp from the class Dummy2 and it is as follows
    package Test;
    import java.io.*;
    public class Dummy2
    public int var3=15;
    public int test=0;
    test+=Dummy1.varDisp(var3);
    and when i compile Dummy2.java, there is a compilation error <identifier > expected.
    Please help me in this program.

    public class Dummy2
    public int var3=15;
    public int test=0;
    test+=Dummy1.varDisp(var3);
    }test+=Dummy1.varDisplay(var3);
    must be in a method, it cannot just be out somewhere in the class!

  • Compile Error: "schema 'name' does not exist

    Im trying to build a program that quereys a table in a database but i keep getting this error. Am i missing a link between the files or am i missing a line of code in my program??

    Apologies. I receive a compiler error which reads as follows;
    java.lang.ClassNotFoundException: org.apache.derby.jdbc.EmbeddedDriver
    java.sql.SQLSyntaxErrorException: Schema 'DEMO' does not exist
    Heres the main body of code i am trying to execute.
    public class Main {
    * @param args the command line arguments
    public static void main(String[] args) {
    // TODO code application logic here
    try{
    Class.forName("org.apache.derby.jdbc.EmbeddedDriver");
    }catch(ClassNotFoundException e){
    System.out.println(e);
    try{
    Connection con = DriverManager.getConnection("jdbc:derby://localhost:1527/SimpleDBDemo", "demo", "demo");
    Statement stmt = con.createStatement();
    ResultSet rs = stmt.executeQuery("SELECT * FROM DEMO.Table1");
    while (rs.next()) {
    String s = rs.getString("Name");
    float n = rs.getFloat("Age");
    System.out.println(s + " " + n);
    }catch(SQLException e){
    System.err.println(e);
    I am using NetBeans IDE and have created a database under: Services->Databases-> Java DB->SimpleDBDemo.
    I have a database connection in which theres a simple table (called "TABLE1") created which contains the names and ages of two people.
    Hope this makes the problem a bit clearer.
    Any help would be greatly appreciated.

  • Experiencing "The type or namespace name 'DirectoryServices' does not exist in the namespace 'System' (are you missing an assembly reference?)" compilation error

    I am just starting to implement a new user login authentication process wherein after prompting user for username & password, I hope to authenticate them againts our company Active Directory user data. Since I am just starting, I only have very few things
    done at this point which is how I wanted to work on this so that my development environment is still at its simplest state.
    I am using the following for development:
    MS-Visual Studios Professional 2013 Version 12.0.30501.00 Update 2, and
    MS .NET Framework Version 4.5.50938.
    Here are my project solution's current items:
    Web.config:
    <?xml version="1.0"?>
    <!--
    For more information on how to configure your ASP.NET application, please visit
    http://go.microsoft.com/fwlink/?LinkId=169433
    -->
    <configuration>
    <system.web>
    <compilation debug="true" targetFramework="4.5" />
    <httpRuntime targetFramework="4.5" />
    </system.web>
    <system.webServer>
    <defaultDocument enabled="true">
    <files>
    <add value="Login.aspx" />
    </files>
    </defaultDocument>
    </system.webServer>
    </configuration>
    Web.Debug.config:
    <?xml version="1.0" encoding="utf-8"?>
    <!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
    <configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
    <!--
    In the example below, the "SetAttributes" transform will change the value of
    "connectionString" to use "ReleaseSQLServer" only when the "Match" locator
    finds an attribute "name" that has a value of "MyDB".
    <connectionStrings>
    <add name="MyDB"
    connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
    xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
    </connectionStrings>
    -->
    <system.web>
    <compilation xdt:Transform="RemoveAttributes(debug)" />
    <!--
    In the example below, the "Replace" transform will replace the entire
    <customErrors> section of your web.config file.
    Note that because there is only one customErrors section under the
    <system.web> node, there is no need to use the "xdt:Locator" attribute.
    <customErrors defaultRedirect="GenericError.htm"
    mode="RemoteOnly" xdt:Transform="Replace">
    <error statusCode="500" redirect="InternalError.htm"/>
    </customErrors>
    -->
    </system.web>
    </configuration>
    Web.Assemblies.config:
    <?xml version="1.0"?>
    <configuration>
    <system.web>
    <compilation debug="false" targetFramework="4.5" />
    <httpRuntime targetFramework="4.5" />
    <assemblies>
    <add assembly="System.DirectoryServices, Version=4.0.0.0, Culture=neutral PublicKeyToken=b03f5f7f11d50a3a"/>
    </assemblies>
    </system.web>
    </configuration>
    Login.aspx:
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>
    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
    <title></title>
    </head>
    <body>
    <form id="form1" runat="server">
    <div id="loginForm" style="height: 562px; width: 399px; margin-left: 0px" title="Login Form">
    &nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Label ID="loginPageLabel" runat="server" Font-Bold="True" Font-Names="Arial Black" Font-Size="Large" Text="Please Log In"></asp:Label>
    <br />
    <br />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Label ID="loginUsernameLabel" runat="server" Text="Username:"></asp:Label>
    &nbsp;&nbsp;&nbsp;
    <asp:TextBox ID="loginUserNameTextBox" runat="server" OnTextChanged="loginUserNameTextBox_TextChanged" Width="213px" Wrap="False" AutoPostBack="True" TabIndex="1"></asp:TextBox>
    <br />
    <br />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Label ID="loginPasswordLabel" runat="server" Text="Password:"></asp:Label>
    &nbsp;&nbsp;&nbsp;
    <asp:TextBox ID="loginPasswordTextBox" runat="server" OnTextChanged="loginPasswordTextBox_TextChanged" Width="212px" Wrap="False" AutoPostBack="True" TabIndex="2"></asp:TextBox>
    <br />
    <br />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:RadioButton ID="loginUAradioButton" runat="server" Font-Bold="True" OnCheckedChanged="loginUAradioButton_CheckedChanged" Text="TUPSS Associate" AutoPostBack="True" TabIndex="3" />
    &nbsp;&nbsp;
    <asp:RadioButton ID="loginAFradioButton" runat="server" Font-Bold="True" OnCheckedChanged="loginAFradioButton_CheckedChanged" Text="Area Franchisee" AutoPostBack="True" TabIndex="4" />
    <br />
    <br />
    <br />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Button ID="loginSubmitButton" runat="server" Font-Bold="True" OnClick="loginSubmitButton_Click" Text="Log In" TabIndex="5" />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Button ID="loginCancelButton" runat="server" Font-Bold="True" OnClick="loginCancelButton_Click" Text="Cancel" TabIndex="6" />
    <br />
    <br />
    &nbsp;&nbsp;
    <asp:Label ID="loginStatusInstructionLabel" runat="server" Text="Status/Instruction:"></asp:Label>
    <br />
    &nbsp;&nbsp;
    <asp:TextBox ID="loginStatusInstructionTextBox" runat="server" Height="230px" MaxLength="100" Rows="12" TextMode="MultiLine" Width="360px" EnableViewState="False" OnTextChanged="loginStatusInstructionTextBox_TextChanged" ReadOnly="True" TabIndex="-1"></asp:TextBox>
    </div>
    </form>
    </body>
    </html>
    Login.aspx.cs:
    using System;
    using System.DirectoryServices;
    public partial class Login : System.Web.UI.Page
    private string uName; // user-entered username
    private string pWord; // user-entered password
    private int loginLoadCycles; // just keeping track of how many times Page_Load is called
    protected void Page_Load(object sender, EventArgs e)
    if (this.loginUserNameTextBox.Text == String.Empty &&
    this.loginPasswordTextBox.Text == String.Empty &&
    this.loginUAradioButton.Checked == false &&
    this.loginAFradioButton.Checked == false)
    this.loginInit();
    this.setLoginVisibilityAndFocus();
    this.loginLoadCycles += 1;
    private void loginInit()
    this.uName = String.Empty;
    this.pWord = String.Empty;
    this.loginLoadCycles = 0;
    private void setLoginVisibilityAndFocus()
    // Decide on whether or not the Login submit & cancel buttons should be enabled or not
    if ( this.loginUserNameTextBox.Text == String.Empty ||
    (this.loginUAradioButton.Checked == false && this.loginAFradioButton.Checked == false) )
    this.loginSubmitButton.Enabled = false;
    this.loginCancelButton.Enabled = false;
    this.loginStatusInstructionTextBox.Text = "Please specify if you are a TUPSS Associate or an Area Franchisee by checking either the 'TUPSS Associate' or 'Area Franchisee' checkbox.";
    else
    this.loginSubmitButton.Enabled = true;
    this.loginCancelButton.Enabled = true;
    if (this.loginPasswordTextBox.Text == String.Empty)
    this.loginStatusInstructionTextBox.Text = "Now that you have entered your username & type, please enter your password.";
    else
    this.loginStatusInstructionTextBox.Text = "When you are ready, please select either the Log In button to login, or the Cancel button to abort.";
    if (this.loginUAradioButton.Checked == false && this.loginAFradioButton.Checked == false)
    this.SetFocus(this.loginUAradioButton);
    else if (this.loginUserNameTextBox.Text == String.Empty)
    this.SetFocus(this.loginUserNameTextBox);
    else if (this.loginPasswordTextBox.Text == String.Empty)
    this.SetFocus(this.loginPasswordTextBox);
    else
    this.SetFocus(this.loginSubmitButton);
    protected void loginUserNameTextBox_TextChanged(object sender, EventArgs e)
    protected void loginPasswordTextBox_TextChanged(object sender, EventArgs e)
    // For some reason, after specifying that the password entry box's textmode to 'Password' setting,
    // the UI's password textbox is emptied
    this.loginStatusInstructionTextBox.Text = "NOTICE:\nThis application is still under development.\n\n" +
    "This is why the password you entered is visible. Once this portion of the application is ready, it will be masked.\n\n" +
    "Also, still need to figure out why when changing this to Password entry mode to mask its entered data, password is getting reset.";
    protected void loginSubmitButton_Click(object sender, EventArgs e)
    this.loginLoadCycles = 0;
    this.uName = this.loginUserNameTextBox.Text;
    this.pWord = this.loginPasswordTextBox.Text;
    if (this.loginUAradioButton.Checked == true && this.loginAFradioButton.Checked == false)
    this.loginLADPauthenticate('U'); // authenticate UPS Associates against UPS Corp's Active Directory
    else if (this.loginUAradioButton.Checked == false && this.loginAFradioButton.Checked == true)
    this.loginLADPauthenticate('A'); // authenticate Area Franchisees against UPS Store's iNet Active Directory
    else
    // set colors to show that this is an error instead of a status message or instruction
    this.loginStatusInstructionTextBox.Text = "ERROR: Cannot log in without specifying if you are an UPS Associate or an Area Franchisee!";
    protected void loginCancelButton_Click(object sender, EventArgs e)
    this.loginStatusInstructionTextBox.Text = "You have selected to cancel from logging in...";
    // Still need to plan what to do when user cancels out of logging in. For now, just initialize class attributes
    this.loginInit();
    protected void loginUAradioButton_CheckedChanged(object sender, EventArgs e)
    String msg = String.Empty;
    if (this.loginUAradioButton.Checked == true)
    this.loginAFradioButton.Checked = false;
    msg = "Thanks for specifying that you are a TUPSS Associate. ";
    if (this.loginUserNameTextBox.Text == String.Empty)
    msg += "Now please specify your username.";
    else if (this.loginPasswordTextBox.Text == String.Empty)
    msg += "Now please enter your password.";
    this.loginStatusInstructionTextBox.Text = msg;
    protected void loginAFradioButton_CheckedChanged(object sender, EventArgs e)
    String msg = String.Empty;
    if (this.loginAFradioButton.Checked == true)
    this.loginUAradioButton.Checked = false;
    msg = "Thanks for specifying that you are an Area Franchisee. ";
    if (this.loginUserNameTextBox.Text == String.Empty)
    msg += "Now please specify your username.";
    else if (this.loginPasswordTextBox.Text == String.Empty)
    msg += "Now please enter your password.";
    this.loginStatusInstructionTextBox.Text = msg;
    private void loginLADPauthenticate(char whichActiveDirectory)
    String msg = "Authenticating user '" + this.uName + "' with password '" + this.pWord + "' against ";
    if (whichActiveDirectory == 'U')
    msg += "UPS Corp's Active Directory...";
    else if (whichActiveDirectory == 'A')
    msg += "The UPS Store's Franchisee Active Directory...";
    msg += "\n\nNOTICE:\nThis is still under development.\n\nAt this point, this application is supposed to do something else now but is not yet ready.";
    this.loginStatusInstructionTextBox.Text = msg;
    this.loginStatusInstructionTextBox.AutoPostBack = true;
    // Authenticate using LDAP
    protected void loginStatusInstructionTextBox_TextChanged(object sender, EventArgs e)
    I confirmed that I have System.DirectoryServices.dll located in
    C:\Windows\Microsoft.NET\assembly\GAC_MSIL\v4.0_4.0.0.0__b03f5f7f11d50a3a\ folder and that I as well as System have read as well as read&execute privileges
    not only to all folders in its path but also to the DLL file itself.
    I would appreciate any help in trying to resolve this compilation error so that I can proceed with implementing LDAP features for this endeavor.
    Thanks so much,
    hguico @ The UPS Store

    Hi,
    For web application problem, please post your thread in
    ASP.NET forum.
    Best Wishes!
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to &quot;Mark as Answer&quot; the responses that resolved your issue. It is a common way to recognize those who have helped you, and
    makes it easier for other visitors to find the resolution later.

Maybe you are looking for