What is Native Compilation

Hi Gurus,
What is Native Compilation?
Naresh

A very good document on PL/SQL native compilation is on Note 151224.1 .

Similar Messages

  • Please explian what is native compilation and how to use it

    hi all.
    please explian what is native compilation and how to use it
    regards

    It's explained well in the PL/SQL User's Guide and Reference
    Compiling PL/SQL Code for Native Execution
    http://download-uk.oracle.com/docs/cd/B10501_01/appdev.920/a96624/12_tune.htm#48419

  • Native compilation and the ROUND function

    Native Compilation Advisor lists the built-in ROUND function as not supported for natively compiled stored procedures.  Is there a suggested workaround?

    oracle by oracle  wrote:
    I am trying to test performance of one package and there is only one procedure wich uses just instr and substr internal functions ( I am working with varchar2).
    I am having the folowing results: native compilation is twice worst than inetrpreted. What may be the reason?
    P.S. I did ALTER SYSTEM FLUSH SHARED_POOL;Yuo should take this into account that the Native compilation is not supposed to make the code always go faster. If I remember correctly, the maximum benefit that Oracle benchmarked for it was about 30% only and taht too, if the code has lots of computational code rather than queries. If your package contains lots of this kind of code. than may be the Native compilation may be faster than the other but it doesn't come with any guarantee like this.
    Have a read about it from here,
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/tuning.htm#sthref2278
    HTH
    Aman....

  • Will native compiling improve performance?

    Hi,
    I've got familiar with Excelsior Native Compiler since a week ago. They claim on their website that compiling Java classes to native code (machine code) will improve the performance of the application. However, JAlbum (http://jalbum.net) says that its JAR files of the application run "basically at the same speed" compared to the native compiled one for windows.
    Will really compiling Java classes to native code improve performance? I'm not talking about the startup speed, I mean the whole application performance.
    Thanks...

    depends on what the app is doing
    many things in java run as fast as native code, especially if you're using a later version of java
    i guess there's one way to find out :-)

  • Native Compilation of Apex code

    Has anyone tried natively compiling all of the Apex packages, procedures and functions?
    For example, to natively compile WWV_FLOW (with DBA privileges):
    <ul>
    <li>ALTER SESSION SET PLSQL_CODE_TYPE='NATIVE' ;</li>
    <li>ALTER PACKAGE FLOWS_030100.WWW_FLOW COMPILE ;</li>
    </ul>
    We've recently done just this on a test installation (Apex 3.1, Oracle 10g) and have found that Apex runs significantly faster. Before we consider implementing in production, I was wondering if anyone has also tried this and whether they came across any problems?
    Kevan
    Edited by: KGelling2 on Oct 30, 2008 2:24 PM

    Hello,
    I've only ever come across one other person who has mentioned doing that, he mentioned that he got performance improvements too although didn't qualify them. What sort of improvements are you seeing?
    John.
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone!

  • PLS-00923: native compilation failed: Visual Studio not

    hi,
    I'm using oracle 10g version 10.2.0.1 running on windows xp pro service pack 3. I'm trying to switch from interpreted to native compilation, and here are the parameters I've set:
    plsql_native_library_dir = D:\oracle\product\10.2.0\db_1\plsql
    plsql_code_type = NATIVE
    plsql_native_library_subdir_count = 0
    plsql_compiler_flags = NATIVE, NON_DEBUG
    Now I'm trying to run the following statements:
    ALTER SESSION SET plsql_code_type = 'NATIVE';
    CREATE OR REPLACE PROCEDURE test_speed AS
    v_number NUMBER;
    BEGIN
    FOR i IN 1 .. 1000000 LOOP
    v_number := i / 1000;
    END LOOP;
    END;
    SET TIMING ON
    SQL> EXEC test_speed;
    BEGIN test_speed; END;
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00905: object SYS.TEST_SPEED is invalid
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    Elapsed: 00:00:00.03
    SQL> show err
    Errors for PROCEDURE TEST_SPEED:
    LINE/COL ERROR
    0/0 PLS-00923: native compilation failed: Visual Studio not
    found::Could not open registry key
    HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\VISUALSTUDIO\7.1\SETUP:No
    error
    I have search for the error in google but I can't find anything useful. What do I need to set-up/change to achieve my goals.
    Thanks and God bless,
    Chris

    hi,
    I'm using oracle 10g version 10.2.0.1 running on windows xp pro service pack 3. I'm trying to switch from interpreted to native compilation, and here are the parameters I've set:
    plsql_native_library_dir = D:\oracle\product\10.2.0\db_1\plsql
    plsql_code_type = NATIVE
    plsql_native_library_subdir_count = 0
    plsql_compiler_flags = NATIVE, NON_DEBUG
    Now I'm trying to run the following statements:
    ALTER SESSION SET plsql_code_type = 'NATIVE';
    CREATE OR REPLACE PROCEDURE test_speed AS
    v_number NUMBER;
    BEGIN
    FOR i IN 1 .. 1000000 LOOP
    v_number := i / 1000;
    END LOOP;
    END;
    SET TIMING ON
    SQL> EXEC test_speed;
    BEGIN test_speed; END;
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00905: object SYS.TEST_SPEED is invalid
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    Elapsed: 00:00:00.03
    SQL> show err
    Errors for PROCEDURE TEST_SPEED:
    LINE/COL ERROR
    0/0 PLS-00923: native compilation failed: Visual Studio not
    found::Could not open registry key
    HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\VISUALSTUDIO\7.1\SETUP:No
    error
    I have search for the error in google but I can't find anything useful. What do I need to set-up/change to achieve my goals.
    Thanks and God bless,
    Chris

  • Native Compilation with MinGW on 10GR2

    I have downloaded and installed 10gR2 on Windows 2000. It looks like the MinGW compiler is now supported on Windows. After looking in the spnc_commands file, I see the following near the end of the file:
    #GCC (MINGW) is now supported for plsql native comp on windows.
    #Download MinGW-3.1.0-1.exe from http://www.mingw.org.
    #The following two commands assume that GCC is installed at the default
    #location which is c:/MinGW. Change the paths to gcc and ld appropriately
    #if the installation is done in a different directory.
    #Finally, to use GCC for native comp, comment the above command line for cl.exe
    #and uncomment the following two comand lines.
    c:/MinGW/bin/gcc -c %(src) -O1 -I$(ORACLE_HOME)/plsql/public -I$(ORACLE_HOME)/plsql/include -o %(obj)
    c:/MinGW/bin/ld -shared -e 0x0 %(obj) $(ORACLE_HOME)/plsql/lib/libpncrt.a $(ORACLE_HOME)/lib/orapls10.lib -o %(dll)
    The last line references ORACLE_HOME/plsql/lib/libpncrt.a
    However, this directory or file does not exist anywhere on my Oracle installation or my MinGW directory.
    Does anyone know what this file is?
    Brett

    Thanks Brett,
    In reading Jens' paper, it almost looks like you can generate your own library file, but I think my unfamiliarity with the native compile option may be confusing me. I can't tell if the libraries being generated are the actual PL/SQL routines getting stored on the operating system or if I can generate "libpncrt.a" from some other file that is in unix format using a home brew "makefile" utility (not supplied in the paper).
    Since 10g has depricated the parameters PLSQL_NATIVE_MAKE_FILE_NAME and PLSQL_NATIVE_MAKE_UTILITY then the instructions in Jens' paper seem to be incompatable.
    Can you explain what "port-specific" means?
    Thanks Again,
    Bill

  • Native Compiling error

    We are getting the following error when trying to compile a procedure as NATIVE:
    PLS-00923: native compilation failed: make:spdtexmk:?
    We set the following parameters:
    plsql_native_make_utility     /usr/bin/make
    plsql_native_make_file_name /local/bin/oracle/9.2/plsql/spnc_makefile.mk
    plsql_native_library_dir /local/bin/oracle/9.2/plsql/lib/
    and plsql_compiler_flags=native
    The make utility can be envoked and all utilities used in spnc_makefile.mk (ld, nm, cc) can be envoked as well.
    All directories exist.
    We are running 9.2.0.5 64bit on AIX5.2
    Anyone?

    The basic problem is that Borland C and VC++ define some things differently, and the header files are geared to VC++.
    The way I got around this is to make some adjustments to my C code to impose the Borland definitions in place of the VC++ definitions. I do this creating a .h file that
    o Includes my definitions.
    o Includes jni.h
    I then #include my .h file instead of directly including jni.h. That way, I don't need to change jni.h or jni.md.h
    Here is roughly what it looks like. (Can't give you the exact code - the files are proprietary and include a lot not-relevant stuff.)
    If you run into troubles with some files compiling, and some not, then I suggest you move some of the macro redefinitions to a .cpp file, and just # include that into your own .cpp file.
    (file shell.h)
    #ifndef ShellH
    #define ShellH
    // This file is used to make Borland-specific settings.
    // Normal kinds of stuff.
    #define WIN32
    #define HAS_BOOL
    // Suppress dll code.
    #ifdef jdecl
    #undef jdecl
    #endif
    #define jdecl
    // Borland has seen fit to specially-define toString();
    #ifdef toString
    #undef toString
    #endif
    #define toString jToString
    // Define functions and constants per Borland (vs Microsoft).
    #define _chdir chdir
    #define _cwd cwd
    //#define _getcwd getcwd
    #define _getpid getpid
    //#define _stat stat
    #define SHDENYWR SH_DENYWR
    #include "jni.h"
    #endif

  • PLSQL Native Compilation - PGA dependency

    Hi Gurus,
    Need your valuable inputs on Native Compilation enabled instance. Documentation says that natively compiled plsql code is loaded to PGA instead of SGA. Can somebody throw some light in direction of new additional size requirements for pga_aggregate_target. Will the old PGT value will do just fine.
    the main reason for asking above queustion is
    We are seeing following issue after enabling native compilation
    Cause: FDPSTP failed due to ORA-04030: out of process memory when trying to allocate 16408 bytes (koh-kghu sessi,koc koctx)
    ORA-06512: at "APPS.MSC_CL_COLLECTION", line 3504
    this doesnt occur, if we disable native compilation
    what does koh-kghu sessi,koc koctx actually mean ?
    vasu

    http://technet.oracle.com/docs/products/oracle9i/doc_library/901_doc/appdev.901/a89856/12_tune.htm#48419

  • PL/SQL Native Compilation - not working!

    I'm at my wits end here.
    Oracle 10.2.0.3 under Windows Server 2003 (i know, i know...) and a whole lot of procedural PL/SQL that I think could benefit from native compilation. I've done this on Linux/unix environments a few times but never imagined it would be quite so painful under Windows.
    Ended up using Visual C++ 2003 (7.1 compiler) which compiled everything. MinGW wouldn't compile everything, lots of undefined references to _setjmp and others, but that's a different subject.
    Anyway, after two days of dealing with issues, I finally get things to compile. The .dll is created. The init parameters say we're native. The test procedure is recompiled as native, and verified in dba_plsql_object_settings. As far as I am aware, native compilation is present and working. But when I run the thing.... performance is the same. Recompile as interpreted... same. Recompile as native again... same. This is demo code here, simple loop, the kind of thing that is 10x faster on my Linux environment.
    Basically the behavior is as though native compilation just isn't working... the DLL isn't working. Funny thing is that it -was- working earlier with the same code... right up until I bounced the box. Now I am dead in the water with no log file, no trace, nothing... just a non-functional native compilation feature.
    Any ideas? Anyone else struggle with this?
    Bob

    SELECT name, value
    FROM gv$parameter
    WHERE name LIKE '%code%';
    Did you do this before you bounced the database?
    ALTER SYSTEM SET plsql_compiler_flags = 'NATIVE';
    or
    ALTER SESSION SET plsql_compiler_flags = 'NATIVE';when perhaps you should have done this:
    ALTER SYSTEM SET plsql_code_type = 'NATIVE' SCOPE=BOTH;

  • What is "native" stands for in "DBMS_SQL.native"

    Dear All,
    What is native stands for in DBMS_SQL.native
    Thanks & Regards
    Phani

    pl/sql supplied packages manual
    dbms_Sql chapter
    "Constants
    v6 constant INTEGER := 0;
    native constant INTEGER := 1;
    v7 constant INTEGER := 2;
    further down, same chapter
    "language_flag
    Determines how Oracle handles the SQL statement. The following options are recognized:
    V6 (or 0) specifies version 6 behavior.
    NATIVE (or 1) specifies normal behavior for the database to which the program is connected.
    V7 (or 2) specifies Oracle database version 7 behavior.
    "

  • Native Compilation on EBS Database

    'm upgrading an 11i database from 9i to 10g. It is mentioned that as an option I might turn on Native Compilation. Native Compilation is helpful mostly with compute-intensive PL/SQLs, does anyone have any insights regarding the effect of Native Compilation on an EBS database?

    Hi,
    Take the question marks off the end:
    PL/SQL Native Compilation
    PL/SQL Native Compilation
    PL/SQL Native Compilation Conversion Timings
    Re: PL/SQL Native Compilation Conversion Timings
    Regards,
    Gareth
    Blog: http://garethroberts.blogspot.com/

  • Native compilation of Java on Oracle9i

    We are trying to use the Java native compilation tool, NCOMP, that comes with Oracle9i to improve the execution speed of our Java classes. However, for this to work you have to install a C compiler, only some of which are approved by Oracle for this purpose on a given platform. The question is which ones are approved for use with NT/2000 ! The Oracle documentation is not at all clear. The README file associated with this says that approved compilers are listed in Settings_windows_nt.properties. However this just lists settings and does not explicitly state which C compiler it's trying to use ! The settings appear to indicate that it is MS Visual C++, BUT if so which version ? Professional, Enterprise, 5.0, 6.0 ??? Is this the only approved compiler ??? No where on the entire web seems to list this info. ! Any suggestions ?

    Hi,
    A month ago I got a note from Metalink claiming that ONLY Microsoft Visual C/C++ is certified againts ORacle 9i for WindowsNT/2000.
    FYI I managed to get it working. However the NCOMP tool and it's manual are quite beta-ish and I would not recommend NCOMP easily.
    Regards,
    Martijn
    Email me if you need further info on how to set NCOMP up.

  • Native Compilation

    Has there been any further word from Oracle on the status of making Java native compilation, or at least just in time compilation, an available option inside JServer (Aurora)?
    null

    It will be in 8.1.7. For further details, see FAQ at:
    http://technet.oracle.com/products/oracle8i/htdocs/jserver_faq/index.html#_64_
    take care
    John.
    Oracle JServer Development Team

  • Native Compiled PL/SQL - Missing ORAPLS9.LIB (9i Release 2)

    In configuring the Natively Compiled PL/SQL feature of Oracle 9i, the library file ORAPLS9.LIB file can't be found. I tried generating it with:
    LIB /DEF:ORAPLS9.DLL
    but got the following warnings which didn't quite look right, and the resultant orapls9.lib file is rather small and doesn't work (unresolved externals).
    Is the ORAPLS9.LIB file supposed to be installed with 9i Release 2 for Windows 2000, or am I generating it incorrectly?
    BTW, the snpc_makefile.mk file is installed with 9i Release 2 for Windows, but not with 9i Release 1 for Windows.
    Thanks,
    Kevin Runner
    [email protected]
    Runner Technologies, Inc.
    561-395-9322
    OUTPUT
    E:\oracle\ora92\bin>lib /def:orapls9.dll
    Microsoft (R) Library Manager Version 6.00.8447
    Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
    LIB : warning LNK4068: /MACHINE not specified; defaulting to IX86
    orapls9.dll : warning LNK4017: MZI statement not supported for the target platform; ignored
    orapls9.dll : warning LNK4017: $ statement not supported for the target platform; ignored
    orapls9.dll : warning LNK4017: &&`j statement not supported for the target platform; ignored
    orapls9.dll : warning LNK4017: -? statement not supported for the target platform; ignored
    orapls9.dll : warning LNK4017: &E&#9658; statement not supported for the target platform; ignored
    orapls9.dll : warning LNK4017: -jF&#9668;oC&#9830;&#9829;-^kC&#9830;[os]+IIIIIIIIIIIUo8b8&#8593;oM6SVoG7 Wu&#9827;o~Hd6weI statement not supported for the target platfo
    rm; ignored
    orapls9.dll : warning LNK4017: jK&#9668;[]IIIIIIIIUo8So]&#9792;VWoC&#9830;o&#8252;o+-?&#9829;t statement not supported for the target platform; ignored
    Creating library orapls9.lib and object orapls9.exp

    Have you managed to resolve this problem?
    I'm having exactly the same experience (it's very frustrating, as I'm trying to run a benchmark at the moment).
    Hope to hear.
    Regards,
    T.
    Message was edited by:
    terenceo

Maybe you are looking for

  • How can I create a dvd with NO theme?

    I'd like to create a DVD that shows an image of my choice when inserted in player, with one play button start movie. All themes seem to have some moving graphic or fancy stuff.

  • Activation question??

    ok so my family is finally making the switch from sprint to ATT with 3 iPhones (and another phone for my younger brother) We all have separate computers so my questions is: can i activate my iPhone on my computer (creating an ATT account) and then ri

  • Premiere Pro 5.5 crashes when opening any project file containg an active sequence.

    When I create a new project the program continues to run until I select a sequence by double clicking on it. Then the program crashes. I am running Windows 7 Home Premium 64-bit with a Intel Core i7-2820QM 2.30GHz 16GB of RAM and an Nvidia Geforce GT

  • SSRS 2008 subfolder access denied but only partly

    Dear all After removing authorizations from the root folder we have an access issue with subfolders. A user with seemingly proper authorizations (Content Manager, Publisher, Browser, MyReports, ReportBuilder) is able to upload reports, delete reports

  • How to config ep

    Hi,   I have installed the EP, but i don't know how to config it , and i don't know what can it does .    Can anyone give me some help . nelson