Proc compilation in production

HI Forum,
I have a stored proc which writes logs to server using utl/io utility . I need to compile this proc . But this proc is being used almost all the time and getting library cache pin wait event and hanging when i try to compile this proc , moreover it is also putting other jobs which are using this proc and takes minimal time in wait .
Is there any way I can compile this proc .
eg:
1) Job1 running (expected completion 2 days)
2)started comipling procedure -- going to library cache wait
3)job2 started (which usually takes 1 min ) -- going to library cache wait
So it is mostly effecting the jobs which takes minimal time .
select * from v$version
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
Thanks ,
Mahesh

Hi,
On Oracle 11.2 you can use edition-based redefinition.
Here is an example:
Connect as user test (session 1):
1  create or replace procedure test( x out number ) is
  2  begin
  3    dbms_lock.sleep( 30 );
  4    x := 1; --oryginal version
  5* end;
SQL> /
Procedure created.While test is still connected, connect as sys in another session and do:
SQL> connect sys as sysdba
Enter password:
Connected.
SQL> alter user test enable editions;
User altered.
SQL> create edition edition_one;
Edition created.
SQL> grant use on edition edition_one to public;
Grant succeeded.
SQL> alter database default edition = edition_one;
Database altered.Now connect as user test in another session (session 1 is still active),
and prepare a new version of the procedure - but don't compile it yet
SQL> create or replace procedure test( y out number ) is
  2  begin
  3    dbms_lock.sleep( 20 );
  4    y := 33;
  5  end;
  6  /In session 1 execute the procedure:
SQL> execute test( :x );and while it is running (30 seconds), in session 2 hit enter to compile a new procedure:
SQL> create or replace procedure test( y out number ) is
  2  begin
  3    dbms_lock.sleep( 20 );
  4    y := 33;
  5  end;
  6  /
Procedure created.
SQL> var yy number
SQL> call test( :yy )
  2  ;
Call completed.
SQL> print :yy
     YY
     33Session 1 is still using the old version of the procedure,
but after disconnecting and connecting again it will see the new version
SQL> execute test( :x );
PL/SQL procedure successfully completed.
SQL> print :x
      X
      1
SQL> connect test
Enter password:
Connected.
SQL> var x number
SQL> call test( :x )
  2  ;
Call completed.
SQL> print :x
      X
     33

