How to compile packge inside the procedure that uses this package

ORACLE 10g, 11g

CREATE OR REPLACE PACKAGE PKG_TEST_COMMIT
PROCEDURE Insert_into_table_T1;
PROCEDURE Update_table_T1;
END PKG_TEST_COMMIT;

CREATE OR REPLACE PROCEDURE PROC_TEST_COMMIT as
Begin
PKG_TEST_COMMIT. Insert_into_table_T1; -Insert data into table T1
EXECUTE IMMEDIATE 'DROP table T1;
IMMEDIATE EXECUTION
"create table T1 as select"1 ","d"," s "from DUAL;" -now PKG_TEST_COMMIT package at the stage not compiled
-compile the package
DBMS_DDL.alter_compile ('PACKAGE', 'OWNER', "PKG_TEST_COMMIT");
PKG_TEST_COMMIT. Update_into_table_T1;
End PROC_TEST_COMMIT;

When I try to run the PKG_TEST_COMMIT I get an error: cannot lock the package.
I tried to create a separate procedure for compiling, but the result is the same.
If I'm done PROC_TEST_COMMIT before compiling, then compile - OK.

It's a way to compile the package inside the procedure?

TRUNCATE and INSERT / * + APPEND * / should be more effective than deleting them and recreating a table wouldn't it because you don't have to worry about the invalidation and recompilation of all dependent objects.

Justin

Tags: Database

