Example about dbms_space.space_usage displays an error....

Hi ,
I try to execute the following anonymous block (as user sys) contained in the
Oracle® Database PL/SQL Packages and Types Reference
10g Release 2 (10.2)
Part Number B14258-01
The anonynous block is as follows....
SQL> variable unf number;
SQL> variable unfb number;
SQL> variable fs1 number;
SQL> variable fs1b number;
SQL> variable fs2 number;
SQL> variable fs2b number;
SQL> variable fs3 number;
SQL> variable fs3b number;
SQL> variable fs4 number;
SQL> variable fs4b number;
SQL> variable full number;
SQL> variable fullb number;
SQL>
SQL> begin
  2  dbms_space.space_usage('U1','T',
  3                          'TABLE',
  4                          :unf, :unfb,
  5                          :fs1, :fs1b,
  6                          :fs2, :fs2b,
  7                          :fs3, :fs3b,
  8                          :fs4, :fs4b,
  9                          :full, :fullb);
10  end;
11  /
begin
*ERROR in line 1
ORA-00942 : table or view does not existWhat object may be missing.....????
I have created the database using DBCA 10g......
Thanks....
Sim

I cannot reproduce this issue with 10.2.0.2 (db also created with DBCA):
SQL> show user
USER est "SYS"
SQL> desc test.t;
Nom                                       NULL ?   Type
X                                                  NUMBER(38)
SQL> select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Prod
PL/SQL Release 10.2.0.2.0 - Production
CORE    10.2.0.2.0      Production
TNS for Linux: Version 10.2.0.2.0 - Production
NLSRTL Version 10.2.0.2.0 - Production
SQL> variable unf number;
SQL> variable unfb number;
SQL> variable fs1 number;
SQL> variable fs1b number;
SQL> variable fs2 number;
SQL> variable fs2b number;
SQL> variable fs3 number;
SQL> variable fs3b number;
SQL> variable fs4 number;
SQL> variable fs4b number;
SQL> variable full number;
SQL> variable fullb number;
SQL>
SQL> begin
  2    dbms_space.space_usage('TEST','T',
  3                            'TABLE',
  4                            :unf, :unfb,
  5                            :fs1, :fs1b,
  6                            :fs2, :fs2b,
  7                            :fs3, :fs3b,
  8                            :fs4, :fs4b,
  9                            :full, :fullb);
10    end;
11  /
Procedure PL/SQL terminee avec succes.It's not a role/ PL/SQL problem.
Message was edited by:
Pierre Forstmann

