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► statement not supported for the target platform; ignored
orapls9.dll : warning LNK4017: -jF◄oC♦♥-^kC♦[os]+IIIIIIIIIIIUo8b8↑oM6SVoG7 Wu♣o~Hd6weI statement not supported for the target platfo
rm; ignored
orapls9.dll : warning LNK4017: jK◄[]IIIIIIIIUo8So]♀VWoC♦o‼o+-?♥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

Similar Messages

  • Native Compiled PL/SQL on WindowsXP (Visual Studio)

    Has anyone tried to native compile PL/SQL packages on Windows XP using Visual Studio?
    Please give me your values for PLSQL* initialization parameters and a makefile that works.
    /Hakan

    Hi,
    Sorry to bump this thread, but I would like to validate something.
    Is it possible, or does it make sens, to have a database that has both native and interpreted?
    Our PLSQL_CODE_TYPE is set to interpreted but everthing else is configured for native.
    When i do the bellow query:
    select type, plsql_code_type, count(*)
    from dba_plsql_object_settings
    where plsql_code_type is not null
    group by type, plsql_code_type
    order by type, plsql_code_type
    We have bunch of functions in native/interpreted, same thing for package, package body, procedure, trigger, type, type body.
    Thank you,
    Felix

  • Plsql_optimize_level = 3 and native compilation in SQL Developer?

    SQL Developer: Version 3.1.06 (Build MAIN-06.82)
    Oracle: 11gR2
    OS: Ubuntu 10.10
    Whenever I compile a PL/SQL unit in SQL Developer (using 'Compile' button) it is compiled with the following settings:
    PLSQL_OPTIMIZE_LEVEL = 2
    PLSQL_CODE_TYPE = 'INTERPRETED'
    However, if I issue the following commands in an SQL Worksheet:
    ALTER SESSION SET plsql_optimize_level = 3;
    ALTER PACKAGE PACKAGE_NAME COMPILE PLSQL_CODE_TYPE = NATIVE;
    the query SELECT PLSQL_OPTIMIZE_LEVEL, PLSQL_CODE_TYPE FROM ALL_PLSQL_OBJECT_SETTINGS WHERE NAME = 'PACKAGE_NAME'; resullts in
    PLSQL_OPTIMIZE_LEVEL     PLSQL_CODE_TYPE
    3     NATIVE
    3     NATIVE
    Is it possible to make SQL Developer to use these settings by default?
    P.S. It seems that Tools > Preferences > Database > PL/SQL Compiler menu section is missing the options I need (Optimization level drop-down menu have numbers 0-2, but not 3). Are there any plans to support these features in the future releases?
    Edited by: Ravshan Abbasov on Feb 6, 2012 6:28 AM

    Hi Ravshan,
    I thought a workaround would be to create a sql script like the following:
    alter session set plsql_code_type=native;
    alter session set plsql_optimize_level=3;  then point to it in the setting for Tools|Preferences|Database|Filename for connection startup script. That doesn't work however, as the other preference setting for plsql_optimize_level overrides the session value of 3 during compilation from the UI.
    According to Oracle documentation, level 3 was added for Oracle 11g. Prior to that, the same effect could be achieved by level 2 in conjunction with the INLINE pragma in the PL/SQL code.
    You might want to make a feature request for this on the SQL Developer Exchange so the community can vote and comment.
    Regards,
    Gary
    SQL Developer Team
    Edited by: Gary Graham on Feb 6, 2012 2:32 PM
    And, of course, Compile for Debug does not work with the 'native' setting.

  • AIX 5L 64 bits + Native compiled PL/SQL

    Hi Gurus,
    Question for you. I'm tryng to find documentation/procedure on how to switch from native to interpreted pl/sql for AIX 5L 64 bits.
    Anyone could point me to some documentation on how to go from Interpreted to Native and vice-versa? Also, documentation about IBM C compiler/ GCC could be usefull too.
    Thank you,
    Felix

    Hi,
    Sorry to bump this thread, but I would like to validate something.
    Is it possible, or does it make sens, to have a database that has both native and interpreted?
    Our PLSQL_CODE_TYPE is set to interpreted but everthing else is configured for native.
    When i do the bellow query:
    select type, plsql_code_type, count(*)
    from dba_plsql_object_settings
    where plsql_code_type is not null
    group by type, plsql_code_type
    order by type, plsql_code_type
    We have bunch of functions in native/interpreted, same thing for package, package body, procedure, trigger, type, type body.
    Thank you,
    Felix

  • 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 pl/sql: who has got it working on win2000?

     

    These are the parameters you need to set:
    alter system set plsql_native_library_dir = '<A VALID DIR>'
    alter system set plsql_native_make_utility = 'make'
    alter system set plsql_native_make_file_name = '${ORACLE_HOME}\plsql\spnc_makefile.mk'
    alter session set plsql_compiler_flags = 'NATIVE'
    /Provide a valid directory for the parameter plsql_native_library_dir. This is where the compiled DLL files will be stored.
    Substitute ${ORACLE_HOME} with your Oracle home directory.
    For plsql_native_make_utility parameter, you can specify GNU make utility or can use the Microsoft nmake utility.
    The make file used for compilation is stored in ${ORACLE_HOME}\plsql\spnc_makefile.mk.
    After you setup these parameters, all you have to do is create your procedure/function/package the way you normally do. Oracle will automatically compile the code into a DLL in the directory you specified above.
    Depending on your Oracle version, you may not have the library file orapls9.lib. It is required by the compiler for Oracle procedure calls.
    I used the Microsoft Visual Studio 6.0 C++ compiler and it worked.
    Let me know if you get any errors.

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

  • PLS-00923: native compilation failed: make:spdtexmk:

    Hello,
    I am using Oracle 92 on Windows Platform.
    I am trying to change Interpreter to NATIVE mode.
    I changed parameters as needed. Below are the parameters I have after change.
    SQL> show parameter plsql_compiler_flags
    NAME TYPE VALUE
    plsql_compiler_flags string NATIVE
    SQL> show parameter native
    NAME TYPE VALUE
    plsql_native_c_compiler string D:\Borland\BCC55\Bin\BCC32.EXE
    plsql_native_library_dir string D:\oracle\ora92\plsql\Lib
    plsql_native_library_subdir_count integer 500
    plsql_native_linker string D:\Borland\BCC55\Bin\ilink32.exe
    plsql_native_make_file_name string D:\oracle\ora92\plsql\spnc_makefile.mk
    plsql_native_make_utility string make
    I am using Borland C.
    I changed a bit in mk file. But when I compile a simpe SP, I am getting PLS-00923: native compilation failed: make:spdtexmk: error.
    I guess it could be compile error, So is there any one has a sample make file for borland C on windows platform!! That might helps me!!!

    Hi,
    i tried everythind to get to runs this under windows 2000
    but nothing worked,
    the question is, if it's supported
    doese anybody knoe here?
    With linux it worked in 5 minutes of configuration;
    The advantage is that always a c compiler is on board
    Carl

  • 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

  • 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

  • Recently upgraded from 7.1.1 to LV2009 and noticed LV 2009 is missing \vi.lib\DA​Qmx\ !!!

    I recently upgraded from LV7.1.1 to LV2009 and noticed LV 2009 is missing \vi.lib\DAQmx\. I tried to copy my DAQmx library over from LV7.1.1\vi.lib and did a mass compile of that directory but the compiled files have a bunch of screwed up connector sinks showing as "void".
    Anyone have any suggestions how I can acheive a proper DAQmx library within LV2009? Does LV2009 not come with DAQmx support??!!??  
    Solved!
    Go to Solution.

    After you install LabVIEW (any version), you need to run the DAQmx installer to install support for it with LabVIEW. Even if you already had DAQmx installed, you still need to re-run the installer to install LabVIEW support.
    Jarrod S.
    National Instruments

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

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

  • System.Data.SqlServerCe.SqlCeException (0x80004005): Native components of SQL Server Compact engine are not loaded. Please reinstall Microsoft SQL Server Compact.

    Hi
    I have followed http://technet.microsoft.com/en-us/library/ms173298(v=sql.110).aspx to support private deployment for my application in anycpu mode.
    Though its working fine on several XP and Windows 7 , on on particular XP machine , I get this
    System.Data.SqlServerCe.SqlCeException (0x80004005): Native components of SQL Server Compact engine are not loaded. Please reinstall Microsoft SQL Server Compact.
       at System.Data.SqlServerCe.NativeMethods.ThrowIfNativeLibraryNotLoaded()
       at System.Data.SqlServerCe.SqlCeEngine.Dispose(Boolean disposing)
       at System.Data.SqlServerCe.SqlCeEngine.Finalize()
    Can anybody give me directions on this?

    Do you use LINQ to SQL or EF or ADO.NET, is what 
    Yes, I would start by investigating:
    - Do you REALLY need "any CPU", or can you cope with just x86 to make things simpler (See my LINQ to SQL blog post)
    - Is SQL Server Compact installed on this PC, and which build (is it same or different from the one you distribute)
    - Use Process Explorer from sysinternals on the machine to find out where the app tries to load the native libraries from (and fails)
    Please mark as answer, if this was it. Visit my SQL Server Compact blog http://erikej.blogspot.com

