How to recompile trigger

Hi all,
Could you tell me the statement for recompiling the trigger
Thanx

Hi,
Check the below sql statement.
============
ALTER TRIGGER my_trigger COMPILE;
============
~Vinod

Similar Messages

  • How to recompile the entire schema's INVALID objects in one go?

    Hi,
    How to recompile the entire schema's invalid database objects (such as package, function, procedure, trigger etc) in one go?
    Please advise.
    Thank you.

    I often use this SQL.
    select 'Alter ' || OBJECT_TYPE || ' ' || OBJECT_NAME || ' compile;' as DDL
      from user_objects
    where STATUS = 'INVALID';I sometimes use this SQL.
    declare
        WK_InvalidCount     pls_Integer :=0;
        WK_PrevInvalidCount pls_Integer :=0;
    begin
        loop
            for rec_work in (select a.object_type,a.object_name from user_objects a ,user_object_size b
                             where  a.status='INVALID' and a.object_name=b.name order by b.code_size
                            ) loop
                dbms_ddl.alter_compile(rec_work.object_type,user,rec_work.object_name);
                DBMS_Output.Put_Line(rec_work.object_name || 'is recompiles');
            end loop;
            select count(*) into WK_InvalidCount from user_objects where status='INVALID';
            if WK_InvalidCount=0 then
                DBMS_Output.Put_Line('InvalidObject none');
                exit;
            elsif WK_InvalidCount != WK_PrevInvalidCount then
                WK_PrevInvalidCount := WK_InvalidCount;
            else
                DBMS_Output.Put_Line('InvalidObjects remain' || to_char(WK_InvalidCount));
                exit;
            end if;
        end loop;
    end;
    /

  • How can I trigger an onchange event for hidden or never displayed item

    hi -- I have an item that I don't want displayed on my page -- more info than the user wants or needs; call it B. It needs to be
    set by an onchange event from a visible item (A); then, the change of B triggers on onchange to set another item (visible) -- C.
    When B is visible on the page, it all works. If I make it hidden or conditionally never displayed, it doesn't work. From the looks of
    it, B never gets changed.
    How can I trigger this onchange event (from B to set C) with B not visible?
    Thanks,
    Carol

    hi Varad -- Probably more info than you want... but here's the whole chain of events.
    Hope it answers your question.
    C
    **** 1
    In A's html form element attributes (simplified; I took out the irrelevant call to jsLookupValue that sets another item).
    onchange='jsLookupValue($v("P142_SITE_ID"),"site_id","P142_OBJECTTYPE_ID","objecttype_id","hdb_site_syn");'
    **** 2
    jsLookupValue is the following.
    The statement that actually sets the value of B is: $s(dest_item_name, jsonobj.row[0].RETURN_VAL);
    function jsLookupValue(source_item_value, source_column_name, dest_item_name, dest_column_name, lookup_table_name){
    // Continue only if there are valid values
    if (valueOf(source_column_name)&&valueOf(dest_item_name)&&valueOf(dest_column_name)&&valueOf(lookup_table_name)){
    //Check to see if the source_item_value is null (either all spaces or empty
    //If it is, set the dest item to null, but only if it's not already --
    //otherwise we get into a loop.
    source_item_value = trim(source_item_value);
    dest_item_value = trim($v(dest_item_name));
    if (source_item_value.length==0) {
    if (dest_item_value.length != 0) {
    $s(dest_item_name, null);
    }else{
    //This is the AJAX call to the Application Process from step 1
    ajaxRequest = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=LOOKUP_VALUE',0);
    //Here we are adding that x01 parameter we use in the app process with the value of the objecttype_name field
    ajaxRequest.addParam('x01', source_item_value);
    ajaxRequest.addParam('x02', source_column_name);
    ajaxRequest.addParam('x03', dest_item_name);
    ajaxRequest.addParam('x04', dest_column_name);
    ajaxRequest.addParam('x05', lookup_table_name);
    //Now do the actual AJAX call and put the result in ajaxResponse
    ajaxResponse = ajaxRequest.get();
    //Check if there is a response
    if (ajaxResponse) {
    //We need to format the JSON return string and put it in a JSON object
    // the formatting is done by a function in the external JSON library
    // the jsonobj can be used to retrieve the data returned by the App process
    var jsonobj= ajaxResponse.parseJSON();
    // And finally, we set the DNAME item with the value of the jsonobj.DNAME
    // an array was created in the object with the name row, so that is why you have to include row[0] to retrieve the data
    if (jsonobj.row[0].RETURN_VAL != $v(dest_item_name)) {
    $s(dest_item_name, jsonobj.row[0].RETURN_VAL);
    }else{
    } //not setting
    }else{
    alert('No response from app process');
    } //no response
    } //no source item value
    } //no bad nulls
    } //function
    **** 3
    I won't bore you with app process LOOKUP_VALUE. It just builds an sql query that gets the value for B, aliased to RETURN_VAL.

  • How can we trigger an IDOC based on Orders creation.

    Hiii...experts,
                            After searching alot in SDN i am taking this very commonly asked to experts in the hope of a better understanding.
    If i create a sales order means.. i want to trigger a IDOC based on certain Condition on ORDER data .. how can we do this..
    when ever i'm creating a sales order it should be automatically trigger a IDOC , Because when ever sales ordre was created in R/3 system it should be transferred to some destination...
    And pls tell me about the reports that does the job of collecting required data from the sales order and converts it into a IDOC.
    so, how can we trigger an IDOC based on Orders creation..
    pls help.
    Ram.

    Use IDOC_OUTPUT_ORDERS for creating IDOC
    you need to maintain condition records & output type
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Apr 10, 2008 4:18 PM

  • How to re-trigger workitem in SAP

    Hi All,
    When employee submitted leave request, it has not gone to correct line manager. We have applied OSS note.
    Now we have logically deleted work items. Now we would like to re-trigger same workitem. Could you please advice how to re-trigger.
    Regards
    AB

    once you deleted the workitem logically in administrator mode those workitems will be closed.
    First check that leave request is in which status in t-code PTARQ.
    If it's in SENT status and workflow is in ERROR status then you can re-initiate the task in t-code SWPR.

  • How to recompile SYS.DBMS_REPCAT_FLA

    Hi all,
    I found of this only invalid object in database, I dont know how to recompile this 'SYS.DBMS_REPCAT_FLA', can anyone please help
    object: SYS.DBMS_REPCAT_FLA
    10:23:25 SQL> sho errors
    Errors for PACKAGE BODY SYS.DBMS_REPCAT_FLA:
    LINE/COL ERROR
    0/0 PL/SQL: Compilation unit analysis terminated
    1/14 PLS-00201: identifier 'DBMS_REPCAT_FLA' must be declared
    1/14 PLS-00304: cannot compile body of 'DBMS_REPCAT_FLA' without its
    specification
    10:23:31 SQL> SYS.DBMS_REPCAT_FLA

    Hi Anantha
    Thanks for the reply, I guess since we are not using the replication, we can drop this package, I was so worried since this is the only object that is not compiling in our database,
    thanks everybody for the co operation
    :)

  • How to recompile the COBOL files?

    Hi All,
    Can any one provide documentation for how to recompile the COBOL files by using Net Express 5.1 in command prompt?
    Thanks in advance.
    Thanks & Regards,
    Siva Prasad B

    1. Set up two environment variables, PS_HOME and COBROOT, on the machine from which you'll compile COBOL. (This should be either your file server or a machine that has access to your file server.) You can do this from a DOS command prompt window.
    set PS_HOME=C:\hr840
    set COBROOT=c:\netexpress\base
    2. Open a DOS command prompt window if you do not have one open already, and change directories to
    <PS_HOME>\Setup.
    3. Execute CBLBLD.BAT as follows
    cblbld <compile drive> <compile directory>
    where <compile drive> is the drive where the compile takes place, <compile directory> is the temp
    directory where the compile takes place
    The CBLBLD.BAT file will create the compile directory for you if it does not already exist.
    Note. Make sure to include a space between the <compile drive> and <compile directory> parameters; they are treated as two different parameters within the CBLBLD.BAT batch program. Also ensure that you have write permission to <compile drive> and <compile directory> as the compile process will take place there.
    For example, the following command will take the COBOL source from <PS_HOME>\src\cbl and do the compile process under c:\temp\compile:
    cblbld c: \temp\compile
    Make note of the information that is displayed on the screen while the process is running; it provides the locations of important files that you will need to examine.

  • How to recompile screens

    Hi lads,
    anyone knows how to recompile the screens manually?  I thought it was in SGEN, but it's not.
    thanks in advance,
    cheers,
    Javier
    Edited by: Javier Rocha Rivera on Jan 25, 2008 11:50 AM

    Well, it seems that can be done for BC-FES-GUI guys.

  • How to recompile all invalid objects of APPS?

    Dear all:
    How to recompile all invalid objects of APPS? my environment is ORACLE 9.2.0.5 32bit.
    Regards
    Terry

    varun4dba wrote:
    hi Terry,
    did you tried adadmin?
    thanks.Do you mean:
    Compile/Reload Database Objects
    1. Compile APPS schema
    2. Compile menu information
    3. Recreate grants and synonyms for APPS schema
    4. Compile flexfield data in AOL tables
    5. Reload JAR files to database
    6. Return to Main Menu

  • How can i trigger the workflow from REPORT

    hi,
      my requirement is, whenever Z... Report Is generated there is Icon called print. the write the code for printing icon. if printing Icon fails the workflow will be trigger.
    how can i trigger this from report. and i send attachent of report with mail to next person to sap inbox.
    pls let me know.
    pls give any documentation if you have.
    thanks & Regards
    Sankar.

    Hi,
    Workflow container
      swc_container        lt_container.
      swc_create_container lt_container.
      swc_set_table lt_container '<cont_name>' lit_int_tab.
    CALL FUNCTION 'SWE_EVENT_CREATE'
        EXPORTING
          objtype           = lc_objtyp
          objkey            = lv_objkey
          event             = lc_event_name
        IMPORTING
          event_id          = lv_eventid
        TABLES
          event_container   = lt_container
        EXCEPTIONS
          objtype_not_found = 1
          OTHERS            = 2.
      IF sy-subrc <> 0.
        yv_err_flg = gc_true.
        EXIT.
      ENDIF.
    Rgds,
    Prakash

  • How can i trigger two 5102 PCMCIA by software synchron

    I want to use a mobile measurementsystem with a laptop and two NI5102-PCMCIA. How can i trigger both cards syncron without loosing a channel. how can i trigger both cards syncron by software?

    Sounds like you are interested in triggering two DAQCard-5102. The triggering capabilities of this card are outlined in Chapter 4 of the DAQScope 5102 User Manual:
    http://digital.ni.com/manuals.nsf/websearch/3F29D7C792CBF5478625665E006358EA?OpenDocument&node=132100_US
    One thing to point out is that RTSI lines are not available in the PCMCIA version of the 5102.
    If you have any further questions you can always request support from National Instruments at ni.com/ask
    Regards,
    Russell Blake
    Applications Engineering
    National Instruments
    Engineering Team Leader
    G Systems, www.gsystems.com
    Certified LabVIEW Architect
    Certified Professional Instructor

  • How can i trigger workflow when particular event happens in webdynpro

    how can i trigger workflow when particular event happens in webdynpro

    hi,
    To trigger workflow , use the fm : 'SAP_WAPI_START_WORKFLOW'
    Refer this thread for similar requirment : Workflow in WebDynpro
    Blog : http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417500)ID1564403950DB00699140435432809306End?blog=/pub/wlg/2778

  • How to send trigger pulse for every 0.25 sec until user stops the task?

    Hi All,
    Iam using NI_DAQ PCI 6221 Card for the Data Acquisition.
    Can any body please tell me how to send trigger pulse for every 0.25 sec until the user stop the task??
    Please suggest me the methods I should use to meet this requirement.
    Thanks In Advance,
    Sindhu

    Hi Sindhu,
    Am I correct in thinking that you do not want to use your 6221 to output a digital pulse, but that you are getting a digital pulse from somewhere else that you want to use as a trigger for the analog input?  And you will have more than one trigger?  If this is the case, then it can be accomplished by doing a retriggerable operation.  The way that this works is you use the counter on your board to generate the sample clock for your analog input because analog input cannot do retriggerable operations with its own sample clock.  You can modify the example GenDigPulseTrainContinuous_DigStart that is in the same location as the example I referenced before to be retriggerable by using the property DAQmxSetStartTrigRetriggerable.
    After doing that and testing to make sure that it works, you can setup an analog input task like the example ContAcqVoltageSamples_IntClk but specify the source of the sample clock to be the internal output of the counter you used in the counter portion of your program.  If you need help with the terminal names (You will need to use Ctr0InternalOutput for example), you can reference the NI-DAQmx C Reference Help at Start >> Programs >> National Instruments >> NI-DAQ.  After doing this, you will acquire the same number of samples as the number of pulses you choose to generate in the counter portion of your code every time a trigger is received.
    Also, I have come across an example that does retriggerable analog input using the counter as a sample clock in C++.  Either by using this example or modifying the shipping examples as I stated above you should be able to achieve what you are trying to do.
    Let us know if you have any questions.
    Thanks,
    Laura

  • How can we trigger the BAdI MD_PIR_FLEX_CONS  in a MTS strategy

    Hi All!
    We have 5 Plants: 4 commercial plants and 1 production plant.
    The sales orders are created in the commercial plants with a Make-to-order with consumption Requirements type; (Individual customer stock is an issue of the client).
    Planned independent requirements are entered at finished product level with Consumption indicator for planning requirements 4 - Flexible Consumption for Different MRP Elements (BAdI); we create the purchase order (L - Subcontracting) for the finished product based on the PIR.
    We need to do the consumption and reduction of planned independent requirements based on the purchase orders creation or in the Goods Receipt for the Outbound Delivery.
    We implemented the BAdI MD_PIR_FLEX_CONS but the BAdI isnu2019t trigger for Planning strategy 10 or 40 but. The BAdi is trigger only when Requirements class of the Requirements type of independent requirements as value 2 (Consume planning w/o assembly) in the Consumption indicator and value 3 (Single-item planning) in the Planning Indicator.
    How can we trigger the BAdI in a MTS strategy u2013 The BAdI documentation doesnu2019t mention that can only be used in MTO strategy?
    Thanks.
    Regards.
    Adelino

    Hello Adelino
    Strategy 10 is a special business case without consumption and only with the PIR reduction during the delivery (goods issue). You can see in customizing OPPS that both requirements KSL and LFS are set with "No consumption with customer requirements". In this case, BAdI MD_PIR_FLEX_CONS is not called.
    The BAdI can be used with strategy 40, so please make sure that the consumption indicator of the PIR is set to '4 - Flexible Consumption for Different MRP Elements (BAdI)'.
    BR
    Caetano

  • How to recompile the calendar in ebs R12

    Hi,
    Pl suggest how to recompile calendar again after getting warning.
    I have entered the calendar
    General Ledger : Setup > Financials > Calendars > Accounting
    once I saved after doing some entry it give me the warning.
    "rep-0004 warning unable to open user preference file"
    I did some change as per suggest on "http://appsdbastuff.blogspot.in/2011/12/r12rep-0004-warning-unable-to-open-user.html"
    Copy $ORACLE_HOME/tools/admin/prefs.ora to $HOME
    then I bounce the application.
    when I add the rest entries of calendar & save & close the form it does not compile it again.
    Pls tell how to recompile calendar . the view-request-find last 7 days is showing only the last warning msg.

    Did you try running 'Other - Calendar Validation Report' from your SRS screen?
    Regards,
    Srini