Similar Questions

  • How to compile and install the kernel modules after nation and nipalk for installation of Gentoo 64 bit?

    We are trying to install a PCIe 6251 DAQ card in a box of Gentoo 64 bit running Linux kernel 2.6.28 - gentoo-r5 4.3.2 - gcc and glibc - 2.8.  We have installed RPM utilities to manage the installation.  The current problem is that we are not able to compile and install the kernel modules: nidmxfk, nimsdrk, nimstsk and nipxirmk.  Here's a summary of what we have done so far, and to what extent we got.

    First of all, we have changed the configuration of the kernel that we could export the init_mm unused symbol by changing the configuration option of the CONFIG_UNUSED_SYMBOLS = o kernel and recompile the kernel.  Then we installed LabView 8.6.1.  Then we ran the nation 1.9 installer who has installed the source code in vain on the compilation.  To resolve this problem, we have changed the function of pte_offset to pte_offset_kernel by editing the file/usr/local/natinst/nation/configures following the instructions here:

    http://decibel.NI.com/content/docs/doc-4511

    We were then able to compile and install the kernel nation module thanks to:

    . / configure
    do
    make install

    lsmod said that nation has been properly installed.  Then we ran the installer for DAQmx 8.0.1 by:

    . / INSTALL - nodeps

    To do this, we have received errors indicating that LabView support could not be installed because check addictive (incorrectly we think) stated that labviewbase86 has not been installed; This caused the installer to have an abortion.  Therefore, we refused to install support for LabView 8.6 and revived the installation program which produces the output:

    Installation of the driver NOR-DAQmx Distribution of Linux Installer version 8.0.1f0...

    Already to jump Edward - 1.9.0 - f0.noarch.rpm installation, same or newer
    installed.

    Pre Installation...

    Preparing... ########################################### [100%]
    1:nitimingi ########################################### [ 4%]
    2:nipalki ########################################### [ 7%]
    3:nipali ########################################### [ 11%]
    RC0.d directory not found, startup script is not accredited with init levels.
    4:labview80 - rte # [14%]
    5:ni653x ########################################### [ 18%]
    6:nicdigi ########################################### [ 21%]
    7:nidaqmxcapiexmp # [25%]
    8:nidaqmxcapihelp # [29%]
    9:nidaqmxcapii # [32%]
    LN: create the symbolic link ' / usr/local/include/NIDAQmx.h': no such file or directory
    10:nidaqmxcfgi # [36%]
    11:nidaqmxef # [39%]
    12:nidaqmxhelp # [43%]
    13:nidaqmxinfi # [46%]
    14:nidaqmxswitch # [50%]
    15:nidimi ########################################### [ 54%]
    16:nidsai ########################################### [ 57%]
    17:nimdbgi ########################################### [ 61%]
    18:nimioi ########################################### [ 64%]
    19:nimru2i ########################################### [ 68%]
    20:nimxdfi ########################################### [ 71%]
    21:nimxpi ########################################### [ 75%]
    22:nimxs ########################################### [ 79%]
    RC0.d directory not found, startup script is not accredited with init levels.
    23:niorbi ########################################### [ 82%]
    24:nipxirmi ########################################### [ 86%]
    25:nirpci ########################################### [ 89%]
    26:niscarabmm # [93%]
    27:niscxi ########################################### [ 96%]
    28:nistci ########################################### [100%]

    After Installation...

    At this point, after reading this report, we used the Gentoo rc update utility to add several scripts for the boot runlevel initialisation:

    update of RC - a boot nipple
    update of RC - a bunch of nipxirmu
    update of RC - a bunch of mxssvr
    update of RC - a bunch of nisvcloc
    update of RC - a bunch of nidevldu

    When the computer reboots, you get an error message indicating that the following kernel modules are not: nidmxfk, nimsdrk, nimstsk and nipxirmk.  lsmod shows that the nation and nipalk are installed, but no other kernel modules NOR are present.  modprobe-l shows that only nation and nipalk are available.

    So we have several questions:

    1. we install drivers in the correct order?  Should use us NI-VISA 4.5 or NOR-488. 2 rather than DAQmx 8.0.1?

    2. What kernel modules should be loaded for this equipment run?  How to compile and install the ones that we have yet, specifically nidmxfk, nimsdrk, nimstsk and nipxirmk?  Are there others?

    3. How can we get the installer to properly recognize that we have installed LabView Core and install support for LabView?  Are there additional kernel modules related to the support of LabView?

    4. What is the symbolic link that was not created in the DAQmx installation report? (ln: create the symbolic link ' / usr/local/include/NIDAQmx.h': no such file or directory)?

    I apologize for so many questions, but these seem to be the last obstacles to obtaining OR runs correctly on this system.  Is there other information that we can provide that would be useful?  Thanks for any help or suggestions you can offer.

    Craig

    Hey Craig,.

    Given that you use 64-bit Linux all kernel modules must be compiled for 64 - bit.  User mode binaries can be 32-bit, assuming that you have installed the 32-bit support libraries.

    NOR-DAQmx is a complex architecture and requires several kernel modules to support your PCIe card.  Most of these kernel modules have not been brought to support 64-bit Linux.  Some kernel modules are components infrustructure that are shared with other pilots OR as NI-VISA and NOR-488. 2 and have been brought to support 64-bit Linux.  Unfortunately, you need all the modules to use your hardware.

    I hope that answers your question.

    Shawn Bohrer

    National Instruments

  • How can I produce inside the trim marks in Indesign CC?

    How can I produce inside the trim marks in Indesign CC. When a printer large format output a large image and then need to cut to size, inside trim marks are necessary. Normal trim/Cup brands get cut after the first cut.

    [Left the forum Cloud/Installer generic for program specific forum... MOD]

    To use the script, you need to draw a rectangle that is larger than the page, select the rectangle and run the script "CropMarks.jsx" of sample/JavaScript by the Committee of Scripts scripts:

    Front (showing the upper-left corner of the page; the assistance rectangle obscures the edges of the page):

    After (the rectangle of assistance removed after running the script):

    Uwe

  • Cannot configure DBAdapter to call the procedure that takes no parameters

    Hello

    I created a test as a package below:

    create or replace package Tester
    as
    Main1 procedure;
    procedure (x VARCHAR2) Main2;

    end;

    create or replace package body Tester
    as

    procedure Main1
    is
    Start
    insert into ziptest values (' Main', sysdate);
    commit;
    end;

    procedure (x VARCHAR2) Main2
    is
    Start
    insert into ziptest values (' in Main2 :'|| x, sysdate);
    commit;
    end;

    end;
    ----------------------------------------
    When I try to configure a DB adapter to call the Main1 procedure, that I'll meet with the following error:
    An error occurred while getting stored procedures. Verify that the database connection is valid.

    If I try to configure the DB adapter to call Main2, it works without problem.
    In addition, this occurs only when the procedure is in a package. If the procedure is independent, no error is delivered.

    Is this a known bug or am I missing something. I use Jdev 10.1.3.4 and SOA Suite 10.1.3.4.

    Kind regards

    Amit

    Hi Amit,

    This is a bug in the wizard of DBAdapter. Try to update BPEL for the latest available patch, and if this does not work here workaround has been tested to work on 10.1.3.1 too!

    1. modify "Main1' to"Main1 (dummy IN VARCHAR2)"in your package.
    2. use the wizard of DBAdapter as ususal to create a partner link that hits this procedure has changed.
    3. change your procedure "Main1" back to the way it was IE without any parameters.
    4. in your BPEL process file, find the file .xsd to Main1 generated by the wizard in step 2. Replace ... inside the for the "InputParameters" element with an emty tag.

    Now, go ahead and invoke this link partner as usual. It would work! ;)

    Kind regards
    Ravi

  • How can I print just the screen that I'm looking?

    • How can I print just the screen that I'm looking? CTRL + P doesn't (I have WIndows Vista)

    auntjilly wrote:

    * How can I print just the screen watching you? CTRL + P doesn't (I have WIndows Vista)

    Two ways:

    (1) by design, as it has always been with all versions of Windows, press copy the entire screen, including the wallpaper desktop, in the Clipboard (iow, in RAM).  By pressing + of only copies the active window to the Clipboard.  To view the screenshot, open a graphics program, such as MS Paint and press + V.  This will paste the contents of the Clipboard (your screenshot) in the file open and allows you to view or save it as a file for later use.

    How to capture screenshots in Windows by using the print screen key
    http://support.Microsoft.com/default.aspx?scid=kb; us; 173884

    (2) as long as you have a newer version of Vista as the Home Basic edition, you can use the Snipping Tool.  (Start > all programs > Accessories).

    Bruce Chambers

    Help us help you:
    http://www.CatB.org/~ESR/FAQs/smart-questions.html

    http://support.Microsoft.com/default.aspx/KB/555375

    They who can give up liberty to obtain a little temporary safety deserve neither liberty nor safety. ~ Benjamin Franklin

    A lot of people could die rather that thinking; in fact, most do. ~ Bertrand Russell

    The philosopher never killed the priests, while the priest killed a large number of philosophers.
    ~ Denis Diderot

  • How can I back up the files that that are on a mapped network drive?

    How can I back up the files that that are on a mapped network drive?  I can see the disks and the files that I want to backup in windows Explorer, but when I use the tool integrated with seven windows backup it does not list the mapped network drives backup options, it shows that local readers.  Thanks for your help.

    You probably have Windows 7 Home Premium - Microsoft has removed the ability to backup Windows 7 Home Premium network. You must have Pro/Ultimate to do a network backup or install a 3rd party backup program that can backup network.

  • help on how to compile and run the awt programs

    any1 can tell how to compile and run the awt programs

    Published by: 863765 on July 18, 2011 03:29

    The same way you compile and run any other Java program.

  • How can I turn off the touchpad to use a mouse

    How can I turn off the touchpad to use a mouse

    On my computer, plug a mouse automatically disables the touchpad. Check that your computer of operating manual, help files or the Web site of the manufacturer for more details on the functioning of your.

  • PC DM files: my hard drive is currently filled by PC DM files in my folder/Public user folder. How can I safely remove the right files in this folder?

    My hard drive is currently filled by PC DM files in my folder/Public user folder.  How can I safely remove the right files in this folder?  Vista Home Premium 64 bit is my os.

    Hi templar_39,

    DM (Message Delivery) file types are not Windows files, they can be generated by a third-party program.

    This particular file type is often associated with audio data and can be hosted on some cell phones to be used as ringtones or multimedia clips. To my knowledge, these files can be generated by your mobile phone.

    Note: you can go ahead and remove these files only if you notice that the files do not contain any important information.

    If this happens without connect you all devices (like mobile PHONES), this may be a virus or malware activity. You can run a virus scan to get rid of them

    Step 1: A scanner online for any threat and try to correct

    http://OneCare.live.com/site/en-us/Center/cleanup.htm

    Thank you, and in what concerns:

    Ajay K

    Microsoft Answers Support Engineer

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Owner OF THE LICENSE No. [removed-kglad], PREVIOUSLY INSTALLED on OLD PC WHO CRASHED. HOW AND WHERE TO FIND THE NEW DOWNLOAD FOR THIS NEW PC. LICENSE FROM A USER OF MAY 2011.

    Owner OF THE LICENSE No. [removed-kglad], PREVIOUSLY INSTALLED on OLD PC WHO CRASHED. HOW AND WHERE TO FIND THE NEW DOWNLOAD FOR THIS NEW PC. LICENSE FROM A USER OF MAY 2011.

    Available downloadable Setup files:

    Download and installation help links Adobe

    Help download and installation to Prodesigntools links can be found on the most linked pages.  They are essential; especially steps 1, 2 and 3.  If you click on a link that does not have these listed steps, open a second window by using the link to Lightroom 3 to see these "important Instructions".

  • How to insert data into the table by using the expression builder in the assign activity

    How to insert data into the table by using the expression builder in affect business in BPEl, I use SOA Suite 11.1.1.5
    Can someone help me please

    Hello

    I don't think that oraext:query-database() can insert data into the table.

    What are your needs?
    Can not you plan to use the DB adapter with the insert operation?

    Kind regards
    Neeraj Sehgal

  • Remove the statement that uses a subselect in the declaration of the cursor

    Hi all

    How to write write a delete statement that uses a subselect with the declaration of the cursor?

    CURSOR excluded_dates IS          
           SELECT TO_TIMESTAMP(report_parameter_value, in_date_format_mask)
          INTO my_current_date_time
          FROM report_parameters
         WHERE report_parameters.report_parameter_id    = in_report_parameter_id
           AND report_parameters.report_parameter_group = 'DATE_TIME'
           AND report_parameters.report_parameter_name  = 'EXCLUDED_DATE';
     OPEN excluded_dates;
      
      LOOP
        
        FETCH excluded_dates INTO my_excluded_date;
        
        EXIT WHEN excluded_dates%NOTFOUND;
        
        DELETE FROM edr_rpt_tmp_inclusion_table
        WHERE TO_CHAR(date_time, 'mm/dd/yyyy') = TO_CHAR(my_excluded_date, 'mm/dd/yyyy');
        
      END LOOP;
    
      CLOSE excluded_dates;
    Thank you

    Hello

    You can turn your cursor into a subquery IN

    DELETE FROM edr_rpt_tmp_inclusion_table
    WHERE   TRUNC (date_time) IN
    (
           SELECT TRUNC (TO_TIMESTAMP(report_parameter_value, in_date_format_mask))
    --      INTO my_current_date_time   -- Remove this line
          FROM report_parameters
         WHERE report_parameters.report_parameter_id    = in_report_parameter_id
           AND report_parameters.report_parameter_group = 'DATE_TIME'
           AND report_parameters.report_parameter_name  = 'EXCLUDED_DATE'
    );
    

    I used the TRUNK instead of TO_CHAR, but it works with TO_CHAR.

    Published by: Frank Kulash, June 8, 2009 11:28
    Remove the "my_current_date_time" line, after Sean and Sanjay (below).

  • I have a VBA application that fills the data in an Acrobat form.  Do I have to distribute a complete Acrobat on each machine that uses this application (it will be disastrous) or is there a way I can use the software Acrobat reader only.  I am using the f

    I have a VBA application that fills the data in an Acrobat form.  Do I have to distribute a complete Acrobat on each machine that uses this application (it will be disastrous) or is there a way I can use the software Acrobat reader only.  I use the next AcroExch.App and AcroExch.PDDoc object to the form.  I hope there's a distribution object, I can use the full application and not because I don't want users to have access to forms and to keep the cost down.

    It is important to realize that the Acrobat SDK kit is a marketing tool for Acrobat. So, Yes, certainly you need a copy for each system. There is no redistributable components.

  • After the installation, I get the message "cannot use this product under a guest account. That is what it is?

    I installed Acrobat Pro XI (academic edition).  But I get the message "cannot use this product under a guest account.  What should I do?

    Run as admin / talk to your IT Department.

    Mylenium

  • How to call the page url inside the procedure.

    Hello


    I'm not exhibition in plsql.
    I have some problem in utl_http link.

    I create a procedure. The procedure has been compiled successfully. But the page url does not open...

    I have attached the procedure,

    create or replace procedure p (number of mob)
    IS
    long l_page;
    l_url varchar2 (25000 char);

    Start
    null;
    l_page: = utl_http.request ("http://www.yahoo.com");
    end;


    Please tell me the solution for this problem...


    I await your response.

    Thank you
    Sasi.

    This is a duplicate thread:

    How to open the web page in pl/sql

    the OP doesn't seem to understand the difference between a web browser and a programming language... I can't say I've ever had to explain the difference before...

    Let's say that... the butterflies are not somehow similar to razors electric...

