How can I capture in forms the text from a database error

In forms6i, how can I capture the text of an error during the execution of a dabatase procedure or package.
Thanks for your help.

You can use SQLERRM function :
SQL> create or replace procedure procerr
  2  is
  3     n number;
  4  begin
  5     n := 1/0;
  6* end;
SQL> /
Procedure created.
SQL> set serveroutput on
SQL> declare
  2     err1    varchar2(200);
  3  begin
  4     procerr;
  5  exception
  6     when others then
  7             err1 := SQLERRM;
  8             dbms_output.put_line(err1);
  9* end;
SQL> /
ORA-01476: divisor is equal to zero
PL/SQL procedure successfully completed.
SQL>

Similar Messages

  • How can I copy a paragraph of text from a Kindle book on the iPad?

    I just purchased a book to read on the Kindle app on my iPad.
    I would like to copy a paragraph of text to email to someone or to possibly quote in a blog post.
    How can I copy a paragraph of text from a Kindle book on the iPad?

    I'm very late to the conversation but thought I'd chime in since I've just been dealing with this myself. One way to copy from Kindle books is to make sure that you have your settings to backup highlights etc. online, then highlight the text in the Kindle app, go to your Kindle webpage (https://kindle.amazon.com/your_highlights) and copy the text from there.
    Remember, to be able to do this you have to set the app to backup highlights etc. I think this is set individually for each book. On my iPad the default is to backup.

  • In v.11, how can I capture video but not audio from a camera?

    In v.11, how can I capture video but not audio from a camera?

    Rodney
    I see what you mean....Premiere Elements 10 appears to be the last version that had options for the user to select Capture Video and/or Audio in the its Capture Window.
    If you are doing DV data capture firewire into the Premiere Elements 11 Capture Windows and want a final file without audio and you cannot do this at the camera level, then consider....
    1. Do the Capture "to the Timeline" - video linked to audio result on the project's Video Track 1
    a. Right click the Timeline DV AVl and select Delete Audio and then edit accordingly.
    or
    b. Import the DV AVI but, when you go to export it, in the export settings, remove the check mark next to Audio so that the export contains only the video portion.
    Publish+Share/Computer/AVI with Presets = DV NTSC Standard
    Please let us know if any of that worked for you.
    Thank you.
    ATR

  • How can I transfer all of the files from my old iPhone 4S to my new iPhone 5?

    how can I transfer all of the files from my old iPone 4S to my new iPhone 5?

    Download the media content from an iTunes library or the iTunes Store, and follow these instructions to transfer your personal settings and data.
    (83108)

  • LG Lucid 3: How can I get rid of the text message indicator? It says I have a text message, but I do not.

    I have a new LG Lucid 3 and the text message indicator says I have a new message, but I do not. Messaging is empty when I click on it. How can I get rid of the "1" indicator? I tried turning the phone on and off and that did not work.

    Thanks for trying, Anzivina! You've done some strong troubleshooting. Although I do wish it had resolved this matter, I believe we still have options. You've indicated that  you've done a factory reset. Can you walk me through the steps you took to get there? Also, after the factory reset, how long before this message indicator appeared again? Was it before or after you restored all your personal data?
    DionM_VZW
    Follow us on Twitter @VZWSupport
    If my response answered your question please click the "Correct Answer" button under my response. This ensures others can benefit from our conversation. Thanks in advance for your help with this!!

  • How can I Insert pictures in the text? Is there another way besides attaching a file?

    How can I insert a picture in the text email instead attaching file?

    The feature to add images in tables is gone, ike about another 90 features that exists in Pages 09.

  • How can I make a form where text flows from one line to another?

    I have created a fillable multi page form in Adobe Acrobat Pro XI. The form was originally created in InDesign, using lines for text. I saved as an interactive pdf, opened in Acrobat Pro, and created a form using the "Create Form" function. This worked great, but some parts of the form have multiple lines that need to be filled out, so the customer would continue typing and the type would flow from one line to the next. Right now the lines are individual fields. Can I easily convert these fields so that the text goes from one line to the next as the person filling out the form types?
    Thank you for the help.

    The easiest way is to do a slight redesign to get rid of the lines and then use a multiline field instead of multiple single line fields. If you really need to have the lines, you can use an approach that's demonstrated in the following sample: https://workspaces.acrobat.com/?d=AG6oZ3bi3DYHokxDPeWN7A
    You may come across attempts to use JavaScript to automatically move to the next field when the previous one is filled-up, but I've never seen this work very well.

  • How can I get rid of the text and only have icons in the bookmarkfield?

    Earlier the bookmarkfied only showed icons but after the upgrade they show icons and text. How can I get back to only icons so I can have the good old overwiw back?

    umparrothead wrote:
    Test this by going to that folder with both in it and click View/Show View Options. In there, de-check "Show icon preview", and you should see the bordered icons go to default file type icons and the unframed ones remain the same. I honestly don't know how to re-embed the image in the icon data, as it does not play well with the typical paste in on Get Info. Hope this gets a solution rolling, because it's something that's bothered me as well.
    Thanks umparrothead. Yeah, I see what you're saying. The copy and paste into the "get info," is buggy, but it does actually work. I have noticed this when trying to change the icon on an .avi file. The copy paste in "get info," initially shows the paste, but it's not reflected immediately in the files icon in the finder window. I have gotten it to show up as the files icon by moving the file to another folder, (in list view), and then... opening then and closing the folder.
    See here the border on the one file is gone!!
    This opening and closing does not work in the folder the file is in. It only works after moving it to another folder and then opening and closing?!? I think it has something to do with quickview trying to over-ride our choice of icon for it's own choice, whether it be a poster frame on a movie file, or in this case it's own "bordered" view of the photo inside. I imagine it might also show up after a restart, but that is surely far more extreme than the dreaded move file/open folder/close folder/open folder/move file back, trick. uuugghhh...
    This copy paste thing is no solution to be sure. But it does work. I just wish there were some kind of script so I can run it on hundreds of photos at a time...
    Any one else out there with any ideas?!?

  • How can I buy music form itunes Italia from the USA?

    How can I buy music from Itunes Italia from the USA?

    1. Click here and use the form.
    2. Apple doesn't have permission to sell it from whoever holds the copyright to it in the USA.
    (66658)

  • How can I make part of the text bold

         TheProfileRoot.EngineeringText.text = "Level " + PlayerEngineerLevel + " Engineer - level up in " + PlayerReqEngineer + " xp";
    I want the "Level " + PlayerEngineerLevel to be bold. And the rest to be plain. How can I do this?

    I can't troubleshoot AS2.0 right now as my computer is undergoing a recovery, but from your post I can see a solution.  Assign variables to several text fields, some of them with the attributes of having bold text assigned in the Flash authoring platform, and some of them having default values.  I am sure there are attributes such as boldness that can be set using AS2.0 but again I can't troubleshoot and my reference material is not with me right now.  (Most of my reference material is for AS3.0 which I am in the process of learning)

  • How can I backup all of the texts on my iPhone to iMessage on my Mac?

    I want to transfer every text on my iPhone, since the beginning of time, onto my Mac in an easily synced and accessible way. I want to use iMessage on my Mac to store all of the texts on my phone.
    Eventually, I want to hold only a month/week's worth of texts on my iPhone to save space.

    Text (SMS) cannot be mixed with iMessage.
    You can do a backup using iTunes where your SMS and iMessage will be included but you can't be selective on what you want to restore. It's all or nothing. Furthermore the backup cannot be read without a 3rd party tool.
    Backup
    iTunes http://support.apple.com/kb/ht4946

  • How can I capture and re-present Oracle contraint/check/DML errors?

    Hi,
    New to APEX, I have a Designer/Web-PLSQL background.
    In Designer I can define the messages that I want the user to see when check, constraint, etc. errors are generated by the application interaction with the database server (done through table API and the integration of the Designer generated screens).
    In APEX, these types of errors all seem to show the default 'ORA' style message on an error page. How can I change these to 'human-readable' messages?
    I'm obviously missing the trick that changes an ORA-0001 message referring to CUST_CODE_UK to something like 'This Code has already been assigned to another customer'? I want to use standard functionality, not really keen on creating my own DML packages for every table that needs to be accessed through a screen.

    user8038482 wrote:
    dear sir,
    i have windows 7 and install oracle 10g,developer suite 10g 32 bit working everything fine but any forms trying to open giving errors oracle form designer stopted working check online sulition can you help get and send the like of patch file so i can download even i am able to download the patch file pls help i will be grateful for the same.
    thanks you..
    As'salamualikum, m z Islam
    check this Oracle Forms Designer has stopped working/ How to apply Patchset 7047034 ?
    Hope this works..
    hamid
    Mark correct/helpful to help others to get right answer(s).*

  • How can I opt out of marketing texts from EE?

    I receive marketing SMS messages from EE on a fairly frequent basis. They never have an option to reply "STOP" as there is with other marketing texts. I've browsed the My Account section on EE  and can't see any options there to opt out either. How can I tell EE that I no longer want to receive these texts?

    Hi 
    Unfortunately you cant stop them by replying STOP.
    As XRaySpeX mentioned you would need to give us a call and advise customer service you would like to change your Contact Consent.
    Hope this helps!
    Thanks. 

  • How can i extract using while the time from the string ?

    First time how can i extract the time as string ?
    And second how can i extract the time as DateTime.Now ?
    public static void ExtractDateTime()
    htmltoextract = new Uri("http://test.com");
    client = new WebClient();
    f = client.DownloadString(htmltoextract);
    client.Dispose();
    int index = 0;
    while (index != -1)
    int t = f.IndexOf(firstTag);
    int g = f.IndexOf(lastTag);
    a = f.Substring(t + firstTag.Length, g - t - 8);
    The string look like this: thisisateststring201309202145andthenextimeinthestringis201309202130andthelastofthisexampletimeinthisstringis201309202115
    What i need to do is first time to extract the time as string to a List<string> like this:
    index 0 201309202145
    index 1 201309202130
    index 2 201309202115
    The second time to extract the times as this time format: YYYYMMDDhhmm and also to add the times to a List.
    First time and second time i mean first example and second example. To use my code but first time to extract it as strings second example as the format of YYYYMMDDhhmm
    And i need to use the while and indexof and substring in this cases.

    Is the region always going to be "eu" or are you going to have more than one region.  Since you are reading a string DateTime from different timezone than the computer you are reading the data you have to convert to a different timezone. 
    It looks like you have at least 'is' and 'eu' for regions.  I don't know what offsets you need so try something like this.
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Text.RegularExpressions;
    using System.Globalization;
    using System.IO;
    namespace ConsoleApplication1
    class Program
    static void Main(string[] args)
    string input = File.ReadAllText(@"c:\temp\test.txt");
    string pattern1 = @"imageUrls = \[[^\]]*\]";
    Regex ex1 = new Regex(pattern1, RegexOptions.Singleline);
    string pattern2 = @"region=(?'region'[^&]*)&time=(?'time'\d{12})";
    Match match1 = ex1.Match(input);
    Regex ex2 = new Regex(pattern2, RegexOptions.Singleline);
    MatchCollection matches2 = ex2.Matches(match1.Value);
    IFormatProvider provider = CultureInfo.InvariantCulture;
    List<DateTime> dateTime = new List<DateTime>();
    foreach (Match match2 in matches2)
    string region = match2.Groups["region"].Value;
    DateTime dt = DateTime.ParseExact(match2.Groups["time"].Value, "yyyyMMddHHmm", provider);
    switch (region)
    case "eu" :
    dt.AddHours(1);
    break;
    case "is":
    dt.AddHours(-1);
    break;
    dateTime.Add(dt);

  • How can i retrieved data into the infocube from archived files

    hi,
    i have archived cube data and i have to load data into the cube from archived files.
    so now i want to find archived files and how to load data into the cube.
    thanks

    Hi.....
    Reloading archived data should be an exception rather than the general case, since data should be
    archived only if it is not needed in the database anymore. When the archived data target is serving also as a
    datamart to populate other data targets, Its recommend that you load the data to a copy of the original
    (archived) data target, and combine the two resulting data targets with a MultiProvider.
    In order to reload the data to a data target, you have to use the export DataSource of the archived data
    target. Therefore, you create an update rule based on the respective InfoSource (technical name 8<data
    target name>). You then trigger the upload either by using ‘Update ODS data in data target’ or by
    replicating the DataSources of the MYSELF source system and subsequently scheduling an InfoPackage
    for the respective InfoSource
    If you want to read the data for reporting or
    control purposes, you have to write a report, which reads data from the archive files sequentially.
    Alternatively, you can also use the Archiving Information System (AS). This tool enables you to define an
    InfoStructure, and create reports based on these InfoStructures. The InfoStructures define an index for
    the archive file data. At the moment, the archiving process in the BW system does not fill the
    InfoStructures during the archiving session automatically. This has to be performed manually when
    needed.
    Another way of displaying data from the archive file is by using the ‘Extractor checker’ (TCODE RSA3).
    Enter the name of the export DataSource of the respective data target (name of the data target preceded
    by ‘8’), and choose the archive files that are to be read. The extractor checker reads the selected archive
    files sequentially. Selection conditions can be entered for filtering but have to be entered in in internal
    format
    It will remain same in the change log table.
    Check this link :
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b32837f2-0c01-0010-68a3-c45f8443f01d
    Hope this helps you...........
    Regards,
    Debjani............