Maybe you are looking for

  • User Exit for Incoming Excise invoice capture(MIGO)-clarification

    Hi all, We are using mySAP ECC 5.0 version with CIN Configuration made. In this, if Excise Duty value is zero, then excise invoice pop-up should not come. But the system asks for it, and the user has to manually change the excise action as 'No Excise

  • How to place untimed event

    I am using Palm Desktop 4.2.1 on Mac. OS X.4. When I list an untimed event it use to stay at the top. but when I view the entire month, the untimed events are in different place on different days. In fact in some places it ends up at the bottom and p

  • Order stuck at post office (not updating for about a week now)

    I've placed an order last week ( Tales of Xillia ) and it was scheduled to be delivered last Wednesday. The parcel has been stuck at the status "Parcel being transferred to local post office" since the 16th. This has happened to me before once and ba

  • Interconnect HTTP Adapter Send / Response

    Hi, I'm setting up an Interconnect HTTP adapter to send XML data to an outside partner. Based upon my XML I get a response XML file from that partner. The XML I'm sending is a list of requests. The response XML is either a list of verifications and/o

  • Linksys wrt54g setup????

    hey, i am having trouble getting my Linksys wrt54g v8 router set up with cable internet. since i can't use their setup disc, i am having to do it manually, but i am not sure what i am doing. i have tried to follow the instructions online, but i still