Line length  in UTL_FILE

HI.. sorry for basic question but....
1- I want to create a file from database.
2- The length of lines to append to the file is 1300
3- when I try to close the file or make fflush to the file
(write lines into the file), exception utl_file.write_error
is fired.
4- when the length of the line is 750 (i,e) that's not occurs
WAY???
What is te maximun length for the line to append???
May be concern of Operating System variable??
THANK's and excuseme for my regular english.
JOHNNY

1) Read about utl_file.put (tells you the line max)
2) Doc for the rest of UTL_FILE
http://technet.oracle.com/docs/products/oracle9i/doc_library/901_doc/appdev.901/a89852/utl_fi11.htm#1001590
http://technet.oracle.com/docs/products/oracle9i/doc_library/901_doc/appdev.901/a89852/utl_file.htm#1002119

Similar Messages

  • How can i plot a histogram with using the results of Line Length

    PLS HELP.How can i prepare a histogram with using the results of line length code(It is somewhere in the middle).
    This is a final exam take-home question. I would appreciate if you can help?
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import javax.swing.*;
    import java.text.*;
    import java.io.File;
    public class WordAnalyser extends JFrame implements ActionListener
    private JMenuItem jmiAc, jmiSil, jmiCikis, jmiAnaliz, jmiHakkinda, jmiKullanim;
    private JTextArea jta1, jta2;
    private JFileChooser jFileChooser = new JFileChooser();
    File hafizada;
    File aktarilan = new File("Sonuc.txt");
    // Main method
    public static void main(String[] args)
    WordAnalyser frame = new WordAnalyser(); /* Ana ekran olusturulur */
    frame.setSize(400, 300); /* Degerleri belirlenir */
    frame.setVisible(true); /* Gorunebilirligi ayarlanir */
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    public WordAnalyser()
    setTitle("Serkan Ozgen Dosya Inceleme Programina Hos Geldiniz");
    JMenuBar mb = new JMenuBar();
    setJMenuBar(mb);
    JMenu fileMenu = new JMenu("Dosya");
    fileMenu.setMnemonic('F');
    mb.add(fileMenu);
    JMenu helpMenu = new JMenu("Degerlendirme");
    helpMenu.setMnemonic('H');
    mb.add(helpMenu);
    JMenu kullanimMenu = new JMenu("Kullanim Kilavuzu");
    mb.add(kullanimMenu);     
    fileMenu.add(jmiAc = new JMenuItem("Ac", 'A'));
    fileMenu.add(jmiSil = new JMenuItem("Sil", 'S'));
    fileMenu.add(jmiCikis = new JMenuItem("Cikis", 'C'));
    helpMenu.add(jmiAnaliz = new JMenuItem("Analiz", 'D'));
    helpMenu.add(jmiHakkinda = new JMenuItem("Hakkinda", 'H'));
    kullanimMenu.add(jmiKullanim = new JMenuItem("Kullanim"));     
    getContentPane().add(new JScrollPane(jta1 = new JTextArea()), BorderLayout.CENTER);
    getContentPane().add(jta2 = new JTextArea(), BorderLayout.SOUTH);
    jmiAc.addActionListener(this);
    jmiSil.addActionListener(this);
    jmiCikis.addActionListener(this);
    jmiAnaliz.addActionListener(this);
    jmiHakkinda.addActionListener(this);
    jmiKullanim.addActionListener(this);
    public void actionPerformed(ActionEvent e)
    String actionCommand = e.getActionCommand();
    if (e.getSource() instanceof JMenuItem)
    if ("Ac".equals(actionCommand))
    Ac();
    else if ("Sil".equals(actionCommand))
    Sil();
    else if ("Cikis".equals(actionCommand))
    System.exit(0);
    else if ("Analiz".equals(actionCommand))
    sayim();
    else if ("Hakkinda".equals(actionCommand))
    JOptionPane.showMessageDialog(this,
    "!!!! Bu program text analizi gerceklestirir. Her hakki saklidir SERKAN OZGEN!!!!",
    "Bu program hakkinda",
    JOptionPane.INFORMATION_MESSAGE);
    else if ("Kullanim".equals(actionCommand))
         JOptionPane.showMessageDialog(this,
         " Ilk once dosya menusunden Ac i tiklayarak analiz etmek istediginiz Dosyayi seciniz (Lutfen uzantisi *.txt \nveya *.log olsun). Daha sonra Degerlendirme menusunden analizi tiklarsaniz dosyanizda kac adet rakam, harf, \ncumle ve kelime oldugunu gorebilirsiniz. Simdiden kolay gelsin",
         "Programin kullanim detaylari",
         JOptionPane.INFORMATION_MESSAGE);
    private void Ac()
    if (jFileChooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION)
    hafizada = jFileChooser.getSelectedFile();
    Ac(hafizada);
    // Acilan Dosyayi ana ekranda gostermeye yariyan bir method
    private void Ac(File file)
    try
    // Acilan dosyayi okuma ve ana ekranda gosterme
    BufferedInputStream in = new BufferedInputStream(new FileInputStream(file));
    byte[] b = new byte[in.available()];
    in.read(b, 0, b.length);
    jta1.append(new String(b, 0, b.length));
    in.close();
    catch (IOException ex)
    // Temizle tusunun hangi ekranlara etki edecegini secme
    private void Sil()
    jta1.setText("");
    jta2.setText("");
    private void sayim()
    int buff;
    int sayac = 0;
    int Cumleler = 0;
    int Kelimeler = 0;
    int Karakterler = 0;
    int Satirlar = 0;
    int Rakamlar = 0;     
    boolean start = true;
    int linenum = 0;     
    try
    FileInputStream instream = new FileInputStream(hafizada);
    FileOutputStream outstream = new FileOutputStream(aktarilan);
         BufferedReader infile = new BufferedReader(new InputStreamReader(new FileInputStream(hafizada)));
    PrintStream out = new PrintStream(outstream);
         out.println("---Kelime Avcisinin Sonuclari---");
         String line = infile.readLine();
         while (line != null){
         int len = line.length();
         linenum++;
         line = infile.readLine();
         out.println("Line Length :"     + linenum + "\t" +len);
    while ((buff=instream.read()) != -1)
    switch((char)buff)
    case '?': case '.': case '!': /* Eger "?", "." veya "!" gorurse program cumleleri ve kelimeleri arttirir*/
    if (start == false)
    Cumleler++;
    Kelimeler++;
    start = true;
    break;
    case ' ': case '\t': case ',': case ';': case ':': case'\"': case'\'': /* Eger /t,;:\ ve \" bu isarteleri goruruse program kelimeleri arttirir */
    if (start == false)
    Kelimeler++;
    start = true;
    break;
              case 'n': case '\n': /* Eger \n gorurse satirlari arttirir */
              if (start == false)
                   Satirlar++;
                   Kelimeler++;
                   start = true;
              break;
    default:
    if (((char)buff >= 'a' && (char)buff<='z')|| /*a-z, A-Z veya - degerlerini gorurse karakterler arttirilir */
    ((char)buff >= 'A' && (char)buff<='Z')||
    ((char)buff == '-'))
    Karakterler++;
    if ((Kelimeler % 50) == 49)
    if (start == true)
                   out.println();     
    out.print((Kelimeler+1) + " ");
    out.print((char)buff);
    start = false;
              if ((char)buff >='0' && (char)buff <='9') {  /* 0-9 gorurse rakamlari arttiri */
                   Rakamlar++; }
    }// switch
         }//while
    instream.close();
    out.println();
    out.println();
    out.println("Karakter sayisi: " + Karakterler);
         out.println("Kelime sayisi: " + Kelimeler);
    out.println("Cumle sayisi: " + Cumleler);
         out.println("Satir sayisi: "+ Satirlar);
         out.println("Rakam sayisi: "+ Rakamlar);
    outstream.close();
    try
    BufferedInputStream in = new BufferedInputStream(new FileInputStream(aktarilan));
    byte[] b = new byte[in.available()];
    in.read(b, 0, b.length);
    jta2.append(new String(b, 0, b.length));
    in.close();
    catch (IOException ex)
    catch (Exception e)
    System.out.println(e);
    }

    Why is it that you're not interested in IOExceptions?
    catch (IOException ex)
    } Empty catch blocks is a hallmark of foolish Java code. At least print out the stack trace.
    %

  • Custom fields and line length in Address Book

    Hi everyone. Does anyone know how to alter the permitted line length of a label in Address Book? If I create a custom label the label will be truncated if it is too long. This does not seem necessary as there can be loads of blank space to the right of the card window. In other words the label will not resize dynamically to accommodate a long custom label. I have a feeling that you may be able to edit a .plist file in the Package to adjust the default number of characters the label can have, but I'm a bit nervous about poking about when I'm not too knowledgeable. Any ideas?

    In other words the label will not resize dynamically to accommodate a long custom label.
    Of course not. You've chosen a specific label style/size, so if it were to resize dynamically, that would cause text to print where there is no label stock.
    You cannot edit any file to change the number of characters per label; at best, you could creae your own label size and define the margins, but that's it.
    Mulder

  • Calculating line length in Java

    Hi all;
    I've been using LineBreakMeasurer & AttributedString to measure line lengths. However, I now need to take into account:
    Small Caps
    Scaling (making each character thinner/wider).
    Spacing (adding/subtracting space after each character).
    Hyphenation, where line breaks can occur at specific places within words.
    Is there a way to do this using Java? The two fundamental things I need to get is:
    How long is a passed in string.
    For a passed in string and length, how many characters of the string fits in that length.
    I can do this using LineBreakMeasurer & AttributedString and calling it character by character. But is there a better way?
    thanks - dave

    Hi, Have you had a look at the FontMetrics class? That might be an option.

  • URGENT:  vertical lines length in the Mainwindow in smartforms

    hI,
            In main window 4 vertical lines are there like.. below
    item | material no.er | mat.desc |  quantity |  total price
           |                      |                |              |
    Now the problem is:  these vertical lines entered into the next below window.. Now I want to reduce the length of these vertical lines.
      Please explain where can I reduce  to these vertical lines length.
    Thanks and Regards,
    Surya

    Hi,
    in the beginning of the report program:
    report  <program_name> line-size <give the length say eg:150>.
    <b>reward points if useful.</b>
    regards,
    Vinod Samuel.

  • How can I establish a line length (72 chars) and get TB to wordwrap at that length?

    I would like to establish a line length for email that I compose or receive. How can I do that? How can I get TB to wordwrap at that length and not some shorter length?

    I did that - and found several items for wrap.
    All except the one noted - mailnews.wraplength - have a status of default, type boolean and value false.
    mail.compose.wrap_to_window_width
    mail.wrap_long_lines
    plain_text.wrap_long_lines
    view_source.wrap_long_lines
    mailnews.wraplength
    status: default
    type: integer
    value: 72
    I promised to be careful, so a last check here - can I change that value to 80 or 50 or something other than 72 without messing up Thunderbird?
    Thanks,
    Terry_S

  • Set line length

    I belong to a travel discussion group and they request that all e-mails are received in plain text and with a 60 character per line limit. How do I set the line length to a maximum of 60 characters?

    Dear Diana,
    This seems really antiquated. I can't think of any discussion groups I belong to that ask you to set the line length of my contributions.
    Whatever. Since no one has replied to you, I offer a completely clunky way of doing this. I can't see where Mail has this capability/preference setting.
    Anyway, go to barebones software's web site and download the free application TextWrangler. It's just a text editing program. BBedit will do the job too but I'm assuming you don't have that.
    In TextWrangler, set up a document with a 60 character width (open a new document, go to Edit-->Text Options... and check "Soft Wrap Text" and under the "to character width" option put "60" in the box).
    You can save this document with a silly name so you don't have to create it every time you want to format a mail.
    Next, either compose a mail in the document or paste your text into it.
    It will be 60 characters wide at this point, but the breaks will be "soft"; you need to go to Text-->Add Line Breaks. Now you can copy your text and paste it into an email.
    This sounds like a lot of steps but it is easy. You could probably Applescript it.
    Anyway, there is probably a much better answer to your question, but I didn't want to leave you hanging longer. Once your problem leaves the front page it gets less and less attention.
    Also, note that in Mail preferences you can find the option to compose and send mails as plain text rather than rich text.
    G4 933 mhz Quicksilver   Mac OS X (10.4.8)   Wacom Intuos 2 tablet; Epson 2400 Photo; HP Deskjet 6840; LaCie 80gb D2 FWDV

  • Line length limit

    Hi,
    I'm having a problem with a large group (about 2500 members). I first thougt this is a Directory Server Problem, but the Server Log is identical for small and large groups and does not show any problems. Additionally even if i put the group (with all members) into /etc/group, I still cant see the group!
    When using vi to edit /etc/group it sais: line too long.
    I figured out this to be a problem with the maximum line length defined in /usr/include/limits.h (LINE_MAX). The value set here is 2048, but my line is about 13K.
    Could my explanation be correct? If so, how can I change the line limit to a bigger value?
    thanks,
    David

    Hi Martin,
    I might not have explaned enough the issue. I dont want to edit the file with vi, this was just what I experienced on the side. My real problem is, that Solaris doesnt know this group, even though it is in /etc/group!
    id just shows the gid number, but not the group name:
    bash-2.05$ id
    uid=21345(ab123) gid=10000
    bash-2.05$ groups
    10000
    getent doesnt know the group too:
    bash-2.05$ getent group gp_everyone
    [No output]
    And this is constrained by the Solaris system as I think. Because of the limited line length. Do you know how to reconfigure Solaris 9 and 10 for a longer line length?
    big thanks
    --David                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Maximum line length in JTextAreas/Documents ?

    Hi there,
    apparently JTextAreas may not hold text with lines more than 32776 characters
    (with line length I mean distance between line breaks :-). Is this a documented limitation or did I trap into a bug?
    (Happened with 1.3.x and 1.4.x, Linux and Windows).
    Kind Regards,
    --Holger Klwitter                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    See: [http://kenhamady.com/cru/archives/1240|http://kenhamady.com/cru/archives/1240]

  • What is the maximal line length of type any internal table

    Dear all,
    who can tell me what is the maximal line length of type any internal table.
    Thanks!

    There is no limit to the record length of an internal table.
    There is overall memory limit for every program (as setup by your basis). So, depending on the width of the ITAB, the number of records in ITAB is limited by the assigned memory.

  • Question: why default line length as 72 ?

    hello everyone,
    i was just adviced to stick to default line length in abap editor as 72 [which ABAP recommends too] or else in complex and lengthy programs it will generate core dump !!
    is it true ?
    and why it is adviced to stick to 72 length  and not greater than that and why it will give core dump ??
    thanks in advance

    @Rohan,
    ABAP is not new language. It old language and intiallly it support the 72 character per row. Which is the non graphical display support maximum 80 column per row and each row has begin some previlage space around the 8 characters. 
    But after each release and graphical display come to exist, It support more then 72 character per line, it is not mandatory but in case of dynamic program(program generate runtime). it has internal check  character per rows should not be 72 character/line. For dynamic program you should have to restict the line size which should not go beyond the 72 character.
    Kind Regards
    Ravishankar Lanjewar
    Moderator Message: Please check the date of the original post before replying. Thread locked.
    Message was edited by: Suhas Saha

  • Max line and Max line length restriction in FTP

    Hi all,
    We are using a FTP adapter in our BPEL service to read the input files from a FTP server location.
    Our service fails when the input file has more than 99 lines or if the length of the line exceeds 9 characters.
    i.e:
    Max allowed characters in a line (Max line length) is 9
    Max allowed lines in the file is 99
    If the above limit is exceeded we get the error saying that the FTP authentication failed or permission denied error.
    Do we need to set the Max line length and Max line parameters anywhere in weblogic console or in JCA properties.
    Kindly help us resolve the issue. Thanks in advance.
    Regards,
    Balaji R

    We do not have any schema for the file data since we are reading the file content as attachment.

  • Arrowhead adds to line length?

    Ai 10.0.3
    OSX 10.3.4
    I am trying to dimension some signage for a set of architectural plans. Previously I had always used 'Filter > Stylize > Add Arrowheads...' to do this. Recently I've found that arrowheads are also available under 'Effect > Stylize > Add Arrowheads...'. I really enjoy all the live effects and the ability to edit them after the fact as well as preview when first creating them. I particularly enjoy the live arrows from the standpoint that when I move the line endpoint, the arrowhead automatically reorients to the correct angle.
    That's all good, but on to the problem. Both types of arrowheads do NOT fall within the original line endpoints. It boggles my mind why someone would design arrowheads to behave this way? It obviously makes dimensioning very difficult and time consuming. Instead of snapping to the endpoints of some artwork or using the transform palette to numerically enter a distance, compensations have to constantly be made for the length of the arrow.
    I've always had to do this with the 'filter arrows'. It was a pain, but since the arrow was actually artwork, I could get info about it concerning how much length it added. The 'live arrows' do not even provide this level of workaround because being 'live', they are not selectable as artwork without expanding their appearance, which removes their 'live' characteristics.
    Question? My question is this - does anyone know of a method whereby the arrowhead (live or filter) does NOT add to the overall line length? Has anyone come across another, more efficient workaround to what I've been trying.
    I know of one fairly elegant solution in plugin form - HotDoor CadTools. I would love to be able to use that for a number of reasons, but have not been able to get management approval for purchase. So in the meantime, any help would be greatly appreciated.
    Thanks.

    > How is it possible to add your own symbol to the start and end of a path...
    I have long argued that anything you define as a Symbol (in the Symbols Palette) should be made available for application as Arrowheads. Meanwhile, try this to get a basic principle down:
    1. Rectangle Tool: ClickShiftDrag to draw a small square.
    2. DoubleClick the rotate tool to rotate the square 45 degrees.
    3. Press the minus key to get the Remove Point Tool. Click the leftmost point to delete it. You now have a right-pointing triangle. Give it a fill of none, solid stroke.
    4. Drag the triangle and drop it into the Brushes Palette. In the resulting dialog, choose Pattern Brush.
    5. Drag the new Pattern Brush from the Brushes Palette onto the page.
    6. Note that the bounding box of the triangle is rectangular. This is a Group which contains two objects: The triangle you drew, and an unfilled, unstroked rectangle, which is under the triangle in the stacking order. This invisible rectangle is what determines the "tile size" of the artwork when it is used in the Brush.
    7. With the DirectSelect Pointer, press Alt and drag across where you know there is an edge of the invisible rectangle, without dragging across the triangle. This "directSelects" the whole rectangular path.
    8. Transform Palette: Click one of the right points of the 9-point proxy icon. Then set the Width to some small value, like 1 pt. (but not to zero).
    9. Deselect. Then normal-select the whole group. Press Alt. Drag and drop the group onto the End Tile of your Pattern Brush.
    10. The Group is still on the page. DoubleClick the Rotate tool and rotate it 180 degrees. AltDrag and drop this onto the Start Tile of your Pattern Brush.
    11. Rectangle Tool: Draw a small square. Fill of none. Stroke of none. AltDrag and drop this onto the Side Tile of your Pattern Brush (the tile where the very first triangle originally appeared when you first defined the Brush. This replaces the Side Tile of the Brush with, effectively, nothing.
    Now try it out:
    12. Line Tool: Draw a line. Apply the Brush. Note that the "arrowheads" are positioned very near the ends of the path, instead of protruding out beyond them as do AI's normal Arrowheads.
    13. DirectSelect one endpoint of the path. Drag it nearer and nearer the other end. Note that even when it gets very near, the triangles retain their shape. Drag even closer until the two triangles actually overlap. Still they retain their proportion (within a very small variance--it's a function of how narrow you made the invisible box. If, however, you had given the width of the invisible box a value of zero, the end tiles would distort when the path is very short.)
    14. Now draw another line or curvey path. Apply the Brush. Expand Appearance. Ungroup. Note that the invisible box you used to define the Side Tiles did not result in a bunch of invisible boxes along the length of the path. (This is a good thing.)
    15. So now you have custom arrowheads. But the length of the path is invisible. Appearance Palette: Add New Stroke. Make the new stroke whatever color, width you want. Drag the whole path to the Graphic Styles Palette to define a Style which you can apply to other paths with one click.
    All this convoluted bother is
    almost like a custom arrowheads feature common in som many other drawing programs. But it is not perfect. If the path is tightly curved at either of its endpoints, the End and Start Tiles artwork will still deform in an attempt to bend around the curve. In most cases, you can circumvent this by placing a short straight segment beyond the curvepoint.
    Again: Illustrator need these improvements:
    The existing Arrowheads Effect dialog needs to be changed to simply include popup menus showing the currently defined Symbols, and a little preview frame that lets you position the Symbol in relation to the endpoint of the path.
    The Brush Options dialog for Pattern Brushes needs to be given a checkbox which disallows distortion of end tiles.
    JET

  • Where do I enter the number for Line length or measure if given 16/19x32?

    Where do I enter the number for Line length or measure if set in Adobe Caslon Pro 16/19x32?  I know 16 is point size, 19 is leading but where do I enter 32?
    Thanks
    James P

    The key is in your second image, though both are too small. Let's use this one, courtesy of Amazon's preview of the book:
    All that "spec is saying is that the  frame the text is in should allow for lines of text equaling 20 picas. But the 20 picas relates to the column, not any paragraph style per se.
    Now, if you received mark-up that is for a portion of text, say a poem set into a body of text in a wider column, then the 20 picas would relate to the paragraph style for the poem itself.
    Make sense?
    Take care, Mike

  • Please Help!  Line Length Outside of Window

    I'm not stating this properly. But suddenly, my Safari windows have content which is not all contained therein. I can only read part of it. Same problem with my e-mail.
    Unable to shorten length of lines in e-mail, and unable to adjust window. Have gone to Preferences/Appearance, etc.
    Please tell me how to explain this problem, if I am not being clear.
    Thanks for any help you can offer.

    I would suggest you revisit the Universal Access to double check that you did what I suggested.
    Also make sure that "Use Grayscale" is not checked in Universal Access.
    Your line length problem might be caused by your changing the resolution of your monitor. What kind of monitor are you using and do you know what its advertised resolution is? Something like 1280x1024 pixels, for example.
    I notice in an earlier post in another forum that you reported the following, which I will quote for the benefit of those joining this thead later:
    "I'm using a MacMini OS 10.2.9. Everything was great, then on start-up all was different. My Desktop picture had disappeared, everything was in purple etc. My e-mails have long line length and I am unable to shorten. Have looked at preferences etc. and nothing helps. (I put back the desktop picture, but everything else is beyond me.)
    I don't recall if I recently updated software, but suspect that is why everything is messed up.
    Sorry if this has been asked before, but I'm quite frustrated. This font is not what I thought was selected, either! "
    I'm a bit confused about your reporting OS 10.2.9. Is that a typo? I think Minis never shipped with anything lower than 10.3.x. Your signature reports 10.4.6.

Maybe you are looking for