Diff bw SQLERRM and   DBMS_ UTILITY. FORMAT_ CALL_ STACK

Dear One and all,
In recent times i read some where using DBMS_UTILITY.FORMAT_CALL_STACK is the suitable alternative instead of using SQLERRM is it so ? Could any one one tell me what is the exact difference b/w both with simple program / and how to use DBMS_UTILITY.FORMAT_CALL_STACK in PL/SQL programming ..

I think we are talking about different things.
The example in the documentation uses RAISE to create the exception. It does not use RAISE after the WHEN OTHERS.
The example does RAISE followed by WHEN OTHERS.
I say we need to do WHEN OTHERS followed by RAISE.
I compiled the example and ran it. Here is what happens at the end:set serveroutput on
exec Top_With_Logging();
anonymous block completed
Error_Stack...
ORA-01476: divisor is equal to zero
Error_Backtrace...
ORA-06512: at "STEW.P0", line 4
ORA-06512: at "STEW.P1", line 3
ORA-06512: at "STEW.P2", line 3
ORA-06512: at "STEW.P3", line 3
ORA-06512: at "STEW.P4", line 2
ORA-06512: at "STEW.P5", line 2
ORA-06512: at "STEW.TOP_WITH_LOGGING", line 6
----------Do you see the line anonymous block completed? That means that the anonymous block received no exception from Top_With_Logging, because Top_With_Logging "swallowed" the exception by handling it and not re-raising it.
As a result, if you do any work in a PL/SQL block and then call Top_With_Logging, the work will not be rolled back. Consider:s> delete from t
1 rows deleted.
s> commit
commited.
s> begin
insert into t values(1);
top_naive();
end;
Error starting at line 3 in command:
begin
insert into t values(1);
top_naive();
end;
Error report:
ORA-01476: divisor is equal to zero
ORA-06512: at "STEW.P0", line 4
ORA-06512: at "STEW.P1", line 3
ORA-06512: at "STEW.P2", line 3
ORA-06512: at "STEW.P3", line 3
ORA-06512: at "STEW.P4", line 2
ORA-06512: at "STEW.P5", line 2
ORA-06512: at "STEW.TOP_NAIVE", line 3
ORA-06512: at line 3
01476. 00000 -  "divisor is equal to zero"
*Cause:   
*Action:
s> commit
commited.
s> select * from t
no rows selectedThe insert was rolled back. Now call top_with_logging:s> begin
insert into t values(1);
top_with_logging();
end;
anonymous block completed
s> commit
commited.
s> select * from t
X
1The insert was not rolled back. Swallowing the exception changes the way Oracle behaves in a very important way, to the detriment of data integrity.

