Procedure that injects another procedure

Hello everyone,

I need to create a procedure that removes another procedure as follows:

create or replace procedure drop_any_proc (proc_name varchar2) is
drop procedure proc_name;
end;

Please let me know.

Noor ul Huda

In essence:

create or replace procedure drop_any_proc (proc_name varchar2) is
begin
  execute immediate 'drop procedure ' || proc_name;
end;

But I would add even more around it... of error management and safety nets and wonder why I want such a procedure :)

Tags: Database

Similar Questions

  • That means "another device on the network use the IP address of your computer"?, that means "another device on the network is using the IP address of your computer?

    That means "another device on the network use the IP address of your computer"?, that means "another device on the network is using the IP address of your computer?

    A

    Most likely, the computer becomes a network address of a router. The assignment of an address ("lease") expires and must be renewed after a certain period of time, which could be an hour or a day. The lease expired without being renewed because the device has been disconnected at the time. Meanwhile, the address has been leased to another device on the network, or maybe the router has not updated its list of addresses the leases. When the device offline comes back online, a conflict results. Depending on the type of router you have, the conflict can resolve itself automatically. If not, then in the menu bar, select please

    ▹ System Preferences network ▹ 

    If the preferences window is locked, click the lock icon in the lower left corner and enter your password to unlock it. Click the Advanced button, and then select the TCP/IP tab in the sheet that drops down. Look at the menu option

    Configure IPv4

    If the selection in this menu is

    Using DHCP

    Click on the button

    Renew the DHCP lease

    Test.

    Make sure that you have more than one DHCP server on the network. That could happen if you have more than one access point Wi - Fi, or if you have a router and broadband a wide device distinct in connection mode sharing.

    B

    Less likely, you have a network address that you assigned yourself and another device is itself by assigning the same address. In this case, the selection to configure IPv4 menu will be either manually or using DHCP with manual address. This kind of conflict will not be resolved automatically. You have the following options to solve:

    1. Change the selection in menu using DHCP.
    2. Change the address assigned manually to one that is not used by another device.
    3. Change the address of the other device.

    Which of these options you choose depends on the details of why you use a static IP address. Any changes you make to the network settings is necessary before taking effect. To do this, click OK, and then click apply.

    If the router is also your device at wide band, then he may be operating in bridged mode. In this case, only one customer at a time will be able to connect to the Internet. Consult the manufacturer or ISP documentation for how to reconfigure the device in the connection mode sharing.

    C

    According to a report a "DirectTV" receiver can cause the problem. If necessary, disconnect the device from the network, or power off and test. Consult the support services provider.

  • How to change a text element to have a link that opens another page?

    Hello

    How to change a text element to have a link that opens another page?

    Thank you
    Guy

    Hi guy,

    It is quit simple
    in your P5_TASK_NAME
    in the first text section text element:

    [] 
    

    Replace ' # ' f? p = & APP_ID.: 2: & SESSION.

    in the post text element:

    
    

    and this is

    Published by: Martijnke on March 11, 2009 12:21

    Published by: Martijnke on March 11, 2009 12:22

  • Procedure that calls another proc throws the error message

    I have a proc returns ref cursor as below

    create or replace

    PROCEDURE PROC_RETURN_CV (P_in_deptno number, varchar2, p_out_info to sys_refcursor p_in_job)

    is

    Start

    Open p_out_info for ' select ename, empno from emp1 where deptno =: = deptno and job: job ' using p_in_deptno, p_in_job;

    end;

    /

    Another Proc calls over proc;

    create or replace

    procedure proc_call_cv is

    v_local_cv sys_refcursor;

    v_rec emp % roWtype;

    Start

    PROC_RETURN_CV(10,'CLERK',v_local_cv);

    LOOP

    SEEK v_local_cv INTO v_rec;

    EXIT WHEN v_local_cv % NOTFOUND;

    DBMS_OUTPUT. PUT_LINE ('EMPNO' | v_rec.empno);

    END LOOP;

    END;

    /

    But when I realize the proc that called the first proc returns error, below

    BEGIN

    PROC_CALL_CV();

    END;

    ORA-01007: variable not in select list

    ORA-06512: at "SCOTT. PROC_CALL_CV', line 7

    ORA-06512: at line 2

    01007 00000 - "variable not in select list.

    Can someone correct me?

    Thank you

    Ann

    You said that the return type is an emp % rowtype - the entire line - all columns

    You return all the columns in the select.

    Either refund * or set a record type

  • Scheduled task that injects temporary tables.

    Hi, I have a 3rd party app that tables temporary creats and never drops them. I need to come up with a script that I can run all the thirty days and clean them. Here are select it I start to find. I don't know how to format the drop statement.

    Select master, object_name, created from dba_objects where object_name like '% DWTEMP' and creates > 1 May 11 ' and object_type = 'TABLE ';

    Thank you

    Bryan

    880878 wrote:
    That's what I finally came up with. I turned into a stored procedure. It is planned to run once a month. Thanks for all the help.

    CREATE PROCEDURE "SYS." "' PURGE_INSIGHT_TEMP ' as

    BEGIN
    FOR tbl IN (select master, object_name, created
    from dba_objects
    where object_name like 'DWTEMP % '.
    and trunc (created, 'month') = trunc (trunc (sysdate, 'month')-1, 'month')
    and object_type = 'TABLE')
    LOOP
    RUN IMMEDIATELY 'DROP TABLE ' | tbl. Owner | '.' || tbl.object_name | "PURGE."
    END LOOP;
    END;

    I would not create in the SYS schema if I were you.

    The account is held and exclusivity (should be anyway) Oracle. Nothing good can come from using it in this way.

  • Modal calling report that calls another Page to the APEX 5

    I have an interesting question here for the community...

    Using APEX, theme 42 5.  I have a report with a button that will call a modal form.  on the form modal is a LOV which will set a value to the calling page.  If the value returned to the calling page, I then need to redirect to another page in the application by assigning a page element on the new page with the value that I have just received from the modal page.

    I have everything up to the second rec = direct working in a test environment and I have problems with redirection...

    All those who want to watch here is the information:

    URL: https://glassfish1.revion.com/apex/f?p=4550:1:23425296545047:

    workspace: homeworld

    user name: demo

    password: demo

    application name: emp demo test (143)

    I have built dynamic actions to get the value of the page where I need but when try to redirect to the page and set the page item, that I don't get the redirection to work...

    Thank you

    Tony Miller
    Los Alamos, NM

    Hi Tony,.

    I'm just curious... If it worked for you?

    Thank you

    Pavel

  • Create stationary column that references another column

    I have an analysis with a single column, region.

    I have an another regional director named column that are not included in the analysis.

    When I hover over a value in the column of the region, I would like to see the hover popup to show me the value in the field regional manager.

    I know how to create the first part of the hover using something like this as a custom display format:
    [html]<span title=\""Manager is: "\">#,###
    But I can't understand how I can put the value of the regional Manager column after the "is:" to make the hover says something like Manager is: Sam Smith ".

    Is this possible?

    Don't worry, it's not ;-)

    in any case, that you are looking for this formula in the column:

    '' || "Region"."Region" || ''
    

    Then simply change the data format of the column to format HTML and your Uncle Bob.

  • trigger that updates another table?

    Hi all

    I'm trying to define a trigger on tableA:

    Name ID Pk Null column?     Default data Type

    TITLE 1 Y VARCHAR2 (5 Char)
    FULLNAME 2 Y VARCHAR2 (80 Char)
    UNIVERSITYID 3 N VARCHAR2 (9 Char)
    APPL_NO 4 N NUMBER (11)
    APPL_NO_HASH 5 N VARCHAR2 (4000 bytes)
    OFFER_EXPIRATION_DATE 6 DATE
    APPLICATION_CANCEL_DATE 7 Y DATE
    ROOM_HALL 8 Y VARCHAR2 (39 bytes)
    ACCEPTED_FLAG 9 Y CHAR (1 byte)
    TIMESTAMP (6) Y ACCEPTED_DATE 10
    RECORD_CREATE_DATE 11 Y TIMESTAMP (6) systimestamp


    When the ACCEPTED_FLAG column is updated, I want an execution of the trigger and upadate a column with sysdate on another table...

    That's what I have so far:



    CREATE OR REPLACE TRIGGER INTER_SCHEMA. ACCEPTED_DATE_TRIGGER
    AFTER UPDATE
    OF ACCEPTED_FLAG
    WE scheme. ACCOM_OFFER_ACCEPTANCE
    REFERENCING NEW AS new OLD IN the old
    FOR EACH LINE
    BEGIN
    insert id whre table_b (column) values (sysdate) =?
    END;



    Any advice would be appretiated.

    Thank you very much

    Trigger knows the records that are updated. Trigger can use the recordings ": OLD ' pointer.
    You should have the code to something like:

    update table_b set table_b.column = sysdate) whre id = :old.table_b_id;
    

    And column mus "table_b_id" exist in the ACCOM_OFFER_ACCEPTANCE table.

  • I just downloaded Aurora, but I've heard that using another version could damage my profile?

    I have a desktop computer and a laptop. I installed Firefox 4 on both, but today I decided to install Aurora on the desktop and I plan on installing all night on my laptop. My plan is to use the latest versions as my default browser and Firefox 4, if a site does not work. I have Sync configured to synchronize everything between the two computers.
    I read on several websites that since each version uses the same profile, very bad things could happen to this profile, if you use different versions on the same machine.
    Is this true for my situation? Would be my favorites or passwords or anything either be lost or damaged? Sync syncs my information for all the different versions?
    For example, is it OK to run every night on my laptop and Aurora on my desk and use Firefox 4 when necessary and have Sync sync my passwords and other information?

    I hope this makes sense. Thank you very much for your help!

    Do a custom installation and install each version in its own folder in program using several versions of Firefox.

    Create a new profile exclusively for each version of Firefox and create a shortcut on the desktop with Pei 'profile' attached to the target to launch each version of Firefox with its own profile.

    See these articles for more information mozillaZine KB:

  • Error 80072efe on the same modem and connection that update another pc

    I have a strange problem here

    Let me explain, he

    I have a pc and recently to buy a laptop without any OS

    so I bought a windows 7 Home premium and install it on

    then I want to update with windows update with my internet connection PC (detach the RJ-45 cable from the back of my pc and connect to my laptop and set up IP)

    but I have error 80072efe

    Yet once, plug the cable into my pc and check the update of windows on my pc and he was right

    I don't know if I could explain it clearly or not

    Thank you

    Q: what application or anti-virus security suite is installed...
    A: anything

    Chances are that you see the effects of a hijackware infection. See...

    Cleaning a compromised system
         http://TechNet.Microsoft.com/en-us/library/cc700813.aspx

    Personal data backup (which none should be considered 100% reliable at this point) then format the HARD disk and do a clean install of Windows. Please note that a repair installation (upgrade AKA on-site) will NOT fix it!

    HOW to do a clean install of Win7: see "using the custom installation option" and formatting the hard drive section ofhttp://windows.microsoft.com/en-us/windows7/Installing-and-reinstalling-Windows-7

    After the new installation, you will have the equivalent of a "new computer" in order to take care of EVERYTHING on the next page before connecting the machine to the internet or one local network (i.e. other computers) AND BEFORE to plug in a flash, SD card, or any other external drive to the computer otherwise:

    4 steps to help protect your new computer before going online
         http://www.Microsoft.com/security/pypc.aspx

    Other useful references include:

    Risks & benefits of P2P file sharing
    http://www.Microsoft.com/protect/data/downloadfileshare/filesharing.aspx
    http://blogs.technet.com/MMPC/archive/2008/10/06/the-cost-of-free-software.aspx

    Measures to help prevent spyware
    http://www.Microsoft.com/security/spyware/prevent.aspx

    Measures to help prevent computer worms
    http://www.Microsoft.com/security/worms/prevent.aspx

    Avoid fake security software!
    http://www.Microsoft.com/security/antivirus/rogue.aspx

    If you need additional assistance with the clean install, please start a new thread in this forum:http://social.answers.microsoft.com/Forums/en-US/w7repair/threads

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • How to create a .bat file that references another hard drive?

    I am trying to create a simple .bat file that creates a text file listing all the files in the folder designated on the top line. However when I tried the version below, he created a list of the files on my desktop instead. How can I make 'look' the path on my internal D drive?

    CD D:\inetpub\kthings
    dir > C:\tftDocuments.txt
    Start C:\tftDocuments.txt

    Hello

    Information about batch files
    http://www.computerhope.com/batch.htm

    First, you need to access the real player if you're not already on it.

    D:
    CD D:\inetpub\kthings
    dir > C:\tftDocuments.txt

    You can display on the screen or have an application to display.

    TYPE tftDocuments.txt

    Or

    Notepad tytDocuments.txt

    -------------------------------------

    Maybe an application such as this one would be useful.

    KarenWare - printer - free directory
    http://www.KarenWare.com/PowerTools/ptdirprn.asp

    I hope this helps.

  • AP in client mode Setup that feeds another router

    Try as I can... I'm not smart enough for this... Help, please.
    Set up a WiFi AP with my neighbor.
    His wireless router at 192.168.1.1
    My AP (to his house) in client mode to 192.168.1.169 (static address with the address only on his router)

    The AP feeds my router which is connected via hard wire to my computer...
    The question is this.
    What should be the address of the router in my house and what should be the address of my computer so therer is no conflict?
    I did in the past, but not enough to remember how I did it... MY BAD. (Children, wife, mother-in-law all draw at home to get there, so they can connect to other PC's in the House to my wireless router) STRESS, STRESS... STRESS
    Any help you can give would be wonderful...
    Thank you

    Hi big island,

    It depends on if you want to share files and be "on the same network" as your neighbor.

    • If you want everyone to be on the same network and be able to share files...
    1. Book an unused IP address on the network on the router of your neighbor (should start 192.168.1.X)
    2. Take that intellectual property and set it as your router static IP address
    3. Disable the DHCP on the router
    4. Connect the cable from the AP to the router on one of the ethernet LAN andnot the Internet marked Jack (usually 4)
    5. Connect your computer to the router and it should withdraw an IP address automatically from your neighbor router
    • If you want to separate the networks so that your neighbor can't see your computers or shared items...
    1. Change the IP address of your router 192.168.2.1 (the IP address doesn't have to be exactly this number, just as long as one of the first 3 numbers are different from its network. In such a case, I changed the third digit to 2 in of 1 your neighbor)
    2. Change the DHCP on your router to match the IP addressing scheme above by assigning192.168.2.X . It's a good idea to preform both steps 1 and 2 at the same time on the router. (After that perform you this step, that you may need to turn off your router and then power on and the back refresh the IP address of your system)
    3. Connect the cable from the AP to plug the router's Internet and not one of the 4 ethernet LAN
    4. Connect your computer to the network and the system will automatically retrieve an IP address from your router
    It should be noted that the second option still allows access to computers and files of your neighbor. You're always too depending on your neighbor's router firewall settings. If there were 2 companies sharing an internet connection I would fix the whole network up like this:

                                                      1 router company 
    Internet Modem-> router/Hub<>
    The company 2 router
    Of course, in your case, do the above may want to recreate the wheel! But it's still the best approach :)
    I hope that answers your question!

    Cody C
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • I am trying to install a webcam & get a message that indicates another installation is already in progress, how to close it___

    I get a message from another installation is in progress

    It comes with Vista, upgrade install and activate Forum.

    http://social.answers.Microsoft.com/forums/en-us/category/windowsvista/

    They will help you in the Vista Hardware Forum at the above address.

    See you soon. Mick Murphy - Microsoft partner

  • Change the fill color of the text field if the text is equal to that in another field

    I am looking for a way to highlight when two cells corresponding.  Because instance if text in cell 1 is Yes and the text in cell 2 is Yes, I want both of you to turn green.  Otherwise, they may become red.

    I tried several bits of script that I found online, but none seems not to work.  Could also be the fact that I'm not put in the right place?  It's only the second time that I deal with any script in LiveCycle.

    The more information you can give me the best!

    Thank you

    Way

    Thought about it--for others who might struggle with things I struggle with that:

    If (Cell1.rawValue! = Cell2.rawValue) this.fillColor = "255,0,0";

    else this.fillColor = "255,255,0;

    In the field of the output of the cells you want colorful, Cell1 and Cell2 being replaced by binding to the cells needed.

  • HotSync two different Palm trees that use another version of Palm Desktop

    What I need to know, is that I have a Palm III & a Palm Zire 31 the two that use a different version of Palm Destop can install both versions of Palm Desktop on one computer and then be able to hotsync the two devices. Or two of them will be hotsync with the same version of Palm Desktop.

    Palm Desktop 4.1.4e for Palm Zire 31

    Palm Desktop 4.1.4 for the Palm III

    Hello obsolete.

    I have not tried your specific combination of devices before, but I think it should work.  I install Palm Desktop 4.1.4 and then synchronize the Palm III first.  Once you know that the Palm III is synchronize normally, I would Setup then Palm Desktop 4.1.4e above 4.1.4 upgrade.  Then synchronize the Palm III to ensure that it always works.  If this is the case, then try to sync your Zire 31.

    Since you will be synchronizing two devices on the same computer, I recommend that each device has it's own unique HotSync ID to prevent things from going bad on you.

    Alan G

Maybe you are looking for