Maximum size of the message body when you use utl_mail.send

I'm looking to get the documentation on the subject, but so far without success.


By looking at the interface, I expect the max size to 32 KB (varchar2 in Pl/Sql),
and when sending ascii using the value default mime_type ("text/plain; charset = us-ascii').
I can almost send this amount.

However when sending utf8 using the mime_type ' text/plain; Charset = UTF - 8',
I send about 7970 characters / 12650 bytes before I started getting errors
(ORA-06502: PL/SQL: digital error or value: raw variable length too long)

Although it is beyond my current needs, I would avoid having to test this on all versions,
customers could be going to use.

Testicular above were made on:
Oracle Database 11 g Release 11.2.0.2.0 - 64 bit Production running windows.
The database character set is AL32UTF8

The code which fails in UTL_MAIL seems to be the following:

FUNCTION ENCODE_VARCHAR2(DATA IN VARCHAR2 CHARACTER SET ANY_CS)
    RETURN VARCHAR2 IS
BEGIN
      RETURN UTL_RAW.CAST_TO_VARCHAR2(
               UTL_ENCODE.QUOTED_PRINTABLE_ENCODE(
                 UTL_RAW.CAST_TO_RAW(DATA)));
END;

The DATA received as a parameter is your body of the email ( messageparameter). The following test case goes directly to these data in the code above:

SQL> create or replace function FunkyString return varchar2 is
  2          msg  varchar2(32767 char);
  3          line varchar2(32767 char);
  4  begin
  5          line := '';
  6          for j in 1..10 loop
  7                  line := line || '123æøåÆØÅ ';
  8          end loop;
  9
 10          msg := 'Start_';
 11          for i in 1..80 loop
 12                  msg := msg || line || chr(13) || chr(10);
 13          end loop;
 14          msg := msg || '__end';
 15
 16          return( msg );
 17  end;
 18  /

Function created.

SQL>
SQL> declare
  2          r       raw(32767);
  3  begin
  4          dbms_output.put_line( 'size='||length(FunkyString) );
  5
  6          r := utl_raw.cast_to_raw( FunkyString );
  7          r := utl_encode.quoted_printable_encode( r );
  8  end;
  9  /
size=12971
declare
*
ERROR at line 1:
ORA-06502: PL/SQL: numeric or value error: raw variable length too long
ORA-06512: at "SYS.UTL_ENCODE", line 277
ORA-06512: at line 7

If utl_encode.quoted_printable_encode () throws an exception. I think that the issue is that encoding special characters in your message string, drastically increases storage required as 3 tanks are used by the single character special for coding, correct?

Tags: Database

Similar Questions

  • PSE11 - can I increase the size of the preview window when you use filter > render > Lens Flare?

    Hello

    I am trying to create an image on the theme of Christmas in Photoshop elements 11.

    There are four candles in the image, and I want to add a subtle touch of light parasite the flames of candles.

    My problem is that the preview window that appears when I select the Lens Flare filter is incredibly small, and it is extremely difficult, if not impossible, to accurately position the effect:

    http://i1325.photobucket.com/albums/u625/SteveStrummer1962/PSFORUM1.png

    I noticed that some filters and effects have big enough insight or zoomable windows or even show the effect changing on the original image, but the preview for Lens Flare window allows any of these characteristics.

    As a rather cumbersome, I go through this procedure:

    • Create a layer duplicated my image and then hide the background layer
    • Select a small area of the upper layer around the spark plug/s
    • Select Inverse and delete the rest of the layer
    • CTRL + D to deselect
    • Now, if I select the filter, it displays only the small selection instead of the entire image
    • Add the effect of Len Flare/s
    • Display the background layer and Merge visible layers

    http://i1325.photobucket.com/albums/u625/SteveStrummer1962/PSFORUM2.png

    Please tell me there is a way to increase the size of the preview window, or a quick workaround better/more solution than what I'm doing now...

    Thanks a lot before any advice

    Steve

    A faster solution would be:

    1. Select the area you want to add to stray light. For example: in this case I would choose the candle using the marquee tool.
    2. Run the lens flare filter.
  • "the key to upgrade to an edition of windows does not work with Windows Anytime Upgrade" was the message received when you use the code comes to purchase Microsoft online. Any suggestions? »

    Upgrade Windows 7 Home Premium to professional.

    Windows 7 Anytime Upgrade fails:

    If your getting the following: error: Windows Anytime Upgrade failed
    This problem may occur if Windows 7 SP1 was downloaded by Windows Update, but has not yet been installed.
    See: http://support.microsoft.com/kb/2660811

    = Other reasons and possible corrections.

    Windows Anytime Upgrade fails with the error:
    "every time that the upgrade has failed. Go online to solve the problem.
    http://support.Microsoft.com/kb/2658652

    If Anytime Upgrade still does not work:

    Shut down and restart your computer.

    Make sure that the Windows updates have been installed.

    Download the hotfix that contains a tool called CheckSUR, this tool will look at the package and the maintenance of records and difficulty any data corrupted, the tool is listed under kb947821 he can be found at the following link http://support.microsoft.com/?kbid=947821

    If Anytime Upgrade still does not work, turn off the user account control:

    1. go in user accounts in Control Panel

    2 change user account control settings

    3. pull the slider to the level as low as possible

    4. restart the PC

    5. pass by the "Anytime Upgrade" as usual

    Try the following:

    1 disable any security software before attempting to upgrade

    2. make sure that your computer is updated (devices and applications)

    3. disconnect all external devices before installing.

    4. check your hard disk for errors:

    Click Start

    Type: CMD, according to the results, right-click CMD

    Click on "Run as Administrator"

    At the command prompt, type: chkdsk /f /r

    When you restart your system, your computer will be scanned for errors and will try to correct them.

    1. click on start, type msconfig in the search box and press ENTER.

    User account control permission

    If you are prompted for an administrator password or a confirmation, type the password, or click on continue.

    2. in the general tab, click Selective startup.

    3. under Selective startup, clear the check box load startup items.

    4. click on the Services tab, select the hide all Microsoft Services check box, and then click Disable all.

    5. click on OK.

    6. When you are prompted, click on restart.

    7. after the computer starts, check if the problem is resolved.

    Also run the Windows 7 Upgrade Advisor:

    http://www.Microsoft.com/Windows/Windows-7/Upgrade-Advisor.aspx

    Who should I contact if I have problems installing and / or activation of my product key card?

    Please contact to the: www.windows7.com/getkeysupport.

    If all above fails them, install Windows 7 Service Pack 1, and then try the Express Upgrade:

    Learn how to install Windows 7 Service Pack 1 (SP1)
    http://Windows.Microsoft.com/en-us/Windows7/learn-how-to-install-Windows-7-Service-Pack-1-SP1

    If your key is not valid and you will need to change the keys, you may need to Open regedit and remove first the ProductKey value in the following registry key:
     
    HKCU\Software\Microsoft\Windows\CurrentVersion\WindowsAnytimeUpgrade

  • Controls the size of the popup window when you use the target

    With the help of the anchor tag and attribute target (< a target = "_blank"... >), how one control the size of the new window? Or is that not possible? Thank you!

    Use javascript. If you want to put in the tag, then you can do it this way:

    assuming that your page is index.cfm, so:

    test link

    OR use the other tags such as

    test link

    If not yet know window.open, go to this link for reference: http://msdn2.microsoft.com/en-us/library/ms536651.aspx

  • How to change the size of the video field when you use the camera

    I read the code 4.6 camera example:

    ...

    _videoField = _videoControl.initDisplayMode (Field) (VideoControl.USE_GUI_PRIMITIVE, 'net.rim.device.api.ui.Field');
    Display the video control
    _videoControl.setVisible (true);

    ...

    Basically, it creates a class and add the Manager user interface field. But the size of the field is small. How to adjust the size of this field?

    Currently, there is no API to control the zoom level of camera.

  • Size of the image changes when you move an image between Lightroom and CC.

    Size of the image changes when you move an image between Lightroom and CC.

    I opened a .dng image in LR and then opened it in the develop module.  I clicked on Crop Overlay and then on the "As Shot" (the lock is closed) menu drop-down and cropped to 11 x 17 and click 'Done '-.

    I click Ctrl-E and the image opens in the CC.  I click on the Image > Image size and the size of the Image is 13,288 inches on 20,533.

    Why change the size of the image?

    I believe that there is a menu to control the size of the image, and I've looked everywhere I see in LR and CC, I have googled various descriptions and I checked both Kelby books, but I can't understand not just how to keep the image at a uniform height when moving between LR and CC.

    Help!... Please?

    The size of the image has not changed. The number of pixels has not changed. Let me tell you. The number of pixels has not changed to a single pixel.

    The numbers relatively meaningless displayed by your software have changed.

    The image is always format 11 x 17 (17 divided by 11 = 1.545 and 20.533 divided by 13.288 = 1.545)

  • How can I disable the mouse pad when you use a mouse plug-and-play?

    How can I disable the mouse pad when you use a mouse plug-and-play? I tried to disable the driver, and nothing works.

    Hello

    Check with support of the manufacturer system, documentation online or forums that there is probably
    Shortcut keys that enable and disable the touchpad functions.

    Parameters for TouchPad located in the control panel - mouse (there may be several tabs with TouchPad entered)
    and some come with a utility that loads in the Notification area next to the clock in the bottom right.

    ==========================================

    If necessary: (make sure that you have restarted at least once, if the above did not work)

    Panel of configuration manager devices - mouse and pointing devices - Double click on the touchpad - the driver tab-
    Click on update driver (it comes may not do anything like MS is far behind the drivers of certification), now right CLICK
    on the TouchPad and UNINSTALL.

    Then go to the USB and UNINSTALL ALL controllers except the category itself (all in). RESET

    This will refresh the driver for the TouchPad and battery USB. This does not prevent the touchpad from working.

    The similar procedure on XP, Windows 7 and Vista is the same, except that we need to clear the specific device if present.
    http://support.Microsoft.com/kb/310575

    Then go to the system manufacturer's website and get the latest touchpad drivers.

    Download - SAVE - go to where you put it-click on - RUN AS ADMIN.

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • What are the supported items when you use multiple suites?

    Hi all

    I created a plugin that sends the current path to a url,

    his work very well with debugging in Visual studio 2005 and then it is added to the Adobe Illustrator work only once.

    Its transmission, the path is that for a single file. While I was trying for the second time its does not work

    I use more costumes in my plugin

    AIDocumentSuite

    AIFilePathSuite

    AIActionManagerSuite

    AIUnicodeStringSuite

    AIURLSuite

    I use the "'AIURLSuite ' to call the url and calls the url several times while its used only and its only works once with multiple suites. "

    What are the supported items when you use multiple suites? It is necessary to release all the variables and the suites after completing the task?

    Should they come out in the same order in which they are acquired?

    Thanks in advance

    Farida kaid

    As far as I know, there is nothing forcing you to unleash in the same or in front of the order in which you have acquired in. Frankly, in our plugin gain us once, then lock the plugin to prevent it from unloading and don't release suites when we finished. That said, as far as I know, you should be fine to learn/work/output several times.

  • Problem with the format of the values in the command prompt (when you use multiple values)

    Hi all

    I have problem with the format of the values in the command prompt when you use multiple values.

    Value is year (2009) and when I use it in the drop-down list that is formatted, all right, as 2009, but when I use several values I get number as 2009,00. I put in year column format number with 0 decimal places and save by default in the year column. Year is formatted well anywhere in the query, such as 2009. Why is - what happens at the command prompt when you choose multiple values in prompt dashboard?

    Thank you

    I think the YEAR Data Type could be defined DOUBLE RPD.

    Use the CAST function in the formula (fx) and the output from test.

    CAST (INT YEAR)

    Hope, it will help you.

  • Error message "an error the system cannot find the file specified" when you use Bitlocker

    Original title: Bitlocker to go not accessible by car usb

    Here's the short of it: I decided to use Bitlocker To Go on my USB drive, and while he was to encrypt the drive I plugged a USB DVD - RW drive (it

    s a netbook) and then I got an error message in the Bitlocker program that says "an error the system cannot find the file specified."  I closed the error message and open the Bitlocker Unlock program, put my password and press on unlock and now it only that sit there and spin and the light flashes on my Batman of Seagate HARD drive as it is accessed.  The internal data of the car do not make the same sound, as he did while he was being... just encryption sounds like there are in an infinite loop.  The disc is good and has no errors, and I scanned with SeaTools.  I have a lot of important data on this drive, and I really don't want to lose anything.  Help!

    Hello 5thgear,

    Thank you for the question!

    I'm sorry to know that have problems you with Bitlocker. I get it right you get an error message "an error the system cannot find the file specified" when you run the bitlocker encryption.

    I need to ask you a question to help you best.

    Were there any changes (hardware or software) to the computer before the show?

    Click on the link below.

    http://blogs.technet.com/b/ASKCORE/archive/2010/08/04/issues-resulting-in-BitLocker-recovery-mode-and-their-resolution.aspx

    Answer to us if you are having problems with bitlocker or any other issue of Windows, and I'd be happy to help you again and try to correct the problem as soon as possible.

    Good day!

    Hope this information helps.

  • maximum size of the message

    What is the maximum size allowed in icloud mail by email?

    The size of the mailbox and the message sending limits in iCloud - Apple Support

    Limits on sending messages

    There are several safeguards in place to ensure that only iCloud members can send messages using iCloud. One of these safeguards include reasonable limits on:

    • The total number of messages, you can send each day (200 messages)
    • The number of recipients, you can message each day (1000 recipients)
    • The maximum number of recipients per message (100 recipients)
    • The size of incoming and outgoing messages (20 MB, up to 5 GB with mailbox ) enabled
  • How can I maintain the original size of the JPEG file when you import into Photoss?

    I noticed that when I use pictures to import images from the SD card in the camera, the images are substantially smaller than when I drag the same image directly from the SD card on the desktop. In general, a 3.6 Mb picture somehow diminishes to about 2.6 MB. I'm wrong and get frustrated to this drop in image quality!

    Any help / advice will be highly appreciated. Thank you

    In what circumstances you see this small size?

    Photos did a bit of copy bit when importing images in its library.  If you drag the thumbnail of an image on the desktop you bet that the preview version, which will have a small file size.

    Export the image on the desktop via the file export Export X Unmodified Originals ➙ ➙ menu option will give you the full size file that was imported into the library.

    Drag the thumbnail on the desktop will get you the original file.

  • error message saying that it is the wrong key when you use a sticker

    Product key

    I have an OEM version of vista Home premium. I'm trying to load on an acer extensa 5420 using the product key on the bottom of the laptop. When I enter the key, I get an error message saying: it's the wrong key. How can I use this disc to reinstall windows?

    Hello

    The OEM recovery disks are the brand and the specific model

    You can't use a disc from another manufacturer

    How to reinstall Vista

    Contact the manufacturer of the laptop computer and ask them to send you to vista recovery disks to reinstall the operating system back as it was when you bought it

    they do it for a nominal cost of $

    also ask them if you have a recovery partition on your hard drive to get back to the way you bought

    you would normally press F8, F9, F10 or F11 or Alt + F10 or 0 to start to start the recovery process according to the manufacturer

    Ask them of the exact key sequence

    or borrow a vista microsoft dvd; not a HP, Acer recovery disk etc

    Make sure that you borrow the correct 32-bit or 64-bit microsoft dvd to your computer

    they contain all versions of vista

    This is the product key that determines which version of vista is installed

    http://www.theeldergeek.com/Vista/vista_clean_installation.html

    How to replace Microsoft software or hardware, order service packs and replace product manuals

    http://support.Microsoft.com/kb/326246

  • Size of the strange changes when you save the file to the jpeg format

    Hi all!

    I have a small question (I think!). I have some images I save as jpeg files. So, I noted today that alone (it worked fine yesterday) when I go to save the file on the web, the size of the image changes of 400 high px to 430 px high. I select nothing do each file change like that. There is a white box at the top of the image (which is not well 4 my image). When I reduce the size of the jpeg - it reduces the image (so the rest of the white area).

    Does anyone have a suggestion? What happened with more than one image.

    Thanks 4 your help, Marty

    If you have to convert to jpg images, use photoshop.

    If white is on top is 30 pixels, then you have a point in your document or something that is not visible, but adds the frame enclosing the image. Make a command Y in illustrator to see if something is there. Also, if you place images in Illustrator, your original image can have a clipping path or something that adds to your bounding box.

  • SQL (body of function from PL/SQL returning the SQL) query when you use to_char

    We are trying to build a page of Type SQL Query report (body of function from PL/SQL returning SQL query).
    our request is simple, to extract the month of the column recording_date.

    declare
    l_query varchar2 (1000);
    Start
    l_query: = 'select to_char (recording_date, 'MM') of re_productive;
    Return l_query;
    end;

    but we would like the following for this query problem

    Function returning SQL query: query cannot be parsed in the generator. If you believe that your query is syntactically correct, check the box of generic columns below the source of the region without analysis.
    (ORA-06550: line 4, column 42: PLS-00103: encountered the symbol "MY" what awaits one of the following values:.) (* @ % & = - +; <>/ at is mod remains not rem <>or! = or ~ = > = < = <>and or as between | multiset Member SUBMULTISET_ the symbol ".") was inserted before 'MY' to continue.)

    Notes:
    1 - the request is correct and it has been tested under sqlplus and toad.
    2. we tried option use generic name (analysis of query runtime only) column, but we get the same problem.


    any quick help please.

    Hello

    You have not escaped your quote in the string. Try this...

    DECLARE
    l_query VARCHAR2(32767);
    
    BEGIN
    
    l_query:= 'select to_char(recording_date,''MM'') from re_productive';
    
    RETURN l_query;
    
    END;
    

    See you soon

    Ben

Maybe you are looking for

  • Partial access to the backup time machine

    Hello I tried to upgrade Yosemite to El Capitan, but failed. If the local bank staff did a clean install for me. Prior to this, internal hard drive for my Mac has been saved using Time Machine, on an encrypted external hard drive. However, Time Machi

  • How to get back to the old version of iTunes?

    I use iPhone 5 s to interface with the system Audi MMI (2007 model).  Last updated iTunes disabled my ability to interface.  Does anyone have the same problem?

  • Cannot open the DVD drive to insert a CD or DVD

    My DVD player won't open and a small rectangular orange light flashes when I press the Open button. I checked and the system says that the drive is functional. Anyone has any ideas how to fix? Thank you.

  • Save the encryption key

    When I search the above I see a lot of sad messages saying indeed «if you just saved your key...» »My question is, just how should I do this? The system is Windows XP Media Center edition Home.

  • Virtual Windows 7 hard disk file

    What is the VHD file?