Reducing size and storing it in db column

Hi all,
I need to handle a col value of 15 char but actually it is comming in as more than
15 char( say 18 char) can any one tell me how to take it in as it is a varchar2(15) column
any thing like converting it to less char using ASCII or chr function
and once again reconverting it back to original form after wards
kindly help.
Thanks,
aak.

I'm not entirely sure what you're trying to do, so I'm going to guess. Please do correct me if my guess is incorrect (and tell us in more detail what your problem is)!
I suspect you have a procedure that accepts a varchar2 parameter / has a variable that you have to store in a column of varchar2(15), but you're having problems because the parameter is longer than 15 characters.
In this instance, I would use the substr(<parameter/variable>, 1, 15) to restrict it to 15 chars. This would then get inserted into your column without any problems.
Does that help?
ETA: Of course, if you're needing to retrieve the full string from your table, you won't be able to. If your requirement is to retrieve the full string from your table, then your only recourse is to extend the column in your table. Or add another column, so that you have two cols - one to hold the substr'd data, the other to hold the full data. (I'd only go with the latter option if there was a damned good reason, though.)

Similar Messages

  • How to reduce size of stored data?

    Does anyone know of a way to reduce the size of the stored data? The IMAP-[…]@imap.gmail.com folder in my ~/Library/Mail directory is more than twice the size of what's used on my gmail account, is it supposed to be like that?

    Do you have a lot of attachments on the messages in the mailboxes of this account? One thing that balloons storage needs is that attachments may be redundantly stored in the mailboxes. If, for example, you open Home/Library/Mail/the IMAP account folder/INBOX.imapmbox you will note that it contains two folders -- Attachments and Messages. The attachments are replicated in the Attachments folder despite also being archived with the message in the Messages folder -- this may only be true if you have selected to Keep copies of all messages and their attachments for Offline viewing, however.
    Ernie

  • Since upgrading to firefox 4, pages open up at a greatly reduced size, and i have zoom in with ctl+ about 10 times, which is then remembered, so the next time it opens at the right size.

    i just upgraded to firefox 4 grudgingly, as i had this same issue when i upgraded to ff3, which i ultimately dumped, and went back to an older version. pages open very very small and i have to zoom in, to fill the page, and make it readable. once i have done that, those proportions are somehow remembered, and from that point on, they will open up at a large size.
    how can i get ALL pages to open up to a standard. predetermined size?
    on a related note, the toolbars are also very small. can i make them larger somehow?

    That is a problem with the Flash plugin.
    You can check for problems with current Flash plugin versions and try these:
    *disable a possible RealPlayer Browser Record Plugin extension for Firefox and update the RealPlayer if installed
    *disable protected mode in the Flash plugin (Flash 11.3+ on Windows Vista and later)
    *disable hardware acceleration in the Flash plugin
    *http://kb.mozillazine.org/Flash#Troubleshooting
    *http://helpx.adobe.com/flash-player/kb/flash-player-113-crash-mozilla.html

  • Discrepancy between iTunes Library size and stored folder size

    Hi
    I'm looking around for ways to clear up my computer's hard drive, and typically it seems that my iLife libraries seem to be the bulk of it. The main problem is that iTunes claims that my iTunes Library size is some 21GB, when the size of the "iTunes Library" folder claims all the music accounts to 26GB. This doesn't include any content in the 'TV Shows' or 'Movies' folders.
    The only thing I can think of is that not all of the music in my iTunes Music folder is in my iTunes Library... is there a simple way to check which ones aren't? Or is there another reason why there would be such a difference in the sizes?
    Thanks in advance.

    It may take some creative thinking rather than expertise to figure this one out.
    Oh, and my girlfriend got herself a standard MacBook a month ago, which has possibly sown the seeds of envy since it has as much RAM and a faster processor than my PowerBook MacBook Pro-wise, let's see what MacWorld in 2 weeks brings
    Then, it may be time to talk to the bank - or the finance people at Apple - about how best I can pretend I can afford one

  • Very large file 1.6 GB..sports program for school. lots of photos, template where media spots saved and dropped photos in..trying to get it to printer swho says its too large but when reduces size loses all quality...HELP??

    Please help...large file my sons Athletic program. Had noto problem with Quality last year..this new printer said file is too large..too many layers, can I FLATTEN..He reduced size and photos look awful. It is 81 pages. Have to have complete before next friday!! Help anyone??

    At that size it sounds like you have inserted lots of photos at too large a size and resolution.
    Especially for a year book style project, first determine your image sizes and crop and fix the resolution to 300 dpi, then drag them into the publication. Pages does not use external references to files and rapidly grows to quite large size unless you trim and size your images before placement.
    Peter

  • Reduce File Size and Optimise PDF both increase file size

    Hi All
    I have exported a pdf (our college mag) at smallest file size from Indesign CS4 for online use. The problem is the resultant file size is a little under 19Mb. Using both or either Reduce File Size or Optimise functions simply result in an increase to 22Mb. The document is packed with images however I would have thought one or both of these processes would have helped reduce the file size to a more manageable download file size.
    A pdf is also produced to go to print so simply compressing all images prior to imcuding them in Indesign is not a preferable option - this would mean creating two separate Indesign documents, something which I would rather avoid if possible.
    Any help would be greatly appreciated as always.
    The file reside here if anyone cares to take a look http://www.ayrcoll.ac.uk/index.php?name=UpDownload&req=viewdownload&cid=11&orderby=dateD  It's the latest release (September 09)
    Thanks
    Colin

    You might want to do an audit of the PDF (button in PDF Optimizer) and try to figure out what the various parts are. It shows 58% is content streams (sorry, but I am not sure what that is), 26% is overhead, and only 12.7% is graphics. Since you are not storing bookmarks and such, you might want to try going back to ID and printing to the Adobe PDF printer for a comparison. It may be one technique is more efficient than the other.
    When I used the optimizer, the file did get larger. When I used Reduce File Size, it got slightly smaller. The key may be in figuring out what the various parts are from the audit. You might try copying one page of ID to a new document and play with various versions - different fonts (all were embedded and that is probably best), variations on graphics, etc. That is all I can suggest since I would simply be playing with different ways to produce the document and looking at what is causing the bloat. When the Images are only 12.7% and the fonts less than 1%, there is something going on to produce the size, and those 2 are typically the killers. I would mention tags that tend to bloat, but you do not have any (normally used for assessibility).
    You might want to try some of the preflight checks to find issues. I did the transparency check and got 170 instances in 22 pages. Flattening the page may help. There were some pages that seemed to be very bad. However, I did not get a big file size reduction. I did not get a lot of improvement by printing to a new PDF either. Certain pages seem to be part of the bloat problem. The print took a long time around pages 11 and 22.
    One troubleshooting technique would be extract pages to separate files and look at the details of each page to see what is causing the issue.
    Need to go. Good luck.

  • Have CS5 and CS6.  Need to reduce size of file from 6Mb to 2 Mb for contest purposes without losing original

    Have CS5 and CS6.  Need to reduce size of file from 6Mb to 2 Mb for contest purposes without losing original

    Just save the document to a new jpeg file name using a lower quality setting or re-size the image down in  size the save a high quality smaller new jpeg image.

  • 'Font contains bad/Widths' and 'Cannot find/create font' errors when saving pdf as Other Reduced Size PDF

    I am exporting .indd files from within Indesign as pdf files, opening in Acrobat Pro XI. I have no trouble creating the initial pdf file, however, when I go to Save Other > Reduced Size PDF I get error messages. Depending on the file, I receive either the message, "The font (Myriad Pro) contains bad/Widths" replacing the text with dots or "Cannot find or create the font (Helvetica) Some characters may not print or display properly" replacing text with dots or boxes.
    My confusion is that the file is exporting to pdf from Indesign without error, it is only when I try to Save Other> Reduce Size PDF that the error occurs.
    Also, it is only occurring on five out of 120 pages. These same fonts are on other pages and I have no trouble at all with exporting or Reduce Size PDF.
    More frustrating is that I have never had this problem occur in all my previous versions of Acrobat using the same process and typefaces.
    I am reaching deadline on this and cannot find a solution other than to reload Acrobat 9 and ditch this upgrade.
    Any help would be greatly appreciated.

    I, too have experienced this issue. Upon export from INDD CS6, I see the error message "The font 'IXWIPX+SourceHanSansSC-Bold' contains bad \Widths."
    The only items on the single-page InDesign document I'm trying to export are copies of a one-page PDF (which was extracted from a longer PDF, arranged into a cover format). I can provide all files as necessary. The longer document that the one page came from also experienced an error when I tried to print to Adobe PDF. While I still get a PDF of the cover on export, despite the "bad \widths" message, it won't print from certain machines. I get nothing (not even an empty shell file) from the attempt to print the larger document (where the cover elements came from) to PDF.
    I can deal with these issues with a few unorthodox workarounds, but wanted to offer comments or volunteer to help test fixes if possible.
    For the record, I'm really not enjoying Acrobat XI. It doesn't seem to have much by way of new features (at least not that I use), and some of those I used most in version X are gone or less functional. Common fonts like Times New Roman are often not found (even though they are definitely on my system); I have a much harder time editing text through the new interface, and I have a few other small gripes—some that I don't have time to get into, others that wouldn't really matter, except that they weren't a problem until I "upgraded." Just sayin'.
    Thanks for listening.

  • APEX- How to open world document (and other files) stored in a blob column?

    Hi,
    I have an application developed in Oracle Apex 3.2.1 and RDBMS Oracle 9.2.0.8 (SUN SOLARIS SPARC 64 BITS).
    I have a table called BAC_ARQUIVO, with the following structure:
    CREATE TABLE BAC_ARQUIVO
    (NAME VARCHAR2(4000), /* Name of the file stored in BLOB column */
    SUBJECT VARCHAR2(4000), /* A brief description about this file stored */
    ID NUMBER, /* An identification of this file - It´s a PK column of this table*/
    BLOB_CONTENT BLOB, /* Blob field that store diferent kind of files - XLS, DOC, PPT, PDF, EXE, ZIP, etc);
    MIME_TYPE VARCHAR2(4000) /* Identification about which kind of file is stored on BLOB field */
    The field BLOB_CONTENT of this table can store:
    - Executable files;
    - MS-World Documents (DOC);
    - Zip Files (ZIP);
    - Ms-Excel Files (XLS);
    - Ms-Powerpoint files (PPT);
    - Adobe documents (PDF);
    Actually, in this APEX application, i have developed a interactive Report in which the user can download these files to desktop without problems.
    But now, my user would like to know if it´s possible that APEX application can OPEN some of these files stored on this BLOB column WITHOUT download it.
    My user would like to see a hiperlink (or button) that, if pressed/acessed, can open a new page (or a page inside application) with the document. He doesn´t need to edit this oppened file. He only wants to see it.
    For example, if the file stored in the blob column is ms-word type , so the application will open a MS-WINDOWS application with these file.
    Is it possible?
    I saw in this forum that it´s possible to open a file stored on "/i/" directory, but i need to open the file stored in BLOB column. I don´t want to store the file in operational system of the server.
    Could any one demonstrate to me how it could be done?
    Best regards,
    Sergio Coutinho

    Hi Sergio,
    This link might be helpful:
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/apex/r31/apex31nf/apex31blob.htm
    Also refer the BLOB Download Format Mask :
    {message:id=9716335}
    Here I have given the format mask for APEX 4.0, which will slightly differ for 3.2.1 and proposed changes
    in the format mask are:
    1) Format Mask: DOWNLOAD
    2) Content Disposition: Inline
    This will be achieved with it:
    >
    But now, my user would like to know if it´s possible that APEX application can OPEN some of these files stored on this BLOB column WITHOUT download it.
    My user would like to see a hiperlink (or button) that, if pressed/acessed, can open a new page (or a page inside application) with the document. He doesn´t need to edit this oppened file. He only wants to see it.
    >
    Hope it helps!
    Regards,
    Kiran

  • Reduce image size and print it out?

    I scanned an image (coloring on a postcard). This size is too big to fit into a 'album' picture in MS Picture It! All I want to do is REDUCE the image and save it so that it will fit into the computer photo album I'm creating.
    I've tried Image/Resize/Image Size and changed the sizing, but it still comes out the exact same size as the original. What am I doing wrong?

    > I want to REDUCE the image, not enlarge it.
    I understood that - what makes you think I didn't?
    > It's 948x645 pixels. I just want the image about an inch (respectively) smaller
    You can't think in terms of inches for screen images. You have to work in pixels and the actual size will depend upon the screen resolution on the machine being used to view the image.
    I'd reduce the pixel size by about 80 to get the effect that you want. Use Image/Resize/Image Size and make sure that you have "Resample" checked.

  • Acrobat 10.1.8 not responding Save as Adobe PDF and reduced size

    OS: Mac 10.7.5
    Acrobat Pro: 10.1.8
    MS Word: 2011, version 14.1.0
    All Software and system up to date.
    Save as Adobe PDF... in Print funciotn will be not respnoding...
    Open a word file, Print -> PDF -> Save as Adobe PDF -> option : "High Quality Print"  and "Adobe Acrobat Pro" -> Continue -> change Name and location -> Save. Then the "Save as Adobe PDF" Automator pop up on Dock, a "Save as Adobe PDF" window will show "Finalizing PDF file..." and not reponding......... have to Force Quit.
    But, if I use "Save as PDF" on Print, it works but will creat a very large PDF file. For example, my DOCX file is only 270KB, the PDF will be 23MB.
    Open the PDF with Acrobat Pro 10.1.8, Save as "Reduced Size PDF..." -> make compatible with "Retain Existing" (tried all in the list) -> change Name; -> Save. Then, Acrobat will be nor responding on "Analyzing document....".
    Please Help!

    adobe4vin wrote:
    OS: Mac 10.7.5
    Acrobat Pro: 10.1.8
    MS Word: 2011, version 14.1.0
    All Software and system up to date.
    Your comment all software is up to date is wrong.
    Unless You using a PowerPC Machine  OSX up to 9.1
    Acrobat X may be at 10.1.8  but the newest available is Acrobat 11.0.4
    And what seriously out of date and may be causing your issues is That Office2011 is up 14.3.9 By using out of date application may cause part of your issues. Note it does take a Long time to process a Large document
    If you can get the PDF to open
    Look for and Choose Optimized PDF or PDF Optimzer
    click fonts if you see any duplicate Fonts
    example two or three copies or more of say Helvetica Bold Italic
    click on all but one of them and move to unembed
    Repeat with all Fonts that have duplicates.
    Then click okay when done.
    This issue can be caused by older versions of software.
    But if downloaded from a PC the number one reason is that unlike Mac in which your old allowed one copy of a Font/Font Family. PC doesn't care how many copies fonts there are on the computer. Whatever app just choose one to use at that moment. So you could have 20 versions of Helvetica bold Italic and the syetem doesn't care.
    I've received PDF from PDF's from PC's and there have been as many as 10 copies of one font.  Once optimized the files size went down.

  • Save as Reduced Size PDF and Save as Optimized PDF do not reduce the file size.  What gives?

    Save as Reduced Size PDF and Save as Optimized PDF do not reduce the file size.  What gives?  I used Acrobat 9 to do this for a long time.  I recently received new laptop loaded with with Acrobat 10 and it does not work the same.  I typically scan 8-10 pages of receipts, combine the files in Acrobat, and then optimize to reduce the size so I can upload with my expense report.  Typically, my files were reduced to 200-400 KB.  I have a 2 MB file that will not reduce at all.

    Bernd, thank you for your attempt to help but the option dialog windows do not contain the same options.  There are numerous other posts on this forum about this issue and there is no answer.  Clearly, there is an issue.  I have submitted this issue to our internal help desk.

  • Reducing app size and using memory

    Building with release preference Blank App template will give you a ~200kb .exe, which in running state use ~7mb of memory.
    It has a huge list of external dependencies.
    So, is it possible to reduce app size and using memory?
    Or, how safely unlink from app headers that really didnt used?

    generally speaking  premature optimization is not a good idea.
    Normally those tricks we learned from stone age are picked by tools already.
    (http://stackoverflow.com/questions/6215782/do-unused-functions-get-optimized-out)
    So if you experice performance/optimization issue
    optimization ususally goes with repeated measure -> optimize -> verify
    cycles.

  • Reduce size of all items and text

    I have 2 30-page A4 booklets in which I want to reduce everything by about 15% to increase white space by widening the top and outside margins. The booklets include text and some images, all of which I want to reduce proportionally. I thought of increasing the page size then somehow reducing the PDFs, but I don't know if this is possible.
    I need to hand over simple PDFs and can't ask the printers to print them out to a different size (it''s complicated, but I can't rely on them to do this correctly)
    Any ideas?

    Your best bet is probably to import either the .indd you have, or a PDF made from it, into a new doc, scaling and postioning in the new size and spot.
    You'll find a nifty script that I think can automate this for you at http://indesignsecrets.com/zanelli-releases-multipageimporter-for-importing-both-pdf-and-i ndd-files.php

  • Hit something when editing presentation and now slides are all reduced in size and not filling screen.  Preferences, scale to fit doesn't work.  What did I do?

    Hit something when editing presentation and now slides are all reduced in size and not filling screen.  Preferences, scale to fit doesn't work.  What did I do?

    Please give complete details of your system and the media and the project properties.

Maybe you are looking for

  • Is it possible to update the BIOS in my C200 3000

    So basically my laptop says on it "3000 C200" I don't find much about it on the net. I went into the bios and it says it's 63ET63WW V1.09 I have sort of USB disconnect issues and I read that it's BIOS related. Except there seems to be nothing on the

  • I want to install and extension globally

    I am an it admin and want to install an extension globally, but placing the .xpi file in C:\Program Files (x86)\Mozilla Firefox\browser\extensions\ or C:\Program Files (x86)\Mozilla Firefox\plugins and restarting the browser does not prompt to instal

  • UIX form need to clear cached data within session

    HELP! I have some UIX forms created with JHeadStart, thay work fine except but when the underling table data changes (from another user session or an update trigger from different table) the forms will NOT show refreshed data, unless I delete my brow

  • Lsmw sales order

    hi folks, Can any one send me with screenshots how to upload sales order records using LSMW bapi method ,will be rewarded with points.

  • EOIO - failure - resend - alternatives

    Hello, For some of our interfaces, we are using the QoS as EOIO but this is quite problematic: If the message gets stuck in the queue, the message has to be canceled manually, then only the messages can move forward: I would like to know the followin