Is there a good way to do it?

Is there a good way to write messages of errors in PL/SQL? For example:

IF < variable > IS NULL THEN

dbms_output.put_line ("' error message");

END IF;

OR

IF < variable > IS NULL THEN

RAISE < exception >;

END IF;

What is the most correct? Or maybe the two are quite right?

Thank you.

Hello

Dbms_output is a good way of packing to write messages for debugging PL/SQL code.  It is not very good for anything else.  It is particularly inappropriate for the error messages, since the output can easily be missed, if it is never displayed at all.

The second way you posted (STIMULUS) is good.  Create user-defined exceptions and RAISE them explicitly.

Tags: Database

Similar Questions

  • Is there a good way to archive historical data?

    Our planning cubes become too big with 5 years of forecasting and budgeting data.

    Is there a good way to archive historical data?

    How you guys do it?

    I know a simple way is easy make a copy planning essbase cubes.  However, is there text, attachments and support details, these will be lost unless there is a way to archive a RDBMS repository data for planning.  Even in this case - all links and hooks of the Essbase cubes in these RDBMS repository will be broken.

    The old fashion method is to print all reports in PDF and archiving.

    Given that the plan changes every month, reprocess you history until you check in?

    Thanks for your advice.

    This can be done in 2 ways...

    1. just make a copy of the old 'DATA' in text file or another essbase cube history. Clear only the historical data for the current application. This will keep other information as text in the intact cell. In case the user wants to refer to the old texts/support cell details they can do by going directly into the application and for part of data, they can look in old PDF report.

    2. a copy of the planning application to create a copy of the current request. Keep all old data, text etc in old app of cells. All previous reports also point this app. Then erase current app and can be simply provide read access to older data App users can be trained to use older applications for all historical data and current app for existing budgets. Also this app can be used during the period of archiving all data.

  • Is there a good way to automate changing existing links to external PDF to be attachments in PDF with the same names?

    Greetings!

    Can someone tell me a good way to automate changing hyperlinks existing PDF 'main' to an external PDF rather do links to attachments PDF for the main PDF (the PDF attached to have the same filenames as the external PDF files)?

    The current link to main PDF format:
    Navigate to a page in another document
    File: C:\\path\filename.pdf
    Name of the destination: P:1

    When the link is manually changed to link to a PDF file that was attached to the main PDF:

    Navigate to a page in another document
    : PDF attachment
    Page: 1
    Zoom level: page Fit

    The new PDF link does not list the name of the attachment PDF file in the link.

    The file main PDF (the one that has the connection I would change automatically) is generated with hyperlinks to other documents PDF from Adobe FrameMaker 11.  In FrameMaker11, we have added text marker special "openpage filename.pdf:1' which is 'automatically' has been changed to hyperlinks to PDF files external when the main PDF file is created (postscript file is processed) Adobe Acrobat Pro 11.

    My first choice is to be able to change the format of the text in the file source Adobe FrameMaker special marker, but I found no way to specify a link for a PDF attachment with a certain file name.

    However, I also very much the ability to run a command on a main PDF file to change the links there.

    Has anyone tried using only Adobe ExtendScript ToolKit CS6? In other words, a script that could automatically change the hyperlinks in a PDF document to a link to attachments in PDF instead of external PDF files, or to modify the links not transformed, while they are still in Postscript file format format, or change the text in FrameMaker marker instead of creating a link to a PDF file in the same directory as the main processing PDF to create a link to a PDF attachment files?

    Thank you
    Judith Wallace
    [email protected]

    FrameMaker hyperlink feature has no ability to "connect" with an attachment on/in a PDF target.

    PDFs from FM may have named destinations listed FM files created as a link of file01.fm to the named destination specified in file01.fm will be functional in the PDF files created from the files of FM.

    Then, of course, it is the possible dynamics by use o FM books. But it is the grist mills in the FM 2 user forum.

    RE: Script - PDF scripting is via Acrobat JavaScript. It is something yet and by Adobe, even though it may migrate to a Standard ISO (or be wound in a future standard ISO 32000).

    Then, to the point - look at Acrobat JavaScript for the script.

    Be well...

  • Is there a good way to find all references to a table or a column?

    I have recently inherited an application large apex and receive requests to make changes.  I would like to ensure that any changes that I could do on a table or a column in a table affect application pages which I think are involved.  However, demand is high, and I'm assuming that it is possible for other pages may refer to the same column or table, and I was not aware of these references (at least until after he breaks once I have change the column or table).

    My question is this: is there an integrated report, or a way to query apex, who will tell me ALL references to an application to a particular table or column?  This way I could fix all pages in the application, rather than waiting to break.

    Thank you!

    John

    John,

    Look to the upper right while in the Application Builder, for the area of the search Application .  Enter any string you want and APEX will search to find and view a report that contains a link.  Click the link and APEX will show the page and control chain concerned.

    Here's another way; query the table APEX seen through this code:

    SELECT workspace,
           workspace_display_name,
           application_id,
           application_name,
           page_id,
           page_name,
           region,
           item_name,
           display_as,
           display_sequence,
           item_label,
           db_column_name,
           db_table_name,
           help_text,
           item_id
      FROM apex_application_page_db_items
    WHERE     workspace = :workspace
           AND db_table_name = :table_name
           AND db_column_name = :column_name
    

    Jeff

    Post edited by: jwellsnh

  • Hello, when I scan in a drawing with black lines and import the scan into photoshop I always get green and magenta casts outside the black line. Is there a good way to remove them?

    I used to remove them manually with a white Brush tool but I was hoping that there is a faster way. I enclose a screenshot! Thank you very much in advance!Screen Shot 2015-11-24 at 17.14.06.png

    Hi danielavalentino,

    You can select the area using the Quick Selection tool and then use the paint bucket tool to fill with white color to this topic.

    Using Photoshop | Filling and selections of stroke, layers, and paths

    Hope that helps.

    Kind regards

    ~ Mohit

  • Is there a good way to replace the text "See basket" by another text?

    I have a big problem, I'm still stuck with that, I hope someone can help me.

    I need to change the text "See basket" in the cart summary module. I learned that I can do this with javascript: http://forums.adobe.com/message/4409239#4409239

    But there are problems:

    When I use this javascript:

    " < script src =" https://AJAX.googleapis.com/AJAX/libs/jQuery/1.7.2/jQuery.min.js "type =" text/javascript"> < / script > "

    < script >

    $(function () {})
    $(".cartSummaryLink").text ("Afrekenen");
    });
    $(function () {})
    $(".cartLink").text ("Winkelwagen is alone");
    });

    < /script >

    The 'see the basket' is replaced by 'afrekenen.

    BUT:

    1. When I add another product to the presentation of big product the text "see basket" is back...
    2. When I delete a product in the basket the text "See basket" is also back
    3. When I refres page the text "See basket" is replaced with "afrekenen.


    So I thought to use javascript to refresh the page when a product is added:

    < script type = "text/javascript" >

    function AddProductExtras() {}
    document. Location.Reload (true);
    }

    < /script >

    This works, but you can see that the text changes from 'afrekenen' to 'view basket' and "afrekenen" as the page is again a regeneration which is not a very good solution.  So here are my questions:

    1. Is there a better work around?
    2. If not, is it possible that when a product is removed from the basket page can also be updated?


    Thank you

    Frank

    Hi Frank,.

    I suggest that you use CSS and replace the basket with an image. The following should help:

    {a.cartSummaryLink}

    background: url(your-image.png) 0 0 no-repeat;

    Width: 120px;

    height: 27px;

    vertical-align: middle;

    display: - moz - inline-block; / * for Firefox * /.

    display: - moz - inline-box; / * for Firefox * /.

    Display: inline-block;

    text-indent:-9999px; / * mask the text * /.

    }

    See you soon,.

    -mario

  • Is there a good way to reuse the facades?


    Yes.  Use an Xcontrol.  A façade Xcontrol always appears the same on every FP that contains an instance of it and it may take action in response to the events...   Read this KB article (always a good read)

  • I went the full screen mode and don't like it and need to know how to get back to what I had. Also, is there a good way to set up bookmarks? As in a column to the left or right? Thank you.

    I went the full screen mode and don't like it and want to return to what I had. Also, is it possible to create bookmarks so that list them all in a column to the left or to the right?

    Right-click on an empty part of the toolbar tab and choose "mode full-screen output.

    If you do not see the toolbar at the top of the page, move the mouse to the top and you will see, it seems.

    If this answers your question, please click the button solved next to this post after logging in to the forum. This will help others looking for a solution to the same problem.

    Thank you.

  • good when I have several pictures im by clicking between the spaces and the 2Installez them but theres a lot so I was wondering if there is a way to select and make snap toghter I looked online but no help

    good when I have several pictures im by clicking between the spaces and the 2Installez them but theres a lot so I was wondering if there is a way to select and make snap toghter I looked online but no help

    Yes, you can select a group of items in the project Panel, use of the PLC to the sequence option.

    Neil

  • Using the bookmark Library, I can locate specific bookmarks, but there is no way of knowing which of my cases, it is in. Is it possible to do this?

    Using the bookmark Library, I can locate specific bookmarks, but there is no way of knowing which of my cases, it is in. Is it possible to do this? I have about 15 cases of bookmarks with a total of about 150 bookmarks. The research of the Library bookmark gives good results insofar as find the specific bookmark, but I IN. WANT to KNOW WHO MY RECORDS THE SPECIFIC BOOKMARK IS how can I do this?

    Take a look on these modules:

    https://addons.Mozilla.org/en-us/Firefox/addon/7372/
    https://addons.Mozilla.org/en-us/Firefox/addon/7377/

  • I have a mac 2009 i (late), I want again to install snow leopard (I have the disc), but my driver disk is broken! So I want to ask if there is a way to create a disk image of my windows pc to use it through the hard drive of my imac Lord?

    I have a mac 2009 i (late), I want again to install snow leopard (I have the disc), but my driver disk is broken! So I want to ask if there is a way to create a disk image of my windows pc to use it through the hard drive of my imac Lord?

    External DVD USB drives are cheap. Usually $20 for a good quality player. Just buy one of these at Best Buy or another store and use it to install Snow Leopard. Then you also have a drive for something else that you have on the disk.

  • Is there a a way to turn off the screen while using a DOS program?

    I have an A4 and recently when you use a program to BACK hard drive (which may take several hours) I found that I was unable to turn the display off.

    Of course, the usual display controls depend on Windows but surely there must be a way to do this in the BACK?

    Hello

    I don t think that there is a way to use a DOS program. All Toshiba and public services programs are designed for Windows OS and they work only in Windows environment.
    I m no programmer but I think it s is not possible.
    Moreover you will not find any solution to your problem. There are users looking for solutions to common problems and questions.
    In my opinion, look for a solution in forums for programmers and software developers.

    Good luck

    Good bye

  • good ways to save labview project on a development computer directories

    I created an application recently. Every day will be copy and paste the project watch folder, rename it and change it. When I finished, I deleted the older file and left the latest version on the desktop. Yesterday, I thought to do a quick change after evaluating the executable application for a few days. I found some subvis have been deleted or moved.

    Is there a recommended way to save work daily project development?

    Of course, a tag is a snapshot. You can think of it as a folder that contains your project as it was when you created the tag. Don't worry branches yet. You will probably never use them. For my part never need one. That said, that a branch is simply a tag that you use differently. You never change a tag (you can, but shouldn't), but you change the branches. It is a fork of a project. To create a tag (or branch), you select tags/branches and set the name. For example something like rest/project name/project name_8_28_2011. You can then export it from the repo browser. One of the most impressive things about subversion's documentation. Google 'book of red beans' and read the pdf file. The express are about command line, but you can still get a good idea of the concepts of tags and branches and other aspects of version control.

  • What is a good way to use the queues for the model of consumers/producers?

    Hi all

    I am following the model of consumers/producers to use the queue to synchronize the following process: the producer is a loop to produce a number N, I will put each number generated in a table and after each 5 numbers generated, I put the table in the queue and pass it on to the consumer. I have to wait the use by consumers of the data and it will then remove the item from queue so that producers will have the chance to produce another 5 numbers. As I put the maximum size of the queue one, I expect that the producer and the consumer turns to produce / consume all five numbers and the opportunity to another. Here is my code

    When the checkbox is false, the code will be

    For the first 5 numbers, product will generate every thing right and put it in the table, and it's going to pass the array to the quere so that the consumer will have the chance to loop through the table. I except the procude loop will continue only when the queue is available (i.e. all items are deleted), but it seems that once the consumer starts the loop loop of the product will continue (if the indicator x + 1 and x 2 will be changed to numbers). But this isn't what I want, I know there must be something wrong, but I can't say it is.

    dragondriver wrote:

    As you say in 1, sequency structure to enforce the order of execution, that's why I put it here, in this example, the simple question, I replace the complete code with increase in the number, in the real case, the first markers + 1 and + 2 must be performed in this order.

    Mikeporter says:
    1. get rid of all the structures of the sequence. None of them are nothing but apply a work order which would have been the same without them.

    So even if you delete the sequence structure, there will be a fixed & defined order and it is because LabVIEW follows the MODEL of FLOW OF DATA.

    Data flow model (more precisely in the context of LabVIEW): a block diagram node runs when it receives the required inputs. When a node is running, it produces output data and transmits data to the next node in the path of the data stream. The flow of data on the nodes determines the order of execution of the VIs and functions on the block diagram (click here for reference).

    Now in your code, just remove the sequence structure will not make you order will be going to stay the same, but you need to do some very minor changes (as thread of the error in loop, before that he go to the node "Élément Dequeue").

    Come to the main point: it's a good way to use the queue for the consumer/pmodel that?
    The model you are using (and qualifying as consumer/pmodel) is much too deviated from the original consumer/pmodel which model.

    dragondriver wrote:

    For the second, Yes, it's my fault for delete, though. I'm actually the example of model of producer/consumer design pattern, but I do not pay attention to the while loop in the part of the consumer.

    While loops (two producers & consumers) are the essential part of this architecture and cannot be deleted. You can start your code using standard model.

  • Is there a safe way to disable SVCHOST

    Original title: SVCHOST

    I'm having a problem with SVCHOST and trying to get Microsoft Windows updates - but problem bla is causing the download to take too lond and my machine keeps dropping out of his internet connection. Is there a safe way to disable SVCHOST while I do the download/upgrade to update?

    http://techpaul.WordPress.com/repair-your-Internet-connection/

    read on and see if fix your internet connection will help you.

    Also, take a look in the Device Manager, the yellow exclamation points, showing a problem with your devices?

    can you go to the Microsoft Download Center and download a file without losing internet:

    http://www.Microsoft.com/en-US/Download/details.aspx?ID=24

    above is the xp service pack 3 download, which you should already have installed, just to see if it will then download when the dialog box appears, choose to save it to your desktop.

    post back with results and also do this:

    Click Start, run and enter in the box:

    Msinfo32

    Click OK, and when the system info summary appears, click on edit, select all (Ctrl-A), copy (Ctrl-C) and paste (Ctrl-V) the information back here in your next reply.

    You can change the personal information.

     

    Download, install, update and scan with these full free malware detection programs:

    Malwarebytes (MMFA): http://www.malwarebytes.org/products/malwarebytes_free

    SUPERAntiSpyware: (SAS): http://www.superantispyware.com/

    Remove all found, restart, and run again until analyses race clean, these can be removed later if you wish. Perform analyses to one at a time, please.

    Let me know if the downloads above do good, so we can check if it is only the update site.

Maybe you are looking for