Finding the total size of a string when number of characters are known.

Hi: I am having trouble inserting a field in a record that is CLOB. The number of characters in the string is 59298. Any idea how to know what is the size of this string? I am trying to figure out if I am exceeding the size of the string. The error I get is the following
ORA-06512: at "SYS.DBMS_LOB", line 789
ORA-06512: at line 1
Second exception: ORA-21560: argument 2 is null, invalid, or out of range
ORA-06512: at "SYS.DBMS_LOB", line 789
Thanks
Ray

Either your stacktrace is incomplete or you make something wrong by copy/paste. And please, by providing sql/plsql code, use the tags [ code ] [ / code ] or [ pre ] [ / pre ], otherwise it is very hard to read.
Here is small demonstration of what i mean by 3rd parameter:
SQL> CREATE TABLE T_LOB(ID NUMBER,MESSAGE CLOB)
  2  /
Table created.
SQL> DECLARE
  2  l_clob CLOB;
  3  BEGIN
  4  INSERT INTO t_lob VALUES(1,'Hello')
  5  RETURNING message INTO l_clob;
  6  dbms_lob.writeappend(l_clob,length(',world'));
  7  END;
  8  /
dbms_lob.writeappend(l_clob,length(',world'));
ERROR at line 6:
ORA-06550: line 6, column 1:
PLS-00306: wrong number or types of arguments in call to 'WRITEAPPEND'
ORA-06550: line 6, column 1:
PL/SQL: Statement ignored
SQL> DECLARE
  2  l_clob CLOB;
  3  BEGIN
  4  INSERT INTO t_lob VALUES(1,'Hello')
  5  RETURNING message INTO l_clob;
  6  dbms_lob.writeappend(l_clob,length(',world'),',world');
  7  END;
  8  /