Maybe you are looking for

  • Can I move the answer, before... buttons up, next to the filter

    Hello I recently replace MS outlook w / Thunderbird. I organize my mail by date. The last incoming mail is always on top. To delete, respond, etc, I need to move the mouse to the bottom of the email list to select the reply/forward/delete. I am looki

  • Satellite L50 - A - burner does not work properly

    My DVD recognizes most of the media, also recognizes a floppy blank when inserted, but unable to burn anything on the bank records. Machine is about 1 years, used to burn, but now I get an error everytime I try to write anything on a blank disc.Out o

  • Lenovo black screen randomly Y50-70 times

    Hi everyone I have a very strange problem with my laptop. Here's the Specs (copy-pasted from amazon because I'm lazy): Lenovo Y50-70 39.6 cm (15.6 Zoll UHD IPS)Intel Core i7-4710HQ, 3.5 GHz12 GB OF RAMHybrid SSHD 1 TB (8GB) NVIDIA GeForce GTX 860 M /

  • Download program on a cd to be used on another computer?

    On my laptop when I open internet it says "cannot display the page. I tried to solve the problems, but he finds no problems.

  • g vn7-791 -?

    After doing a lot of research I decided to purchase the aspire v17 nitro, the problem is, I don't know what the last digits in the average. I want that whoever has the camera realsense and blu - ray player. I keep going in circles on google, I called