ORA-21560: while size is less than 1 GB for a CLOB variable

Hi ,
I use "DBMS_XSLPROCESSOR.CLOB2FILE' to write data from a CLOB variable (Oracle 10g) to TXT file in unix. I assumed that
the clob can collect data of around 4 gb , but it is throwing the "Out of Range" error if the size exceeds
22502381 bytes, which is not at all sufficient to my requirement. I want to collect around 3GB in the variable.
Is it possible ? Please help
2008-12-22 11:08 Error Occurred
ORA-21560: argument 2 is null, invalid, or out of range
Declare
Xfile CLOB ;
v_buffer VARCHAR2(32767);
v_eol VARCHAR2(2);
v_eollen PLS_INTEGER;
c_maxline CONSTANT PLS_INTEGER := 32767;
v_lines PLS_INTEGER := 0;
v_dir          VARCHAR2(1000) := 'XXX/YYY' ;
v_data_string VARCHAR2(32767) ;
x integer ;
Begin
v_eol := CASE
WHEN DBMS_UTILITY.PORT_STRING LIKE 'IBMPC%'
THEN CHR(13)||CHR(10)
ELSE CHR(10)
END;
v_eollen := LENGTH(v_eol);
DBMS_LOB.CREATETEMPORARY(Xfile, TRUE);
FOR r in ( Select desc1||'~'||desc2||.....desc30 AS csv from desc_t )
Loop
IF LENGTH(v_buffer) + v_eollen + LENGTH(r.csv) <= c_maxline THEN
v_buffer := v_buffer || v_eol || r.csv;
ELSE
IF v_buffer IS NOT NULL THEN
DBMS_LOB.WRITEAPPEND(
v_file, LENGTH(v_buffer) + v_eollen, v_buffer || v_eol
END IF;
v_buffer := r.csv;
END IF;
v_lines := v_lines + 1;
END LOOP;
IF LENGTH(v_buffer) > 0 THEN
DBMS_LOB.WRITEAPPEND(
v_file, LENGTH(v_buffer) + v_eollen, v_buffer || v_eol
END IF;
DBMS_XSLPROCESSOR.CLOB2FILE(Xfile, v_dir, 'V_DESC,TXT');
DBMS_LOB.FREETEMPORARY(v_file);
Exception
When Others Then
dbms_output.put_line('Error '||v_lines||' --'||SQLERRM) ;
dbms_output.put_line('Error '||dbms_lob.getlength(Xfile)) ;
End ;
Thanks

Well, ORA-21560 could indicate file opening issue. Check the file name 'V_DESC,TXT'. Most likely your UNIX either does not allow commas in file name or requires them to be escaped. And anyway, I believe it is a typo and you meant 'V_DESC.TXT'.
SY.

Similar Messages

  • Lines size to less than 0,29cm?

    It is possible to reduce the lines size to less than 0,29cm?

    I don't know what the minimum is in centimeters but 0,29 sounds pretty close.
    What is your goal? Why do you need/want it smaller?

  • Budget control - Assigned funds are less than payment budget for fiscal year in document item

    Dear Experts,
    We are using Former budgeting, when ever we run the transaction FMBV getting the following message to a particular user.
    Budgeting
    Assigned funds are xxxx BHD less than payment budget for fiscal year
    2014 in document item XXXX /XXXXX .
    And also when purchasing creates the PO getting similar message to a particular user.
    Purchase order 450000XXXX
    Assigned funds are XXXX BHD less than the commitment budget for
    fiscal year 2014 in document item 010 XXXX /XXXXX .
    How to know where these users were maintained.
    Thanks for the help

    Hello Itai,
    Sorry for my late reply. Have you been able to find a solution for this?
    If not, please update, otherwise please make this thread as answered.
    Sorry for the delay...
    Kind regards, Mar.

  • Why should texture size be less than power of 2?

    Hi!
    I just read in the packagerforiphone_devguide.pdf
    Make bitmaps in sizes that are close to, but less than, 2^n by 2^m bits. The dimensions do not have to be power of 2,
    but they should be close to a power of 2, without being larger. For example, a 31-by-15–pixel image renders faster
    than a 33-by-17–pixel image. (31 and 15 are just less than powers of 2: 32 and 16.) Such images also use memory
    more efficiently.
    can someone explain me this? As Gamedeveloper i'm used to have power of 2 textures. why should they be smaller than power of 2 instead of exactly power of 2?

    I have read that too, and it doesn't make sense. The article would have been a lot clearer if they had used 32x16 as the second example, instead of 33x17. Like you, I would almost expect advice that said to not exceed a power of 2, but it does't seem right to say that the exact power of 2 isn't recommended either.
    Hey, I just found an earlier passage that pretty well states that we're right, on page 34:
    "The GPU uses memory allocations that are powers of 2 for each dimension of the bitmap image. For example, the GPU can reserve memory in 512 x 1024 or 8 x 32 sizes. So a 9 x 15-pixel image takes up the same amount of memory as a 16 x 16-pixel image. For cached display objects, you may want to use dimensions that are close to powers of 2 (but not more) in each direction. For example, it is more efficient to use a 32 x 16-pixel display object than a 33 x 17-pixel display object."
    So there you go, a 32x16 bitmap does use less memory than a 33x17 bitmap.
    I think, or hope, that the later part was just making the point that you don't have to use exact powers of 2, but in doing so you want to not go over the power of 2. Hence using examples of 31x15 and 33x17. They didn't use 32x16 as an example because those are powers of 2, which wasn't what was being illustrated.

  • Less than 45 minutes for new episode to show up on iTunes

    I uploaded a new episode of the MuscleCarist Podcast, went away to eat dinner, and less than 45 minutes later checked and it was available online and through iTunes.
    Just to give an idea of how I do it, I have my website hosted through Blue Host, use Joomla as my content editor, have the Podcast Suite component installed in Joomla, and direct it through Feedburner to iTunes.

    You seem to be very lucky: that's the second episode running you've had appear quickly; some people have been waiting for days. I've no idea why: I doubt your particular construction method has anything to do with it since in the end they all produce the same thing - an XML feed, which iTunes then has to read.

  • WhatsApp claims I have no storage on my phone to restore a backup while I have more than enough space for the backup size required. What do I do?

    Hello community,
    I used to have storage problems on my phone, and chose to delete WhatsApp since it consumed nearly a whole gigabyte on my phone. I thought that through deleting it and reinstalling, it would get rid of the overload of data and start fresh. However, once I got to the page to restore from a back-up of my messages, I didn't have enough space on my phone. So I did further research into how to free up some space (turned out I had a lot of deleted photos hiding in my phone which should've been totally gone) and managed to get nearly 500 MB free. So I went back to my WhatsApp app, and tried to restore the back-up since it says the size of the back-up is 360 MB. However, it still gives the following error message that it had given me before:
    "Sorry, there isn't enough room on you iPhone to restore from your iCloud backup. Make room by deleting existing videos or photos and try again."
    I didn't (and still don't) understand why it says there is no room on my phone even though I had about 450 MB free. I have tried switching my phone off and then back on. Still, I get the same message. I have also tried deleting WhatsApp again and re-installing it but still I get the same message, still when I have enough room on my phone. By now, I have already consumed my storage on other apps so I don't have much space left anyway, making the error message reasonable.
    I would really appreciate if anyone could just throw me some possible solutions that could solve the problem of WhatsApp not recognizing that I've got enough space for it on my iPhone to restore all my messages. I would like them back because I have some important and nice message threads I would love to have retrieved. Remember, I have already tried switching my phone off and back on and also deleting WhatsApp when I had sufficient storage. Currently I don't have enough storage, which makes sense for the error message to appear, but if anyone gives me a possible solution I will make way for enough storage and try the solution.
    Also a weird thing is that at first, I still got notifications of messages people sent me through private chat (so not group chat). I don't know what it exactly means, but hopefully that helps with finding a solution.
    If you think that I might as well post this question on a WhatsApp forum, please tell me, because it does indeed seem like it lies on the app and not my phone.
    Thank you all anyway for reading and wanting to help.
    Shaynidw.

    Does your Cloud subscription show on your account page?
    https://www.adobe.com/account.html for subscriptions on your Adobe page

  • Archived redo log size more less than online redo logs

    Hi,
    My database size around 27 GB and redo logs sizes are 50M. But archive log size 11M or 13M, and logs are switching every 5-10min. Why?
    Regards
    Azer Imamaliyev

    Azer_OCA11g wrote:
    1) Almost all archive logs sizes are 11 or 13M.. But sometimes 30, 37M.
    2)
    select to_char(completion_time, 'dd.mm.yyyy HH24:MI:SS')
    from v$archived_log
    order by completion_time desc;
    10.02.2012 11:00:26
    10.02.2012 10:50:23
    10.02.2012 10:40:05
    10.02.2012 10:29:34
    10.02.2012 10:28:26
    10.02.2012 10:18:07
    10.02.2012 10:05:04
    10.02.2012 09:55:03
    10.02.2012 09:40:54
    10.02.2012 09:28:06
    10.02.2012 09:13:44
    10.02.2012 09:00:17
    10.02.2012 08:45:04
    10.02.2012 08:25:04
    10.02.2012 08:07:12
    10.02.2012 07:50:06
    10.02.2012 07:25:05
    10.02.2012 07:04:50
    10.02.2012 06:45:04
    10.02.2012 06:20:04
    10.02.2012 06:00:12
    3) There arent any serious change at DB level.. almost these messages show in alert log since creating DB..Two simple thoughts:
    1) Are you running with archive log compression - add the "compressed" column to the query above to see if the archived log files are compressed
    2) The difference may simply be a reflection of the number and sizes of the public and private redo threads you have enabled - when anticipating a log file switch Oracle leaves enough space to cater for threads that need to be flushed into the log file, and then doesn't necessarily have to use it.
    Here's a query (if you can run as SYS) to show you your allocation of public and private threads
    select
         PTR_KCRF_PVT_STRAND           ,
         FIRST_BUF_KCRFA               ,
         LAST_BUF_KCRFA                ,
         TOTAL_BUFS_KCRFA              ,
         STRAND_SIZE_KCRFA             ,
         indx
    from
         x$kcrfstrand
    ;Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    Author: <b><em>Oracle Core</em></b>

  • Family leaving in less than a week for Cancun - What do I do for older teens who still want to text?

    All,
    I have nowhere else to go but this forum.  I have called Verizon asked them about upgrading to the Global Plan (which I plan on getting) but no one can seem to answer the one question I need answered.  Is there any way to avoid the 50 cent charge per text to send and the 5 cent charge per text to receive?  I do not want to block their text messages as I was hoping to be able to text them down there so we could stay connected.  We have approximately 22 family members going 12 of which are older teenagers and some in early 20s. I am trying to avoid coming home to a $1000 dollar bill from Verizon but still allowing our kids to have fun texting their friends in the US. 
    As large as Verizon is, I am absolutely shocked that there is no international type of service you can purchase.  Or for that matter someone who actually knows what they are talking about when it comes to texting, calling, snap chatting, twittering overseas. Me, my sister and my sister in law have all called Verizon and each were told three different things! 
    I know they said we should be on Wi-Fi as much as possible but at the same time I was told most resorts in Cancun will make you pay for Wi-Fi!  I feel like I am banging my head up against the wall. 
    All the teenagers have at least an IPhone 4 or above and all are smart phones. Can someone please tell me if there is an APP or something that I am not aware of that can be used for these teenagers while we are in Cancun?
    Any help or any guidance as to what I need to do would be greatly appreciated. Please keep in mind I am a little bit computer savvy, but I am not phone savvy at all.  So the more it is spelled out, step by step on what we need to do, the better I will be able to understand it.
    Thank you for your time
    Lotton

    Unfortunately, when you go on vacation, you have expenses. If you increase the things you want to do while on vacation, that will increase your expenses. That would include using your smartphones while abroad. It used to be when going abroad, keeping in touch with home was an expensive proposition. It still is, except it is NOW more convenient. If you want to do so, it is going to cost you.
    You say you are shocked Verizon does not have some sort of "international type of service" while in the previous paragraph you were looking for ways to avoid paying the charges Verizon has for just such a service. Verizon DOES have an "international type of service", it appears you are simply not happy with the price of such a service.
    Use the interactive trip planner. The prices you previously stated are the prices Verizon has for the service you want. Those with 4G LTE phones may be able to get cheaper service simply by purchasing a local SIM card when you arrive at your location. Of course, that would mean having a local number in Mexico and the people from home would not be able to contact you unless you were to give them the new number. Those with only an iPhone 4, unfortunately, would not be able to do so as those have no SIM card to change. Those with an iPhone 4S, could call Verizon to have their phones unlocked and then be able to switch SIM cards for cheaper service. Those with 4G LTE phones should just be able to switch the SIM card as they are already unlocked for such a switch.

  • Creating Custom Page Size less than one inch

    I currently have Acrobat 6 on Windows XP, and it appears that I cannot set a custom page size less than one inch (Using Printer Preferences). Is there another method I can use to create a PDF from Publisher that has a page size less than one inch? If not, would updating to Acrobat 9 allow me to print to a custom page size of less than one inch?

    Thanks Peggy,
    I tried deleting the preference file and restarting Pages but I still have the same problem with the custom page size. When I start Pages I am presented with a bunch of templates so I choose Blank then I go through my procedure to select the custom page size that I created and always end up back at an A4 document.
    I have used the demo version of Stone Create to do what I needed to do with the small page size (ie. create a small ad) but it is a pain that I paid for Pages and now will need to buy something like Stone Create to do what I need. Although, that said, having used Stone Create for this little ad I must say that for the price it seems like a pretty decent program that will do a whole lot of the desktop publishing type of functions without the rather steep prices of the Adobe products. I kind of wish I had bought this program instead of Pages now.
    Cheers,
    Graham

  • After system copy new system size is leeer than old system

    Hii,
    Our client system is upgrading now. So Production BW system copy is done to new system.
    New system size is lesser than the Production system.
    Could any one let me know why this was happen. All the available in production BW is availalable in New system then also the new system size is less.
    Regards,
    sharma.

    Usually when you delete data from a table , the table space will not get released- you will have to run a reorg on the database so that the additional space gets released.... if you do the same on the production system then the spaces should get aligned.  Also run BRCONNECT on the copy as well so that everything is in line.
    Arun

  • How to configure an image to specific parameters.  Needed: no more than 1200 pixels on long side   jpeg format   no less than 5 mb.  Image will be viewed on large standup screen.(original image is 22 mb)

    I often have requests for images to be sent within certain parameters:  such as "no longer than 1200 pixels on longest side + jpeg format + file size no less than 5 mb."  Images will be viewed on a large stand up screen.  My original image sizes are usually around 22 mb.  When I use Export and specify 1200 pixels (quality setting is all the way over to 12), Save the file to a folder on the desktop, and then open the image in Preview, Inspector shows that the file size is now 233 KB.  How do I meet all specifications without reducing the image size so drastically?
    Thank you.

    . Pardon, it reduced it down to 833 KB, not 233 (I mixed it up with another image) from the Original image of 22 MB, RAW.  Should it reduce it down that much??
    That will depend on the amount of of detail in your jpeg. Given a certain pixels size and level of quality, a jpeg with many details will require a larger filesize than a jpeg with large plain regions of constant color.
    Is 833 KB a big enough file size to view on a big screen?
    The file size is really unimportant for the quality. What will count is the pixel size and jpeg quality you set. What is the pixel size of the large screen? That should match the pixel size you are using in your export preset. 1200 longest dimension is extremely unlikely for a large screen. Even the 17" display of my MacBook Pro has a larger pixelsize of 1920x1200.
    I am sharing William Lloyd's doubts, that the specifications you were given are correct.  I'd try to export with a larger pixelsize and a high jpeg quality - perhaps 10.
    If you export with 10 Megapixel  and a good jpeg quality, you will probably get a 5MB file, not that the size should matter.

  • IPhone4 stores only less than 3GB of photos/videos

    Hello All,
    I have a 16GB iphone4, I now realised that it stores only less than 3 GB worth photos/videos (HD) and then says that there is no more space left.
    When I check through iTunes it says 12.3 GB of photos, 1.17 GB apps and 0.06 GB Others, and nothing free...
    But when I copy this to my machine the folder size is less than 3 GB -:(
    Should it not be able to store much more ?
    Once I had 120 photos + videos
    and another time 75 photos + videos...
    I know the length of the videos matter, but again the storage in size should be much more than 3 GB, right ?
    Any information is appreciated !!
    Thanks in Advance !!
    Best
    Naresh
    PS - I am at the moment upgrading the OS to see if that helps

    please ignore this question, Iguess I had created another library in the phone which I had forgotten about.
    Thanks for reading !!

  • Can I set the value of kernel paramaters less than default in Solaris 10?

    Can I set the value of kernel paramaters less than default in Solaris 10? If specified less than default values for kernel parameters in /etc/system, system is getting default values for such as SHMMAX, SEMMSL, SEMOPM. Is the default kernel parameter values the minimum values in Solaris 10?
    -Yong

    Yes, but not through /etc/system.
    /etc/system is the old way to do it. As a backward compatibility, it will allow lines there to increase parameters but not decrease them. This is on the theory that many memory defaults were significantly increased, and older /etc/system setups were trying to increase small defaults, not decrease large ones).
    Use prctl and set up a project.
    Darren

  • When minutes total less than '10' how do I display a '0' in front of the number

    Post Author: Kara
    CA Forum: Formula
    Hi,
    I am using v9. I have written a report that has formulas in it to add two times together giving the total in HH:MM. However, I can't get the total to display correctly if the number of minutes is less than 10. For example: 12 hrs 8 mins is displaying as 12:8 rather than 12:08. My formulas are as follows:
    (Maximum ({JOURNAL.PANELLOCALTZDT}, {Person.PersonID})-Minimum ({JOURNAL.PANELLOCALTZDT}, {Person.PersonID}))*24
    Truncate ({@Hours Worked})
    Remainder ({@Hours Worked},1 )*60
    I have tried using format editor to change the way it displays but this didn't work so I guess there must be something I can change in the formula...
    Anyone got any ideas?

    Post Author: synapsevampire
    CA Forum: Formula
    The trick is to use totext({@yourformula},"00")
    Check this out:
    whileprintingrecords;numberVar dur := datediff("s",{Orders.Order Date}, currentdate); //get the seconds between 2 datesnumberVar hrs;numberVar min;numberVar sec;stringVar hhmmss;hrs := Truncate(Truncate(dur/60)/60);min := Remainder(Truncate(dur/60),60);sec := Remainder(dur,60);hhmmss := totext(hrs,"00") + ":" + totext(min,"00") + ":" + totext(sec,"00");hhmmss

  • Osx Lion reinstall stuck at less than a minute

    hhere is the deal. I had to reformat my mid 2012 MacBook Pro after it would freeze up after startup. I reformatted and everything went fine other than the 7 hours it took. I went to reinstall osx lion and it gave me a total time of 12 plus hour. Now it has been stuck at less than a minute for almost an hour. I'm totally nervous that all this time has been wasted for this stupid macbook to just freeze up again. Any suggestions or is this normal??

    I've got the exact same problem. My mac started to freeze up at random. This made it impossible to use. After I tried to reinstall everything, by potentially thinking that it might be some vius, or corruption. I've now been trying to reinstall eveything for aprox 6 hours and I'm stuck at 'less than one minute' and been so for around 2 hours.

Maybe you are looking for

  • PP CS4 Problem with exported H.264 .mp4 video. Can't AME do proper encoding?

    Trying to export a Video of ~60mins using the H.264 Codec .mp4 which converts in AME successfully, allthough when playing back the f ile, it has problems after ~40mins. When i try to jump to a later point in the timeline to playback i.e. 48th minute

  • AIR App. need to read textBox text into ....

    Hi there, After several days of searching and going through my collection of Flex database files I can't seem to find anything about writing from several different textBoxes into ONE only Text file OR even writing from an Xml file into plain text wit

  • When viewing e mail it is in a gray box how do i delete that box

    When viewing e mails received the content is in a gray box.  How do I correct?

  • Creating App Folders

    I am trying to organize my IPAD by using app folders. I read you can press down on the icon and it then shakes, then you can drag it to another icon and it will create a folder. When I do this it just rearranges the icons. Is there a way to create ap

  • Using OIM APIs

    I need to use OIM APIs from a third party web application. I would like to know, would it be possible as our OIM server would be at a different m/c then the client web application. So how would the settings be done in this case, as we set some system