PL/SQL procedure successfully completed.
SQL> SELECT * FROM t_lob
  2  /
        ID MESSAGE
         1 Hello,worldIn your examples, after length('some lengthy string...' there is no more parameters to dbms_lob.writeappend ( or i don't see any).
Best regards
Maxim

Similar Messages

  • How do I find the total size of all my Music in iTunes 11?

    I'm looking to get a new iPod, either a nano or Touch, so I'm trying to find the total size of all of my Music. Since iTunes 11's interface is so different from previous versions, I don't see a way to view that.

    Ctrl B to show top menu
    View Show Status Bar to show the grey bar at the bottom with the info you want.
    While your there View> Show Sidebar and see if you prefer that.

  • How to find the total size of the database before the Restore.

    Hi Guys,
    I'll do a Restore, but I do not know the environment and need to know what the total size of the database to create a storage area.
    Is there any way to find out the total size of the database(including all datafiles and temp) using only the RMAN catalog before running the Restore.
    I'm using Tivoli TSM with ASM.
    Levi Pereira

    Hi tychos,
    break on report
    compute sum of TOTAL_DB on Report
    select 'DataFiles' NAME, SUM(ROUND(bytes/1024/1024/1024)) TOTAL_DB from rc_datafile
    where db_name = 'ORCL'
    UNION ALL
    select 'TempFiles' NAME, SUM(ROUND(bytes/1024/1024/1024)) TOTAL_DB from rc_tempfile
    where db_name = 'ORCL'This query returned I had 372 Gbytes of data.
    At the end of the Restore Database got the size of 408 Gbytes.
    The total size of all Redo was 3Gbytes that was not being counted anyway there was a difference of 33Gbytes.
    I need to understand the reason for the difference in sizes.
    It makes no sense to me RMAN catalog does not inform the total size of the database (Datafiles, tempfiles, Redo and controlfile) before the Restore since it's information is already somewhere.
    Thanks for your help.
    Levi

  • Check the total sizes of total attachments not allow more than 9 mb when adding attachments to a PDF

    My clients requested the form has the validation when I add attachments to a PDF, the total sizes of these  attachments not more than 9 Mb. I can just check the size of each attachment but I cannot check the total sizes of the attachment.  I am not sure what I am doing wrong the coding is unsuccessful.  Please help!!!! 
    Thank you very much.
    CindyWhat
    Here is the coding in event:click - attachment button
    var maxSize=75497472; //bits
    try{
    var count= 0;
    var oDoc = event.target;
    var oAttachment = oDoc.dataObjects;
    if(oAttachment != null){
      count = oAttachment.length;
    oDoc.importDataObject("attachment" + (count + 1))
    var dataObj = oDoc.getDataObject("attachment" + (count + 1));
    var fileName = dataObj.path;
    var fileType = fileName.substring(fileName.lastIndexOf("."));
      if(fileType != ".pdf" && fileType != ".PDF" && fileType != ".JPG" &&
      fileType != ".jpg" && fileType != ".tif" && fileType != ".TIF"&&
      fileType != ".tiff" && fileType != ".TIFF" &&
      fileType != ".doc" && fileType != ".DOC"){
                    xfa.host.messageBox("Please correct the file type.");
                    oDoc.removeDataObject("attachment" + (count + 1));
    // combine size
      //get content
      var oFile = oDoc.getDataObjectContents("attachment" + (count + 1), true);
                            var oBase64Stream = SOAP.streamEncode(oFile, "base64");
                          var oFile = SOAP.stringFromStream(oBase64Stream);
                            // check the length of the document
                            var lenTotal = oFile.length;
                            FileSize.rawValue = lenTotal;
      if (lenTotal > maxSize)
       xfa.host.messageBox("the total size is 9 MB");
       oDoc.removeDataObject("attachment" + (count + 1));
      }// end if
      else
       xfa.host.messageBox("successfull attachment","Attachment",2);
    catch (e)
    xfa.host.messageBox("Please review the document");

    We are using Microsoft SQL Server 2008 . but it's well with MySQL & JBoss

  • How can i see the total size of files which i have been selected?

    I want move my files including movies and photo to the tumpdrive.
    But, my tumpdrive told me which was only 500MB space.
    Therefore, i decided that choose some movies and photo to there.
    When i chose the files i don't know how much of the total size which i've been selected.
    if above 500MB, i could move.

    With them selected, press the Option, Command, and I keys.
    (75125)

  • How to find the db size

    Hi ,
    Please tell me how to find the db size.
    Thanks,
    Kumar.

    If I understand correctly, the above query will give the space allocated to the database. This isn't necessarily the same as the space used by the database. Or do I need to clean my glasses ?
    I use the following to get sizes for tablespaces (may need some formatting done - works in 9i and 10g) :
    SELECT
         Total.name "TABLESPACE_NAME",
         total_space "TABLESPACE_SIZE",
         nvl(Free_space, 0) Free_space,
         nvl(total_space-Free_space, 0) Used_space
    FROM
         select
              tablespace_name,
              sum(bytes/1024/1024) Free_Space
         from
              sys.dba_free_space
         group by
              tablespace_name
         ) Free,
         select
              b.name,
              sum(bytes/1024/1024) TOTAL_SPACE
         from
              sys.v_$datafile a,
              sys.v_$tablespace B
         where
              a.ts# = b.ts#
         group by
              b.name
         ) Total
    WHERE
         Free.Tablespace_name(+) = Total.name
    ORDER BY
         Total.name
    ;

  • How do I find the total number of elements in a multi dim array

    How do I find the total number of elements in a single or multi dim array?
    For example, a 2x3 array has 6 elements, and a 2x3x4 has 24. How do I compute this very easily - is there a single VI that does this?
    David
    Solved!
    Go to Solution.

    Use "array size" (array palette) followed by "multiply array elements" (numeric palette)
    (Works also equally well for 3D arrays and higher)
    For a 1D array, just use "array size".
    Message Edited by altenbach on 02-05-2009 05:57 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    NumberOfElements.png ‏3 KB

  • Where can I find the file sizes for each application before downloading?

    Where can I find the file sizes for each application before downloading? I have limited download (525 MBs/day) because of Hughsnet and I need to know each applications total size before I download.

    You can go to the trial page to get an estimated size.  As the Creative Cloud products change over time though this may become less accurate.
    If you are on a limited bandwidth account then you may want to consider purchasing a perpetual copy of Creative Suite 6 as opposed to subscribing to the Creative Cloud.

  • Total size of pic's when all are highlighted?

    Hi, I was just wondering how I can get the total size of all my pic's together in my Organizer. If I highlight just one and go to properties it will show the size but the problem is I want to know how to find the size of all the pic's. Wanting to burn pic's to DVD 4.7 GB of space on DVD-R. Want to know if I have enough space to burn all my pic's.
    Thanks, [email protected]

    All I can find is this:
    With the images selected, click File > Burn... to bring up the Burn/Backup
    dialog.
    On the first screen, select Copy/Move, click Next. On the second screen,
    make sure that Move Files is UNCHECKED unless you actually want to remove
    the files from your hard drive -- click Next.
    On the third screen, you will be able to see the size of the batch you have
    selected, providing you have blank media in the drive.
    With luck, someone else will know a more elegant solution to calculating the
    total size of the batch within Elements.

  • How to find the total no of pages in script

    hi
    how to find the total no of pages in script

    Hi
    ·     &SAPSCRIPT-FORMPAGES&:
    This field contains a number representing the total number of pages of the currently formatted form (any output between START_FORM and END_FORM). The page counter mode (START, INC, HOLD) of the individual pages is ignored. You can use this symbol to formulate information like
    ‘Page x of y’ for your output.
    ·     &SAPSCRIPT-JOBPAGES&:
    This field contains a number representing the total number of pages of all forms contained in the currently formatted print request, in other words, of all forms created using the OPEN_FORM, START_FORM.. ENDFORM, START_FORM.. END_FORM,..., CLOSE_FORM function modules.
    When using the SAPSCRIPT-FORMPAGES or SAPSCRIPT-JOBPAGES symbols, SAPscript leads all output pages of the current form or current print request into main memory to replace the symbol by the appropriate value. For large output jobs, this can mean a very large amount of memory.
    ·     &PAGE&, &NEXTPAGE&
    This symbols are initially converted using the options specified in the form of the page definition.
    Reward all helpfull answers
    Regards
    Pavan

  • How can I reduce the file size of a pdf when exporting?

    I don't want to just choose between high quality print or smallest file size.
    I want to export it from 60MB to 40MB.
    Can I do this manually? When I use smallest file size the quality is too low and the content looks bad.
    But high quality print exports my PDF at 60MB which is too big.

    You cannot simply legislate the size of a PDF file. If you content is primarily text and vector, there is not much at all you can do to reduce PDF file size other than to cut out content. Otherwise, the only other variables are those of downsampling and compressing the raster images from your content.
    You must be very careful in choosing the PDF export settings. The “smallest size” settings yield PDF files that realistically really are not fit for printing and may mess up any CMYK colors. The “high quality print” and “PDF/X-4” settings yield best print output, but yield the largest PDF files since they do less image resolution downsampling and only the maximum quality lossy JPEG compression.
    I would recommend that you start with either the “high quality print” or the “PDF/X-4” settings and make a custom set of export settings. Assuming that you aren't going for offset or gravure printing, change the color image and grayscale image downsampling values from 300 and 450 to either 200 and 275 or no less than 150 and 225. If that doesn't give enough file size reduction, change the compression image quality from “Maximum” to either “High” or no less than “Medium.” Beyond these changes, you may end up with PDF files that will neither print nor display with any reasonable quality.
            - Dov

  • How do I calculate the total size of selected folders?

    Hello
    My question is:
    How do I calculate the total size of selected folders?
    Thank you

    It does show the aggregate size.
    Command-Option-I opens the Inspector window. (Or open the File menu and hold the Option key. Get Info turns into Show Inspector.) The Inspector is similar to the Get Info window but it shows aggregate info for multiple selections. It is also dynamic — if you change the selection while the Inspector is open, the info changes to reflect the current selection.

  • How do i edit the font size of a String?

    hi.. im a student in programming this yr.. i wan to edit the font size of a String.. how can i do that? i only know that there is setFont.. can anyone help me?

    import java.awt.*;
    import javax.swing.*;
    public class EditFontSize extends JFrame {
        public EditFontSize() {
            initComponents();
        private void initComponents() {
            jPanel1 = new JPanel();
            jLabel2 = new JLabel();
            jLabel3 = new JLabel();
            jLabel4 = new JLabel();
            setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
            setTitle("Edit the font size ");
            jLabel2.setFont(new Font("Dialog", 0, 14));
            jLabel2.setText("Test");
            jPanel1.add(jLabel2);
            jLabel3.setFont(new Font("Dialog", 0, 18));
            jLabel3.setText("Test");
            jPanel1.add(jLabel3);
            jLabel4.setFont(new Font("Dialog", 0, 24));
            jLabel4.setText("Test");
            jPanel1.add(jLabel4);
            getContentPane().add(jPanel1, BorderLayout.CENTER);
            Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
            setBounds((screenSize.width-273)/2, (screenSize.height-118)/2, 273, 118);
        public static void main(String args[]) {new EditFontSize().setVisible(true);}
        private JLabel jLabel2;
        private JLabel jLabel3;
        private JLabel jLabel4;
        private JPanel jPanel1;
    }

  • How do I change the font size of a document when I PRINT?

    How to I change the font size of a document when I print it?

    To specifically and fully answer your question, no, you absolutely cannot change the “font size” as a function of print.
    First of all, there isn't a single “font size” associated with a PDF file (and we assume you are referring to a PDF file since this is an Acrobat forum).
    Secondly, PDF is a final form file format meaning that the content is static in terms of location, size, etc. on the page. To change the point size of any particular text, you really need to go back to the source document and make the changes there.
              - Dov

  • Hello.  How do I keep the actual size of a photo when adding to a Keepsake?  Used to do this but have forgotten how!

    Hello.  How do I keep the actual size of a photo when adding to a Keepsake?  Used to do this but have forgotten how!  Need help please!
    T.

    Here is my suggestion:
    Open a blank, new file (File>new>blank file) size 8.5x11"
    Open the collage
    Go to Select>all
    Go to Edit>copy
    Go back to the blank file created in step #1
    Go to Edit>paste. The collage will be on its own layer
    Access the move tool, and with the corner handles resize the collage. Using the corner handles should preserve the aspect ratio. If you open the rulers, you will have a point of reference as you go along.
    Print a draft copy to see if it will be suitable in the frame..
    Please report back with your progress.

Maybe you are looking for

  • Subtype for custom INFOTYPE

    Hi all, My requirement is to Create Custom Infotyp 9100 with two new subtypes(9001 & 9002). Subtype 9002 will pick up relationship data from the subtype of Infotype 0021 IT9801 u2013 Subtype 9001 PERNR     EmpNo     NUMC     8 ZISNo     Serial No    

  • Installing Arch on a box which is only accessible to wireless

    I am done with Winblows and I'm looking to get a fresh Arch installation on my main box. I have a WUSB54G Wireless-G USB Network Adapter that I use to access the local wireless, plugging in via Ethernet isn't an option unfortunately I'm expecting to

  • Acrobat pro 6  and standard 7 in windows 7

    Hi!, we can't install acrobat pro 6 and acrobat standar 7 in windows 7 pro 64 and 32 bits. We have problems with de virtual printer Adobe printer. Are incompatible this versions with windows 7?

  • Artwork viewer not working

    I'm having a really odd problem here, and it's lasted through 2 updates now. When I add artwork, the artowork doesn't show in the artwork viewer. Whether in currently playing or currently selected, it simply acts like there's no artwork. The artwork

  • All printing fails

    hello there. since yesterday print commands from all programs fails to perfom and come up with errors message on safari, preview etc says print error while printing while on MS word (2004) says "word cannot print due to problem wiht the current print