How to debugg the procedure..pls give example program

how to debugg the procedure..pls give example program

Hi,
There are various methods available to debug your procedure, like dbms_output, utl_file and some third party debugger like PL/SQL developer, TOAD,
SQL Navigator or SQL Developer.
Try any one of those.

Similar Messages

  • How to get the OPC Client (VC++ example program) to work? Having DataSocket problems...

    I'm trying to get our custom software (written in C++ by someone else) to talk with a NI FieldPoint device. The device works fine, and can communicate perfectly with the FieldPoint Explorer.
    Our software uses the ComponentWorks DataSocket ActiveX control (cwds.ocx) to talk with an OPC Server which in turn communicates with the FieldPoint device. (I think this is what happens, but my detective work is far from complete). The call to Create the datasocket results in an error:
    Can't connect to URL step 4 (0x800c000d)
    I think this error comes from our code and I believe that the URL is not the problem.
    This led me to investigate whether the DataSocket is working at all.
    I downloaded the sample application called OPC Client, compiled it into a Release version executable ran it on my client machine.
    I believe the Browse button is supposed to bring up a list of OPC servers, but instead i get the error message:
    OPC Client, Member not found.
    I have installed and registered every possibly related .dll and .ocx file I could find, but believe that I am still missing something. If anyone could help me get this example program working, I think it would go a long way towards solving my overall problem.
    Thanks,
    Eric
    Process Instruments, Inc.

    Another clue: In reading the KB article called "Redistributing a ComponentWorks Application Built with DataSocket" (Document ID: DIRECT-45GPQQ) I came across this line:
    "If you want to use OPC browsing, include BVOPCClient.dll."
    This seemed like the thing to do, but I couldn't find it on my client or development machine. However I did find it on an old development machine that was used to develop the original software that I am working on, and happens to be the only machine on which the OPC Client example program works. (I can't test my code on this machine because the instrument isn't connected to it.)
    I copied the file BVOPCClient.dll into the C:\WINDOWS\SYSTEM directory on my client machine and then tried to register it with regsvr32.exe. I go
    t the following error message:
    c:\windows\system\BVOPCClient.dll was loaded, but the DllRegisterServer entry point was not found. DllRegisterServer may not be exported, or a corrupt version of c:\windows\system\BVOPCClient.dll may be in memory. Consider using PView to detect and remove it.
    I then found a newer version of BVOPCClient.dll on your site and downloaded that with the same result.
    I then reinstalled FieldPoint Explorer 3.0 with all options checked AND ComponentWorks 2.01 with all options checked to see if the .dll would show up and be registered that way. No dice.
    Do you think this .dll may be the key to getting my OPC Server communicating? And if so, what is my problem with registration? I am a newbie when it comes to regsvr32.
    Thanks,
    Eric

  • How Do u Debugg the procedure

    Hi,
    How do u debugg the procedure in oracle
    plx provide the systax
    thanks

    Sorry APC, I really don't agree here, but on the other hand: I wasn't complete.
    Simply because: when my/our code goes to production: no more debugging output is allowed.
    DBMS_OUTPUT is the Devil's DebuggerOh, go ahead, create a/your own myth instead of pointing developers to their responsibilities.
    Until (key)users start accepting changes it's a bless. My point. I love dbms_output.
    I don't use WHEN OTHERS.
    I want people to REthink their requirements.
    I don't want to fool anyone.
    When my code goes to production it's thoroughly tested, by others and by me.
    I follow OTAP/DTAP, perhaps that clears up things.
    Development/Test/Accept/Production.
    During D and T I use 'the Devils Debugger', traces etc.. And I LOVE it.
    After that it's not allowed.
    Sorry I left that out.
    Maybe it's obvious to me, and I need to learn it doesn't work that way globally ;)
    Bottom line: you debug while DEVELOPING and TESTING with REPRESENTATIVE DATASETS.
    In case something goes wrong in production: politics, BS, men in suits not knowing, lots of nervous peeps that told you to do 'this', while 'that' would be a better option and you've said it but they wouldn't listen....
    But isn't that obvious?
    C'mon, obvious = expect things to happen and know how to react.

  • How to use the procedure column in reports

    Hi all
    How to call the procedure in reports as source.. If possible how to use columns of procedure in the layout column of report????

    Hi,
    Your query is not clear.
    1. In subject are you asking total column.
    A. Edit pivot view and go to Rows and click Total BY option here you can find option like (none,before,after) the you can select after it will display total all culms.
    2. I want use the columnC in columnD ? -- Am not understand.
    A. What my understand is you want to see the report only C and D values only.
    If it is correct we can apply filter in report level click column filed and apply not equal to A then it will show only C and D only.
    If it is wrong pleas post me correct one with example. Will try to help out this.
    I am not sure this is what your looking so far.
    Award points it is useful.
    Thanks,
    Satya

  • How to Debugg the smartforms

    Hai genious
    I am a new of the smartforms, please tell me , how to debugg the smartforms,

    hi,
      kindly find the below links this mite give u a start
    [Debugging smartforms and scripts;
    [smart forms;
    [Debugging smartforms;
    Edited by: ROBIN C on Nov 4, 2008 11:35 AM

  • How to retrieve the procedure value and pass the value to a form field

    How to retrieve the procedure value and pass the value to a form field?

    Set property for the field and the value is the actual procedure/function.
    Cheers

  • How to debugg the outbound idoc

    Hi all,
           I am adding one segment standard Invoic02 outbound idoc.
      Executing invoice number ,idoc automaticall y trigger and populate the data.
    1)problem is my new adding segment is not populated idoc level.
    2)I am testind idoc (WE19) showing a 02 error.
    3) How to debugg the outbound idoc.
    Thanks
    Sreddy

    Take a look at your outbound processing code (transaction WE41). When you double click on the entry you are using you can find the function module which is used to process the IDOC. Just set a breakpoint at the beginning of that function module and you can debug the creation of your outbound IDOC.
    Hope that helps,
    Michael

  • How to translate the key words in ABAp program from lower case to upper cas

    How to translate the key words in ABAp program from lower case to upper case?

    Hi Kittu,
    You need to set the Pretty Printer settings to achieve key words in ABAP program from lower case to upper case.
    Utilities -> Settings -> Pretty Printer (tab) -> Select third radio button.
    Thats all.
    <b>Reward points if this helps.
    Manish</b>

  • How to find the patches for perticular concurrent program

    HI
    How to find the patches for perticular concurrent program. suppose for one concurrent program we create the patch and applied now i want know the which patch applied for perticular concurrent program through back end.
    Thank's

    Query the concurrent program in Sysadmin responsibility.
    Note the concurrent executable.
    Query the concurrent executable in Sysadmin.
    Note the file name.
    If it is a package, open the package in TOAD and note down the file name.
    If it is a report/form, open it in form developer and note down the file name.
    Go to patch find screen in metalink. In the advanced search screen, enter the file name and you will see patches that contain it.
    Hope this answers your question
    Sandeep Gandhi
    Independent Consultant
    513-325-9026

  • How to Use the Procedures in a Sql Query

    Hi Friends,
    Can anyone help me out whether can we use the procedure in the sql query..
    if yes help me out with an example
    my requirement is
    i have one sql query .. in which i need to use the procedure which returns multiple values... how can i overcome it,can anyone help me out for this..
    for your reference i am pasting the sql query
    SELECT paf.person_id
    FROM per_all_assignments_f paf START WITH paf.person_id = p_person_id
    AND paf.primary_flag = 'Y'
    AND paf.assignment_type IN('E', 'C')
    AND l_effective_date BETWEEN paf.effective_start_date
    AND paf.effective_end_date
    CONNECT BY PRIOR paf.supervisor_id = paf.person_id
    AND paf.primary_flag = 'Y'
    AND paf.assignment_type IN('E', 'C')
    AND l_effective_date BETWEEN paf.effective_start_date
    AND paf.effective_end_date
    and paf.person_id not in (>>>I HAVE TO USE THE PROCEDURE HERE<<<<);
    Thanks in advance

    We never saw your procedure, but maybe you could wrap it in a function
    SQL> create or replace procedure get_members(in_something IN number, out_members OUT sys_refcursor)
    is
    begin
      open out_members for
        'select level member_id from dual connect by level <= :num' using in_something;
    end get_members;
    Procedure created.
    SQL> create or replace type numbers as table of number;
    Type created.
    SQL> create or replace function members(in_something IN number)
    return numbers
    as
      member_cur sys_refcursor;
      members numbers;
    begin
      get_members(in_something, member_cur);
      fetch member_cur bulk collect into members;
      close member_cur;
      return members;
    end;
    Function created.
    SQL> select * from  table(members(4));
    COLUMN_VALUE
               1
               2
               3
               4
    4 rows selected.Variant on same using piplined function
    SQL> create or replace function members_piped(in_something IN number)
    return numbers pipelined
    as
      member_cur sys_refcursor;
      rec number;
    begin
      get_members(in_something, member_cur);
      loop
         fetch member_cur into rec;
         exit when member_cur%notfound;
         pipe row(rec);
      end loop;
      close member_cur;
      return;
    end;
    Function created.
    SQL> select * from  table(members_piped(4));
    COLUMN_VALUE
               1
               2
               3
               4
    4 rows selected.
    SQL> drop function members_piped;
    Function dropped.
    SQL> drop function members;
    Function dropped.
    SQL> drop type numbers;
    Type dropped.
    SQL> drop procedure get_members;
    Procedure droppedEdit:
    Sorry Blu, had not seen you already posted similar thing
    Edited by: Peter on Jan 27, 2011 5:38 AM

  • How to debugg Stored Procedure?

    Hi ,
    Greetings of the day,
    How to debug the stored procedure in sql.(how to enable debugging.)
    Thanks and Regards
    Shivanand.
    Yours Shivu([email protected])

    Hi shivanand
    you can attach the debugger to the stored procedure, here is steps for the same => http://msdn.microsoft.com/en-us/library/ms241871(v=vs.90).aspx .
    Other way i have seen by developers is adding print statement in between of the stored procedure, that the dirty way of debugging.
    Regards Harsh

  • How to execute the procedure in sap b1

    Hai to all,
                 I done a procedure in sql server .but i don't know how to execute that  procedure in sap b1?
    can anyone help me immediately.
    Regards,
    Ramya.S

    Dear Ramya.S,
    You could execute the store procedure by using Recordset object in SDK DI code. It is like:
    Dim myRecordSet As SAPbobsCOM.Recordset
    myRecordSet =                                   
    SBO_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecord
    set)
    myRecordSet.Command.Name = "TestStoredProcedure"
    myRecordSet.Command.Parameters.Item("@ItemLike").Value = "IT%"
    myRecordSet.Command.Parameters.Item(2).Value = "C0001"
    myRecordSet.Command.Execute()

  • How to debugg the SAP Script

    Hi to all.....
    How to Debug the SAP Script when it get's triggered with the Transaction.
    And how to Align the Standard Text data ..That is Justifing the statements.
    Advance Thanks to all
    Chinnu

    In se71, Chose from menu:
    Utilities-> Activate Debugger
    From the transaction, In the output message screen, you chose chose your output type, Go to Further options, Chose the dispatch option as Send at periodically scheduled jobs . then save the transaction. And run the prigram RSNAST00 It would stop at the debugging.
    Regards,
    ravi

  • 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 modify the Procedure which exists in Package individually?

    Hi,
    I need to modify the procedure which exists in package individually. I.e. I don't want to recompile the entire package.
    This task to be done in SQL Plus not in TOAD. Because in TOAD, we can directly place the script and recompile using the option.
    Do we have any syntax to modify the procedure which exists in package?
    [Like.....     create or replace schema.packagename.procudrename....etc...?]
    Kindly reply if you are not clear on my query.
    Kindly help me on this.

    Explain the reason why this would make any sense. Convenience. I wouldn't mind this option either.
    1) Currently, i am working on a PACKAGE which has
    over 2k lines. In general, changes are made in a
    single PROCEDURE only. I then copy the code (from
    notepad) and paste it into SQL*Plus. This takes a few
    seconds. If i could just ALTER the one PROCEDURE, it
    would save time. (The little adds up to a lot during
    testing.)
    2) If two developers want to modify the two parts of
    the same PACKAGE they would have to rename the
    PACKAGE so one's changes do not overwrite the other.
    Allowing to change the particular PROCEDURE inside
    the PACKAGE would obviate this need.
    3) If PACKAGES are to be stored in a versioning
    system, it might be convenient to store each
    PROCEDURE separately, instead of storing the entire
    PACKAGE as one file.
    It is certainly not required, but it would be a nice
    convenience. That is why it would make sense.OK, then why did you chose to make packages? You do realize you can make stand alone procedures / functions outside of packages don't you?
    I can see how 2 seconds of waiting for a package to compile could set your testing back by weeks (warning, being highly sarcastic).

Maybe you are looking for