How to manage the ORA- errors

hi, can anyone tell me how to handle the ora errors, let say when a usere doesnt have the priveleges to add data in database this exception is generated:
ORA-06550: line 1, column 19: PL/SQL: ORA-01031: insufficient privileges ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored i want to display my message when this errors occure.Can i use the classes in the SRDEmo to catch the ora exceptions?
thanks in advance:)

What we did is make our own "filterOracleUserException". In this class we replace the 'default' ORA-<error>-<errortext> with our own error message which is read from a bundle:
Here is the code:
private static String filterOracleUserException(String input) {
if (input != null) {
String[] lines = input.split("[\r\n]");
if (lines.length > 0) {
Matcher m = ORACLE_USER_ERROR.matcher(lines[0]);
if (m.matches()) {
return m.group(1).trim();
m = ORACLE_ERROR.matcher(lines[0]);
if (m.matches()) {
try {
String errorCode = lines[0].substring(4,9);
return JSFUtils.getStringFromBundle("AnError.ORA." + errorCode
,input);
} catch (IndexOutOfBoundsException ex) {
return input;
return input;
good luck with it
Luc Bors
Message was edited by:
lucbors

Similar Messages

  • How to find all ORA error code and the message in Oracle10g?

    Does anyone knows how to list all ORA error code and message in SQL Plus or find a full list of ORA error code in documentation?

    If you want ALL Oracle ORA error codes in single page or even downloadable (html or pdf format) then check following post.
    http://www.oratraining.com/blog/2010/08/complete-list-of-all-oracle-ora-errors/
    Regards,
    Tushar
    Edited by: oratraining on Aug 18, 2010 12:20 AM

  • How to get the last error for while loop?

    How to get the last error for while loop? I just want transfer the last error for while loop, but the program use the shift register shift all error every cycle.

    What do you mean by "get" and "transfer"?
    If the shift register is not what you want, use a plan tunnel instead.
    Typically, programmers are interested in the first, not last, error.
    Can you show us your code so we have a better idea what you are trying to?
    LabVIEW Champion . Do more with less code and in less time .

  • How to delete the runtime error in st22

    Hi all,
            How to delete the runtime error in ST22. I want to clear
    the list of short dump in st22
    is there any T.code or any table to clear?
    thanks in advance
    sundar.c

    Hi
    you cannot delete the dumps through any tcode.
    All the dumps are stored in table called SNAP, If there are more dumps the table gets filled therefore u have to reorganize the table.
    Run the report RSSNAPDL in SE38.
    or
    You have the default SAP background jobs, SAP_REORG_ABAPDUMPS which deletes the past dumps raised in the system.
    Scheduling the jobs in regular is very important
    For more information
    http://help.sap.com/saphelp_nw04/helpdata/en/c4/3a7ede505211d189550000e829fbbd/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/d8/a58b4275160d53e10000000a155106/frameset.htm
    Regards
    Bhaskar

  • HOW TO SOLVE THE R6034 ERROR IN ITUNES INSTALATION

    I need toknow how to solve the R6034 error in itunes instalation becouse y can´t buk up muy phone

    How to solve this ?
    #import <UIKit/UIKit.h>
    int main(int argc, char *argv[]) {
        NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
       -> int retVal = UIApplicationMain(argc, argv, nil, nil);
        [pool release];
        return retVal;

  • Hi someone, I went to muse theme and browse widgets to find the toolbox 024 of google language translator, i saw the video explaining how to manage the widgets but now where can i found it to include it in my website because the french version of muse don

    Hi someone, I went to muse theme and browse widgets to find the toolbox 024 of google language translator, i saw the video explaining how to manage the widgets but now, where can i found it to include it in my website because the french version of muse don't have several free widgets for people like me who pay every month the application.Thanks

    I'm not aware of a free translator widget.
    I found these...
    Website Translator 
    Translator Widget  $6.99 for the widget
    Adobe Muse TB024 Widget | MuseThemes.com  $69/year Includes everything | I signed up for this and it's been well worth it, they have new themes & widgets every month.

  • How to capture the DB Errors to display more specific error on the screen

    HI,
    How to capture the DB Errors to display more specific error on the screen?
    Can any one suggest on this please.
    Thanks

    hi,
    in your db package or procedure write this in ur exception handler
    as
    excpetion when others
    FND_MSG_PUB.ADD_EXEC_MSG (pkg_name, proc_name,
    substr(sqlerrm, 1, 240))
    now in your java code you can catch and throw this excpetion by using
    OAExceptionHelper.checkErrors (Tx, messageCount, returnStatus, messageData);

  • How to manage the files in Ipod?

    Hi everybody!
    I just bought a 80GB Ipod and I'm having a hard time figuring it out how to manage the files I've downloaded to it. I just sent a podcast to it but it doesn't appear it the Podcast folder. I have to search it in the entire list of files. Can someone tell me how I can manage these files?
    Thank you very much!

    Hi everybody!
    I just bought a 80GB Ipod and I'm having a hard time
    figuring it out how to manage the files I've
    downloaded to it. I just sent a podcast to it but it
    doesn't appear it the Podcast folder. I have to
    search it in the entire list of files. Can someone
    tell me how I can manage these files?
    Thank you very much!
    Use iTunes.

  • How to manage the memory in i pad

    how to manage the memory in i pad

    Use iTunes on your computer to store items that you want to save but are not needed on the iPad. Learn to sync and also learn how to do file transfers. Delete unneeded items from the iPad.
    When you connect your iPad to iTunes you will see a bar describing how much of your storage space is being used on your iPad. I always suggest leaving plenty of space open for the iOS and apps to operate.

  • HT4847 How i can download my backup data? And how to manage the data on i Cloud?

    How i can download my backup data? And how to manage the data on i Cloud?

    You can't download an iCloud backup, except to restore it to your device should you ever need to.
    iCloud data can be managed within the apps on your iPad.  Any changes to the data within the apps corresponding to the data you are syncing with iCloud will take place in iCloud.  You can also manage some of this data on icloud.com from your computer.
    This article explains ways to manage your iCloud storage space, should you need to reduce you iCloud storage: http://support.apple.com/kb/ht4847.

  • How to know the code error diagnostic hardware (AHT) ?

    I want konw
    How to know the code error when do it Apple Hardware Test.
    Anybody have note the code error (AHT)
    Thank you

    Does this help: http://reviews.cnet.com/8301-13727_7-57352461-263/how-to-invoke-and-interpret-th e-apple-hardware-tests/ ?

  • How to manage the host root folder?

    I'm using iWeb08, and I'm on system OSX 10.5.8.
    Last week I flawlessly transferred my site from Apple to another host.
    My question is, to make a few simple changes to it, {mostly text and links}, do I have to load up ALL the files again to the ftp host?  I don't know how to manage the root folder yet and I don't want to clutter the folder or cause the site to malfunction.
    Is there any useful posts on managing a hosting root folder??
    Problems or thing I should know using iWeb08?
    Thanks...  Ghary.com

    Once you get to know the file structure its possible to just upload the changed files by intelligent guesswork.
    You can also look at the date on the local published files but this would be rather time consuming.
    Most FTP apps have a synchronise feature to handle this for you but you need to set this up carefully and do a test run to make sure it doesn't wipe out essential files on the server.
    If you do a lot of updates and you want to get your web pages downloading faster, an optimizer will do all the thinking for you. These screenshots are of one of Ton Brand's Optimizers - HTML Optimizer Plus
    On the first pass all the files are optimized and uploaded...
    After that, Smart Handling is turned on and only the changed files are processed...
    The original folder is 10.1 MB and the Optimized one is 7.7 MB. That's without optimizing the PNG images. The finished site downloads fast. It needs to since its designed to work on mobile devices.

  • How to manage the ATE_SEARCH_IDX-index in Ask the expert-application?

    I'm currently looking at the Ask the expert(=Tom Kyte) application and I cannot figure out how to manage the Oracle Text-index "ATE_SEARCH_IDX" ON "ATE_SUBMITTED_QUESTIONS" ("ANSWER")
    INDEXTYPE IS "CTXSYS"."CONTEXT".
    In the Readme-file can be read:
    "To customize search functionality, view the Oracle Text Index installation
    script. You can change the interval that the index is synched and change
    the fields that are used in the search."
    I don't see the Oracle Text Index installation-script.
    Can anyone give me the contents of the script or come up with an alternative?
    Thanks,
    Jan Willem

    Thank you, Marco. I found it.
    Still, the reason why I was looking for it was the fact that I asked myself a question, answered it and then tried to Search for it. I couldn't find my own question (and answer).
    The only way I found to make it work was to manually rebuild the index on the answer-column in ATE_SUBMITTED_QUESTIONS. But I'm sure there's another way, because these are not the kind of things you'd like a customer (or myself) to do on a regular basis.
    Can you give me another way to synchronize this index preferably managed from inside the database?

  • How to manage the Credit Control for Customer Consignment Process?

    Hi All,
    Could anyone tell me how to manage the Credit Control for Customer Consignment Process?
    Thanks

    Hi, there is not standard solution, we did customized process for consignment credit block , check below
    1. defined status profile - with lock/auto/approved/rejected and new t.code for approval or rejected.
    2. maintained consignment credit limit in Z table
    3. logic for detemining status written in sales order save userexit.
    4. while calcualting the values, system need to check open sonsignment order of customer/ open deliveries/ stocks at customer place MSKU table. and calculate value with MBEW/KONV ect.
    5. if value is less than Z table then status AUTO, which do not need release, if value is greater than Z table put status LOCK means credit block need to release from new T.code.
    Hope you get some idea

  • How to manage the Discoverer for OLAP catalog -Require Documentation

    how to manage the Discoverer for OLAP catalog - I need docuementation on this area. can some one please help it
    Thanks, Prasad

    Check the Discoverer Installation and Configuration Guide, Chapter 6. Also review the Discoverer for OLAP Best Practices Guide on the Discoverer OTN Home Page.
    Keith Laker
    Oracle EMEA Consulting
    BI Blog: http://oraclebi.blogspot.com/
    DM Blog: http://oracledmt.blogspot.com/
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN: http://www.oracle.com/technology/products/bi/
    BI Samples: http://www.oracle.com/technology/products/bi/samples/

Maybe you are looking for

  • Face Time in 10.7.2 Lion

    Hello Folks, I am UK based I recently became an Apple convert.  My system is an late 2009 27” iMac with a 1Tb TimeCapsule.  I use an Ethernet wired connection for my iMac from my modem/router router with wired Ethernet HomePlug for my TV and other Wi

  • Search not working in open dialogue box.

    Why is it that after nearly TWO years the search function in the open dialogue box is still not working in inDesign? Why can it work when in the PASTE dialogue box but not the OPEN dialogue box? I discovered this fault years ago and wrote about it in

  • Problem about asynchronous call: subVI front panel doesn't pop up when called.

    Dear All, I'm new to LabVIEW, and this is the first time I try to use the asynchronous call. I'm using LabVIEW 2011. I want to build a directory for several VIs, and it should allow users to open more than one of the VIs at the same time by pushing t

  • Software downloads for Aironet 350 Wireless LAN Adapter

    Where can I get the software to install the Aironet 350 Wireless LAN Adapter? Will it have a client manager? I think that's what the software is to switch settings as you change locations.Model: AIR-PCM352

  • How to update with a custom build without losing all the data?

    I have a ZTE Open I regularly update with custom builds. Every time I do this, I lose all of my data on the phone, such as contacts, installed apps from the Market store, settings (including wireless and email settings). Recovering all of this data a