Debugging pl/sql and validations

Hello

Using oracle 11.2.03. and have a package called other packages as part of a series.

Deliberately no commit every package must complete before agrees to end of any string such that if necessary re - run can without results being dubbed etc.

Find out exactly where the is not in the code.

What is the code is build an array more than 100 temporary table files, and then try to write the results of the present in the main table.

It is can not see the contents of this table when fails so can't say wrong area.

Ideally, I'd like to copy the contents of this table to another debug_table without committing...

Had thought of autonoumous transaction but this not visible table for that content.

Tried to run immediately to create another debug_table but this commit has implied that the end of it, it seems.

What is recommended for us to view the contents of the temporary table without validation.

Thank you

If you are connected, you should have selections relatively USEFUL and the ANSWER for each of the responses in the thread.

Tags: Database

Similar Questions

  • Remote debugging with Apex and SQL Developer

    Hello

    I try to turn on remote debugging with Apex and SQL Developer.

    I can debug the PL/SQL procedure when it is called from SQL * PLUS, but when I call the procedure from Apex 'Process', the debugger does not stop at breakpoints.

    I checked that the procedure is called Apex process as I can see 'things' happening in the procedure but the debugger does not stop at breakpoints. The program being debugged (session Apex) manages to fix the SQL Developer debug listener.

    Apex (OnSubmit) process
    ---------------------------

    BEGIN

    DBMS_DEBUG_JDWP. CONNECT_TCP ('10.176.20.225', 4000);
    DONOTHING;
    DBMS_DEBUG_JDWP. DISCONNECT;
    END;


    Procedure
    -------------------------------------
    CREATE OR REPLACE
    PROCEDURE DONOTHING ACE
    testvar VARCHAR2 (100);
    BEGIN
    update cross-set test_data = 'I came here 11111'; -It is run
    commit;
    testvar: = "aaa"; -bREAK POINT IS HERE
    DONOTHING END;
    /

    Thanks in advance,
    Paresh

    Published by: pyadav1 on November 19, 2008 15:19

    Hello

    Sorry... seems I was too hasty in reading your question...

    You also gave * DEBUG ON [Parsingschema]. [procediurename] * APEX_PUBLIC_USER (or ANONYMOUS or HTMLDB_PUBLIC_USER). Otherwise, the behavior is exactly the same as you have described...

    The privilege of the DEBUGGING SESSION to CONNECT need to given to the schema analysis but the APEX_PUBLIC_USER schema needs debug privilege on the function or procedure...

    Does that help?

    Carsten-

  • Submit / run HTML on submit - after calculations and Validation

    Hello

    I use this code to send SMS, I want to run using PL/SQL process on submit - after calculations and Validation.
    http://xxxxxx.biz/api/api_http.php?
    username=xxxx&password=xxxx&senderid=SMSALERT&to=&P8_MOBILE.,&P8_MOBILE2.&
    text=&P8_TEXT.&type=text&datetime=2013-01-07%2010%3A48%3A53
    Is this possible? How?

    I use APEX 4.2 on Glassfish 3.1.2 listener 2.0, Oracle 11 g R2...

    Kind regards
    Fateh

    Hi Fateh,

    try to use the utl_http package to make a http request.
    For example:

    declare
      t_http_request   utl_http.req;
      t_http_response  utl_http.resp;
      t_text           varchar2(32767);
    begin
      --Setup your http request and get http response
      t_http_request  := utl_http.begin_request();
      t_http_response := utl_http.get_response(t_http_request);
    
      --Process the response
      begin
        loop
          utl_http.read_text(t_http_response, t_text, 32766);
          --do something with the response
        end loop;
      exception
        when utl_http.end_of_body
         then
           utl_http.end_response(t_http_response);
      end;
    exception
      when others
      then
         utl_http.end_response(t_http_response);
         raise;
    end;
    

    Also, make sure that you have configured the network ACL to perform the http request.
    Take a look at this page http://www.oracle-base.com/articles/11g/fine-grained-access-to-network-services-11gr1.php for info on this subject.

    Kind regards
    Erik-jan

  • Autocommit DDL: difference between SQL and SQL Developer * more?

    I asked this in the SQL forum (commit auto DDL: difference between developer SQL and command-line client?), but it has suggested it might be a problem in SQL Developer, so I thought I would ask here.

    I'm trying to understand what exactly happens when an error occurs when a transaction is committed because of a DDL statement. I noticed that with SQL Developer, if the DDL statement CREATE TABLE, the statement is executed, even if the DML statements which I entered before CREATE TABLE violates a deferred constraint, so that the transaction fails. In SQL * Plus, it's not the case: the table is not created. I have no automatic validation. I'm using Oracle 10 g XE.

    That's what happens in SQL * more:
    SQL> create table table1(a number);
    
    Table created.
    
    SQL> alter table table1 add constraint table1_a_uq unique(a) deferrable initially deferred;
    
    Table altered.
    
    SQL> insert into table1 values(1);
    
    1 row created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> insert into table1 values(1);
    
    1 row created.
    
    SQL> create table table2(b number);
    create table table2(b number)
    *
    ERROR at line 1:
    ORA-02091: transaction rolled back
    ORA-00001: unique constraint (BOEK.TABLE1_A_UQ) violated
    
    
    SQL> select * from table2;
    select * from table2
                  *
    ERROR at line 1:
    ORA-00942: table or view does not exist
    If I put the same code in SQL Developer (versions 1.5.5 and 2.1.0.63), the table is created.
    This is my script:
    create table table1(a number);
    alter table table1 add constraint table1_a_uq unique(a) deferrable initially deferred;
    insert into table1 values(1);
    commit;
    insert into table1 values(1);
    create table table2(b number);
    select * from table2;
    And this is the output of SQL Developer:
    create table succeeded.
     alter table table1 succeeded.
    1 rows inserted
    commited
    1 rows inserted
    
    Error starting at line 9 in command:
    create table table2(b number)
    Error report:
    SQL Error: ORA-02091: transaction rolled back
    ORA-00001: unique constraint (BOEK.TABLE1_A_UQ) violated
    02091. 00000 -  "transaction rolled back"
    *Cause:    Also see error 2092. If the transaction is aborted at a remote
               site then you will only see 2091; if aborted at host then you will
               see 2092 and 2091.
    *Action:   Add rollback segment and retry the transaction.
    B                      
    ---------------------- 
    
    0 rows selected
    As you can see, the table is created in SQL Developer, but not in SQL * more.

    I wonder why it's different.

    Well Yes, it is a slightly different situation, because you issue 1 statement that executes internally 2 statements.
    But the problem is the same: the error handling. Where sqlplus rejects again (implicit) statements, sqldev goes ahead and runs them anyway. Personally, I'd say sqldev is more consistent and sqlplus is not, because run the following instructions (explicit).

    Kind regards
    K.

  • Debugging PL/SQL blocks in SQL Developer

    Is it possible to debug PL/SQL blocks in SQL Developer by setting breakpoints in the code? I use SQL Developer.

    I'm trying to debug some fairly complex PL/SQL blocks - they are not procedures or functions, and so I'm unable to run in debug mode.

    PS Apologies should have posted this in the forum of the database really.

    Published by: West Indies 10 Sep, 2008 01:12

    Hello

    Of course you can, take a look at the following two links-

    http://sueharper.blogspot.com/2006/07/remote-debugging-with-SQL-developer_13.html

    http://www.Oracle.com/technology/oramag/Oracle/08-may/o38browser.html

    Hope this helps,

    John.
    --------------------------------------------
    http://Jes.blogs.shellprompt.NET
    http://www.apex-evangelists.com

  • Problem with WSUS after upgrade of SQL and SCCM

    A few years ago, we implemented SCCM 2012 R2 on a virtual machine running Server 2008 R2 (Enterprise), using 2012 SQL for databases.  We use it for software deployment, updates/patches via WSUS and imagery of the network.  Everything is smooth enough for most, even if we hit a few snags Windows 10 points when that came out.  After you install the patches and updates to our Server 2008 box to make it compatible with Windows 10 content, everything was good again.  A few weeks ago, I decided to update our version of SCCM 1511 and SQL for 2014.  After the two updates, I tested imaging and software deployment, and everything seemed good.  I forgot WSUS, however... and later visited account it was not working properly for these updates.  Unfortunately, I realized after I deleted the VM snapshot, I got to thinking that everything was good (stupid, I know).  After researching and discovering some of the errors were permissions associated with - why would have changed the permissions on folders of SQL and SCCM upgrade I have no idea - those who have since been smoothed.  Now, my mistakes seem to be related SQL more and I hit a dead end with research.  When I opened WSUS and go look at the clocks, he tries to load the history of synchronization, and after a few minutes-error with the following information:

    The WSUS administration console failed to connect to the WSUS server database.

    Verify that SQL server is running on the WSUS server. If the problem persists, try restarting SQL.

    System.Data.SqlClient.SqlException - Timeout expired.  The delay before the end of the operation or the server is not responding.

    WARNING: The join order has been applied because a local join hint is used.
    Source .Net SqlClient data provider
    Stack trace:

    to Microsoft.UpdateServices.Internal.BaseApi.SoapExceptionProcessor.DeserializeAndThrow (SoapException-soapException)

    at Microsoft.UpdateServices.Internal.DatabaseAccess.AdminDataAccessProxy.ExecuteSPGetSummariesPerUpdate (String computerTargetScopeXml, String preferredCulture, String updateScopeXml, ExtendedPublicationState publicationState)
    at Microsoft.UpdateServices.Internal.BaseApi.UpdateServer.GetSummariesPerUpdate (UpdateScope updatesToInclude, ComputerTargetScope computersToInclude)
    at Microsoft.UpdateServices.UI.AdminApiAccess.BulkUpdatePropertiesCache.GetUpdateSummaries (UpdateScope updateScope, ComputerTargetScope computerTargetScope)
    at Microsoft.UpdateServices.UI.AdminApiAccess.BulkUpdatePropertiesCache.GetAndCacheUpdates (ExtendedUpdateScope updateScope, ComputerTargetScope computerTargetScope)

    at Microsoft.UpdateServices.UI.SnapIn.Pages.UpdatesListPage.GetListRows)

    I found a few forums that suggest to uninstall WSUS and delete the database, and then reinstall WSUS.  Unfortunately, when I try install fails... giving only an error code and no other explanation of why.  The error is 0 x 80070643, which is supposed to be due to the current user not having the "sysadmin" in SQL.  However, I have tried with several accounts I checked to make you have the sysadmin role in SQL (and are also part of the Administrators group on the server itself)-always get the same error message.

    I would really like to try to find that rather than wasting his time with the construction of a new server and redo our whole SCCM environment... get the client reinstalled on all our machines to synchronize with a new server appears as a huge headache.  Is there anyone else out there who know what would cause this?  Any help would be greatly appreciated!

    Hello

    This community is for users.

    Post your question in the TechNet Server Forums, as your question kindly is beyond the scope of these Forums.

    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

    SQL Server TechNet forums.

    https://social.technet.Microsoft.com/forums/SQLServer/en-us/home?category=SQLServer

    See you soon.

  • Difference between standard edition SQL and SQL workgroup edition

    I'm buying the processor SQL License. I'm looking for the standard edition of SQL, but the SQL workgroup edition is less expensive. I wonder what the difference is in two versions

    Hi DBBurns,

    This document compares the editions of SQL and should answer your question. If you need help, your questions there will be better answered in the Forums of SQL.

  • Did someone knows a way I can delete the fonts of all WIN XP and then download a CLEAN game and validated?

    Did someone knows a way I can delete the fonts of all WIN XP and then download a CLEAN game and validated?

    Validater fonts Microsoft can manage only a small subset at a time without crashing, and I prefer nuke batch and start over.
    Win XP Pro SP3, Office 2003 PRO.
    And relocation of the disk / repair / restoration clean them...

    What is the problem with your fonts?

    I have very few problems of fonts in my notes...

    I took a this auditor of fonts and I don't know what that is supposed to do, but it takes too much time everything he does, so I just stopped after several minutes while it digested 2 files.   It also seems to be unsupported.

    I compressed to the top of my fonts folder and put it on my SkyDrive, but I don't know too much about the operation of the fonts with XP and think that they must be "installed" by clicking on the file and choose to install the fonts.

    I have NO idea if this zipped upward file will help you or not, but I would be sure to make a copy of what you have before overwriting things.  If things go haywire, I might have to leave town for a few days until things cool off.

    One thing is for sure... we don't know even what it is, or anything on your system.  It is because the MS Answers forum ask all system information when a new question is requested (which is doubly certain).

    I downloaded a copy of my zipped folder fonts on my SkyDrive (everyone has a SkyDrive for file sharing).

    Here is the link to my SkyDrive and you can get the file you need it (fonts.zip).

    http://CID-6a7e789cab1d6f39.SkyDrive.live.com/redir.aspx?RESID=6A7E789CAB1D6F39! 311

    When you see the files available for download, you will not see the file extension (.exe, .dll, .cpl, .sys, .zip etc), but when download you them they will have the right extension.

    When you download the file (especially if you use Internet Explorer), when you get a chance to save the file, it cannot save the file with an extension (for example, .exe, .dll, .cpl, .sys, .zip) then you will need to manually add the extension appropriate to the file when you download the file before you save it.

    You can download the file without the extension, and then rename the file to add the appropriate extension.

    Rotsa ruck and we inform!

  • HP Simplepass and validity sensor Versions

    Hello

    I recently had trouble with the digital simplepass and validity of hp. What are the latest version which are compatible with others and my computer?

    It's an Australian Pc by the way
    Product name: HP ENVY m6 (m6-1117mx) laptop

    Product number: C7E77PA #ABG

    8.1 Windows 64-bit

    Thanks for your help!

    Hi Cookie,

    I don't like upgrades.  I had so much trouble with them.

    You are the only first posting engine error, thank you for this.  It actually helps.

    Have you installed the following from the Support Page of your computer?

    Driver v9.4.0.1026 and Intel Chipset Installation Utility sp63640

    I agree that other people have the same problem - on a large number of these systems on which people have the worst problems, operating systems are indeed updated.

    ============================================================================

    As to the original question; I work around it.

    The answer is, as I understand it:

    • HP SimplePass 2011 / 2012 V5.3.1.7 (the most recent of the 'old' versions still in use)

    > Driver 4.3.118

    • HP SimplePass 2011 V5.4.0.402 - buggy and not recommended
    • HP SimplePass V5.4.0.620 (from AuthenTec) - is no longer available

    NOTE: None of the above versions work with newer versions of browsers Firefox or Chrome

    • HP SimplePass V6.0.100.257, V6.0.100.272 - obsolete, while 272 is always used and works for these books for which it was originally planned.
    • HP SimplePass V6.0.100.276 latest version, series 6 AuthenTec - available at HP

    > Validity sensor Driver 4.3.205.0 (or later / more recent)

    The latest version of series 6, if already installed AND that if he worked previously with Chrome, can still work with Chrome IF a particular solution is used AND of workaround is installed before the original Extension nonfunctional is removed from Chrome.  Confusing?  Yes.

    Series 8 HP SimplePass, the Softex version that now comes with new HP laptops, works with Windows 7 to Windows 8.x - when it works at all.  (Personal observation).  Series 8 requires Internet Explorer.  Series 8 worked for about three weeks with Chrome Google stomped on it.  Series 8 HP SimplePass seems to work with 4.3.205.0 drivers and newer.

    ===========================================================================

    Click on the Thumbs - Up Kudos to show that you appreciate the help and time of our Experts.

    Although I strive to reflect best practices of HP, I do not work for HP.

    Click on accept as Solution when the answer is a good solution or workaround!

  • When I click on dump debugging, system, thumbnails and files dump files memory system archive of windows error reporting

    When I click on dump debugging, system, thumbnails and files dump files memory system archive of windows error reporting
    They does not clear my cleaning disc on my computer at home. If someone could help
    deal with this problem?

    * original title - disc clean up problem *.

    You are welcome.

  • Microsoft Silverlight, it is a safe program and valid Microsoft?

    Original title: two Programs from Microsoft I am not as information indicating if I remove them

    In my list of programs, I came across a program called Microsoft Silverlight that wouldn't uninstall.  Is it a safe program and valid Microsoft

    Same question for Microsoft.net framework 4.5.1

    Hi Jerry,

    Welcome to the Microsoft community.

    Microsoft Silverlight is a safe program, which was created by Microsoft. The same for Microsoft.net framework 4.5.1 they are both safe programs, there is no need to remove them!

    Answer please if you need help.

    See you soon,.

    Leo

  • Problem with stored procedure and validation

    I have the following stored procedure:

    create or replace PROCEDURE SOME_PROC)

    /*

    Some settings

    */

    ) AS

    NUMBER of errors

    BEGIN

    errors: = FN_CHECK_BUSINESS_RULE_1 (/ * some args * /);

    if(Errors > 0) then

    raise_application_error (ERR_CONSTANTS. SOME_ERROR_NUMBER, ERR_CONSTANTS. SOME_ERROR_MESSAGE);

    end if;

    INSERT INTO une_table (/ * columns * /) VALUES (/ * values * /);

    END SOME_PROC;

    Because the business rule 1 is placed inside the stored procedure I can't check it out without calling the stored procedure.

    I need to call the stored procedure 10 times with a different set of parameters and validation of the changes only after all calls to the stored procedure

    are successful. I want to show the user all the errors that occurred during the stored procedure calls. If for a first example of stored procedure call

    succeeds and a second failure no data has to be stored in a database.

    How to prevent the stored procedure for insert lines until I call the method commit of ApplicationModule?

    Thanks in advance.

    No, other users only see the lines until you commit. The search term is the transaction isolation level. Tom Kite write a paper on this here ask Tom: on transaction isolation levels. This article gives some samples, according to theory, and you should read it.

    Timo

  • SQL and BI

    Hello Experts;

    I used some tools like Microstrategy bi, however it is still not comparable to a coding in SQL, PL/SQL, which gives a lot of flexibility, transparency, etc. So, how is it I always get customers pushing to have all of the BI process done on BI tools. Why SQL and PL/SQL, not at the forefront instead. I know that the graphical side of things put it at a disadvantage, but beside that I'm still why a little distraught.

    SQL and PLSQL can scare companies, many see a black magic (which, in some respects, can be), and it is not something that many customers feel able to learn or even tend to. On the face of things, this may seem complicated and used wrongly, can cause MAJOR problems with buinesses (poor performance, use excessive resources that affect other sessions).  Many have invested time in getting to know point and click graphical tools that can get results without feeling lost and confused by SQL, they prefer.

    However, as you rightly remember, nothing can replace SQL or PL/SQL.

    I suppose that the element of fear is a bit like why a lot of people using MS Paint to edit an image, many feel uncomfortable with it, he can do the basics, but not much, and they'll settle for that, but you could do much more with Photoshop - it's simply too scary to learn properly for most of the people so that they avoid it - they stick to what is simple and familiar.

  • Master-detail functionality between the regions of PL/SQL and IR possible?

    4.2.1

    THM 2

    Hi all

    We have two regions in a page. The upper region is a region of PL/SQL that lists the 5 best wages by Dept. This was not done using traditional reports because management wanted a "dashboard" as the look and feel that is already existing and what is happening in that it is a pl/sql block that has the sliders and the necessary HTML, CSS in there.

    Below that is an IR when the user clicks on the dept of region of PL/SQL, it will refresh the IR below to display all employees in this Department

    Top of the page shows region of PL/SQL

    EMP name Dept wage

    Emp1 10 10000

    EMP2 10 950

    Emp3 20 800

    The Dept field is a hyperlink.

    When we click on Dept on this region of PL/SQL

    The lower IR should be updated (without submit page)

    Output

    Emp1 10 10000

    EMP2 10 950

    It is a kind of master-detail relationship between PL/SQL and Report (Detail) (Master) area Interactive

    We can hyperlink in the SQL in pl/sql area, but you wonder how trap line and pass the dept id to the IR and get this region to refresh account?

    All suggestions from the experts?

    Thank you

    Ryan

    It is a way to pass the info in connection

    Perform the dynamic Action of the link column report

    The dynamic action can submit the session state value, and then refresh the IR.

    On either by the way, you must create dynamic PL/SQL region to solve this problem, see this

    APEX reports: layout custom with a column named (model line)

  • PL/SQL and APEX_JSON

    Hello

    I'm doing some tests with PL/SQL and JSON, this test case is how do I map the JSON data to the tables in a relational model. For this test, I have a 3 line, what wise format json seems good. I would like to extrace dsipaly through the output of the server and data from it. No idea what the problem with this logic here?

    DECLARE

    j apex_json.t_values;

    l_paths apex_t_varchar2;

    BEGIN

    apex_json. Parse (j,

    "[{"jsonrpc":"2.0","weather": [{'event': {'id': '27576810', 'name': 'London', 'postal code':"GB","time zone":" Europe/London', 'status': "Sunny", "openDate": "2015-10 - 22 T 16: 25:00.000Z"}, 'Count': 24},]}]. "

    {'event': {'id': '27576811', 'name': "York", "PostalCode": "GB", "time zone": "Europe/London', 'status': 'Cloudy',' openDate": "2015-10 - 22 T 13: 00:00.000Z"}, 'Count': 18},

    ([{[{'event': {'id': '27575114', 'name': 'Liverpool', 'postal code': "GB", "time zone": "Europe/London',"openDate":" 2015-10 - 25 T 15: 30:00.000Z "" "}, 'Count': 1}], 'id': 1}]');

    If apex_json.does_exist (p_path = > 'time', p_values = > j) then

    dbms_output.put_line (apex_json.get_varchar2 (p_values = > j, p_path = > 'event.id'));

    dbms_output.put_line (apex_json.get_varchar2 (p_values = > j, p_path = > 'event.name'));

    dbms_output.put_line (apex_json.get_varchar2 (p_values = > j, p_path = > 'event.countryCode'));

    dbms_output.put_line (apex_json.get_varchar2 (p_values = > j, p_path = > 'event.timezone'));

    dbms_output.put_line (apex_json.get_varchar2 (p_values = > j, p_path = > 'event.status'));

    dbms_output.put_line (apex_json.get_varchar2 (p_values = > j, p_path = > 'event.openDate'));

    dbms_output.put_line (apex_json.get_number (p_values = > j, p_path = > 'Count'));

    dbms_output.put_line ('Am in ');

    end if;

    l_paths: = apex_json.find_paths_like)

    p_values = >, p_return_path = > 'event [%] '.

    );

    because me in 1... loop l_paths. Count

    dbms_output.put_line (' no. Looping :'|| i);

    dbms_output.put_line (apex_json.get_varchar2 (p_values = > j, p_path = > l_paths (i): '.)) ID'));

    dbms_output.put_line (apex_json.get_varchar2 (p_values = > j, p_path = > l_paths (i) |'. name '));

    end loop;

    END;

    Hi 1247164,

    1247164 wrote:

    Please change your login username of "1247164" to something meaningful. Reference: Video tutorial how to change username available

    I'm doing some tests with PL/SQL and JSON, this test case is how do I map the JSON data to the tables in a relational model. For this test, I have a 3 line, what wise format json seems good. I would like to extrace dsipaly through the output of the server and data from it. No idea what the problem with this logic here?

    See the code examples given here: Re: Re: Re: access to the Web Service API

    Kind regards

    Kiran

Maybe you are looking for