Maybe you are looking for

  • Flash Object is not working in Mozilla firefox 3.6 and safari

    Hi All , I am facing issue in Flash , my Flash application functionality is working fine in IE all versions and Chorme , but it is not working properly in mozilla Firefox and safari as well . The Problem is when i am using mousewheel scroll at the ce

  • RFFOJP_T Outgoing report for country JAPAN which generates a payment file

    There is a sub routine KATAKANA in this japan report RFFOJP_T i have made some corrections in the code such as invalid_character = '?,:.,,'  here are few japanese comma's which are not supported by non unicode system but supported by unicode system.

  • LMS 3.2 SP1 - Syslog Report times out / CW14: NO HTTP response

    Hi, in Device Center I can´t start the Syslog Report, it opens a new Browser window and times out. If I start the "Device Troubleshooting" from the Device Center, all checks are successful. Just the check "Syslog Message" show the error: CW14: NO HTT

  • Backups - Files still locked after beginarchive

    We are using Commvault to backup the files on our UNIX server. We have created a script to run before the backup starts. The script does this: DISABLELOGIN "appname"; DISABLELOGIN "appname2"; LOGOUTALLUSERS "Y"; BEGINARCHIVE "appname" "dbname" "appna

  • Find microsoft.sharepoint.administration.dll in SharePoint 2013

    Hi All, Can anyone tell me how do i get microsoft.sharepoint.administration.dll in SharePoint 2013? I have installed "MicrosoftSharepointAdministrationToolkit.exe" toolkit. Still, I am not getting above mentioned DLL. http://www.microsoft.com/en-in/d