Similar Messages

  • About display driver error report

    My operating system is windows 07. I have pentium 4 intel prosessor and motherboard is p pavilion 06 asteron. when i'm working the display shut for a moment and displays the display driver error report that "display driver stopped responding, has been solved". the display driver is ATI RADEON EXPRESS 200 series. if the matter with display driver how can i get proper one.

    Hi again dasuncj,
    Thank you for the quick reply!
    So that I can better diagnose the error message with your specific brand of HP Pavilion 06, I will need to know both the model and product number. This can be found by using this video below:
    Please re-post with the necessary information, this way I will be able to research this further for you. I look forward to your reply!
    Cheers!
    MechPilot
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks” for helping!

  • ICI - How to display custom error messages in SAP CRM

    Hello,
    we are working on a custom Contact Center which interfaces with SAP CRM Version 7 with Enhancement Package over ICI.
    The basic call functions like accepting, hanging up, holding and retrieving are fully implemented and are working already.
    Our goal is to display error messages in the CRM so that clients know there is something wrong, for example why he can't be log in successfully (e.g. the telephony server isn't reachable).
    We already found the ICI Documentation file which provides us the CRM SOAP error codes and tried to send SOAP Fault messages, but never got
    them to screen.
    Please find an attached example screenshot what we mean exactly, reproduced by trying to make a call with CRM user while BCM CDT isn't
    running in the background.
    Regarding to this topic we've the following questions:
    - Is it possible to display custom error messages on the CRM or is this functionality limited to SAP?
    - Could you provide us some further information on how to use this feature exactly (implementation details?) and how the SOAP XML should look like to get it work?
    Thank you in advance!
    Best regards
    René Holy

    NewUser7 wrote:
    Please correct me if I am wrong
    I need to create an entity adapter and attach an error handler with the adapter? or can i handle that in the event handler itself. I coulnt find any api for handling errorsYou can do it both ways but since we are talking about event handler now, then in 9.x you need to extend com.thortech.xl.client.events.tcBaseEvent class for creating a event handler. In tcBaseEvent class there are various flavors of handleError method. So use that as per my note earlier and you should be good.
    HTH

  • Using DBMS_SPACE.SPACE_USAGE

    I have a partitioned table that contain one SECUREFILE column (Oracle 11.2.0.2 Linux 64bit).
    I would like to check its space usage in order to check if the compression and deduplication will help us to reduce the CLOB column's size.
    I've found the following note in metalink: How to Check Space Occupied by LOB Compression
    https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&id=861344.1
    However, this link is refered to a regular table, not partitioned.
    I've seen in the documentation of DBMS_SPACE.SPACE_USAGE that there is a partition name attribute, but I'm not seem to use the procedure correctly.
    I'm trying to run the following code:
    DECLARE
    l_segment_size_blocks NUMBER;
    l_segment_size_bytes NUMBER;
    l_used_blocks NUMBER;
    l_used_bytes NUMBER;
    l_expired_blocks NUMBER;
    l_expired_bytes NUMBER;
    l_unexpired_blocks NUMBER;
    l_unexpired_bytes NUMBER;
    v_segname varchar2(30);
    BEGIN
    DBMS_SPACE.SPACE_USAGE(
    segment_owner => 'LOG',
    partition_name =>'PART_03_2009',
    segment_name => ' [https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&id=861344.1|https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&id=861344.1] SECURITY_LOG',
    segment_type => 'TABLE PARTITION',
    segment_size_blocks => l_segment_size_blocks,
    segment_size_bytes => l_segment_size_bytes,
    used_blocks => l_used_blocks,
    used_bytes => l_used_bytes,
    expired_blocks => l_expired_blocks,
    expired_bytes => l_expired_bytes,
    unexpired_blocks => l_unexpired_blocks,
    unexpired_bytes => l_unexpired_bytes
    DBMS_OUTPUT.ENABLE;
    DBMS_OUTPUT.PUT_LINE(' Segment Blocks = '||l_segment_size_blocks||' Bytes = '||l_segment_size_bytes);
    DBMS_OUTPUT.PUT_LINE(' Used Blocks = '||l_used_blocks||' Bytes = '||l_used_bytes);
    DBMS_OUTPUT.PUT_LINE(' Expired Blocks = '||l_expired_blocks||' Bytes = '||l_expired_bytes);
    DBMS_OUTPUT.PUT_LINE(' Unexpired Blocks = '||l_unexpired_blocks||' Bytes = '||l_unexpired_bytes);
    DBMS_OUTPUT.PUT_LINE('=============================================');
    END;
    And I get this error : ORA-03213: Invalid Lob Segment name for DBMS_SPACE package
    Some information
    select partition_name, interval, num_rows
    from dba_tab_partitions where table_owner = 'LOG'
    order by partition_position;
    1     PART_03_2009     NO     1235667
    2     PART_04_2009     NO     4621135
    3     PART_05_2009     NO     1322246
    4     PART_06_2009     NO     6442123
    SELECT segment_name, partition_name, segment_type
    FROM DBA_SEGMENTS
    WHERE OWNER = 'LOG'
    and segment_type in ('TABLE PARTITION','LOB PARTITION')
    order by 2;
    SECURITY_LOG                    PART_03_2009     TABLE PARTITION
    SECURITY_LOG                    PART_04_2009     TABLE PARTITION
    SECURITY_LOG                    PART_05_2009     TABLE PARTITION
    SECURITY_LOG                    PART_06_2009     TABLE PARTITION
    SYS_LOB0000048317C00014$$     SYS_LOB_P495     LOB PARTITION
    SYS_LOB0000048317C00014$$     SYS_LOB_P498     LOB PARTITION
    SYS_LOB0000048317C00014$$     SYS_LOB_P519     LOB PARTITION
    SYS_LOB0000048317C00014$$     SYS_LOB_P523     LOB PARTITION
    What am I doing wrong ? What should I change?
    Thanks in advance,
    Roni.

    Thank you for your link.
    I understood from Kyte's example how to use it and now it works.
    I used the table name and partition name of the table instead of the lob segment name and the lob segment partition name.
    Can you please tell me if there is a query that correlates between the lob segment partition name and the table partition name?
    I would like to know what is the lob segment partition name of the table partition 'PART_03_2009' (or what is the table partition name of lob segment partition SYS_LOB_P495) and so on.
    In the DBA_SEGMENTS I didn't find any fields that can help me connect between the two.
    Information from DBA_SEGMENTS
    SELECT segment_name, partition_name, segment_type
    FROM DBA_SEGMENTS
    WHERE OWNER = 'LOG'
    and segment_type in ('TABLE PARTITION','LOB PARTITION')
    order by 2;
    SECURITY_LOG     PART_03_2009     TABLE PARTITION
    SECURITY_LOG     PART_04_2009     TABLE PARTITION
    SECURITY_LOG     PART_05_2009     TABLE PARTITION
    SECURITY_LOG     PART_06_2009     TABLE PARTITION
    SYS_LOB0000048317C00014$$     SYS_LOB_P495     LOB PARTITION
    SYS_LOB0000048317C00014$$     SYS_LOB_P498     LOB PARTITION
    SYS_LOB0000048317C00014$$     SYS_LOB_P519     LOB PARTITION
    SYS_LOB0000048317C00014$$     SYS_LOB_P523     LOB PARTITION
    This anonymous block worked:*
    DECLARE
    l_segment_size_blocks NUMBER;
    l_segment_size_bytes NUMBER;
    l_used_blocks NUMBER;
    l_used_bytes NUMBER;
    l_expired_blocks NUMBER;
    l_expired_bytes NUMBER;
    l_unexpired_blocks NUMBER;
    l_unexpired_bytes NUMBER;
    v_segname varchar2(30);
    BEGIN
    DBMS_SPACE.SPACE_USAGE(
    segment_owner => 'LOG',
    partition_name =>'*SYS_LOB_P495*',
    segment_name => '*SYS_LOB0000048317C00014$$*',
    segment_type => 'LOB PARTITION',
    segment_size_blocks => l_segment_size_blocks,
    segment_size_bytes => l_segment_size_bytes,
    used_blocks => l_used_blocks,
    used_bytes => l_used_bytes,
    expired_blocks => l_expired_blocks,
    expired_bytes => l_expired_bytes,
    unexpired_blocks => l_unexpired_blocks,
    unexpired_bytes => l_unexpired_bytes
    DBMS_OUTPUT.ENABLE;
    DBMS_OUTPUT.PUT_LINE(' Segment Blocks = '||l_segment_size_blocks||' Bytes = '||l_segment_size_bytes);
    DBMS_OUTPUT.PUT_LINE(' Used Blocks = '||l_used_blocks||' Bytes = '||l_used_bytes);
    DBMS_OUTPUT.PUT_LINE(' Expired Blocks = '||l_expired_blocks||' Bytes = '||l_expired_bytes);
    DBMS_OUTPUT.PUT_LINE(' Unexpired Blocks = '||l_unexpired_blocks||' Bytes = '||l_unexpired_bytes);
    DBMS_OUTPUT.PUT_LINE('=============================================');
    END;
    /

  • No display of error message log in dialog box

    Dear MM Experts,
    During enter incoming invoice (MIRO), when we click simulate after entering all necessary data, all error & warning messages are displayed in a dialog box if there is red traffic light. In our case despite red traffic light error messages are not displayed as shown in below screen shot. Only warning messages are displayed & document canu2019t be posted. Please let me know if anyone has encountered such behavior & knows the solution. We just want to see the error messages in dialog boxes so that necessary data can be entered and document can be posted.
    Additional information: 1. No GR needs to be done, 2. GR based IV is unchecked in PO, 3. No validation is active for the company code,
    Thanks & regards,
    Avinash

    Hi,
    Thanks for your response.
    Our problem is not to post a particular invoice doument, the main problem is that error log is not displayed in MIRO. For example if balance is not zero then this error should be displayed in error log dialog box, which is not happening due to which we are not able to post any invoice document as error is not known to the user. Please let me know if any suggestions.
    Additional information: We have deactivated all validations & BADis. We also tried to compare with other systems where error log is displayed properly however our ABAP consultant could not find any difference. Any Input on how to compare is also welcome.
    Thanks & best regards,
    Avinash

  • My server is displaying an error - what setting needs to be changed?

    I have the problem posted below, that apple.com acknowledges, but there is no specific information on how to fix it. My server company does not know which setting needs to be changed. Can anyone help? This happened suddenly, and I did not even change anything about my webpage.
    Some web servers may display an error on a website created in iWeb:
    "Parse error: parse error, unexpected T_STRING in [filename].html on line 1."
    The settings on some web servers may cause difficulty parsing the line in a published iWeb document that establishes XML compliance. If you get this error message on your published website, please contact the administrator of your web server.
    This issue does not occur on sites published to .Mac.

    See this thread:
    http://discussions.apple.com/thread.jspa?threadID=1374430&tstart=0

  • ADF-BC/JSF How to display acustom error message from a backing bean

    Hi all
    Can anybody provide an example of how to manipulate the list of error messages from a JSF backing bean.
    In my code I use a different navigation case and this directs the user to the page displaying the error message but I am sure that there must be a more elegant way.
    Thanks in advance
    Thanassis

    Thanks Kris
    I think you 've put me on the right track here, it's just that in my case what I really want to do is prevent my users from editing records not belonging to their own group. This is done via a selectOne table component and then the backing bean code tests if the value #{row.UserGroup} matches the #{bindings.LoggedOnUserGroup.inputValue}. If the values are equal then the beans returns the navigation case to the edit page. Otherwise it returns the navigation case for the "cannot edit" page.
    So what I am thinking is to return null and somehow raise the right kind of exception in order to display the error in the af:messages tag.
    Thanassis

  • Userform controls disappearing in Word 2013/Windows 8.1 with High-Res display - DLL error?

    I have a .dotm file with a large number of modules and userforms. Creating new documents from the template works fine on almost every computer I've tested it on (hundreds), but I've run into a setup that fails consistently.
    Two different Samsung ATIV 9's with a high res display and Windows 8 (64bit)/Office 2013 show the same problem:
    When opening a new document based on the template for the first time, it works fine. If I open the VB editor, everything looks normal, userforms are intact.
    On the second and all consecutive attempts, it throws a "Type Mismatch" error. Opening the VB Editor, I get a compile error on lines of code referencing components of the first userform (alphabetically). Opening that userform, it shows only a blank
    multi-page control, and all the other controls are missing - hence the new compile errors on controls that used to exist. If I remove that userform and save the file, the project compiles, but opening a new document from the template will result in "Word
    has stopped working..."
    I can actually reproduce this behavior starting from scratch - new blank document, save as a .dotm. Create a new userform and add a multipage control. Clicking any control in the toolbox to add it to the form will result in a "Type Mismatch" error,
    even though there's no VBA code. I can then successfully add the control to the form. But, once I save and reopen the template, the multi-page control is blank, and the other controls I put on it disappear.
    I at one point got an error from the VB Editor that it "could not open macro storage" and the included help suggested that might be due to an incorrect version of vbe7.dll.
    The only copy of vbe7.dll I could find was at:
    c:\Program Files\Microsoft Office 15\root\vfs\ProgramFilesCommonX86\Microsoft Shared\VBA\VBA7.1
    The dll version was 7.1.10.44
    I tried replacing that file with a vbe7.dll file from a working computer (version 7.0.15.89 from c:\Program Files (x86)\Common Files\microsoft shared\VBA\VBA7), but that just resulted in the VB editor not loading at all.
    I have tried both a 32bit Click-to-run version of Office 2013, and installing off a CD with 64bit Office 2013, both had exactly the same error.
    The reason I'm wondering if it's a high-DPI display related error is that googling about vbe7.dll errors, I came across this hotfix:
    http://support.microsoft.com/kb/2880496/en-us
    which claims it "Fixes various Visual Basic for Applications (VBA) issues with displays on high-DPI devices."
    Neither the 32bit or 64bit installer for that hotfix would run, they said there was no affected programs installed.
    My reasoning for suspecting a hardware/DLL incompatibility is this:
    1) It's not the template or the VBA code, since those work elsewhere and the same behavior happens with any file with a userform
    2) It's not the Office version, since both 32/64 bit, MSI and Click-to-run didn't work
    3) It's not Windows 8.1, since this same template works fine on other machines
    4) The first time I open the template on the affected machines, it works fine - but the template is shipped compacted and decompiled. After I open it once and then close, Word has compiled the code and corrupted it somehow, because whatever the first userform
    was in the list shows up as blank.
    5) It feels hardware-specific, since out of hundreds of machines, I've only seen this behavior on two of the same laptop model - seems like too much of a coincidence.
    Is there any chance the VBE in Office 2013 is somehow incompatible with this hardware? If that might be the case, does anyone have any idea how I'd go about testing and/or fixing it?
    Any thoughts are much appreciated.

    Hi Chris,
    Try the following.
    Download the IDT Audio installer on the link below and save it to your Downloads folder.
    http://ftp.hp.com/pub/softpaq/sp59501-60000/sp59861.exe
    When done, open windows Control Panel, open Device Manager and open up Sound, Video and Game Controllers.  If you see an entry for IDT HD Audio ( or very similar IDT entry ), right click the device and select Uninstall - you should also get a prompt to remove the current driver, tick the box to allow this and then proceed with the uninstall.  If there was no IDT entry, just proceed below.
    When complete, shut down the notebook, unplug the AC Adapter and then remove the battery.  Hold down the Power button for 30 seconds.  Re-insert the battery and plug in the AC Adapter.
    Tap away at the esc key as you start the notebook to launch the Start-up Menu and then select f10 to enter the bios menu.  Press f5 to load the defaults ( this is sometimes f9, but the menu at the bottom will show the correct key ), use the arrow keys to select 'Yes' and hit enter.  Press f10 to save the setting and again use the arrow keys to select 'Yes' and hit enter.
    Let Windows fully load - it will automatically load an audio driver, but just let this complete.  Then open your Downloads folder, right click on the IDT installer and select 'Run as Administrator' to start the installation.  When this has completed, right click the speaker icon in the Taskbar and select Playback Devices.  Left click 'Speakers and Headphones' once to highlight it and then click the Set Default button - check if you now have audio.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • HT202159 I was downloading a app from the app store and it downloaded about 85% then gave an error message download failed but when I reopen the app store to the purchases the resume button show but when i click it the same error comes up failed to downlo

    I was downloading a app from the app store and it downloaded about 85% then gave an error message download failed but when I reopen the app store to the purchases the resume button show but when i click it the same error comes up failed to download

    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Select
    /var/log ▹ install.log
    from the hierarchical list on the left. If you don't see that list, select
    View ▹ Show Log List
    from the menu bar. Then select the messages from the last installation or update attempt, starting from the time when you initiated it. If you're not sure when that was, start over and note the time. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V).
    If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Edit it out by search-and-replace in a text editor before posting.

  • Dc7900 crashes and has display driver error

    Hello,
    Just bought this off lease  unit and the computer keeps crashing. When it doesnt crash it has issues with the display at times and recovers saying that there was a display driver error and that it was recovered.
    Any idea on how to fix this? The comp was originally visa but now has windows 7 32bit business on it. My action center for windows 7 says on the maintenance tab that my intel graphics driver has stopped working what does this mean and how do I fix it?
    Thanks!

    Hello travisdahms,
    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I understand you are having issues with your Windows 7 on the HP Compaq dc7900 Business PC. I am sorry, but to get your issue more exposure, I would suggest posting it in the commercial forums, since this is a commercial product. You can do this at Business PCs - Compaq, Elite, Pro.
    I hope this helps. Thank you for posting on the HP Forums. Have a great day!
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    Dunidar
    I work on behalf of HP
    Find out a bit more about me by checking out my profile!
    "Customers don’t expect you to be perfect. They do expect you to fix things when they go wrong." ~ Donald Porter

  • Nvidia Display Driver Error

    New T61-CTO system, Vista 32 with Nvidia Quadro NVS140M that is not even a week old.
    The system is very unstable, crashing almost daily with a display driver error.  About half the time it is able to recover and I get the following message, "Display driver nvlddmkm stopped responding but has recovered.....".  The other half the computer crashes to blue screen or just freezes with a corrupted display and I am forced to hard-power-off to restart.  About 75% of the time the error occurs at startup, but sometimes just randomly while working.
    There is lots of info about this driver problem online but mostly for different display adaptors on desktop systems.  For the record I have the following display driver installed: 7.15.11.5685 and it is dated 12/10/07.  Nvidia does not provide support for this display adaptor and refers you to the system manufacturer.  Strangely, the driver on the Lenovo site is 7.15.11.0145 and dated 7/12/07, not sure why my system shipped with a driver that is not listed on the support site.
    Any information on resloving this issue would be greatly appreciated.
    Thanks

    Hi WillThePill, and welcome to the Lenovo User Community!
    I come up with a newer driver version 7.15.11.7693 2009/01/13 on the Lenovo support site:
    http://www-307.ibm.com/pc/support/site.wss/documen​t.do?lndocid=MIGR-67890
    Try that and tell us if it helps!
    I don't work for Lenovo. I'm a crazy volunteer!

  • How to display user errors

    Hi,
    In previous version of JHS (prior to 10.1.2) there was a good example on how to display custom user errors after wrong input.
    How can these errors be shown in 10.1.2?
    Regards,
    Marcel

    Marcel,
    Yes, you need to create a ListResourceBundle class that "wraps" access to the property file. Here is an example:
    package model.exception;
    import java.util.HashMap;
    import java.util.HashSet;
    import java.util.LinkedList;
    import java.util.ListResourceBundle;
    import java.util.Locale;
    import java.util.Properties;
    import java.util.PropertyResourceBundle;
    import java.util.ResourceBundle;
    import java.util.Enumeration;
    * Wrapper class around ApplicationResources property file
    * so we can use this property file to read messages from. This wrapper class is
    * needed because a JboException expects a ListResourceBundle class, and cannot
    * handle a property file.
    public class CmsMessagesWrapper extends ListResourceBundle
    public static final String BUNDLE_NAME = "view.ApplicationResources";
    private static HashMap sLocaleContents = new HashMap();
    protected Object[][] getContents()
    if (sLocaleContents.containsKey(getLocale()))
    return (Object[][])sLocaleContents.get(getLocale());
    ResourceBundle propFile = ResourceBundle.getBundle(BUNDLE_NAME,getLocale());
    String[][] temp = new String[2000][2];
    Enumeration keys = propFile.getKeys();
    int counter = 0;
    while (keys.hasMoreElements())
    String key = (String)keys.nextElement();
    temp[counter] = new String[] {key,propFile.getString(key)};
    counter++;
    Object[][] contents = new String[counter][2];
    System.arraycopy(temp,0,contents,0,counter);
    sLocaleContents.put(getLocale(), contents);
    return contents;
    Then for each additional language, you need to create an addtional wrapper class, for example:
    package model.exception;
    import java.util.Locale;
    public class CmsMessagesWrapper_fr extends CmsMessagesWrapper
    public CmsMessagesWrapper_fr()
    public Locale getLocale()
    return super.getLocale();
    Steven Davelaar,
    JHeadstart Team.

  • Display Custom Error Message in OIM 11g

    Hi,
    I'm trying to display an error message from a validation event handler but seems that am missing something. When the "oracle.iam.platform.kernel.ValidationFailedException" is thrown from a validation handler an error message is displayed: "An error occurred". If an error code is provided (see code below) then the message looks like: "An error occurred. The corresponding error code is ERR-0001". I guess that some resource bungle with corresponding messages should be provided.
    the code used:
    package test;
    public class UserGeneralValidationHandler implements oracle.iam.platform.kernel.spi.ValidationHandler
    @Override
    public void validate(long processId, long eventId, Orchestration orchestration)
                   throws ValidationException
    String errorCode = "ERR-0001";
    String message = "Simple validation message.";
    ValidationFailedException ex = new ValidationFailedException(message);
    ex.setProcessID(processId);
    ex.setErrorCode(errorCode);
    throw ex;
    Q:
    1.What is missing for complete solution?
    2.What is the algorithm that used by OIM to find default or non default resource bundle?
    3.How to change out-of-box validation messages? For a sample "The organization ABC does not exist." message is shown if non existing organization is provided during user creation and I'd like to have a different one.
    Regards
    Serge

    rename OIMUI.jar  to OIMUI.zip
    find logging_en and loggin.properties.
    Modify the "IAM-2050512" error message with your custom message
    Find Agent and agent_en.properties.
    Find Note[ERROR_SUBMITTING_REQUEST].text.  Modify the message. Make sure the message must be the same with in logging.properties("IAM_2050512")
    Deploy
    change the  OIMUI.zip to jar
    replace the existing OIMUI.jar
    login to weblogic  and redeploy OIM (oim.ear)
    no need to restart OIM server.
    Test:
    create a request in web console again, you must see the custom message when you hit the submit button
    hope this helps.
    -rad

  • Displaying Custom Error Message in ALV

    Hello Experts,
    Usually, when an error occurs in editable ALV, the standard WD ALV functionality marks the particular error cell in red and displays the error message.
    I want the same functionality for custom error messages in event ON_DATA_CHECK. I'm able to display the message, but looking for a way to mark cells as well.
    Please help....

    Hello friend,
    I think this link will help you much more clear on the coloring of the ALV concepts.
    http://help.sap.com/saphelp_smehp1/helpdata/en/5f/ec57c72a1349c8bfdda56d976e9399/frameset.htm
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0625002-596c-2b10-46af-91cb31b71393?QuickLink=index&overridelayout=true
    Thanks,
    Sri Hari

  • Display custom error message in enhancement spots

    Hi all,
    Is there someone here who've encountered having the need to display custom error message in an enhancement spot? Could you help me please.. I can't find any reference from the net.
    Thanks in advance
    Regards,
    Aris

    Hi,
    The error message can be only displayed in enhancement spots based on thr program flow.
    You have to determine where its getting called for ex: in PBO or PAI etc.....
    You have to find the right place to display the error messages . for ex: using a memory id ......

Maybe you are looking for