How to get the entire trace with dbms_utility.format_error_backtrace

Hi,
I made 35 procedures where test35 is
calling test34 and test34 is calling test33 etc.
division-by-zero is in test1 and format_error_backtrace shows the trace up to test31.
Just curious, is it possible to get the entire trace?
Thanks
An example
SQL> BEGIN
  2  EXECUTE IMMEDIATE 'create or replace procedure test1 as a number; begin a:=1/0; end;';
  3  FOR i IN 2..35 LOOP
  4   execute immediate 'create or replace procedure test'||i||' as begin test'||(i-1)||'; end;';
  5  END LOOP;
  6  END;
  7  /
PL/SQL procedure successfully completed.
SQL> BEGIN
  2    test35;
  3  EXCEPTION WHEN OTHERS THEN
  4   dbms_output.put_line(dbms_utility.format_error_backtrace);
  5  END;
  6  /
ORA-06512: at "ANTS.TEST1", line 1
ORA-06512: at "ANTS.TEST2", line 1
ORA-06512: at "ANTS.TEST30", line 1
ORA-06512: at        
"ANTS.TEST31", line 1
ORA-06512: at line 2                                   

Out of interest, do you get any further back if each error message is shorter (e.g. a shorter procedure name)? From a quick test, SQLERRM is limited to 510 characters (doubtless documented somewhere though I can't find it just now) - the documentation says FORMAT_ERROR_BACKTRACE is not subject to the same size limitation, but that doesn't mean there is no size limitation.

Similar Messages

  • How to get the contents associated with a component.

    How to get the contents associated with a component.
    Like i have 2 buttons and i want to get the contents associated with these button without clicking them i.e without firing the event.
    By Contents i mean, whatever things we get after firing the event,we get some other window and some thing is added to the current page and so on.

    grab all the code inside the actionPerformed(ActionEvent e) method

  • How to get the entire database from remote server to my server

    Hi,
    I am running a web application with sample data. Now i need to access the original data through this application. But the original data is located in the other server which is located in Mumbai.
    Now i need the copy of that database to my system(Chennai). with minimum effort.
    It is very urgent...
    Thanks in advance...
    Chaitanya.

    Hi
    Nicolas is right. You can also take advantage of exp/imp utility. That would not only get the entire db in one file but also the size will be a fraction of the entire db size.You can search for DataPump (that uses expdp and impdp) utility to expedite the export/import process.
    For simple exp/imp you can do the following.
    From Remote site(MUMBAI) issue
    ORACLE_HOME\BIN\exp file=c:\fulldbexp09sept05.dmp log=c:\fulldbexp09sept05log.log FULL=Y userid=system/pwd@connectstringOfyourdb
    Get a copy of fulldbexp09sept05.dmp and place it on your local drive in Chennai
    On Local Site (Chennai)
    ORACLE_HOME\BIN\imp file=fulldbexp09sept05.dmp log=fulldbimp09sept05 FULL=Y userid=system/pwd@connectstringOfyourlocaldb
    By this you can take advantage of having a different db name on remote and local sites. This is a fairly easy exercise. You just need to be sure that in your TNSNAMES.ORA you have correctly defined the connectString for your db.
    PS: Create a database on local server with default settings.
    Make use of following to create appropriate tablespaces and users if you desire ie.
    1. On Remote Site open SQLPLUS session and issue this command to find out the tablespaces, datafiles and their sizes
    SQL>SELECT SUBSTR(file_name,1,60) FILE_NAME, tablespace_name, bytes
    FROM dba_data_files
    GROUP BY tablespace_name, file_name;
    Now create the tablespaces on local sites using the result of the above query.
    2. On Remote Site open SQLPLUS session and issue this command to spool user creation script.
    SQL>spool c:\createuserscript.lst
    SQL> SELECT 'CREATE USER ||' IDENTIFIED BY VALUES '||'"'||PASSWORD||'"'||' DEFAULT TABLESPACE '||DEFAULT_TABLESPACE||' TEMPORARY TABLESPACE '||TEMPORARY_TABLESPACE||';'
    FROM dba_users
    WHERE username NOT IN ('SYS','SYSTEM')
    ORDER BY username;
    SQL>spool off
    Now edit this createuserscript using any editor and replace " with '. Copy this file to the local server and run it using @. This will create appropriate users.
    Let me know if you have any problems.
    Regards
    Adnan Mashhadi
    Nicolas I am not sure as how to eliminate the " in my script. Any comment will be appreciated.

  • How to get the application expose with a mouse

    Hi,
    I want to get a quick overview of all open windows of the SAME application (= application expose). Normally, you can do this with your trackpad (three or four fingers down movement); I am now working with a "normal" (non-Apple) mouse and keyboard. How do I get the application expose with the mouse? I am able to quickly get the misson control wiht CTRL + right mouse click; and I am getting the App expose with shift + arrow down.
    Isn't there a way to get the application expose with the mouse as well? E.g. CTRL + Shift + right click would be very useful but that's taken by the 'slow moving' mission control.
    I know, it's a minor detail but it would be quite good for the workflow
    Any hint is most welcome. Many thanks.

    grab all the code inside the actionPerformed(ActionEvent e) method

  • How to highlight the entire folder with the tag color, as before?

    I've always highlighted important folders with colors, so that they stand out among others in a list for quicker access. Now in Mavericks list view, there is only a small color dot to the right of the folder's name (sometimes very far from the folder's name if the column is large). As a result, it is much harder to pick important folders. Is there any way to apply the tag color to the whole folder, as it used to be in all previous systems? Or at the very least, to move the dot to the left of the folder name within lists, as in Icon view? I really hope Apple did not remove this feature simply for the sake of design. Thanks.

    mistersquid, S. G. is actually referring to the new Tags feature in Mavericks. This replaces entirely the Labels feature in previous versions of the OS, as far as I can tell.
    Labels would let you apply a color highlight to a folder. It would appear as a color behind the entire row.
    With Mavericks, however, Labels are gone and are replaced with Tags, which just puts a small colored dot off to the right of the folder name (and it's always like this, not just when you click on the folder), and some of these aren't distinct enough from one another (i.e. purple and gray look almost identical if you're scrolling through a series of "gray" folders pretty quickly—you may miss that one purple dot). Also, like S. G. mentioned, these can be pretty far off in your periphery if you've got long folder names, so this just adds another level of "hard-to-see-ness" (it's a technical term ).
    I'm a graphic designer and I have been using Labels to colorize my job folders according to their current status. For example:
    No label = job is open/in progress.
    The next color schemes were more of a "stop light" effect, going from red to green:
    Red = job is approved. Prep final files and send to printer/client.
    Yellow = job is done. Prepare job ticket/calculate time for billing.
    Green = job is done and job ticket is ready to go (hence the green color) to my co-worker for billing/invoicing.
    Gray = job is finished/billed/closed (i.e., I've "grayed it out").
    Purple = job transferred to another co-worker (i.e., I got too busy and they're working on it now). This one is a rarer color, and with Tags it's a bit difficult to discern one or two purple (more like a light lavender) dots in a sea of gray ones.
    I agree with S. G. and would love to see a stronger means of identifying the status of a project at a glance reappear—perhaps as a selectable alternative to Tags in the Finder preferences (because I can definitely see how the two means of colorizing a folder could compete with one another), like a checkbox to the effect of "Use Labels instead of Tags," similar to the "Open folders in tabs instead of new windows" option.
    Feedback submitted. Thanks, yodathejedi, for the link.
    Message was edited by: Xiebinrui -- oops, duplicated word. Fixed!

  • How to get the search field with API UCM  for a specific UCM Profil

    We have UCM 10g
    For the checkIn we have for exemple the URL : http://xp-ucm1.oth.prs/idc/idcplg?IdcService=CHECKIN_NEW_FORM&dpTriggerValue=1&dpDisplayLabel=Codification%201&IsSoap=1
    To obtain all the field for the checkIn is very simple with this service(IdcService=CHECKIN_NEW_FORM) and RIDC, but for search we don't find the idc service ?
    <SOAP-ENV:Envelope>

    <SOAP-ENV:Body>

    <idc:service IdcService="CHECKIN_NEW_FORM">

    <idc:document dRevLabel="1" dUser="sysadmin" dDocName="" dDocTitle="">
    <idc:field name="xClbraUserList:isExcluded">1</idc:field>
    <idc:field name="xsgti_top_rule:isSetDefault">1</idc:field>
    <idc:field name="xlist1:isExcluded">1</idc:field>
    <idc:field name="xsgti_g_ll_niv1_1:isExcluded">1</idc:field>
    <idc:field name="xsgti_chrono_soc"/>
    <idc:field name="xsgti_g_entier4:isExcluded">1</idc:field>
    any ideas

    Hi,
    In fact, I don't want to send parameters to the search service but to get the fields to display an advanced search form of my own.
    Some rules and profiles filters the amount of fields availables and having a service that can do this filtering for me would be very useful.
    The check-in service do this for a trigger value (profile), but I can't find how UCM uses services to display the search form with the right fields depending on the rules and rights of the user.
    When I call a search form, UCM calls a service : http://xxx.xxx.xxx.xxx:xx/idc/idcplg?IdcService=GET_DOC_PAGE&Action=GetTemplatePage&Page=STANDARD_QUERY_PAGE&dpTriggerValue=xxx&dpDisplayLabel=xxx
    But with &IsSoap=1, the values returned are not good, some fields are missing, the field captions are not right... I guess UCM calls sub-services but which ones ?
    Thanks :)

  • How to get the funds credit with the cancellation of the update for old acc

    i just cancelled my old email and mac.com account. Now here is the question. How can I get the funds refunded back into my checking account when the upgrade made to the old account is now interrupted due to the fact that my previous mac.com is invalidated due to the new mac.com account that has been created and with the current update included?

    This forum is for discussing issues related to the Mail & Address Book applications included with Mac OS X 10.4 (Tiger). Yours appears to be a .Mac issue that has nothing to do with Mac OS X’s Mail. If that’s the case, the right forum for such questions would be one of the .Mac Forums, such as .Mac General, for example.

  • How to get the JMenuBar associated with a JMenuItem?

    How do I get the JMenuBar (or JFrame) associated with
    a JMenuItem?
    The JMenuItem is in a subMenu of a JMenu on the JMenuBar.

    Hi,
    JMenuBar is extending from the container class,
    When a menuItem is added to it,You can get the instance of JMenuBar by type casting the getParent method on JMenuItem
    ie..
    JMenuItem mi1 = new JMenuItem();
    JMenuBar jm = new JMenuBar();
    jm.add(mi1);
    JMenuBar jm2 = (JMenuBar) mi1.getParent();
    Hope this helps
    cheers
    Ravi

  • SharePoint 2013 Rest API - How to get the item count with startsWith

    Hi All,
    I am using the below url to get the item count for specfied startsWith. For example I want to know how many items are there in the list which starts with "A". When i hit the below url in the address bar i am getting HTTP not found.
    siteURL/sites/Apps/SharePointApp3/_vti_bin/listdata.svc/SampleList/items?$filter=startsWith(Title,’A’)
    Navaneeth

    what
    is SharePointApp3.
    here. 
    it is a webpart.
    this will not work on webpart\apps
    Also I am not sure if it will work with specific SampleList 
    Try 
    siteURL/sites/Apps/SharePointApp3/SampleList/_vti_bin/listdata.svc/Keywords?$filter=substringof('r',Title)
    If this helped you resolve your issue, please mark it Answered

  • How to get the entire MIME message from a  BodyPart?

    Hi there,
    I am new to javaMail and quite lost with its way of working.
    I have a tool that creates SMIME stuff that needs to be put into MIME envelopes. In the same time I have to manage parsing of simple MIME messages.
    My current problem is the following:
    I have a BodyPart and I am testing if it is SMIME or not (with checks on the ContentType). If it is, then I want to retrieve the entire MIME message (I mean, the the whole text stuff with the headers and the -possibly- encoded64 content) as a String or a byte[]. But I haven't found anything in BodyPart that returns such a thing (everything is about the content). There might be writeTo() but it gives need an output stream that if piped in a pipedinputstream results in a dead lock...
    Help please!!
    Lionel

    hai
    i think you can use the methods in the MimeMessage to get the headers of the message
    by using any one the following
    1) getAllHeaders() use the enumeartion concept and then get the values for the headers using the getHeader(enum.getNextElements())
    2) or use the specific methods such as
    getFrom()
    getAllRecepients()
    getContentType()
    3) getHeader(string headername)
    bye

  • How to get the entire result into an XMLDocument??

    Hello,
    I would like to get the result of a DB Query as XMLDocument. Here's the code I use:
    ResultSet rset = stmt.executeQuery();
    OracleResultSet orset = (OracleResultSet) rset;
    while (orset.next()) {
    XMLType poxml = XMLType.createXML(orset.getOPAQUE(1));
    Document doc = poxml.getDOM();
    The problem is, that I can only get a XMLDocument per table row, but not an XMLDocument of the entire result.
    Regards,
    Dominik

    I got the answer myself:
    In the xsql-query, use the xmlagg() function to group the all records into one record.
    Use the same Java code.
    Regards,
    Dominik

  • How to get the publish method with server side actionscript?

    We publish this way at client side:
    ns.publish(name, howToPublish);
    How to get this howToPublish at server side?
    application.onPublish = function(){
        //how to know whether the stream's publishing method(live,record,append) here?

    I am not sure whether you can know mode of publish via SSAS, best way would be to use Authorisation Plug-in which can intercept you publish request and get the information which you need - in this case mode of publishing.

  • How to get the cinematic look with FCE 4?

    I have an hdr-sr 10 camera with avchd and am using FCE 4.
    How or what are the steps I need to take to get that film or cinematic look? Is there a special combination of filters I need to use? Is there a setting on the camera I need to use as well?
    Mike

    Light the scene carefully.
    Turn off detail enhancement on the camera.
    Never zoom; move the camera instead--using a home-made dolly, for example.
    Try to set up your shots to decrease depth of field,
    by setting your aperture to the smallest number (f1.8)
    and keeping your optical zoom maxed out--if possible.
    Use zebra stripes; never overexpose.
    Shoot multiple takes from different angles.
    Get your microphone close to the talent.
    Turn off auto-focus and auto-exposure.
    Turn on Progressive Shutter Mode.
    Use a tripod to make sure your establishing shots are rock steady.
    Edit without dissolves, unless you're showing the passage of time.
    Check out whether these filters will work with FCE4:
    http://pistolerapost.com/pluginz/index.html
    Go to Ken Stone's site, and scroll down to Film Look:
    http://www.kenstone.net/fcphomepage/fcp_homepageindex.html
    When shooting, wear a beret.

  • How to get the Survey result with a External Provider

    Hi all
    We have an scenario where we create a Survey and it's executed for a third party, and then they send to us the results for example in a excel sheet.
    Some know how we can upload the survey results per each client into CRM,
    Best Regards.

    Go for ELM processing.....create mapping and ELM the file in the system....In the BADI enhancement for processing steps, define the logic for processing the response through an activity....
    Create Activity
    Attach the questionaire to the Activity...
    ELM the file that you received
    Process the file filling up answers on the activity questionaire...
    Hope it helps...
    Thanks
    Nikhil

  • How to get the document structure with the document number"?"

    Hello experts,
    I have now a big trouble. There is a document with the number '?' in our syste. And for this document a document structure was builded. Now I can't acess the document structure, because the system doesn't accept '?' as a document number...
    Can you help me?
    Thanks a lot!
    best regards,
    Ying

    Hi Sarita,
    thank you very much! My problem is now solved, and the documents in the structure are free again _
    best regards,
    Ying

Maybe you are looking for

  • IMP:ClassCastException while using File upload UI in Webdynpro for java

    Hi All, I have used a FileUpload UI element in my screen , which is working fine for only the first time we upload a file. If we try to upload any file with out refreshing the application , a ClassCastException is being thrown. Please help me in reso

  • Upgrading 11i Payments to R12 Payments

    Hi All, We are now on Oracle EBS 11i [11.5.10.2] and Database 10g [10.2.0.4] now and we are planning to upgrade to R12. We want to upgrade the all payment formats and templates to R12. We have couple of questions.. 1) How can we upgrade the reports(p

  • Cash Manangement

    Hi to every one I want to know the complete set ups required in Cash Manangement Module Looking forward for further communication. Thanks and Regarads Dhan

  • Can't Open Some Files

    Hey, I'm having trouble opening some .fla files using Adobe Flash Professional 8.  The one's on my computer are fine, but some (not all) the ones on other peoples systems don't, I'm using CoreFTP to access them, but some when I go to view them says "

  • Training certification

    Hi Expert, Does SAP provides SAP B1 training attendance certificate for SBO end user ? Is it only from SAP partner ? Steve