How to run trigger/procedure into debug mode

Hi,
I have created trigger. i would like to run this into debug mode. Please suggest that how to do through sqldeveloper or sql command prompt.
Regards,
Venkat

- install PL/SQL developer (trial available at www.allroundautomations.com)
- connect to your DB
- in the tree on your left right click your trigger and select "Add debug information"
- open a new test window (file - new - test window)
- -- Created on 20-2-2012 by RMARTENS
declare
  -- Local variables here
  i integer;
begin
  -- Test statements here
  insert into table (col1, col2) values ('cal1', 'val2');
end;- now click the "Start debugger" button and you'll be able to step into all the steps.
- the idea is that you do a "step into" on your insert statement (which offcourse you need to alter according to your table)
good luck!
Regards,
Richard
blog: http://blog.warp11.nl
twitter: @rhjmartens
If this question is answered, please mark the thread as closed and assign points where earned..
Edited by: rima on 20-feb-2012 11:37

Similar Messages

  • How to run the forms under debug Mode?

    Hi,
    I run my form under debug mode by introducing a break point on a trigger. But i am receive the following error how to solve this issue.
    JVM aborting and followed by the following one.
    FRM-92101: There was a failure in the forms server during startup.
    This could happend due to invalid configuration.
    Please look into the Web-server log files for details.and additional information from Java console.
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    Forms Applet version is : 10.1.2.0
    oracle.forms.net.ConnectionException: Forms session <5> aborted: unable to communicate with runtime process.
         at oracle.forms.net.ConnectionException.createConnectionException(Unknown Source)
         at oracle.forms.net.HTTPNStream.getResponse(Unknown Source)
         at oracle.forms.net.HTTPNStream.doFlush(Unknown Source)
         at oracle.forms.net.HTTPNStream.flush(Unknown Source)
         at java.io.DataOutputStream.flush(Unknown Source)
         at oracle.forms.net.StreamMessageWriter.run(Unknown Source)I am running on my standalone machine.
    Where and what file i want to look into this to solve this issue.
    Good help will be appreciated. Thank in advance.
    kanish

    Kanish,
    Lets start with a few of the basics, shall we. What JVM are you using (Jinit or Sun JRE and the version)? Based on the error you posted, I can infer that you are using Forms 10.1.2.0? Are you running a custom configuration in the formsweb.cfg and default.env? This could be the cause if you have modified the CLASSPATH setting in the default.env excluding core .jar files.
    Typically, the FRM-92101 error is caused by a Java error; either a .jar is not found or invalid or not compatible with JVM, etc.
    Have you tried clearing your Java Cache to check for a corrupt .jar?
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • How to run labview program in debugging mode in windows 95 version

    Respected all,
    I am facing probelm while running probe.vi.
    I received this command "connection to acquisition board was not found" when i run labview program.
    I  am using labview 5.1, fieldpoint FP 1000, NI-DAQ 6.5, Field point explorer version 1.6, Measurement and Automation Explorer 1.0.1.
    I would kindly request you please help me how to run my program probe.vi in debugging mode in windows 95 version, so that i can locate where error occurs.
    Thanking You
    Yours faithfully
    M.Vijay

    Respected Norbert,
    Thank you very much to for your help.
    Norbert : Possible reasons are e.g. wrong IDs for measurement devices. If the error is connect to the FieldPoint, it is possible that it isn't configured correctly.
     I am using Field point explorer 1.6, The Field point instrument FP 1000 and RS-232 port is using. It is confirmed that the field point instrument is working properly by LED light indication test.
    Norbert: It sound like you are using DAQ devices (like PCI MIO 6952E) in the application. Are you sure that you select the correct device ID for this?
    I am asking you to know, If i using Labview and  Fieldpoint instrument FP 1000 to monitor my parameter interms of All, Channel 0, Channel 1, Channel 2, Channel 3, Channel 4, Channel 5, Channel 6, Channel 7 for my measurement.
    But now i need to solve the command connection to acquisition board was not found, The expert say this command is due to there was no AT-AO-10 Analog Output board was present in CPU.
    I do not find AT-AO-10 Analog Output board in my CPU, Previously the instrument was worked perfectly by other person who assembled everthing to measure temperature.
    The only aswer know send by previous person is if my task does not imply the use of a DAQ you probably have to locate where the DAQ driver is called and exclude it from the program. try to run the program in debugging mode so that you can locate where the error occurs.
    I do not know how to proceed his instruction. So i would kindly request you to please help me to solve my probelm.
    I also removed AT-AO-10 software from device manager >> Data Acquisition system >>  AT-AO-10 just now.
    I also find GPIB version 1.30, when i remove in add or remove program, it say that Error removing the GPIB.
    I am eagerly waiting for your help.
    Thanking You
    Yours faithfully
    M.vijay

  • SRM 7.0 - Unable / How to get into DEBUGGING mode in BADI

    Hello SAPions,
    I am unable to get into debugging mode from WebDynpro Portal screen to R/3 BADI in SRM 7.0 .
    I placed a breakpoint in the BADI, and logged into the portal screen.
    However, in SRM5.0, to get into debugging mode from ITS, we place a break point in the BADI, when we browse the ITS link from the IE browser, we will be able to get into debuggin mode.
    Any other way ?
    Regards,
    Ashwin.

    Hello,
    Please check the following:
    1. Application server name, the SAP GUI and the portal should be logged into the same application server.
    2. You should be logged in with the same User in both SAP GUI and the Portal.
    3. External debugging should be enabled for the User in SAP GUI.
    4. Also try checking the check box , IP Matching . This can be done as below:
    Utilities -> Settings ->  ABAP Editor -> Debugging ->  IP Matching.
    Also please check the following in the above link , if you have the same user name here with which you have logged onto Portal and the New Debugger Radio Button is Selected.
    Hope this helps.
    Best Regards,
    Sapna

  • Remittance advice layout --can't go into debugging mode from F110

    Hi All,
    I need to do some changes in layout ZF110_DDRF_DE as per customer requirements for remittance layout printing , payment method ' V' .I want to debug the script .
    When I use the F110 Trannsaction for payment run , it is creating output in spool directly with going into debugger even though I activated the debugger for script .
    1) I think F110 creating a background job for printing.can  any body tell me if there is another transaction to run the payment so that i can go into debugging mode ?.
    Many thanks ,
    Dharma

    Hi dharma,
    Yes, if u want script in debug modeyou should active debugger in both program and script level. Active debug from script side and put break point in your program and run F110 with all neccessary input values. Then if u select print priview then your script will be open in debugging mode. Hopes this help you.
    Regards,
    Kumar

  • Customer Exit var (basedOn 0P_KEYDT) ABAP error - Going into Debug mode

    Hello All,
    I have created a BEX Query based on Infoset, so i couldnt use '0P_KEYDT' SAP Exit in a variable.
    Instead i created a Z 'Customer exit' with the same code.
    But when i execute query in RSRT, query is going into Debug mode.
    InfoProviders are all active, when i remove the Z 'Customer Exit' from the query then query is running fine. So i see that the problem is with the Z 'Customer exit' code.
    Here is the 0P_KEYDT code:
    FUNCTION RSVAREXIT_0P_KEYDT.
    *"*"Lokale Schnittstelle:
    *"  IMPORTING
    *"     VALUE(I_VNAM) LIKE  RSZGLOBV-VNAM
    *"     VALUE(I_VARTYP) LIKE  RSZGLOBV-VARTYP
    *"     VALUE(I_IOBJNM) LIKE  RSZGLOBV-IOBJNM
    *"     VALUE(I_S_COB_PRO) TYPE  RSD_S_COB_PRO
    *"     VALUE(I_S_RKB1D) TYPE  RSR_S_RKB1D
    *"     VALUE(I_S_RKB1F) TYPE  RRO01_S_RKB1F
    *"     VALUE(I_THX_VAR) TYPE  RRO01_THX_VAR
    *"     VALUE(I_STEP) TYPE  I DEFAULT 0
    *"  EXPORTING
    *"     VALUE(E_T_RANGE) TYPE  RSR_T_RANGESID
    *"  EXCEPTIONS
    *"      UNKNOWN_VARIABLE
    *"      UNEXPECTED_VARTYPE
    *"      VARIABLE_INITIAL
      DATA:
          LS_RA_SID  TYPE   RSR_S_RANGESID.
      IF I_STEP EQ 0 OR                    " without popup or
         I_STEP EQ 1.                      " before popup
        REFRESH E_T_RANGE.
        CLEAR: LS_RA_SID.
        LS_RA_SID-SIGN = 'I'.
        LS_RA_SID-OPT = 'EQ'.
        LS_RA_SID-LOW = SY-DATUM.
        APPEND LS_RA_SID TO E_T_RANGE.
      ENDIF.
    ENDFUNCTION.
    Here is Z 'Cusotmer Exit Code:  (Defined I-STEP and E_T_RANGE)
    method ZPKEYDT.
      Data: ls_var_range TYPE rrs0_s_var_range,
            l_s_range TYPE rsr_s_rangesid.
      IF  I_STEP EQ 1.                  
    REFRESH e_t_range.
        CLEAR: l_s_range.
        l_s_range-SIGN = 'I'.
        l_s_range-OPT = 'EQ'.
        l_s_range-LOW = sy-datum.
        APPEND l_s_range TO e_t_range.
      ENDIF.
    endmethod. 
    I could really appreciate your help!
    Thanks in advance,
    DC

    Hi DeeCh.
    If you want to populate the value before the variabel screen input.then please follow below code
    case i_vnam.
      when 'ZPKEYDT'.
      if i_step = 1.
        l_s_range-low  = sy-datum..
          l_s_range-sign = 'I'.
          l_s_range-opt = 'EQ'.
          APPEND l_s_range TO e_t_range.
          clear l_s_range.
              endif.
              endcase.
    Regards,
    Nanda.S

  • HT201263 how to place your device into recovery mode without home button?

    How to place your device into recovery mode without home button?

    Try these programs:
    RecBoot: Easy Way to Put iPhone into Recovery Mode
    The Firmware Umbrella - TinyUmbrella

  • How to run the procedure

    Procedure test_proc(Req_Hdr_id IN VARCHAR2, uname IN VARCHAR2
    is
    l_request_id NUMBER:=0;
    p_resp_appl_id NUMBER :=401;
    p_resp_id NUMBER := 20634;
    p_user_id NUMBER := 5993;
    BEGIN
    update xxkfupm01.kfupm_mcr_request_header
    set status='Under_Proc'
    where request_hdr_id=Req_Hdr_id;
    commit;
    This is procedure is define in package .how to run this procedure.
    Regards
    Arif
    Edited by: user11309801 on Jan 2, 2011 9:38 PM

    Try This:-
    DECLARE
    req_hdr_id VARCHAR2 (200);
    uname VARCHAR2 (200);
    BEGIN
    req_hdr_id := NULL;
    uname := NULL;
    <<PackageName>>.test_proc (req_hdr_id, uname);
    COMMIT;
    END;
    Also ,add exceptions in the procedure.

  • How to run my macbook in windows mode

    how to run my macbook in windows mode, i have a software i need to install on my macbookpro but this software can not be run on the macbook pro software. i was told i can rum my apple in a windows mode?????

    Yes, called BootCamp. Enjoy:  http://www.apple.com/support/bootcamp/
    Or you can run the Windows OS virtualized using VMWare Fusion ($49), Parallels Desktop ($99) or Oracle VirtualBox (free). This lets you run both OS at the same time: MacOS is the host and Windows the guest.

  • Running smq2 queues in debug mode

    Hi,
    Can anyone tell me how to successfully run an inbound queue in debug mode.
    Following are the steps undertaken.
    I locked the queue in SMQ1. The Queue is set to STOP state.
    I then triggered an sBdoc flow into CRM.
    I am expecting the sBdoc to be in an intermediate state, but to my surprise it is coming as Fully Processed.
    At this point, setting Debug mode in smq2 and Unlocking the queue does not help me analyse the bdoc/process flow as the bdoc is allready processed.
    Any inputs in this regard would be helpful.
    Thanks & Regards
    Ron.

    Hi Ron,
    Please check below blog, hope it helps u.
    Regards,
    Deven
    /people/lokesh.aggarwal/blog/2008/02/27/debugging-crm-middleware--sales-document

  • How to start the server in debug mode

    HI
    Im working on weblogic server 8.1 sp. My requirement is to run the application in hosted on weblogic server with out restaring the server i.e dynamiically turn to debug mode with out stopping. IM using Log4j method for logging. please let me know how to do it... if any one have sample java code
    Thanks & regards
    shiva

    I am not sure, how can you do it on the fly, but if you want to restart the server here are the parameters you need to add to the java arguments
    -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=$Port
    (where Port will be any port you want to connect to).
    Thanks
    Togotutor
    <b><a class="jive-link-external" href="http://www.togotutor.com">http://www.togotutor.com</a> (Learn Programming and Administration for Free)</b>
    Edited by: togotutor on Aug 12, 2010 3:44 PM

  • How to run stored procedure in run-time not in design

    hello:
    I have download the ODT software
    and i installed VS 2003 environment
    amd i have oracle 9i on the server and oralce client on my computer
    and I know how to run the ODT inside the VS2003 and how to use it
    I built a package and inside it a procedure that does not take any parameter
    PROCEDURE "TEST1" IS
    BEGIN
    insert into emp (empno,ename)
    values (3003,'jon');
    END "TEST1";
    this procedure is valid and I can run it in ODT (by right click over the procedure name and select "Run")
    but when I drag it and drop this procedure on a form in application I have a dialog with errors that's not understandable
    for example:
    ORA-06550: line 1, column 27
    PLS-00315: PL/SQL TABLE Declarations must currently use binary_integer indexes
    and many other errors
    ok I want to know how I can call the procedure in the code and give to it the in parameters and then get the out parameters
    I hope to find replay
    thank you

    Hi,
    You have to take care of certain measures other thatn just drag and drop the Oracle procedure to the .NET form.
    Following is a simple code to call an Oracle procedure from the C#.Net form
    ============================================================
    using System;
    using System.Collections;
    using System.ComponentModel;
    using System.Drawing;
    using System.Web;
    using System.Web.SessionState;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.HtmlControls;
    using System.Data;
    using Oracle.DataAccess.Client;
    using Oracle.DataAccess.Types;
    namespace TEST1
         public class CallingProcs : System.Web.UI.Page
              protected System.Web.UI.WebControls.Button Button1;
              protected System.Web.UI.WebControls.TextBox txtYear;
              OracleConnection conn;
              private void Page_Load(object sender, System.EventArgs e)
                   // Put user code to initialize the page here
                   string oradb = "Data Source=ORA1;User Id=SCOTT;Password=TIGER;";
    conn = new OracleConnection(oradb);
                   conn.Open();
              #region Web Form Designer generated code
              override protected void OnInit(EventArgs e)
                   // CODEGEN: This call is required by the ASP.NET Web Form Designer.
                   InitializeComponent();
                   base.OnInit(e);
              /// <summary>
              /// Required method for Designer support - do not modify
              /// the contents of this method with the code editor.
              /// </summary>
              private void InitializeComponent()
                   this.Button1.Click += new System.EventHandler(this.Button1_Click);
                   this.Load += new System.EventHandler(this.Page_Load);
              #endregion
              private void Button1_Click(object sender, System.EventArgs e)
                   //OracleCommand dbcmd = new OracleCommand();
                   OracleCommand dbcmd = conn.CreateCommand ();
                   dbcmd.CommandType = CommandType.StoredProcedure;
                   dbcmd.CommandText = "TEST1";
                   try
                        dbcmd.ExecuteNonQuery ();
                        Response.Write("Excecuted succesfully");
                   catch(Exception ex)
                        Response.Write(ex.Message);
    ============================================================
    Most of the above code is generated automatically. I am using Visual Studio .NET 2003 , C# for it.
    The design view of the form contains a button named 'Button1' and the code is aimed to call the procedure 'TEST1' on clicking the button.
    Hope this will give you a start to using oracle from .NET

  • How to put iPod 5G into retail mode

    How can I put iPod 5G INTO RETAIL MODE AS I RUN A PHONE SHOP

    What do you mean by retail mode?
    Apple uses their own custom iOS mods to have iOS devices for demonstration in their stores.
    You can do some restrictions of use of the iOS device by using Guided Access. See:
    http://support.apple.com/kb/ht5509

  • How to call Oracle Procedure into ODI

    Hi,
    I'm using ODI 10g.
    Before executing the interface in a package i wanted to place my Procedure.
    I created following procedure in d/b (target)
    CREATE OR REPLACE PROCEDURE TEST_MY_NEW_PROCE
    AS
    BEGIN
    DELETE FROM EMPLOYEE_TABLE
    WHERE EMPLOPYEE_ID LIKE 'P%';
    COMMIT;
    END;
    The Procedure is working fine in target database.
    Now, before executing my interface i would like to run this procedure in my package. So, can some one please help me how to call this oracle procedure (Created in Target schema) into ODI and run this.
    thank you.

    Hi GRK,
    You can create an ODI procedure, add a single step, choose Oracle as Technology and your target schema.
    Then just call it through a pl/sql block :
    BEGIN
    TEST_MY_NEW_PROCE;
    END;Then drag this ODI procedure in your package.
    Regards,
    JeromeFr

  • How to run a test in interactive mode?

    If I want to run a test in interactive mode, how do I set it up?
    For vcsi, there is a compile time option "-debug" and then in run
    time, you could execute "./simv -gui". Do you have such flows available?

    Hi
    You can define 2 radio button one foreground and otherfor background then
    for background use FM BP_JOB_CREATE or BKK_UPT_DISP_JOBS_START  or DB2_SCHEDULE_JOB_IMMED
    Regards
    Shiva

Maybe you are looking for