Maybe you are looking for

  • Display comments on mouse over

    Hi Gurus, I need to display comments on mouse over on the cell in web report. In a web report, when a user right click on a cell and click 'Goto' and 'create comment' and enters and saves a comment then I can view the comment using a 'List of documen

  • HT202157 I lost access to MBL.TV, You Tube, WSJ live..5.1 update ATV3

    After 5.1 update ..disaster. Appears all 3rd party services not avail. Also inconsistent connection to the Itunes store. Lesson learned .. never upgrade during a pennant race. Otherwise I have an IP address, I can navigate, I can use the remote featu

  • Auditing in Discoverer

    Hello All, How to do auditing using disocverer. suppose there exists auditng on per_pay_proposals. Kind Regards, Kumar.

  • Plzzzz help me with this :(

    i have this project but i didnot how to complete it >> plz help me Write a program to manage assigned course to students. The number of sections is unknown, and might change from a term to another. We assume that each student is recognized by his nam

  • Possible  not to specify disk name in Solaris 11 Automated Installer?

    Hi, sorry if this has been asked before, I searched for it but couldn't find the answer. In Solaris 10 jumpstart, you could use rootdisk.s0 , rootdisk.s1 to specify creating s0 on the disks. but as showing in http://docs.oracle.com/cd/E23824_01/html/