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.

Similar Messages

  • SQL Server Has Been Stopped Working.

    Hi,
    I'm Facing Problem With Sql Management Studio 2012, When I was Open SQL it's Automatically Stopped Working and when i was try to write a new Query it will Showing Error Like "SQL Mgmt Studio Has Been Stopped Working". and Closing Automatically,Please
    Help Me out.
    Regards,
    Rakesh Reddy Pidi.

    Hi,
    Thank you for posting in SQL Server Forum.
    Besides the above comments, check the error message in the Application log and try to connect via
    SQLCMD command.
    To check the application event log for errors
    1. Open Event Viewer by clicking the Start button, clicking Control Panel, clicking System and Security, clicking Administrative Tools, and then double-clicking Event Viewer.‌ Administrator permission required If you're prompted for an administrator password
    or confirmation, type the password or provide confirmation.
    2. In Event Viewer, in the console tree, expand Windows Logs, click Application.
    Also, try repairing SQL Server 2012 using the following:
    http://msdn.microsoft.com/en-us/library/cc646006.aspx
    Thanks.
    Tracy Cai
    TechNet Community Support

  • My Facebook is continue crashing after 5 seconds. On Ipad and iPhone. Who has got a answer??

    My Facebookapp is continue crashing after 5 seconds on Ipad en iPhone

    Don't use it. The app has been a buggy mess for months. I access facebook via safari.
    Or look for a third party app that works.
    THe burden is on facebook to make an app that works, not on Apple to fix facebook's issues.

  • SQL who has the mirracle answer?

    Hello fellow adobe Authorware users:
    Upon login the user can complete a quiz which keeps track of
    the attempt number. If the user Exits, the attempt number is
    initialized and the count starts back at 1.
    I am trying to retrieve the last attempt number from the SQL
    database and start the count from there.
    My SQL table is named: “UserAnswer”
    The Fields are UserName, LessonNum, QuestionNum, AttemptNum,
    RightAnswer…
    Here is what I tried to retrieve and update the last
    AttemptNum:
    DB_SQLString:= "SELECT [AttemptNum] FROM [UserAnswer] WHERE
    [UserName]='"^ DB_UserName^"'"
    Followed by a Navigate to Execute SQL Commands
    To display the attempt number in Authorware:
    (AttemptNum@DB_ODBCData)

    And...?
    "tobecontinued" <[email protected]> wrote in
    message
    news:eeu3ap$1rf$[email protected]..
    > Hello fellow adobe Authorware users:
    >
    > Upon login the user can complete a quiz which keeps
    track of the attempt
    > number. If the user Exits, the attempt number is
    initialized and the count
    > starts back at 1.
    >
    > I am trying to retrieve the last attempt number from the
    SQL database and
    > start the count from there.
    >
    >
    > My SQL table is named: ?UserAnswer?
    > The Fields are UserName, LessonNum, QuestionNum,
    AttemptNum, RightAnswer?
    >
    > Here is what I tried to retrieve and update the last
    AttemptNum:
    > DB_SQLString:= "SELECT [AttemptNum] FROM [UserAnswer]
    WHERE [UserName]='"^
    > DB_UserName^"'"
    >
    >
    > Followed by a Navigate to Execute SQL Commands
    >
    > To display the attempt number in Authorware:
    > (AttemptNum@DB_ODBCData)
    >
    >

  • IPhone - Who has MP3 support working?

    I'm at a loss trying to get mp3 support working. And I'm very surprised they don't have a sample app for it. Right now I'm tweaking some code from the audio recorder sample. But when I'm trying to playback my sample MP3, it seems to work fine, but there is no sound. Anyone have sample code working with MP3's?
    So far caf files have been working fine for my small sound effects. But I have a short sound bit that is too long for the system audio. And as a aiff/caf file its too big so I want to distribute it as an MP3.

    http://www.idevgames.com/forum/showthread.php?t=15280
    FYI, you can only play one MP3 at a time, so I suggest using MP3s for background music, and wavs or cafs for short sounds.
    HTH.

  • Position has 2 users, work item has to go only 1 user

    Hi All,
    We have a business scenario where the position will have 2 users, however we need to send the workitem to only 1 user.
    Please suggest ways to do this.
    Thanks and Regards,
    Soumya Gayatri.

    Hi Soumya
    We have a business scenario where the position will have 2 users, however we need to send the workitem to only 1 user.
      Even there are 2 user tagged to one position. There must be only one person would have got high priority to do their job. To get who has got high priority goto table HRP1001 enter these details in the table and check these
    OTYPE    =  s
    PLVAR    = 01
    RSIGN     = A
    RELAT     = 008
    PRIOX      = 1
    PROZT    = 100 %
    If there are 2 persons tagged check the fields PRIOX and PROZT would be different for 2 persons. These field would be maintained by functional. Check this fields for  2 persons holding the same position.
    Regards
    vijay

  • Planahead.exe has already stopped working!

    Hi,
    I  has xilinx 12.4 compile worker and compile farm 2011 installed on windows vista 64bit as a compile server machine like the release notes telles me.
    But when I launch a compile work remotely to compile an image for PXI 7953R with Labview 2011, the compile server said "planahead.exe has already stopped working!".
    If I shutdown the warning window, compile work continued but another warning appeared after a while as "map.exe has already stopped working!" which may caused by the previous warning I think. Then, compile work stopped.
    At the development side, it said "xilinx internel error".
    Anybody has the same problem? Thanks for any reply.

    You can try using this tool to remove all traces of previous version(s) of Reader:
    http://labs.adobe.com/downloads/acrobatcleaner.html
    Then, you may download the offline Reader installer from
    http://get.adobe.com/reader/enterprise/

  • Is there anyone at all here who has successfully compiled and deployed an SSRS custom report item in VS2012?

    Is there anyone at all here who has successfully compiled and deployed an SSRS custom report item in VS2012?  Is there a demo out there that actually works in VS2012?  Is there anyone who has actually been able to compile and deploy that
    apparently obsolete Polygons demo?  (Pardon my impatience but I'm running a bit short of time here.)
    After much hacking and googling I was able to get Polygons to compile but I still can't deploy it to the toolbox.  ('The custom report item type PolygonsDesigner is not installed').   I've modified the RSReportDesigner.config
    as instructed but I have no rssrvpolicy.config file on my local machine and
    as yet I have no idea if that is necessary for local development.
    In order to get it to compile I first added the reference  C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies\Microsoft.ReportingServices.ProcessingCore.dll to both projects.
    To the PolygonsDesigner Project I also added the references:
    C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies\Microsoft.ReportDesigner.Controls.dll
    C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies\Microsoft.ReportingServices.Designer.11.0.dll
    C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\Microsoft.ReportingServices.Interfaces.dll
    Are these the correct references?  
    Exactly what software do you need installed on your local machine in addition to VS2012 in order to create a custom control?
    (Designer.11.0 was added per the instructions in reference: https://connect.microsoft.com/VisualStudio/feedback/details/783391/unable-to-integrate-previously-working-ssrs-custom-report-item-to-vs-2012s-toolbox  
    After that I added the alias RSDesigner to it's properties and   extern alias RSDesigner; at the top of the PolygonsDesigner.cs file. )
    As of now, the top of the PolygonsDesigner.cs is as follows.  I don't recall making any other changes to the code.  As far as I can remember this is all I did in order to be able to compile the code in VS2012.
        extern alias RSDesigner;
        using System;
        using System.ComponentModel;
        using System.ComponentModel.Design;
        using System.Collections;
        using System.Collections.Generic;
        using System.Diagnostics;
        using System.Drawing;
        using System.Windows.Forms;
        using Microsoft.ReportDesigner;
        using Microsoft.ReportDesigner.Design;
        using Microsoft.ReportingServices.Interfaces;
        using Microsoft.ReportingServices.RdlObjectModel;
        using System.Xml;
        using System.Xml.Xsl;
        using System.Xml.XPath;
        [LocalizedName("Polygons")]
        [Editor(typeof(CustomEditor), typeof(ComponentEditor))]
        [ToolboxBitmap(typeof(PolygonsDesigner), "Polygons.ico")]      
        [CustomReportItem("Polygons")]
        [ToolboxItem(typeof(RSDesigner::Microsoft.ReportDesigner.Shell.CRIToolboxItem))] 
        [System.CLSCompliant(false)]
        public class PolygonsDesigner : CustomReportItemDesigner
        {   etc...

    Just fixed this myself.
    It appears the documentation online is wrong and the sample code is missing a reference to a reporting services dll and an attribute.
    What you need to do to get it working in VS2012 is add a reference to: Microsoft.ReportingServices.designer.11.0.dll to the PolygonsDesigner project and then add the following attribute to the PolygonsDesigner class: [ToolboxItem(typeof(Microsoft.ReportDesigner.Shell.CRIToolboxItem))]
    I also removed the [System.CLSCompliant(false)] attribute.
    You then recompile and place both dlls in C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies directory and the PolygonsDesigner.dll into the C:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\ReportServer\bin
    or what ever is you reporting services path.
    You also need to change the Microsoft example for the rereportserver.config file to:
        <ReportItemDesigner>
       <ReportItem Name="Polygons" Type="Microsoft.Samples.ReportingServices.PolygonsDesigner, PolygonsDesigner" />
        </ReportItemDesigner>
        <ReportItems>
       <ReportItem Name="Polygons" Type="Microsoft.Samples.ReportingServices.PolygonsCRI,PolygonsCRI"/>
        </ReportItems>
     Notice that I changed the namespaces and class to what is in the actual code so if you change it make sure you change it here.
    And here in the RSReportDesigner.config:
    <ReportItems>
          <ReportItem Name="Polygons" Type="Microsoft.Samples.ReportingServices.PolygonsCustomReportItem,PolygonsCRI" />
        </ReportItems>
        <ReportItemDesigner>
          <ReportItem Name="Polygons" Type="Microsoft.Samples.ReportingServices.PolygonsDesigner, PolygonsDesigner" />
        </ReportItemDesigner>
        <ReportItemConverter>
          <Converter Source="Chart" Target="Polygons" Type="PolygonsCRI.PolygonsConverter, PolygonsDesigner" />
        </ReportItemConverter>
    Notice I haven't changed the last part as I didn't know what the PolygonsCRI.PolygonsConverter was.
    And make sure the rssrvpolicy.config looks like this:
         <CodeGroup class="UnionCodeGroup" version="1" PermissionSetName="FullTrust" Description="This code group grants PolygonsCRI.dll FullTrust permission. ">
           <IMembershipCondition class="UrlMembershipCondition" version="1" Url="C:\Program Files\Microsoft SQL Server\MSRS10_50.SQLSERVER\Reporting Services\ReportServer\bin\PolygonsCRI.dll" />
        </CodeGroup>
    After a restart of ssrs and relaunch of VS2012 I opened a test project and added the PolygonsDesigner.dll to the toolbox and it works.
    Jamie

  • 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

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

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

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

  • How to find who has changed SQL Server Agent 'Job History' settings.

    Hi all,
    I was searching from couple of days to know is there a way to find out who has changed the SQl agent property settings.
    Like if someone unchecks the SQL Agent History settings how i can find who has done that change?
    I searched for trace flags but there is nothing related to it, i searched for system tables and views of msdb but nothing which can give this information, even didn't find any audit setting that can monitor these activities.
    My sql version is SQL Server 2008. Please throw your ides on how to track the sql agent history setting changes!!!
    Thanks In Advance!!!!
    VVinayPrasad

    Hi,
    You might be able to AUDIT the execute on that SP but its not giving exactly what has been changed... i guess you are getting what i am looking for...
    whatever the property might be changed it only shows the sp name thats it.... but not the exact sql statement executed on background
    VVinayPrasad
    First of all: It's not about me, it's about you. And it's not a might, its a given fact. I
    tested it for you.
    Second: your question was:
    >>I was searching from couple of days to know is there a way to find out
    who has changed the SQl agent property settings.
    >>Like if someone unchecks the SQL Agent History settings how i can find who has done that change?
    So please first clear up, what you really need.
    Third: instead of Auditing I already gave the advise to use Tracing (be it SQLTrace or Extended Events). Both will give you the exact statement. SQLTrace may be easier on SQL2008
    Please try all of the provided first before doing guesswork.
    Andreas Wolter (Blog |
    Twitter)
    MCM - Microsoft Certified Master SQL Server 2008
    MCSM - Microsoft Certified Solutions Master Data Platform, SQL Server 2012
    www.andreas-wolter.com |
    www.SarpedonQualityLab.com

  • I just got a Mac and I use the same internet connection as my mom and my brother, who has an iPad. He can click on something that has my name and then Macbook Air, and is able to see everything on my computer screen. How do I fix this?

    I just got a Mac and I use the same internet connection as my mom and my brother, who has an iPad. He can click on something that has my name and then Macbook Air, and is able to see everything on my computer screen. How do I fix this so he cant see what i am doing on my computer?

    No, I made sure nothing was checked for that section when i found out he could see my screen. At the top it says "computers on your local network can access your computer at: blah blah". I think thats how hes doing it but i dont know how to fix it.

Maybe you are looking for

  • Application is not starting

    Hi, when i ran the report script i got the err cannot open cube view.essbase error (1002097)unable to load database and when i try to start the application i amgetting unable to load the database.

  • Cannot get XP to print

    Hello! I've been working all morning on getting my really weird network going Right now, I'm stuck on an issue between my old Windows XP box and my new iMac G5 (running OSX 10.5.5). Ive got the two computers networking and file sharing okay, but I ha

  • Dynamic forms from 2 tables

    Hi, (Sorry for the long post) DB Table one contains 4 fields: EventName Venue Price Date Form one is used by the owner to enter the data for an event into the DB Table One - there are several different events. DB Table two contains 7 fields (4 of the

  • Which infotype we can maintain the Blood Group?

    Hi To all   is it possiableto  add  only this Blood group field in infotype 2 .How can i do this ?give me step by step Bcz i am not a ABAP guy.Thank You

  • How do I turn off autocorrect in Mail?

    In Mail, I would like to turn off autocorrect, which makes me say many ridiculous things! How do I do that? I've looked and looked and can't figure it out. Thanks!