View CLOB content

Hello,
I'm trying to display the contents of a CLOB into a textarea in a region on my page using the following code, but it's not working...I get a "numeric or value error: character string buffer too small". I tried putting the code in the Source of the textarea item, I tried creating a Before Header process (hard-coding the ID value), I also tried to create a Before Header Computation...I get the same error. I have over 32K characters in the database, but I just want to display the first 32K. Whatever I'm doing wrong is probably a "DUH" mistake but what am I doing wrong?
declare
t varchar2(32000);
c clob;
begin
SELECT clob_content into c FROM minutes WHERE ID = :P3_ID;
t:= dbms_lob.substr(c,32000,1);
-- :P3_TXTVALUE := t;
return t;
end;Thank you,
Tammy

I think this should give you the way to acomplish that. The first two loops are there only to fill an empty clob and show that it works:
DECLARE
   v_clob          CLOB             := EMPTY_CLOB ();
   v_start         NUMBER           := 1;
   v_bytelen       NUMBER           := 200;
   v_raw           RAW (200);
   v_len           NUMBER;
   v_x             NUMBER;
   v_count         NUMBER           := 0;
   v_text          VARCHAR2 (32000);
   v_text_output   VARCHAR2 (32000);
BEGIN
   FOR x IN 1 .. 40
   LOOP
      v_text := NULL;
      FOR c IN 1 .. 1000
      LOOP
         v_text := v_text || '1';
      END LOOP;
      SELECT v_clob || UTL_RAW.cast_to_raw (v_text)
        INTO v_clob
        FROM DUAL;
   END LOOP;
   SELECT DBMS_LOB.getlength (v_clob)
     INTO v_len
     FROM DUAL;
   DBMS_OUTPUT.put_line (v_len);
   v_x := v_len;
   v_start := 1;
   WHILE v_start < v_len AND v_bytelen > 0 AND v_count < 32000
   LOOP
      DBMS_LOB.READ (v_clob, v_bytelen, v_start, v_raw);
      v_text_output := UTL_RAW.cast_to_varchar2 (v_raw);
      v_start := v_start + v_bytelen;
      v_x := v_x - v_bytelen;
      IF v_x < v_bytelen
      THEN
         v_bytelen := v_x;
      END IF;
      DBMS_OUTPUT.put_line (v_text_output);
      v_count := v_count + v_bytelen;
   END LOOP;
END;Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
-------------------------------------------------------------------

