Dbms_lob and line size problem
Hi,
below is a simple function which returns a CLOB.
When I call this function from sqlplus and spool the result in a
file via the SPOOL command I get a line break after 80 characters.
When I replace in the function the CLOB type with a VARCHAR2 type
the whole TESTSTRING is printed on ONE line.
I do specify 'SET LINESIZE 200' in both cases and the length of
TESTSTRING is smaller than 200 characters.
How can I increase the line size for the CLOB case ?
CREATE OR REPLACE FUNCTION GetSimple (
RETURN CLOB
IS
RESULT CLOB;
TESTSTRING CONSTANT VARCHAR2(4000) := '123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_AFTER_LINEBREAK' ;
BEGIN
-- create CLOB for RETURN
dbms_lob.createtemporary(RESULT, TRUE);
dbms_lob.writeappend(RESULT, length(TESTSTRING), TESTSTRING);
RETURN RESULT;
END GetSimple;
/
problem solved !
I had to add
SET LONGCHUNKSIZE 4096;
default is 80
Similar Messages
-
Printing and scanning size problems (half size)
Hello,
I am having an issue with my Pixma MP170. When printing multiple pages or scanning a paper document, the size come out really small all of a sudden and two pages will be together in one print or scan. I looked for updated drivers but that doesn't look to be the issue and the problem pesists.
I tried to reset the printer to default but nothing.
Not sure how to proceed.
Thanks for any suggestion.I have had something very like your problem.
Mine is printing quarter size in landscape and is also not scanning or doing copies at the moment..
I can find no way of setting it and it ignores all settings sent from the computer.
It printed one test page correctly and once I tried printing a small text file it came out small and in landscape and now even the test page is also small and also in landscape.
I am tempted to look inside for an engineering jumper or backup battery.
Mine is an MP270. -
Regular expression and line break problem
Hi friends,
I was trying out one regular expression in java but, for some reasons its not working. The test string looks something like this in the eclipse watch window:-
Test string:-*
Content-Disposition: form-data; name="name"\n\nOmkar\n|
In the above test string the last character is a pipe symbol.
And the java code i have written is: -
code:
public static void getParameterValue(String paramName, String testParameter) {
String parameterRegex = "name=\""+paramName+"\"(.*)|";
Pattern pattern = Pattern.compile(parameterRegex,Pattern.DOTALL);
Matcher matcher = pattern.matcher(testParameter);
boolean isFound = matcher.find();
if (isFound) {
System.out.println("The parameter value is : "+matcher.group(1));
}After, the debug line moves over the first line in this method, the value contained in the "parameterRegex" string variable is:-
Regex:-*
name="name"(.*)|
However, my SOP statement, prints null....even though, "isFound" variable is true....can someone please explain me what could be the problem, where i am going wrong ?....
I have even, set the DOTALL option for the regex.
please some one help me!
Thanks and Regards
Omkar Patkarzomkar wrote:
Sorry, folks, i did not mention the fact that i had posted the my query, in Java ranch also. But my problem lead to another problem of CROSS - POSTING !
Apologies, for that !....but please, does any one have a solution to my regex ? .... any one ? please ?
The value i get in paramaname is :- name
which is present in double quotes in test string.
is my regex incorrect ?The discussion at JavaRanch seems to be pretty alive, so why not leave this thread and continue there? That way, people won't have to first read two different threads on two different forums before trying to help you. -
N96 predictive text and line 2 PROBLEMS
Just upgraded from N95 to N96 on Orange UK, I have always had Nokias and for years I have been holding down the # key to quickly change from Line 1 to Line 2 or visa versa, now it takes an age to go through the menus to change. Any one know where the shortcut is for Line 2 please, also I cannot find predictive text yet anyone know where that is please - or is this an unfinished phone where some of the important bits have been left off. Help Please.
@Barney: The (#)hash shortcut can only be activated thru the firmware of the phone. I have a N80 and just changed the firmware. In my old FW the (#) shortcut changed to and from silent mode; In the new FW the shortcut changes the line.
In order to change your firmware to on that has ALS (the feature you want) you may have to do a little research and find the correct FW and possibly change your product code. The former is supported by Nokia and the latter voids your warranty.
Feel free to ask any questions as I have a few for you. I live in the US, and our service providers do not support two lines. For the past 10 years I have carried two phones and always wondered about 'Line 2'. I am in the process of doing some research on the subject and am curious about how it works on the your side of the pond. Just for starters here are some questions:
Can your phone receive calls on both lines simultaneously?
Does changing your line only change the outgoing number?
Is the feature solely based on the SIM card or must it be network supported?
Do you have a special SIM card for this feature? (dual IMSI)
Thanks
wise -
Urgent ! Speed and image size problem.
Dear Java Guru,
I have the speed caused by:
param.setCompression(TIFFEncodeParam.COMPRESSION_JPEG_TTN2);
If use:
param.setCompression(TIFFEncodeParam.COMPRESSION_DEFLATE);
It will be 6 times faster, but the image size is bigger.
But we need to keep the image size very small, say the COMPRESSION_JPEG_TTN2
allows the size to be 2714kb for 20 pages (Grayscale at 100dpi resolution). Is there a compression method that allows the image size to be 1500kb for 20 pages, yet at the time of encode, it is as fast as _DEFLATE method ?
Please help !!! our case is urgent
Thanks in advance.
Thinkwork.Please help !!! our case is urgentIt always is, isn't it?
-
SQL Plus: Set pagesize and line size
Can anyone help me make my output look better...... output below....what do I need to set?
CUST_ID
CUS_NAME
1
Leroy
2
Rama
3
Riley
4
Adena
5
Stuart
6
Jena
7
Tanisha
8
Shellie
9
Ignacia
10
Reubenbtw you can use ** tags for preserving formatting code and results in this forum. See the FAQ for more formatting help.
-
Adding extension "line-size 255" to a standard report on the first line
Hi Experts,
i want to modify the statment from Report ztest1 message-id zm to Report ztest1 message-id zm and line-size 255.
I am going to add the extension line-size 255 to the report statement in a standard report. There are no enhancement points near the first line. I have access key available, so i can make the changes to core mod.
The problem is that if i run the report in background, out of the 8 fields, i only see the first 6 columns in the spool. remaining 2 fields are truncated.
The reason for truncation is bcoz the line-size extension is not given to the report. What procedure do i have to follow to add the extension line-size 255?HI,
You do not need any enhancement for it.
If you have the access key then just add the additon line-size 255 to the repport statement.
Regards,
Ankur Parab -
Extraction of font-sizes and line height is completely bugged.
Hello,
I have been using projectparfait / (now assets) since a very long time and I must say it changed my whole workflow regarding front end development. Being able to quickly look up the font-sizes and line height is/was for me one of the most valuable features. Now since a little while, all the font-sizes/line heights have a scaling factor applied to it which is more than annoying, it basicly make this tool useless to me, there are still features like the measuring tool which are great but ultimately i have to open the files with photoshop which I try to avoid as much as I can.
It would be great if you guys could look into this.
Best regards ThomasHi Futureburo, sorry that you're having problems with Extract!
Just to check, have you changed the Preferred Font Unit or Base Font Size? That would change the measurements your getting in the CSS.
If not would you mind sending me the PSD you're having trouble with? You can get a link from the top right:
and either message me or post a reply here. -
Problem exporting txt' file size is 23 KB and '.zip' size 4 MB
I am using Apex 3.0 version screen to upload '.txt' file and '.zip' file containing images.
I can successfully export '.txt' file and '.zip' file containing images as long as '.txt' file size is < 23 KB and '.zip' file size < 4 MB from database table 'TBL_upload_file' to the OS directory on the server.
processing of Larger files (sizes 35 KB and 6 MB) produce following Error Message.
‘ORA-21560: argument 2 is null, invalid or out of range’ error.
Here is my code:
I am using following code to export Documents from database table 'TBL_upload_file' to the OS directory on the server.
create or replace procedure "PROC_LOAD_FILES_TO_FLDR_BYTES"
(pchr_text_file IN VARCHAR2,
pchr_zip_file IN VARCHAR2)
is
lzipfile varchar(100);
lzipname varchar(100);
sseq varchar(1000);
ldocname varchar(100);
lfile varchar(100);
-- loaddoc (p_file in number) as
l_file UTL_FILE.FILE_TYPE;
l_buffer RAW(32000);
l_amount NUMBER := 32000;
l_pos NUMBER := 1;
l_blob BLOB;
l_blob_len NUMBER;
l_file_name varchar(200);
l_doc_name varchar(200);
a_file_name varchar (200);
end_pos NUMBER;
begin
-- Get LOB locator
SELECT blob_content,doc_name
INTO l_blob,l_file_name
FROM tbl_upload_file
WHERE DOC_NAME = pchr_text_file;
--get length of blob
l_blob_len := DBMS_LOB.getlength(l_blob);
-- save blob length to determine end position
end_pos:= l_blob_len;
-- Open the destination file.
-- l_file := UTL_FILE.fopen('BLOBS','MyImage.gif','w', 32767);
l_file := UTL_FILE.fopen('BLOBS',l_file_name,'WB', 32760); --use write byte option supported in 10G
-- if small enough for a single write
IF l_blob_len < 32760 THEN
utl_file.put_raw(l_file,l_blob);
utl_file.fflush(l_file);
ELSE -- write in pieces
-- Read chunks of the BLOB and write them to the file
-- until complete.
WHILE l_pos < l_blob_len LOOP
DBMS_LOB.read(l_blob, l_amount, l_pos, l_buffer);
UTL_FILE.put_raw(l_file, l_buffer);
utl_file.fflush(l_file); --flush pending data and write to the file
-- set the start position for the next cut
l_pos := l_pos + l_amount;
-- set the end position if less than 32000 bytes, here end_pos captures length of the document
end_pos := end_pos - l_amount;
IF end_pos < 32000 THEN
l_amount := end_pos;
END IF;
END LOOP;
END IF;
--- zip file
-- Get LOB locator to locate zip file
SELECT blob_content,doc_name
INTO l_blob,l_doc_name
FROM tbl_upload_file
WHERE DOC_NAME = pchr_zip_file;
l_blob_len := DBMS_LOB.getlength(l_blob);
-- save blob length to determine end position
end_pos:= l_blob_len;
-- Open the destination file.
-- l_file := UTL_FILE.fopen('BLOBS','MyImage.gif','w', 32767);
l_file := UTL_FILE.fopen('BLOBS',l_doc_name,'WB', 32760); --use write byte option supported in 10G
-- if small enough for a single write
IF l_blob_len < 32760 THEN
utl_file.put_raw(l_file,l_blob);
utl_file.fflush(l_file); --flush out pending data to the file
ELSE -- write in pieces
-- Read chunks of the BLOB and write them to the file
-- until complete.
l_pos:=1;
WHILE l_pos < l_blob_len LOOP
DBMS_LOB.read(l_blob, l_amount, l_pos, l_buffer);
UTL_FILE.put_raw(l_file, l_buffer);
UTL_FILE.fflush(l_file); --flush pending data and write to the file
l_pos := l_pos + l_amount;
-- set the end position if less than 32000 bytes, here end_pos contains length of the document
end_pos := end_pos - l_amount;
IF end_pos < 32000 THEN
l_amount := end_pos;
END IF;
END LOOP;
END IF;
-- Close the file.
IF UTL_FILE.is_open(l_file) THEN
UTL_FILE.fclose(l_file);
END IF;
exception
WHEN NO_DATA_FOUND THEN
RAISE_APPLICATION_ERROR(-20214,'Screen fields cannot be blank, Proc_Load_Files_To_Fldr_BYTES.');
WHEN TOO_MANY_ROWS THEN
RAISE_APPLICATION_ERROR(-20215,'More than one record exist in the tbl_load_file table, Proc_Load_Files_To_Fldr_BYTES.');
WHEN OTHERS THEN
-- Close the file if something goes wrong.
IF UTL_FILE.is_open(l_file) THEN
UTL_FILE.fclose(l_file);
END IF;
RAISE_APPLICATION_ERROR(-20216,'Some other errors occurred, Proc_Load_Files_To_Fldr_BYTES.');
end;
I am new to the Oracle.
Any help to modify this scipt and resolve this problem will be greatly appreciated.
Thank you.Ask this question in the Apex forums. See Oracle Application Express (APEX)
Regards Nigel -
ALV Report Print problem after 255 character line size
Hi ABAP Gurus,
I have created one alv report where i am getting output more then 255 character line size.
so whenever i tried to print this report it print only line upto first 255 character and truncated after it in printing.
is there any way i can print this report without truncation ....
Thanks,
Jackno there is no such way because you acan print at most 99 columns and utmost 255 characters .
and alternative is take your filed in separate screen and make it appear through hotspot in another filedcatalog.then u will get more space .
reward if useful
keep rockin
vivek -
InDesign Transparency Effects - Problems with Image Quality and File Size
Hello,
We are experiencing new problems exporting InDesign files to PDF.
To summarize, though our largest workflow is to create files for offset printing, we also deliver our work to PDF for mounting on a website so our clients can download directly from the web. Our new problem is Transparency Effects, and creating a PDF that will both have a high quality (or resolution), and be a small file size.
We are working with multiple page documents (24 to 48 pages), and would very much like to work with InDesign Transparency Effects. However, after spending much time testing a variety of PDF types, we are finding there is a radical difference between quality and file size. I was curious if anyone has had these problems, and if there is a simple answer. InDesign is an incredible program that allows us to design on the fly with Transparency Effects, but, if we are going to experience these problems, we will have to eliminate these wonderful tools.
Can you help me or lead me to information online that will help.
Thank you,
LainPlease don't post in multiple forums. Your question has nothing to do with the PDF language and specifications, but rather PDF workflow or InDesign. I've responded to your other posting and am closing this thread.
- Dov -
Hi all,
May i know about line size and line count impact on reports ?
i mean depending on line sizes values i.e 200 etc hw it will effect report either in output display or length ?
and also ablout line count too.
Thanks in advance.This information may help you
*... LINE-SIZE width *
Effect
This addition specifies the line width of the basic list and details list of the program to width characters, and sets the system field sy-linsz to this value. The line width determines the number of characters in the line buffer as well as the number of columns in the list displayed. The value width must be a positive numeric literal. The maximum line width is 1,023 characters.
When the LINE-SIZE is not specified, the line width of the basic list is set to a standard width based on the window width of the current Dynpro, but is at least as wide as a standard size SAP window. For the standard width, the contents of sy-linsz is 0. The LINE-SIZE overwrites the value of the like-named LINE-SIZE addition to the statement SUBMIT and can be overwritten during list creation with the like-named LINE-SIZE addition to the statement NEW-PAGE.
Note
The current maximum line width is stored in the constants slist_max_linesize of the type group SLIST. Also defined there is a type slist_max_listline of type c with length slist_max_linesize.
*... LINE-COUNT page_lines[(footer_lines)] *
Effect
This addition specifies the page length for the basic list of the program to page_lines lines and fills the system field sy-linct with this value. If the LINE-COUNT is not specifed, and if page_lines are less than or equal to 0 or greater than 60,000, then the page length is set internally to 60,000. This setting overwrites the passed value of the like-named LINE-SIZE addition to the statement SUBMIT and can be overwritten during list creation with the like-named LINE-COUNT addition to the statement NEW-PAGE.
If you optionally specify a number for footer_lines, a corresponding number of lines are reserved for the page footer, which can be described in the event block END-OF-PAGE.
You must specify page_lines and footer_lines as numeric literals.
Notes
For screen lists, you should use the standard value since, as a rule, page breaks defaulted through LINE-COUNT are not adjusted to the window size.
You should also use the standard value for print lists, so that you can still select the page size on a printer-specific basis. A print list should be created in such a way so that it can handle every page size.
Specifying a fixed line count is only useful for form-type lists with a fixed page layout. Here, however, you should always check whether such forms can be created by other means, such as SAPScript forms. -
Problem printing frames and lines
Hi,
I have problems when printing frames and lines. As far as I know in reports created by WRITE statement. Frame characters aren't printed at all, I mean not even spaces and so all layout of page is corrupted. It changes even with format types what I don't understand.
Could you tell me basic concept of printing frames?
I think some of box_drawings_* characters are used.
I tried to change characters in character set used by device type of chosen output device. But I probably haven't done it right, because in comparing character sets it still compares values before my change.
What is proper way of changing character set?
Thank you for every reply.
DasaWhat format are you using for your output?
Try using something other then HTML, Try HTMLCSS or PDF or RTF insead.
Simply set the DESFORMAT parameter to one of these values. -
Problem in Combo chart columns and line
I select chart type is combo in my vc model and select data series is columns and line.
I define 5 series in the chart.
once i deployed the model the output shows the columns are overwrite in stacked position.
eg:
series 1: 10%
series 2: 20%
series 3: 45%
series 4: 25%
series 5 is line type
but in the chart the only one column will display,its top value 45% and itself shows 10% and 20% in different color.Don't show the 25% value on that column.
How to display the chart columns in clustered type in combo chart.
thanks in advance
Aravind.SHi
When you select 'Combo Chart' you will not get options for 'Stacked or Clustered'. By default it will be 'Stacked' chart only. Combo charts are generally used for less number of data series. Normally these charts are best suitable for 2 Data series only.
Still in your case is there any reason to use 'Combo Chart'? Consider following points -
1. If you want to use this type of chart then selction of 'Columns + Line' will be difficult because it will treat only 'Last Data Series' as line & all others will be columns & what you said problem will appear.
2. Instead of that select 'Column + Lines', so that only first 'Data series' will be column & rest all will be 'Lines'. So that you will get better visibility in that graph.
I think this will help you, If you have nay problem let me know.
Regards
Sandeep -
I updated iTunes and then had problems. iTunes fails to download. Did they take it off-line?
There were no error codes. I went to the download site and started to download. Popup window appeared and then when I clicked on save, the window disappeared, but no download appeared in the download folder.
many thanks.
Try downloading an installer from the Apple website using a different web browser:
http://www.apple.com/itunes/download/
If you use Firefox instead of IE for the download (or vice versa), do you get a working installer?
Maybe you are looking for
-
Seobook/rank checker plug in no longer working with update to FF 5
I have a number of plug ins that worked prior to my update to FF5, I have uninstalled the update, installed v 3.6.18, thinking it would help, and it didn't. I'm not sure what to do. I've uninstalled, reinstalled, etc. They worked before I installed t
-
Slides, old 8mm reel to reel, convert to DVD
Hi everyone, I wasn't sure exactily where to post this question--this forum seems like the appropriate place--how about some advice on converting old slides and reel to reel stuff to DVD...is this a job requiring specialized equipment and better left
-
A while ago my Macbook, (aluminium, late 2008 model) stopped going to sleep when the lid was closed so I just used to put it to sleep via the menu but then it started to wake up whilst closed, the apple lid light would go on and stay on, so then I wo
-
Dear Guru, Any standard report are there we can check the weakly or monthly wise status of our P R's mean how many PR's are release or how many PR's are still pending for release in required date. Wating your fast response. Regards Aamir
-
Hello, I currently have this issue with display object layering and I was hoping someone could help. Basically, I have a video sprite that contains the OSMF player and a play/pause overlay on top of that. Inside the video sprite, a proxy plugin is lo