Real vs reported file size?

the following procedure is returning the error:
ERROR at line 1:
ORA-22993: specified input amount is greater than actual source amount
ORA-06512: at "SYS.DBMS_LOB", line 639
ORA-06512: at "BANINST1.LOAD_CLOB", line 14
ORA-06512: at line 1
I printed out the reported size from DBMS_LOB.GETLENGTH(in_file)
it returns 7262. Via trial and error, I found that the largest acceptable value I could set for 'AMOUNT' to be 7246. This is the same charactor count (7246) my editor shows for 'in_file'. Why is the function call DBMS_LOB.GETLENGTH(in_file) reporting 16 charactors more?
CREATE TABLE js_holder (
js_name varchar(30),
js_body CLOB );
CREATE DIRECTORY foos as 'USR$DISK:[CLEMENSD.SQL_EDIT]';
CREATE OR REPLACE PROCEDURE Load_CLOB IS
dest_clob CLOB;
in_file BFILE := BFILENAME('foos', 'supernote.js');
dst_offset number := 1 ;
src_offset number := 1 ;
lang_ctx number := DBMS_LOB.DEFAULT_LANG_CTX;
warning number;
BEGIN
DBMS_OUTPUT.ENABLE(100000);
INSERT INTO js_holder(js_name, js_body)
VALUES('supernote', empty_clob())
RETURNING js_body INTO dest_clob;
DBMS_LOB.OPEN(in_file, DBMS_LOB.LOB_READONLY);
DBMS_LOB.LoadCLOBFromFile(
DEST_LOB => dest_clob,
SRC_BFILE => in_file,
AMOUNT => DBMS_LOB.GETLENGTH(in_file),
DEST_OFFSET => dst_offset ,
SRC_OFFSET => src_offset,
BFILE_CSID => DBMS_LOB.DEFAULT_CSID,
LANG_CONTEXT => lang_ctx,
WARNING => warning );
DBMS_LOB.CLOSE(in_file);
COMMIT;
DBMS_OUTPUT.PUT_LINE('Loaded File using DBMS_LOB.LoadCLOBFromFile.');
END;
then the following:
SQL> set serveroutput on
SQL> exec load_clob

Hi Dancy,
A quick search on Metalink reveals note 412239.1. I can't reproduce the content here because of the whole T&C around using Metalink, but basically it's not a bug, the BFILE must have the correct binary attributes - "record format of variable length/Stream_Lf" (if that means anything).
That implies the file you are looking at isn't in fact binary and that, unlike other platforms, bfiles on VMS must be binary (which has interesting ramifications for anyone writing portable code, I didn't know this). Maybe use UTL_FILE instead to write to a CLOB?
HTH
Chris