Similar Messages

  • View CLOB data in SQL Developer

    Hi,
    Can anyone let me know how to view CLOB data in SQL Developer 2.1.
    I am having images stored in a column of datatype CLOB. How to view this image.
    Database is 10.2.0.4.

    Since SQL Developer has no idea about the type of data stored in LOB columns, one cannot view that content in desired format.
    You need a tool to extract the LOB data and render it accordingly.
    BTW, do you mean BLOB here?

  • Not able to view the content in Microsoft help viewer (MS VS 2012)

    Hello Team,
    I'm Rahul from Daimler-Chrysler, Bangalore location. I’m the IT Engineer for Daimler-Chrysler.
    We tried many settings in IE but still not able to resolved. So i need more expert help. 
    My customer having one issue- 
    # User is not able to view the content in Microsoft help viewer (MS VS 2012), below is the error: Its opening in HTML Format.
    So please help me. Contact no- +91-9972004298. and personal id:- [email protected]/[email protected]
    I call you to Microsoft customer care they advice me to ASK Question. Please help me, I'm waiting for your reply.
    Thanks,
    Rahul B. Patil.
    +919972004298.

    Hi Sri,
    it looks that your HANA instance has been created before we enabled the web-based development workbench. Some privileges are missing, we can't migration those existing instances.
    Nevertheless you can ignore the error above. You can see all the content inside your instance "smstest1".
    If you want to get rid of the cosmetic issue. You might delete this instance and create a new one.
    Best regards
    Xu

  • Authorization issue to view cube contents

    Hi Gurus,
      I am getting Authorization issue to view cube contents in Production server, When I execute the cube it is showing me the following statement.
    "You do not have sufficient authorization for the infoprovider ZMMG_C05".
    Please provide me a possible solution for this.
    Thanks,
    Jackie.

    Hi,
    Two things to be checked with respect to authorization for this one.
    1) Functional Roles: Check whether Info cube is present in the functional roles that are assigned to you.
                                  If not you need to get the functional role in which the Infocube is assigned.
    2) Data Access Roles: Check in the data access roles assigned to you, whether you have the access
                                      to the selection that you are using to see the data in the info cube. Else, request
                                      BASIS team to assign the appropriate data access roles to you.
    Hope this helps.
    Regards,
    Bharat

  • Unable to view the contents in NQS Config file

    Hi Forum,
    After I successfully install the OBI EE 10.1.3 Application, I am unable to view the contents in NQS Config file. It is opening in Notepad with error showing as "The filename, directory name or volume label syntax is incorrect."
    So please guide me in resolving this issue.
    Regards
    Cool j

    You probably have restricted access to the file. Check if the drive is ntfs. If the os user is in administrator group, you can give permissions in file properties.

  • Is it possible to view the content of multiple lists(located in multiple webs) in one ListViewWebpart? And how can I filter a multivalue column?

    Is it possible to view the content of multiple lists, that are located in different webs as well, in just one ListViewWebpart? Could I maybe change the query programmatically so that it get's the content this way?
    I know that I could use the Content Query Webpart instead - actually I have been using that so far, but the problem is, that it brings no standard Sharepoint functionality for lists with it... I had to write the xsl style sheet, there are no dynamic filters
    that the user could set, there are no default list operations the user could use.
    The ListViewWepart has all of these, but it only shows the content of one list...
    And my second problem:
    One column can contain multiple values (like a column that contains multiple users or user groups that are related to one entry). I can filter every other column with the standard filters, but not the column with multiple values in it. Is it possible to
    activate that or maybe add this feature programmatically?

    You can fetch data from multiple lists in ListViewWebpart, this can be possible through Content Query web part or Custom Web Part using visual studio but in that case you can not get the standard SharePoint funcationality for list (which is available in
    ListViewWebparts).
    No OOB filter available for multi-choice column, you also have to go with custom solution to achieve this.
    Adnan Amin MCT, SharePoint Architect | If you find this post useful kindly please mark it as an answer.

  • I have the latest version of free Quicktime, Itunes  and unable to view video on my PC all i get is a pink screen the audio is OK i have uninstalled and installed several times same problem, i have a Iphone 4 and unable to view the content.

    i have the latest version of free Quicktime, Itunes  and unable to view video on my PC all i get is a pink screen the audio is OK i have uninstalled and installed several times same problem, i have a Iphone 4 and unable to view the content.

    Open your QuickTime control panel (either via the Control panels, or by going "Edit > Preferences > QuickTime Preferences" in the Quicktime Player). In the Advanced tab, uncheck Enable Direct3D video acceleration:
    ... and click OK. Quit and restart the QuickTime Player prior to checking to see if the settings change has had any effect.

  • As of yesterday afternoon, I can no longer view the content of email on my iPhone. When I open the email, there's no content.

    As of yesterday afternoon, I can no longer view the content of email on my iPhone. I can view it on my iPad and my iMac. When I open the email, there's no content. Contact and subject appear, but zero content. It seems to be chronically "checking for email" at the bottom of the screen, whereas the email downloading indicator at the top has finished. This issue is across all three of my email accounts.

    if you're using Yahoo email, this is a common problem with iPhone and Yahoo

  • Issue with Smart View Help Contents using v11.1.2.0.01

    Hi there,
    I just installed v11.1.2.0.01 (Build 003) of the Smart View add-in on a MS Windows XP SP2 PC with MS Office 2003 SP3.
    Unfortunately, the Help Contents in MS Excel does not seem to work as whenever I select Smart View > Help > Contents, nothing gets displayed. Selecting Smart View > Help > Technical Support and Smart View > Help > EPM Documentation takes me to various links on the www.oracle.com site.
    I uninstalled then re-installed this specific version a few times but to no avail. I even checked the contents of each subdirectory where Smart View has been installed but could not find any Help files whatsoever.
    1. Has anyone ever encountered this issue?
    2. If yes, what do I need to do to resolve this issue and get the Smart View Help to be displayed?
    Thanks in advance,
    JBM

    Well, reading the documentation about knowing where to find the documentation would have actually helped. At the bottom of page 10 of the Smart View ReadMe document, the following is mentioned under the "Documentation Updates" section:
    "For Smart View online help to be available, the Shared Connections URL on the Advanced page of the Options dialog box must contain an EPM Workspace URL."
    This question is now answered.
    JBM

  • How can I view the contents of a free trial for adobe fireworks cs6 on mac

    how can I view the contents of a free trial for adobe fireworks cs6 on mac.
    My friend told me to find the application in finder then hit control and click it and then it should give you the option to click
    "view package contents"
    This was not the case
    please help thank you

    When posting in Apple Communties/Forums/Message Boards.......It would help us to know which iMac model you have, which OS & version you're using, how much RAM, etc. You can have this info displayed on the bottom of every post by completing your system profile and filling in the information asked for.
    CLICKY CLICK---> https://discussions.apple.com/docs/DOC-3602
    CLICKY CLICK-----> Help us to help you on these forums

  • TCODE-to view the content of setuo table

    Hi Experts,
    Can anyone let me know is there any TCODE where we can view the content of setup table
    Regards,
    Meera

    Hi,
    Normally the tables r in the form of clustertables if u want to see there is no special tcode for this  go to the SE11 or SE16 give the table name as below
    if the datasource is 2lis_11_vahdr after filling setup tables for this datasource9for this application component)MC11va0hdrsetupin se11 in table u give that bold one and execute it u can see the setup tables.
    Thanks & regrds
    sathish
    Edited by: sathish kakumudi on Jan 30, 2009 2:22 PM
    Edited by: sathish kakumudi on Jan 30, 2009 2:24 PM

  • Can't view uPerform content with Flash Plugin 10.1.102.64

    My company uses uPerform a product that we use to create flash based simulations and WBTs. After downloading the most recent version of the flash player, I have not been able to view existing content published on a server. When users accesss Flash content it displays a blank white or black screen. I have seen an article which seems to describe my issue entirely, but it was posted as an Adobe Captivate issue. There is a workaround for the product, but it directed towards users have problems with Captivate.
    Here is a link to one of our published simulations:
    https://rwdp.ebsp.msu.edu/ucontent/e2f402a4126b4d8e9c10210472f564ec_en-US/sim/flash//index .htm#
    Similar known Captivate issue:
    http://blogs.adobe.com/captivate/2010/11/cp5-content-with-text-animations-not-working-with -latest-flash-player-version.html
    The problem seems to be present in IE 7, IE 8, and Firefox. I attempted to follow uninstall directions and was directed to most recent version of the plugin. This issue is effecting thousands of our users.

    You can find information on this issue at the ANCILE Product Support Center -- products.ancile.com. We recently posted a few blog articles on this issue and options to address.

  • I'm having difficulties viewing some content of certain websites using any browser on Maverick!!

    Hey,
    I can't view some content of certain websites on any browser. I'm running on 10.9.2 and I have tried this on Chrome, Firefox, Opera and Safari and nothing seem to work. For instance, I can't view the videos on 11secondclub.com or login to digitaltutors.com
    Any thoughts what the problem might be?
    Thanks!

    XML parsing error may have to do with a corrupt cache or profile.
    *[http://mzl.la/1xKrH3y]
    Please make sure that this does not happen in a new profile to make sure that this is not the issue: [[Use the Profile Manager to create and remove Firefox profiles]]

  • How to View Multiprovider contents

    Hi,
    How to view the MUltiprovider Contents in Bw server itself not in Query.
    Regards,
    Raj

    Hi Raj,
    Steps are as follows:
    Step1: Log on BW
    Step2. type T Code: LISTCUBE
    it open " Call Up List Viewer For Data Targets" screen
    Step3. in the "Object Type" field choose- Multiprovider by SAP(DMPR)
               in the "Data Target" field choose your Multiprovider
               and if you want to display SID then check "Display SID" or and other check box are   
               to choose.
    Step 4 Click "Execute" or F8
    to view Multiprovider contents
    Atul

  • Can i view the contents of a backup file made in N...

    Is it possible to view the contents of a backup file created using the Nokia PC Suite?

    backup file is meant to be restored to phone when in need, so it is not designed to be viewed in PC. (this is obviously because it contains contacts, calendar items, settings, pictures etc., so there is no simple way to view such diverse data in PC just by double clicking one file open.
    You can open the backup file with notepad, but you will se that it is cribble, if you look really carefully and are desperate to find say contacts in the middle of everything, you can scroll and look for that certain data.
    If you like to view the contents, you should use Image Store to move pictures, File Manager can do that too(sync gallery to PC) and file manager also syncronises SMS's and contacts to PC in readable format.
    You did not describe what you actually are after, so here are just my thoughs.Message Edited by manta on 23-May-2006
    07:05 AM
    Message Edited by manta on 23-May-2006
    07:07 AM

Maybe you are looking for