Similar Messages

  • Why not Deprecate java.util.Date and java.util.Calendar

    With the introduction of java.time, why did you not flag java.util.Date and java.util.Calendar. These classes have been a bane to every Java developer and should never be used again with the introduction of Java 1.8.

    Adding the @Deprecated annotation would only just provide a warning about an old API and recommendation to the developer(s) to no longer use it. Doing so would not break any existing library out there; in fact quite a number of constructors and methods on the Date class have already been flagged deprecated.
    The new java.time package is far superior to Date/Calendar.

  • I can't burn a dvd using any method, Idvd tells me that my super drive is missing, dvd studio pro quits when i click burn and disk utility keeps spitting the disk out when i click burn and enter the disk??? how do i repair my superdrive for imac

    I can't burn a dvd using any method, idvd tells me that my super drive is missing, dvd studio pro quits when i click burn and disk utility keeps spitting the disk out when I click burn and enter the disk??? how do i repair my superdrive for imac, or how do I do whatever I need to do to get it working: I have already tried using a lens cleaning cd and also restored my nvram or something i forget what it was called but i restarted my computer holding down  command+optoion+p+r and still nothing???
    Free solutions are the best, although if I have to pay I will, I would prefer to not have to buy an external burner if possible and already know that is an option so please don't give me that answer... thank you for any help you can give

    Unless your iMac is still covered by AppleCare, get an external DVD burner.
    You can get perfectly good ones from Amazon for less than $40.

  • HT5022 I'm trying to add a "new client" to my wireless network using Airport Utility, but I can't find that option in the new version.  I've downloaded all available updates of the OS and the utility..  Help!

    I'm trying to add my HP wireless printer as a "new client" to my wireless network using Airport Utility, but I can't find that option in the new version.  I've downloaded all available updates of the OS and the utility..  Help!

    Why would you need to ADD a new Client. Unless the APE sytem is completely different then any other Wireless router the printer should get an IP address from the router. That is IF the printer is setup to get an IP from the LAN DHCP server.
    Now you may want to make that IP it does get a Staticly assign IP address so it never changes, which will screw up printing if it does change. But i don't know if you can do that with APE routers.

  • I know my back up exists I can see it on disk utility but migration and disc utility wont work to restore my back up on my new hard drive it shows up with the message "this disk is already in use" i am so done. someone pls help me

    I know my back up exists I can see it on disk utility but migration and disc utility wont work to restore my back up on my new hard drive it shows up with the message "this disk is already in use" i am so done. someone pls help me

    Otherwise software may be attempted to access the drive. The the computer up in Safe Mode by holding shift when you turn it on. Also be sure to power off and on the hard drive itself.

  • Software Update and Disk Utility no longer work (Leopard)

    Hello. After upgrading yesterday from 10.4.11 to 10.5.0 then updating to 10.5.1 I find that repair / verify permissions no longer works (it just hangs after starting).
    And the same with Software Update, it starts the check then just hangs. Grateful for any ideas!
    Overall I am finding Leopard much slower in operation than Tiger. Peter

    Create a new admin account with Apple menu -> System Preferences -> Accounts and see if the issue duplicates itself logging into that account. That will say if the issue systemwide, or just localized to the a bad user cache file. If the issue persists in the new user, you can try looking in the System -> Library and Library -> Cache, Applications Support, and ByHost folders for cache files relating to Software Update and Disk Utility. Once you find them, carefully extract them to comparable folders on your desktop you create (i.e. name one systemlibrarycache) so you know where you go them from, and restart your Mac. If the issues go away after two restarts then it is just one set of bad cache files. If the issues return after two restarts, you have something generating bad cache files which needs a more system wide repair tool.

  • I can't run LR5 and EOS utility at the same time

    I'm running Mac OS 10.9.5, LR5.7 & Eos Utility 3.
    I can't run LR and Eos3 at the same time. Eos just crashes and have to force quit Eos.
    Any tips anyone?
    Do I have to downgrade to Eos2. Not a problem really I suppose.

    LR supports tethering using a Canon DLL and EOS Utility probably also supports tethering or at least uses something from a similar Canon DLL.  You probably cannot have two different versions of that DLL loaded at the same time, so it makes sense there are problems.

  • Canon Digital Photo Professional and EOS Utility not responding

    Have been using both Canon DPP and EOS Utility since Dec 09 successfully. Installed Snow Leopard in Jan 2010, still worked fine. Installed Aperture 3 in August and now the Canon software keeps shutting down on me. I contacted Canon and they said it is Apples fault (since 10.6.4) andthat it is because I am running Snow Leopard.
    How can this be when it worked for 4 months fine?
    Is this an issue with Aperture not wnating any ohter editing software?
    I have a Canon EOS 50D camera and was exporting through the Digital Photo Professional software.
    thanks to anyone that can help.

    EOS Utility Updater for Mac OS X
    Version 2.9.0
    Released on 07-10-2010
    Description:
    EOS Utility is an application that brings together all of the functions required to communicate with the camera. Functions for downloading and displaying images, remote shooting, and camera control of each setting when an EOS DIGITAL camera is connected to a computer have been integrated.
    It is linked with DIGITAL Photo Professional, ImageBrowser, Picture Style Editor, but the software has to be the latest version.
    Please download the latest version of the software from here.
    Digital Photo Professional (3.9.1 or later)
    ZoomBrowser EX (6.6 or later)
    ImageBrowser (6.6 or later)
    Picture Style Editor (1.8 or later)
    Changes with EOS Utility 2.9.0
    Added Camera support
    Supports EOS 60D
    Added rating display function.
    New Automatically display Quick Preview window check box added to the [Basic Settings] in [Preferences].
    Controlling the appearance of the quick preview window after downloading images or shooting remotely.
    RAW images can now be used with the overlaid display function.
    Peripheral illumination correction data for the EF 70-300mm f/4-5.6L IS USM has been added.
    Lens peripheral illumination correction data available for Extender EF 1.4× III or the Extender EF 2× III.
    An issue with certain timer values not being able to be set for interval timer shooting has been fixed.
    Technical support is no longer available for the following models when used with this version of EOS Utility:
    EOS D30, EOS D60, EOS 10D, EOS 20D, EOS 20Da, EOS 5D, EOS 300D DIGITAL, EOS 350D DIGITAL, EOS-1D, EOS-1D Mark II, EOS-1D Mark II N, EOS-1Ds, EOS-1Ds Mark II (it is recommended to use EOS Utility 2.7 with these models)
    Compatibility:
    Operating system(s): Mac OS X 10.4.x, Mac OS X 10.5.x, Mac OS X 10.6.x
    Language(s): English, French, German, Italian, Russian, Spanish

  • Java.util.Map and  java.util.HashMap samples

    Hi.
    Please, I need some code samples of java.util.Map and java.util.HashMap interfaces. I have problems to retreive objects in the map.
    Cheers,
    Cata

    Try the tutorial:
    http://java.sun.com/docs/books/tutorial/collections/index.html

  • Diff materialized view and view

    what is diff materialized view and view

    Check these documents please
    [Overview of Materialized Views|http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/schema.htm#CNCPT411]
    [Overview of Views|http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/schema.htm#i20690]
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com

  • Diff in TAXINN and TAXINJ

    Hii All...
    I am new in CIN can anyone please tell me what is the difference in these two procedure ?
    Which one is generally used and why ?
    And is there any difference in accounts to be maintained in both procedure.
    Can any one please tell me both Tax procedure methods in details..
    Do the needful help,
    Thanks
    Abhinay Waikar.

    Hi Abinay,
    ref the blw detailed info reg cin..
    If SAP is implemented for any company in INDIA and the company is in EXCISABLE range then
    in SAP ,CIN is implemented ( Country India Version) then
    you have to implement the SAP by either of the one type of CIN
    1. TAX INN - Condition based CIN implementation
    2.TAX INJ -Formula Based CIN implementation
    1. If you are using TAXINN then system will pick rate from condition record maintained using tcode FV11.
    2. If you are using TAXINJ then rates are to be entered while creating tax code in FTXP & J1ID.
    ===============================
    and ref the blw links which will give the complete details abt cin - tax procedure diff and config.
    Cin config. Links
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/207dd2ad-bf92-2b10-a88b-e3a4a01ca7fc?overridelayout=true
    http://www.scribd.com/doc/7216701/MMCIN-Customization-Document
    http://help.sap.com/saphelp_erp2005/helpdata/en/09/ebf138cdd78a4be10000000a114084/frameset.htm
    Diff between TAXINJ and TAXINN 
    Diff between TAXINJ and TAXINN
    diff betwn TAXINN &TAXINJ
    Re: Diff in TAXINN and TAXINJ
    diff.between Taxinn& taxinj

  • Diff Btn EDI and ALE

    Hi Experts,
    What is the diff btn EDI and ALE.
    Straight answers will be rewarded.
    Regards,
    SAI

    Hi,
    In simple words ...
    ALE is technology for SAP mainly use to transfer data between SAP systems.
    EDI is the independent technology use to transfer data between two systems, they can be SAP systems or non SAP systems.
    ALE = Application Link Enable: Initially developed for SAP as an abstract layer to extract master and transactional data to be sent ellectronically to other SAP systems. These days is also being used to send data no non-SAP systems. ALE is not a protocol or anything like that, it's just abstract layer composed by a set of applications which are capable of extracting aplication data on a 1-time basis or periodically, by selection criteria or incrementally by deltas.
    In contrast, EDI = Electronic data interface, this is a comunication protocol not designed by SAP but it´s an industry standard. Of course most SAP software supports EDI, but EDI it's no software but the specification of the protocol in itself.
    Regards,
    Padmam.

  • Creating Business Object Reports and Dashboards utilizing Informatica

    I need to create Business Object Reports and Dashboards utilizing Informatica database. Please let me know what connections I need to create to integrate the data into Web Intelligence, Universe, Xcelsius, and Crystal Reports.
    Thank you

    I've just done some quick checking and I don't see a native connection type for Infomatica in Designer or Crystal.  (Designer is a tool for building universes - WebI and Xcelsius both read data through a universe, Crystal can read data through a direct connection to the database or through a universe.) This means you'll probably have to set up a "generic" ODBC connection in order to connect to it.
    -Dell

  • Diff between Serialization and Synchronization

    Hi I am new to java.
    Pl. give me the difference between Serialization and Synchronization.
    Thankq
    Sridhar

    Don't you look at the timestamps of posts? They could
    have been typing at the same time.
    /KajPlease stop! I'll die laughing. LOL
    Re: Diff between Serialization and Synchronization
    Author: Annie.   Apr 11, 2005 10:30 AM (reply 1 of 4)  
    Re: Diff between Serialization and Synchronization
    Author: glrao   Apr 12, 2005 8:31 AM (reply 2 of 4) I really like your sense of humor.
    xH4x0r

  • Types of  DTP , Diff between Standard and Error DTP

    Hi experts,
    What is DTP ,  are the Types of  DTP , Diff between Standard and Error DTP , how it works in BI 7.0.
    I will assign points for your valuable answers.

    Hello ,
    Data transfer process (DTP) to transfer data within BI from one persistent object to another object, in accordance with certain transformations and filters. In this respect, it replaces the data mart interface and the InfoPackage. As of SAP NetWeaver 7.0, the InfoPackage only loads data to the entry layer of BI (PSA).
    The data transfer process makes the transfer processes in the data warehousing layer more transparent. Optimized parallel processing improves the performance of the transfer process (the data transfer process determines the processing mode). You can use the data transfer process to separate delta processes for different targets and you can use filter options between the persistent objects on various levels. For example, you can use filters between a DataStore object and an InfoCube.
    Data transfer processes are used for standard data transfer, for real-time data acquisition, and for accessing data directly.
    1.Benefit: Data ‘Distribution’within BI Capabilities (from PSA or InfoProviders to InfoProviders)
    2.Improved transparency of staging processes across data warehouselayers (PSA, DWH layer, ODS layer, Architected Data Marts)
    3.Improved performance and high scalability
    4.Separation of delta mechanism for different data targets: delta capability is controlledby the DTP
    5.Enhanced filtering in dataflow
    6.Repair modus based on temporary buffers (buffers keep complete set of data)
    See these docs for more info
    [Data Transfer Process |http://help.sap.com/saphelp_nw04s/helpdata/en/42/f98e07cc483255e10000000a1553f7/content.htm]
    [Enterprise Data Warehouse (EDW)|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/67efb9bb-0601-0010-f7a2-b582e94bcf8a]
    [What's New with SAP NetWeaver 2004s - Detailed|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/910aa7a7-0b01-0010-97a5-f28be23697d3]
    [SAP NetWeaver 7.0 ETL and EII|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0b24053-654e-2a10-4180-b0e7c7b4c9f2]
    [How to Create Monitor Entries from a Transformation Routine (NW7.0)|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50fda171-e36e-2910-9290-e3dab26c50b5]
    FAQ on SAP NetWeaver 2004s
    [Modeling the Enterprise Data Warehousing for SAP NetWeaver 2004s FAQ|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7c2a7c65-0901-0010-5e8c-be0ad9c05a31]
    [Enterprise Data Warehousing for SAP NetWeaver 2004s FAQ|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c9f5fb91-0c01-0010-67a8-fd35946e9403]
    Thanks
    Chandran

Maybe you are looking for

  • Exception handling bug in EJB-s

    Hi, My collegue had problems with exceptions in iPlanet EJB-s. Exceptions that were inherited from the class that is declared to be thrown by a particular method made EJB-s to be destroyed due to an unhadled exception. (Eg. NoSuchObjectException is f

  • Creatins BW system in portal

    i installed portal  sneak preview sp16 version  in my local machine and  now i want create a BW system in my portal the thing to be noted here is my BW system is in different country i am connected to the network by vpn from my country and i am able

  • Application Help Link

    We try to overwrite the application help link as described in <a href="http://help.sap.com/saphelp_nw2004s/helpdata/de/44/336208da18060be10000000a155369/frameset.htm">help_sap_com</a> (see code below). However, the line <b>application_info->set_help_

  • Update of the BT Network - Is this correct?

    Is there a copper DP after the copper leaves the cabinet? Is there a splitter in between the Aggregation Node and Fibre DP for FTTHoD? Last but probably not least am I missing anything? Many Thanks Again.

  • Yahoo Messenger won't sign in Macbook (13" Black) v. 10.6.8 (Snow Leopard)

    Been having some really weird issues with Yahoo Messenger on my Macbook (13" Black) O/S Snow Leopard v 10.6.8.  My sign-in/log-in screen has been in this perpetual cycle of saying "signing -in" but nothing happens..  I have no other issues with other