Similar Messages

  • Crystal Report File Size Limitation

    Post Author: lashworth
    CA Forum: General
    I am running into a file size issue with Crystal Reports. If the report file approaches 80MB then they do not run or display well or at all. Can anyone tell me how best to investigate this problem?

    Hello,
    What version of Cr and .NET?
    Does your printer have limited memory?
    Is it local printer?
    Have you tried installing the latest Drivers for it?
    What Browser are you using and have you tried any other?
    40 pages not much local memory so it shouldn't be a problem.
    Create a new Printer and select File rather than port or LPT as the destination to see if it's a physical printer or network issue.
    Try a different printer altogether also.
    Also refer to Rule of Engagement posting before submitting your question so you provide as much info first.
    Thank you
    Don

  • Report file size

    My EPM report is having only 10 lines in output. But when I see the file size it is 8 to 9 mb.
    What could be the reason of report getting such a big size with less data? The same contents if it is copied to notepad the size is far lesser.
    Appreciate inputs..

    Hello,
    Not sure on this - I created a report on EnvShell with 12 lines, the file is very small (40 kB)
    Does your report use a lot of dimension members (for example TIME) and you then remove/supress empty lines?
    Thanks
    Marc

  • Report file size limitation when printing?

    Does anyone know of a file size limitation when printing a .NET run Crystal report? We run a browser app, which opens a new browser when a report is printed. That works fine. When we PRINT, the ActiveX print dialog box appears. If the report is large (> 40 pages or so) it crashes our entire application. It works ok if we export to PDF then print, but I am trying to get to the bottom of why it is crashing.

    Hello,
    What version of Cr and .NET?
    Does your printer have limited memory?
    Is it local printer?
    Have you tried installing the latest Drivers for it?
    What Browser are you using and have you tried any other?
    40 pages not much local memory so it shouldn't be a problem.
    Create a new Printer and select File rather than port or LPT as the destination to see if it's a physical printer or network issue.
    Try a different printer altogether also.
    Also refer to Rule of Engagement posting before submitting your question so you provide as much info first.
    Thank you
    Don

  • Does VLC change file sizes when adding files?

    I have a 64GB iPad that had 32.1GB of free space. I copied over video files that Finder said took up 31.7GB of space. However, after all the files were done copying to the iPad, iTunes said that I had 11.7GB of free space on the iPad. How is this possible? All the videos did copy and all play, so I don't think anything got lost in the file transfer. Does VLC or iTunes downsize the videos somehow? If so, is there a way to not have it do that?

    @Julian Wright:
    I don't think you read my post; there's no way that reporting 1000MB vs. 1024MB as 1GB would account for the difference between the video files taking up 31.7GB of space on my Mac but only 20GB of space on the iPad. Unless my math is very wrong, in which case, I would love to learn the correct way to figure this out. And besides, I was talking about OS X and iTunes reporting file sizes, not my iPad. Unless iTunes reports file sizes differently than OS X, which would be very confusing.

  • ORA-01200: actual file size of 437759 is smaller than correct size of 43776

    Hi,
    I am getting the following unexpected errors while going to create CONTROL files after successful completion of offline/online oracle backup RESTORE (of PRD system) on Quality system. We are following Database specific system copy method to do the same.
    All the required pre & post restore activities for the same were carried out. Even the same RESTORE activities are performed with different different online/offline backups of PRD system to do such system copy. But, the thing is stuck at control file creation step with the following same error which is seen again & again after every DB restore operation.....
    SQL> @/oracle/AEQ/saptrace/usertrace/CONTROL.SQL
    ORACLE instance started.
    Total System Global Area 4714397696 bytes
    Fixed Size                  2050336 bytes
    Variable Size            2365589216 bytes
    Database Buffers         2332033024 bytes
    Redo Buffers               14725120 bytes
    CREATE CONTROLFILE REUSE SET DATABASE "AEQ" RESETLOGS  ARCHIVELOG
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01200: actual file size of 437759 is smaller than correct size of 437760 blocks
    ORA-01110: data file 4: '/oracle/AEQ/sapdata1/sr3_1/sr3.data1'
    At OS level the file size of sr3.data1 is found 3586129920 bytes (= 437760 * 8192 bytes).
    host1:oraaeq 20> cd /oracle/AEQ/sapdata1/sr3_1
    host1:oraaeq 21> ll
    total 7004176
    -rw-r--r--   1 oraaeq     dba        3586129920 May 11 02:26 sr3.data1
    The above mentioned error is coming for all 294 data files. The reported file size difference is only of 1 Block in all data files. The DB block size is 8192 bytes.
    Environment: (for SAP QUALITY & PRD systems)
    OS: HP_UX ia64 B.11.23
    SAP System : SAP ECC 6.0
    Database: Oracle 10.2.0.2.0
    Your help for this reported issue will be highly appreciated.
    Regards,
    Bhavik G. Shroff

    Hi,
    Thanks for your response.
    We already have tried the same whatever you have mentioned as suggestions in ur last post .
    We already tried to extend all 294 data-files as mentioned in that oracle forum link.
    Its not the recommended way to play with data-files in such a way  as it can lead to other unnecessary errors.
    We have seen the following errors after successful creation of control file by manually extending all those 294 files (it was around 10hrs job).
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    auto
    ORA-00332: archived log is too small - may be incompletely archived
    ORA-00334: archived log: '/oracle/AEQ/oraarch/AEQarch1_268984_629943661.dbf'
    have you tried also restoring init<SID>.ora file from PRD to new system.
    I think its not having relationship with control file generation. Both systems are having same init files with respective SIDs.
    Did you find any other points in your further investigation ?
    I am thinking to perform Fresh SAP System Installation with same SID (AEQ) and then will try to do Database Restore again with last offline backup of AEQ system.
    Regards,
    Bhavik G. Shroff

  • File Size Question: Browser vs. MediaManager vs. Finder

    Not an earth-shattering issue, but am just curious as to why the Browser, MM, and the Finder each offer different opinions as to the size of a given media file (or group of files).
    I've just finished capturing a couple of hours of HDV footage from a friend's Sony cam (model HDR-HC7). Used Capture Now with the pref to create new media files at any TC break. (Will later do selective shot-by-shot logging and transcoding into ProRes422, so this B-cam material can be easily combined with AVCHD-originated footage which is being ProRes'd on ingest. For now just had to get it all on disk, since my friend needs his camera back!)
    Anyway, everything went smoothly, but to use one file as an example, I happened to notice that in FCP7's "Size" Browser column, it's 78.2 MB; whereas MediaManager sees it as 77.1 MB; yet the Finder shows it as 82 MB.
    All the other captured files show a similar variation. Everything's in the same ballpark, of course -- and these days what's a few MBs between friends? -- but the differences total a couple of GBs by the end of day; still not a big deal in the grand scheme, just more of a variation than I would have predicted.
    So -- does anyone happen to know why this is the case? Do the Browser, MM, and the Finder each have different ways of evaluating how much space a particular media file is actually occupying, or are they each measuring subtly different things?
    Like I said -- just curious.
    Thanks,
    John B.
    Toronto

    +Is there a particular reason why it makes sense for the Browser to use one way, and the Finder to use the other?+
    Most likely it is down to which particular call is used by the programer to ascertain file size and therefore the way that file size data is returned to the app. Don't forget that the FCP's basic code is pretty darn old now and predates current best practices for file size reporting.
    +And why, staying with the above example, does the Media Manager come up with its own unique measurement altogether, different from BOTH of the others (or is that just part of its charm)?+
    Weird huh? And here's the bit you won't like ... I don't see the same discrepancy. On my system Media Manager and the Browser seem to report file sizes consistently.
    +Also -- am I correct in noticing that under Snow Leopard, Disk Utility has switched from one measurement scheme to the other? (DU suddenly seems to be seeing my 500GB drives as having a single-volume partition of -- gasp -- 500GB! Who would've thought?)+
    Yup, its a brave new world.

  • Can't get file size, possibly because of charset problem

    I have an application that needs to recursively find directory sizes, I have a class extending java.io.File with an internal method to do this:
    private static long getSize(File file) {
                    long size = file.length();
                    if (file.exists()) {
                            if (file.isDirectory()) {
                                    File[] files = file.listFiles();
                                    for (int i = 0; i < files.length; i++) {
                                            size += getSize(files);
    } else {
    System.out.println("Problem checking size on \"" + file + "\", reported file size is: " + file.length());
    return size;
    It works (matches du -b output) with the exception of some problematic files I have.
    Output from ls:
    $ ls -l
    total 5461
    -rw-r--r--  1 xyz users    1003 Feb 16 22:06 FileWRS.class
    -rw-r--r--  1 xyz users     831 Feb 16 22:04 FileWRS.java
    -rw-r--r--  1 xyz users     489 Feb 16 22:07 FolderSizes.class
    -rw-r--r--  1 xyz users     198 Feb 16 21:23 FolderSizes.java
    -rwxrwxrwx  1 xyz users 5568138 Apr 25  2004 test.?.abcOutput from du -b:
    $ du -b
    5583203 .Output from my code:
    $ java FolderSizes .
    Problem checking size on "./test.?.abc", reported file size is: 0
    15065The character displaying as "?" is actually an accented e character ("�") and displays correctly in konqueror (my gui file browser).
    I don't really know why it can't pick up the character, but I'm more interested in just getting the file size and ignoring the character problem, any solutions/suggestions for places to look? Do I need to supply more information?

    Try:
    LC_ALL=en_US.ISO8859-1 java FolderSizes .
    Does this help?Yes, that does fix it for my terminal, but if possible I would like a solution that can determine this at run time and solve (so that when it's running on some other terminal, with some other charset, with someother file system charset it will still work).
    Any ideas for doing this from withing the VM?
    p.s. thanks for the fast reply.

  • File size... event files vs. project files... finalizing... help!

    Hi,
    I'm trying to create some room on my hard drive, and I see that I have 80GB of files sitting in my events folder of iMovie. If I finalize my projects, will they take up less room than that original footage? Can I finalize everything and then trash all of the event footage? (I won't need to go back and reuse the originals... it's mostly individual band songs that each are their own project.) But... are those finalized projects re-editable if I want to add something later?
    Thanks for your help - I just want to make sure I'm optimizing my hard drive space. It's confusing to me where these different files are kept!
    I'm in Lion running iMovie 11.

    +Is there a particular reason why it makes sense for the Browser to use one way, and the Finder to use the other?+
    Most likely it is down to which particular call is used by the programer to ascertain file size and therefore the way that file size data is returned to the app. Don't forget that the FCP's basic code is pretty darn old now and predates current best practices for file size reporting.
    +And why, staying with the above example, does the Media Manager come up with its own unique measurement altogether, different from BOTH of the others (or is that just part of its charm)?+
    Weird huh? And here's the bit you won't like ... I don't see the same discrepancy. On my system Media Manager and the Browser seem to report file sizes consistently.
    +Also -- am I correct in noticing that under Snow Leopard, Disk Utility has switched from one measurement scheme to the other? (DU suddenly seems to be seeing my 500GB drives as having a single-volume partition of -- gasp -- 500GB! Who would've thought?)+
    Yup, its a brave new world.

  • FTP connections through Finder not reporting correct file size

    Hi,
    I have a NAS that running as an FTP server. When I connect to it through Finder it reports the incorrect file size of 2.7GB (the real file size is 61GB)
    Its an DMG image file so it obviously fails when I try to image a new IMAC.
    FTP through windows reports the correct file size so rules out any problem on the NAS.
    Any ideas anybody?
    Many thanks.

    Hi,
    I have a NAS that running as an FTP server. When I connect to it through Finder it reports the incorrect file size of 2.7GB (the real file size is 61GB)
    Its an DMG image file so it obviously fails when I try to image a new IMAC.
    FTP through windows reports the correct file size so rules out any problem on the NAS.
    Any ideas anybody?
    Many thanks.

  • Adobe Bridge Reports Inaccurate File sizes

    Im still in CS4 but can't seem to find a forum on CS4.  In any case, why does Bridge report inaccurate file sizes?  I thought I could use bridge to select all of the M2V files in a folder which I wanted to use in an Encore DVD project to get an accurate total file size.  That way I would know if all of the selected files would fit on a single DVD.  But Bridge doesn't report an accurate total file size of selected files.  What's up with that?  Is that too much to ask out of Bridge?

    but where is the "activity bar"?  I don't see another total indicator of
    selected files anywhere.
    Well I think we are talking about something you already discovered but there
    seems not an official name for it I believe, I call it the activity bar, it
    might also be called a status bar or status monitor, can't find the official
    name for it at this moment.
    Anyway It is at the bottom of the Bridge window left side. Click on a folder
    and it tells you the number of items showed and items hidden (and here it
    should also say the total amount of folder size but as said before, a long
    standing feature request). Click on one or more files and it shows the
    amount of selected files and the total size of the selected files.
    When first opening a folder in the content window Bridge needs to cache the
    thumbs and depending on settings also thumbnails. When caching you see in
    this bar a spinning arrow showing it is still caching and also the amount of
    files to cache that are left.
    A very useful item in my workflow

  • Reports - Image resolution : How to minimize file size of exported report?

    Our reports are currently using high quality images which makes the file size bigger. Is there any way to reduce the exported report's file size?
    Please provide us the way to use lower quality images in reports to minimize the file size.
    NOTE: In these reports we are embedding the images (with ".jpg" format) programatically at runtime. Also we are using Crystal Reports XI (Product Version 11.5.0.313) with .Net 1.1 framework.

    Using an image program like Photoshop or Paint Shop Pro you need to reduce the number of colors and DPI while maintaining as much of the clarity as possible.
    Here's what steps will help.
    Open the image you want to change.
    Check the 'Count of Colors used' in the tool you're using.  If more than 256 (8 bit) you'll not be able to do much to reduce colors, but most likely the image has a palette of 17.6 million colors (24 bit)
    If a color image, try reducing to 8bit, 10bit or 12bit.  If a b&w change it to grey scale and reduce.  Some forms can be reduced to 16 (4 bit).
    Next, check the DPI, usually in the 'image information' tool.  If it's more than 200 try reducing to 200.
    Save the image in BMP format with RLE compress if possible.  Look at it in the image tool to see if it has held up.
    We recently pulled 11 pages from a PDF to PNG, changed them to greyscale BMP at 4bit 200DPI and it reduced the RPT file size from 317000k to 2000k.

  • Report the size of all SharePoint Databases in a text file using PowerShell?

    I am new to Powershell. please help me for following question with step by step process.
    How to report the size of all SharePoint Databases in a text file using PowerShell?

    Hi Paul,
    Here is the changed script, which will also include the size for the Config DB.
    Please let me know if it worked:
    #Get SharePoint Content database sizes
    Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue
    $date = Get-Date -Format "dd-MM-yyyy"
    #Variables that you can change to fit your environment
    $TXTFile = "D:\Reports\SPContentDatabase_$date.txt"
    $SMTPServer = "yourmailserver"
    $emailFrom = "[email protected]"
    $emailTo = "[email protected]"
    $subject = "Content & Config Database size reports"
    $emailBody = "Daily/Weekly/Monthly report on Content & Config databases"
    $webapps = Get-SPWebApplication
    $configDB = Get-SPDatabase | ?{$_.Name -eq ((Get-SPFarm).Name)}
    $ConfigDBSize = [Math]::Round(($configDB.disksizerequired/1GB),2)
    Add-Content -Path $TXTFile -Value "Config Database size: $($ConfigDBSize)GB"
    Add-Content -Path $TXTFile -Value ""
    foreach($webapp in $webapps)
    $ContentDatabases = $webapp.ContentDatabases
    Add-Content -Path $TXTFile -Value "Content databases for $($webapp.url)"
    foreach($ContentDatabase in $ContentDatabases)
    $ContentDatabaseSize = [Math]::Round(($ContentDatabase.disksizerequired/1GB),2)
    Add-Content -Path $TXTFile -Value "- $($ContentDatabase.Name): $($ContentDatabaseSize)GB"
    if(!($SMTPServer) -OR !($emailFrom) -OR !($emailTo))
    Write-Host "No e-mail being sent, if you do want to send an e-mail, please enter the values for the following variables: $SMTPServer, $emailFrom and $emailTo."
    else
    Send-MailMessage -SmtpServer $SMTPServer -From $emailFrom -To $emailTo -Subject $subject -Body $emailBody -Attachment $TXTFile
    Nico Martens - MCTS, MCITP
    SharePoint 2010 Infrastructure Consultant / Trainer

  • File size reported reported differently

    Can someone help me explain why this file size is reported differently depending whether you list file or folder properties:
    This is an Azure Basic_A1 VM. Drive E: is standard VHD attached to the VM (Page Block Storage).
    This is an active/open file that is currently being written to, and is growing in size.
    How is it that file size is reported as 8 GB if you query the folder, and 24 GB if you query the file?
    Sam Boutros, Senior Consultant, Software Logic, KOP, PA http://superwidgets.wordpress.com (Please take a moment to Vote as Helpful and/or Mark as Answer, where applicable) _________________________________________________________________________________
    Powershell: Learn it before it's an emergency http://technet.microsoft.com/en-us/scriptcenter/powershell.aspx http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx

    I ran this script for the last 8 or so hours out of this 19 hour upload:
    $Folder = "e:\Backups\Sam Client\To Azure Page Block Repository"
    $Log = "c:\Sandbox\Upload4.csv"
    Write-Output '"FileQuery","FolderQuery","Time"' | Out-File $Log
    Do {
    $a = (dir "$Folder\To Azure Page Block Repository2014-09-23T051450.vbk").length/1GB
    $b = (dir $Folder)[1].length/1GB
    cls
    Write-Host "File size reported from file list: $('{0:N2}' -f $a) GB" -ForegroundColor Green
    Write-Host "File size reported from folder list: $('{0:N2}' -f $b) GB" -ForegroundColor Yellow
    dir $Folder | FT -AutoSize
    Write-Output """$a"",""$b"",""$(Get-Date -Format 'hh:mm:ss tt')""" | Out-File $Log -Append
    Start-Sleep -Seconds 10
    } while ($a -ne $b)
    That collected over 3,000 sampling points that are 10 seconds apart. I then graphed that data:
    The vertical axis is file size in GB, the horizontal axis is time (not directly - it's sampling points)
    And you can see file size as reported by folder query lags behind file size as reported by file query. The amount of lag was upwards of 90GB at its highest point. And it took anywhere from roughly 5 minutes to 3 hours for 1 indicator to catch up with the
    other. 
    The question is why these two sets of numbers are different? Is there caching going on somewhere? Is one indicator accounting for all file blocks while the other is accounting for committed blocks only? Can someone from Microsoft shed some light on this?
    This is important to know to be able to plan disk space requirements when attempting to use Azure as backup target with large data sets regardless of the software used.
    Sam Boutros, Senior Consultant, Software Logic, KOP, PA http://superwidgets.wordpress.com (Please take a moment to Vote as Helpful and/or Mark as Answer, where applicable) _________________________________________________________________________________
    Powershell: Learn it before it's an emergency http://technet.microsoft.com/en-us/scriptcenter/powershell.aspx http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx

  • Financial Reports PDF File Size

    We recently patched from 11.1.2 to 11.1.2.2 and we have noticed that the PDFs generated from Financial reporting have a file size significantly larger (4x) then when they were done with the previous release. Nothing has changed on the reports. Is there some configuration that can be done to get the PDF file size back to where it was previously ? From Financial reports Help-> About we are on version 11.1.2.362.

    11.1.2.2 come with a new print engine, which does your PDF looks different in size. You may have change the settings by selecting the "Auto Size" option in the Grid Poperties and test
    Rgds

Maybe you are looking for

  • Help with computer program

    Hi, I am very new this and could sue some help.. import java.util.*; public class CarSort public static void main(String[] args) final int ARR_SIZE = 30; final boolean DEBUG = true; final String SENT_DBASE = "EndDatabase"; final String SENT_SEARCH =

  • How to interface multiple NTC Thermistors to a 8-1 multiplexer and then to myRIO .

     I need to measure the temperature of 8 lithium ion battery cells in series individually for my battery management   system . So I need to see how can I interface the 8 thermistors with 8 to 1 multiplexer and output to myRIO analog input.

  • Details required for these terms

    Hi All, can any body explain these terms in detail. Main Attributes on item master window i. Primary ii. Tracking => - primary - primary & secondary iii. Pricing => - same as above. iv. secondary => Defaulting any response will be highly appreciated.

  • DataSourceUserManager : role problem

    Hi I usually use apache-tomcat. I have a database with users and group data. So now I am trying to secure my web application in 10gAS. 1 - I configured a data source 2 - Enterred group info in principals.xml 3 - Added security-role-mapping to orion-a

  • How to enter initial balance for material with moving average price

    We have an issue where the customer wants to split one material into three materials. We are thinking of posting goods issue for the original material and post goods receipt for the new three materials. But how to enter the initial balance since thes