Similar Messages

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

  • ProC Compiler & SQL Developer

    Hi,
    I am new to proc and oracle. I have installed 10g Express edition, but it does not have proc compiler.
    Currently I am downloading SQL Developer, does it come with a proc compiler?
    Is there anywhere I can get a proc compiler?
    Really appreciate the help.
    OS : Ubuntu 9.10
    Thanks and Regards,
    Ahamed.

    thanks for the reply...
    So you mean SQL developer indeed has a proc compiler is it?...
    Thanks for your time.
    Regards,
    Ahamed.

  • The Latest Version for ProC Compiler

    We are going to move our applications from Oracle Forms 6.0 to Oracle 9i Forms. Currently we are using user exits for the external routines ( C/C++ ). What is the latest version of ProC compiler that is compatible with Oracle 9i Forms?
    Thanks!

    We are also using user exits for the external routines(C/C++). Can someone please answer this question: What is the latest version of ProC compiler that is compatible with Oracle 9i Forms?
    Thank you!

  • 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

  • Proc compiler and makefiles

    I have a makefile which calls the proc command. The proc fails but the reason is not printed to the screen. It does not create the cooresponding .C file.
    If i run the command separately it works fine.
    Does anyone know any known issues with the proc and makefilse?

    thanks for the reply...
    So you mean SQL developer indeed has a proc compiler is it?...
    Thanks for your time.
    Regards,
    Ahamed.

  • ProC compilation in Oracle 8i

    I have a compiler script that I used in Oracle 8.0.5. After changing environment configuration file (from env_precomp.mk to env_plsql.mk) and editing my makefile, I used the same script to compile the same programs in the Oracle 8i environment. But I get only this result:
    /u1/app/oracle/product/8.1.6/bin/proc [the include directories] [the PROCFLAGS] [input_file] [output_file]
    Pro*C/C++: Release 8.1.6.0.0 - Production ....
    (c) Copyright 1999 Oracle ....
    System default option values taken from:
    /u1/app/oracle/product/8.1.6/precomp/admin/pcscfg.cfg
    make: 1254-059 The signal code from the last command is 11.
    Stop.
    Could you please help me

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by rex_ph:
    I have a compiler script that I used in Oracle 8.0.5. After changing environment configuration file (from env_precomp.mk to env_plsql.mk) and editing my makefile, I used the same script to compile the same programs in the Oracle 8i environment. But I get only this result:
    /u1/app/oracle/product/8.1.6/bin/proc [the include directories] [the PROCFLAGS] [input_file] [output_file]
    Pro*C/C++: Release 8.1.6.0.0 - Production ....
    (c) Copyright 1999 Oracle ....
    System default option values taken from:
    /u1/app/oracle/product/8.1.6/precomp/admin/pcscfg.cfg
    make: 1254-059 The signal code from the last command is 11.
    Stop.
    Could you please help me<HR></BLOCKQUOTE>
    Just a guess... but
    It looks like your compilier script is not pointing at the right directory for those .C include files.
    Could you write how it turns out?
    null

  • Proc compilation issue

    All,
    We are facing issue during compilation of proc code in 11g.
    Basically the program we are trying to compile makes connection to two different database instances.
    First it connects to database DB1 and there is no issues with the compilation upto this point.
    Then it makes connection to second database DB2 where we are facing issue.
    sh makefile.ksh bacs123_batch_pap1_target_stg apl_xxxxx9/xxxx
    Pro*C/C++: Release 11.2.0.2.0 - Production on Mon Feb 6 14:25:11 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    System default option values taken from: /db/app/oracle/112/precomp/admin/pcscfg.cfg
    Error at line 2395, column 3 in file bacs123_batch_pap1_target_stg.pc
    INTO :g_unix_date FROM DUAL;
    ..1
    PLS-S-00201, identifier 'APL_SECURITY.USER_KEY_REFERENCE' must be declared
    Error at line 2395, column 3 in file bacs123_batch_pap1_target_stg.pc
    INTO :g_unix_date FROM DUAL;
    ..1
    PLS-S-00000, SQL Statement ignored
    Semantic error at line 2395, column 3, file bacs123_batch_pap1_target_stg.pc:
    INTO :g_unix_date FROM DUAL;
    ..1
    PCC-S-02346, PL/SQL found semantic errors
    xlc_r4: 1501-228 (W) input file bacs123_batch_pap1_target_stg.c not found
    /usr/vac/bin/xlc: 1501-228 (W) input file bacs123_batch_pap1_target_stg.o not found
    /* connect to the nondefault database */
    EXEC SQL DECLARE QASTG DATABASE;
    EXEC SQL CONNECT :g_userid2 IDENTIFIED BY :g_password2 AT QASTG;
    printf("\nConnected to ORACLE as user: %s\n", g_userid2);
    EXEC SQL WHENEVER NOT FOUND continue;
    EXEC SQL
    SELECT to_char(to_date(:g_unix_tstamp,'YYMMDDHH24MISS') ,'YYMMDDHH24MISS')
    INTO :g_unix_date FROM DUAL;
    EXEC SQL
    INSERT INTO apl_xxxxxx.user_key_reference
    (user_target_id_cd,
    web_session_tstamp,
    company_cd,
    oracle_create_tstamp)
    contents of makefile:
    $ORACLE_HOME/bin/oraxlc -qxflag=extend_eval -O3 -q64 -DSS_64BIT_SERVER -qwarn64 -qinfo=uni -DAIXRIOS -qflag=s:s -o $1 $1.o -L$ORACLE_HOME/lib -lclntst11 `cat $ORACLE_HOME/lib/ldflags` -lld -lm `cat $ORACLE_HOME/lib/sysliblist` -lm -lc_r -lpthreads
    Please let me know if there is an alternative solution to this or if I'm making any mistake in the program

    proc command line is connecting to db1 with the specified username to pre-compile.
    If this db does not contain the schema/objects you are referring to as part of your connection to db2 you will run into this issue.
    Connecting to db2 and executing those sql statements is a runtime behavior of your application and hence the errors.
    To fix this you have few options
    1) If possible re-create the db2 schema in db1
    2) Seperate the db1 and db2 functionality into two pc files to pre-compile.
    You can call then call the db2 related function from the first pc file.

  • 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

  • ProC compile issues

    I tried to compile some .pc programs on linux, but it said
    Error at line 33, column 11 in file /usr/include/stdio.h
    # include <stddef.h>
    ..........1
    PCC-S-02015, unable to open include file
    and the files do exist in the system. and i got like 50 other errors similar to this one.
    any help is appreciated.
    null

    Roger, you need to edit the proc settings so that it looks for <filex> in a known directory. Otherwise you have to use an absolute path ("/adirectory/includes/stdef.h") -- it will not by default know where the default dir for includes are. The GCC documentation should help you find the directory where those files are stored. Hope this helps,
    slag

  • ProC compiler libraries

    Does anyone know what the ProC library's dependencies are? Or
    know where they are documented? I may be wrong, but it appears
    that if you use one library like libcore4.a then it needs some
    other library during linking. We were using our own makefiles for
    Oracle7.x, but the libraries are different for Oracle8. Thanks.
    null

    Erik Nielsen (guest) wrote:
    : I've had to use:
    : -lsql -lcore4 -lnlsrtl3 -lgeneric -lcommon -lnetwork -lncr \
    : -lcore4 -lnlsrtl3 -lm -lclntsh -lndwzp -lwrcpi
    : To compile with proc. Hope this helps... I think some of these
    : libraries are oas libs, and I don't know why it should be that
    : way, but this worked. It's been pretty much trial and error
    for
    : me.
    : Erik
    : Harvey Berenberg (guest) wrote:
    : : Does anyone know what the ProC library's dependencies are?
    Or
    : : know where they are documented? I may be wrong, but it
    appears
    : : that if you use one library like libcore4.a then it needs
    some
    : : other library during linking. We were using our own makefiles
    : for
    : : Oracle7.x, but the libraries are different for Oracle8.
    Thanks.
    Your best bet may be to look at the demo_proc.mk file found in
    ${ORACLE_HOME}/precomp/demo/proc. I tend to use this makefile
    for all of my project to save time, it works, why sould I
    rewrite it?
    Alan.
    null

  • Proc*C compilation: conflict between Oracle and TT environments

    We are evaluating the option to add TimesTen to an existing application which is currently using oracle, looking to cache a few tables in TimesTen (AWT Global Cache group) for the purpose of increased performance. The vast majority of our source code related to oracle queries is in embedded SQL in C and C++. I am now looking into what this means for our system builds. We have a few conditions as follows:
    + The use of TimesTen needs to be optional. (e.g. we cannot force customers who are using our product to deploy TimesTen). 
    + We need to use single source (using conditional compilation etc. as needed), to support an Oracle-only as well as Oracle+Times Ten environments.
    I am changing our system-build to incorporate Times-ten PROC*SQL processing for the source code related to the cached tables. I discovered that both the Oracle and TimesTen Pro*C compiler has the same name (proc), for this reason I have provided a directory location for each compiler in the make-file (since I can no longer rely on just $PATH variable to find the right proc utility)
    ## Specify PROC either for Oracle or for TimesTen
    PROC_TT     = $(TT_PROC_BIN)/proc
    PROC_ORA  = $(ORACLE_PROC_BIN)/proc
    My planned strategy for incorporating the build of embedded SQL sources related to tables cached can be summarized as follows:
    1. Make a temporary copy of the source files – adding suffix _ora or _tt to file name to indicate the target database. Also add “tt” to extension of TimesTen files.
    example (file file1.ec is a file with embedded sql in C)
    cp file1.ec file1_ora.ec     
    cp file1.ec file1_tt.ectt
    2. Rules for compiling embedded SQL source into objects for Oracle exists already. (using proc compiler for Oracle)
    I am adding additional rules for compiling SQL source into object files for TT ( making use of ectt extension, and using the proc compiler for TT)
    3. Combine objects into libraries,
    Create library libxx_ora.so based on  xx_ora.o objects 
    Create library libxx_tt.so based of  xx_tt.o objects
    4. Linking the application: We need 2 copies of the application (because use of TimesTen is optional for our customers, the build needs to produce binaries for both Oracle-only and Oracle+TimesTen):
    For oracle-only support: link with libxx_ora.so libraries (+ other libraries)
    For oracle+timesTen support: link with libxx_tt.so libraries (+ other libraries)
    We have scripts and makefiles that manage all of our system builds.
    I have extended the initial environment setup to now also include environment settings for TimesTen.
    I find that there seems to be a conflict when running the Proc*C TimesTen compiler, while also having the environment set for Oracle (core dump during proc-processing). Is this a known limitation?
    Now I am questioning whether I can do all of the system-build for oracle and TT in one pass (e.g. setup environment, followed by building of all objects)
    I may have to divide the build tasks up into two parts, separatig Oracle and TT object creation ?
    1) establish environment for TT only – compile all the TT-related source files
    2) as a second step change environment to Oracle only then compile all Oracle-related source files.
    Is anyone else facing the same conflict of oracle/TimesTen during compilation of Embedded SQL sources?
    M

    This is really the same situation as if you were trying to build different binaries using different versions of Pro C (which is in fact what you are trying to do). The Pro C compilation system is quite complex and it uses a lot of environment variables and so on. You really need to isolate both build environments so that each environment only has the necessary environment setup and there is no cross-contamination between them.
    Chris

  • Compile proc

    hi everybody ;
    ı have 9.2.0.4 run on sles9 . i have proc file which ı have to compile to work my post devices to connect to my db.
    when ı try to run this command ;
    make -f demo_proc.mk daemon
    ı got this error message ;
    proc sqlcheck=semantics userid=system/summer iname=daemon
    PCC-F-NOERRFILE, unable to open error message file, facility PR2
    make[1]: *** [daemon.o] Error 1
    make[1]: Leaving directory `/opt/oracle/product/9ir2/daemon.prg'
    make: *** [daemon] Error 2
    do ı have to install third party proc compiler on my linux or something like that ?
    thanks....

    Gundem wrote:
    no it is not plsql stored procedure. as ı said pro c file. they are c codes ( pro c )Unfortunately, you did <u>not</u> say "pro c file", you said "proc", and that absence of a space makes all the difference in the world, both in writing code for the computer and writing for humans. Everybody sees "proc" as short for "procedure", as in "stored procedure". I'd be astounded if anyone saw "proc" and thought "Pro*C".
    Not to trash you, but just to point out that the same precision we take for granted as necessary when writing code is also necessary in communication between humans.
    :-)

  • System.AccessViolationException Attempted to read or write protected memory. This is often an indication that other memory is corrupt. when executing compiled query

    Hi,
    In our company we have a very large application that has thousands of compiled queries, and we've been getting randomly AccessViolation exceptions randomly that crashes our process.
    This error happens randomly in several locations, always with the same top stack trace (data and queries are always different). do you know what could be causing this issue? or what we can do to trace the problem?,
    I have collected memory dumps of the error to get the stack trace and next are the stack lines that always show at the top of it:
    System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(System.Object, System.Object[], System.Object[])
    System.Delegate.DynamicInvokeImpl(System.Object[])
    System.Data.Objects.ELinq.QueryParameterExpression.EvaluateParameter(System.Object[])
    System.Data.Objects.ELinq.CompiledELinqQueryState.GetExecutionPlan(System.Nullable`1<System.Data.Objects.MergeOption>)
    System.Data.Objects.ObjectQuery`1[[System.__Canon, mscorlib]].GetResults(System.Nullable`1<System.Data.Objects.MergeOption>)
    System.Data.Objects.ObjectQuery`1[[System.__Canon, mscorlib]].System.Collections.Generic.IEnumerable<T>.GetEnumerator()
    System.Linq.Enumerable.FirstOrDefault[[System.__Canon, mscorlib]](System.Collections.Generic.IEnumerable`1<System.__Canon>)
    System.Data.Objects.CompiledQuery.ExecuteQuery[[System.__Canon, mscorlib]](System.Data.Objects.ObjectContext, System.Object[])
    System.Data.Objects.CompiledQuery.Invoke[[System.__Canon, mscorlib],[System.Guid, mscorlib],[System.__Canon, mscorlib]](System.__Canon, System.Guid)
    The following is the windows version data:
    0:222> vertarget
    Windows 8 Version 9600 MP (64 procs) Free x64
    Product: Server, suite: TerminalServer SingleUserTS
    kernel32.dll version: 6.3.9600.16656 (winblue_gdr_pres14.140305-1700)
    Machine Name:
    Debug session time: Wed Feb 11 14:24:12.000 2015 (UTC - 6:00)
    System Uptime: 79 days 11:26:23.395
    Process Uptime: 2 days 3:21:31.000
      Kernel time: 0 days 0:46:05.000
      User time: 0 days 17:09:10.000
    .Net version: 4.0.30319.34011
    Thanks in advance,
    Israel

    Hi,
    try to set the
    ProxyCreationEnabled property of dbContext is set to true.

Maybe you are looking for