Setting Line Terminator for a CLOB column by script

Hello Everyone,
I have a CLOB column in my table that receives external data (more than 400 sources).
The GUI application displays it in different ways because of the multiple incoming Line Terminators.
Here is the weird thing:
In SQL developper 3.1.06. In the Preferences->Environment I selected as Line Terminator: Carriage Return and Line Fe(Windows)
Once I committed the changes the data was properly displayed in the application (apparently was also re-coded).
My Question is:
How can I setup this property on the column or table to fix the issue??
(I'm looking for a DDL script or something alike).
Thanks in advance.
Mijail O. T.

914451 wrote:
If that's the case, What is the SQL DEveloper doing then??
I tested and looks like is a global parameter, not sure if works only for the table. (That what I need).
If is possible to setup this feature from the GUI it should be a way to do it running a Script.
Right????No.
Tables don't have any concept of "lines".
CLOB's don't have any concept of "lines".
"lines" only exist in the context of the data you are providing, but that's not of concern to the database.
So it looks like, what SQL Developer is doing (I assume as I don't use it), is to have a setting such that when it comes to display character data from VARCHAR2's or CLOB's it determines if there are CR/LF or just LF characters (as per the setting) and then uses those as line terminators for displaying the data in it's own interface. Thus it sounds like an interface specific setting, or to put it bluntly, it's something that is a part of SQL Developer to control how it displays things.
Have you tried querying back the raw version of the data from the database to see that it still has the CR/LF characters in it? It should.
I think you'll find the setting is a "display" setting, not a "alter my data" setting.

Similar Messages

  • Setting Line Pattern for Lines

    Hi All,
    How to set line pattern for Lines? I am trying to use Line Pattern to draw some thing like "======" ( with out gap though I used equal symbol to draw I don't have other way to show an example). I have tried setting line pattern it is not working any one help is much appreciate.
    Thanks

    Hi,
    Actually you can draw two lines and keep the distance as sme as you are trying to show by equal sign. Just remove tick from Snap To Grid option from View>Snap To Grid then you can adjust using the arrow keys.
    -Ammad

  • How to set title/text for ALV table column header in WD ABAP

    Hello,
    I am working in WDA using SALV_WD_Table to display data in table. I need to change the column header text, the obvious way is to get the column header and call the method SET_TEXT to set new text / title. However, this method does NOT work, it does not change the column header text. I also tried the SET_TOOLTIP, this one works, but SET_TEXT does not work. Anyone has idea why this not working and do you find any go-around solution?
    My version is NW 7.0
    Thank
    Jayson

    Hi jason ,
    For setting Heder text for your ALV table
    ip_confing type ref to CL_SALV_WD_CONFIG_TABLE.
    "set alv table header
      ip_config->if_salv_wd_table_settings~r_header->set_text( 'Test ALV Header functionality' ).
    first you have to hide the DDIC text and then try to set your own text .
    "modify columns
      LOOP AT lt_columns INTO ls_column.
        lr_column = ls_column-r_column.
        CASE ls_column-id.
          WHEN 'MANDT'.
            "hide this field
            lr_column->set_visible( cl_wd_abstr_table_column=>e_visible-none ).
           WHEN 'SEQNR'.
            "set header to different string
            lr_column->r_header->set_ddic_binding_field( if_salv_wd_c_column_settings=>ddic_bind_none )." use this line to hide ddic text
            lr_column->r_header->set_text( 'Position' ).     
        endcase.
      endloop.
    Regards
    Chinnaiya P

  • How to set primary key for a date column

    hello experts .,
    i need to set primary key for a column consists of the datatype date. how to solve this..?

    1008318 wrote:
    its my personal need..then it is a very bad personal need. DATE is not an appropriate type to be using for a primary key, as it cannot be guaranteed to be unique, especially when inserting multiple rows at once.
    You would be better working to business needs and implementing correct technical solutions to those needs, than to just do things based on your personal needs.

  • Different line terminator for SocketChannel

    Any ideas on how to specify a different line terminator than '\n' for the SocketChannel.read() method, such as ASCII character 127?

    Ok..and here's a third answer....
    Socket s= my_socket_channel.socket();
    InputStreamReader isr = new InputStreamReader(s.getInputStream());
    String a_line="";
    boolean reading=true;
    while (reading)
      int c = isr.read();
      if (c==-1) {if (!a_line.equals("")){process(a_line);}
                     reading=false;}
      if (c==127){process(a_line); a_line="";}
      else{
            char cc = (char)c;
            a_line=a_line+cc;
    }How does that sound?

  • How to set null value for a date column using database adapter

    Hello,
    I have a table wih 3 columns
    (id NUMBER,
    modified_on DATE
    contentText VARCHAR2)
    I have a row wih theses values (1, 20/03/2010 16:30, 'coucou')
    I want use a DB adapter in a BPEL process to change the value of column modified_on to (null). I'm using the out-of-he box "update" method (no custom sql, nieher "insert or update (merge)" method)
    - If I only set values of "Id" and "contentText" -> insert is done but I missed the modification of "modified_on" to (null)
    - If I set all values and use expression '' (2 single quote without any space) for modified_on I got an error on update
    BWriteInteractionSpec Execute Failed Exception.
    update failed. Descriptor name: [DBUTFORM.TForm]. [Caused by: String index out of range: 10]
    Caused by Exception [TOPLINK-3001] (Oracle TopLink - 10g Release 3 (10.1.3.3.0) (Build 070608)): oracle.toplink.exceptions.ConversionException
    Exception Description: The object [xs:datetime], of class [class java.lang.String], could not be converted to [class java.sql.Timestamp].
    Internal Exception: java.lang.StringIndexOutOfBoundsException: String index out of range: 10.
    Thanks for help

    1008318 wrote:
    its my personal need..then it is a very bad personal need. DATE is not an appropriate type to be using for a primary key, as it cannot be guaranteed to be unique, especially when inserting multiple rows at once.
    You would be better working to business needs and implementing correct technical solutions to those needs, than to just do things based on your personal needs.

  • How to set Right Alignment for a JTable column

    Hi,
    I am using a JTable for displaying database records using AbstractTableModel. It works fine. But, for the numeric fields I want to make records right aligned using setHorizontalAlignment. I tested with TableColumn.setHorizontalAlignment but it ends up with an error. Is there a solution? Please help me. Thanks in advance.
    bhuvana.

    In you table cell renderer you can specify the alignment of the text.
    public class MyTableCellRenderer extends JLabel implements TableCellRenderer
    public MyTableCellRenderer
    setOpaque(true);
    setBackground(Color.white);
    public Component getTable.....(JTable table,Object value,......) //fill all these things
    setFont(table.getFont());
    if(value instanceof Float)
    setHorizontalAlignment(SwingConstants.RIGHT);
    setText(value);
    return this;
    This would set all the Floats to RIGHT alignment.
    Thanks,
    Kalyan

  • Updating a CLOB column using C++ with ATL

    Hello,
    I have tables with a single CLOB or BLOB colum with the rest of the columns of type VARCHAR2.
    I'm getting a result of E_FAIL when updating a single row, for which I'm attempting to change one of the VARCHAR2 columns and the CLOB column. If I set the status for the CLOB column to DBSTATUS_S_IGNORE, the update succeeds (for the other column). If I set the status for all other columns to DBSTATUS_S_IGNORE and the status for the CLOB column to DBSTATUS_S_OK, it still fails.
    If I use a SQL Server data source with the same schema and the same C++ code, the original update succeeds.
    The length of the data I'm attempting to store is 11487 characters.
    As near as I can tell, the Oracle provider does support this kind of functionality. Perhaps there is some coding variation needed for the Oracle data source. I have so far been unable to find a suitable example (or any code example for the Oracle provider using C++/ATL).
    I'm using Oracle 9i Release 2 with the latest OLE DB provider (9.2.0.2.0).
    Thanks,
    Daniel E. Hale
    [email protected]

    Some additional information on the problem:
    I was using the ISequentialStream interface
    with a Dynamic Accessor when the problem
    occurred.
    Since then I've tried using a SQL command to do
    the update... and I've found the 11487 characters
    is too long... I get a maximum length error when
    I try the command in SQL+. (BTW, SQL Server works
    fine with the long command.)
    I doubt that the length is the reason for the failure
    of the update using the ISequentialStream interface.
    I'm just looking for something that works. Right
    now, the only thing that works is not to do the
    update at all, but instead do delete/insert. I'd
    like to find a better solution than that.
    -Daniel E. Hale

  • Create hash value for clob column ?

    Hi,
    does anybody know a way to calculate a hash value for a clob column (9i) ?
    DBMS_UTILITY.GET_HASH_VALUE could only handle varchar2(4000).
    Thank you!
    Regrads
    Michael
    Message was edited by:
    mseiwert

    I can't reproduce it on my 10.2.0.4.0. CTL file:
    load data
    INFILE *
    Replace into table samp
    fields terminated by ","
    trailing nullcols
    no,
    col1 Char(100000000) ,
    col2 Char(100000000) enclosed by '"' and '"'
    BEGINDATA
    1,asdf,"assasadsdsdsd""sfasdfadf""sdsdsa,ssfsf"
    2,sfjass,"dksadk,kd,ss""dfdfjkdjfdk""sasfjaslaljs"Loading:
    SQL> Create table samp
      2  (
      3  no number,
      4  col1 clob,
      5  col2 clob
      6  );
    Table created.
    SQL> host sqlldr scott/tiger control=c:\temp\samp.ctl log=c:\temp\samp.log
    SQL> select * from samp
      2  /
            NO
    COL1
    COL2
             1
    asdf
    assasadsdsdsd"sfasdfadf"sdsdsa,ssfsf
             2
    sfjass
    dksadk,kd,ss"dfdfjkdjfdk"sasfjaslaljs
            NO
    COL1
    COL2
    SQL> SY.

  • Setting a background for a column in JTable

    Hi there
    i want to set a background for a specific column in my JTable
    any help ...?
    Thanks

    Check the following thread, there you'll find the cell renderer that you may change according to your needs.
    http://forum.java.sun.com/thread.jsp?forum=31&thread=298191

  • Line Terminator

    The preference change for line terminator in the environmental settings doesn't seem to change the line terminator for table file exports (for example INSERT). I don't get separate lines when viewed by MS Notepad no matter which setting I use, there is a null string marker (small square). I was trying this since there seems to be an error in the export using the Clipboard. SQL Developert 1.1.1.25.14 using the included JDK.
    What can I do to fix this?
    Thanks!
    -Jim

    You're right, I just had a readable export and it seems to be the same where I choose LF or LF/CR or Platform Default for exporting to a file. The 1.1.1 version didn't put any line terminator in and you got either one or two null string markers ( the little square box character shows) and it line wrapped continously. Now I get line breaks but it doesn't vary. The export function inproved but did not allow changing the option.
    The Export DDL (and Data) doesn't substitute in for the line terminator at all though and it shows the null string markers.
    So it seems to be only partially fixed for file export.

  • Best Way to Drop Large Clob Column?

    I have a very large partitioned table that contains XML documents stored in a clob column. Aside from the clob column there are several varchar and numeric columns in the table that are related to each document. We have decided to move the XML out of Oracle and into text files on the OS but want to keep the other data in Oracle. Each partition has a tablespace for the clob column and a tablespace for the other columns.
    What is the best (quickest/most efficient) way to drop the clob column and free up the space that it is currently using?
    OS: HP-UX
    Oracle: 11.2.0.3
    Table Partitions: 27
    Table Rows: 550,000,000
    Table Size: around 15 TB with 95% of that found in the column to drop
    One other wrinkle, there are several tables that have a foreign key relationship back to the primary key of the table in question. Three of those tables are multi-billion rows in size.

    Hi,
    You can use the mark unused column,and checkpoint in the drop column statements,
    please visit the link. may it help you
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:623063677753

  • How to insert data into a CLOB column

    In UIX XML I used a bc4j:textInput control for a CLOB column and I cannot type any letter in this field....Why ?
    Regards,
    Lucian

    Hello again !
    Here are my findings (Content is a CLOB column; I use UIX XML + BC4J):
    1.If I put:
    <inlineMessage prompt="Content" required="no" vAlign="middle" >
    <contents>
    <bc4j:textInput name="Content" attrName="Content" columns="162" rows="5" />
    </contents>
    </inlineMessage>
    I cannot type any letter in the text Input field !!!!!!
    2. If I put
    <inlineMessage prompt="Content" required="no" vAlign="middle" >
    <contents>
    <bc4j:attrScope name="Content">
    <contents>
    <textInput name="Content" columns="162" rows="5">
    <boundAttribute name="text">
    <bc4j:attrProperty name="value"/>
    </boundAttribute>
    </textInput>
    </contents>
    </bc4j:attrScope>
    </contents>
    </inlineMessage>
    I can type in the textInput field, but I cannot save the text after a certain number of characters. Also I cannot see the saved text. I receive :
    Servlet error: Renderer failed: java.lang.ArrayIndexOutOfBoundsException: -35</PRE></BODY></HTML>
    inside the textInput field.
    Please help me ...
    Regards,
    Lucian

  • Limitation for CLOB columns? - ORA-01704: string literal too long

    Hello!
    I'm trying to update a CLOB column with more than 35000 characteres, but I get "ORA-01704: string literal too long".
    The code:
    declare
    l_clob clob;
    begin
    update test set test = empty_clob()
    WHERE ID = 1
    returning test into l_clob;
    dbms_lob.write( l_clob, length('A...here 35000xA...A'), 1,'A...here 35000xA...A');
    end;
    Is there any limitation for CLOB columns?
    Thanks for help.
    Daniel

    user605489 wrote:
    32768 characteres :)Actually it's 1 character less than 32K...
    *32767*
    SQL> declare
      2    v_vc varchar2(32768);
      3  begin
      4    null;
      5  end;
      6  /
      v_vc varchar2(32768);
    ERROR at line 2:
    ORA-06550: line 2, column 17:
    PLS-00215: String length constraints must be in range (1 .. 32767)
    SQL>I guess it comes from a legacy thing where signed words (2 bytes) are/were used to represent a value. As the most significant bit of the word is used to represent the sign of the number the range goes from -32768 to 32767.

  • Problem in Loading data for clob column using sql ldr

    Hi,
    I am having problem in loading data for tables having clob column.
    Could anyone help me in correcting the below script for ctrl file inorder to load the data which is in mentioned format.
    Any help really appreciated.
    Table Script
    Create table samp
    no number,
    col1 clob,
    col2 clob
    Ctrl File
    options (skip =1)
    load data
    infile 'c:\1.csv'
    Replace into table samp
    fields terminated by ","
    trailing nullcols
    no,
    col1 Char(100000000) ,
    col2 Char(100000000) enclosed by '"' and '"'
    Data File(1.csv)
    1,asdf,"assasadsdsdsd""sfasdfadf""sdsdsa,ssfsf"
    2,sfjass,"dksadk,kd,ss""dfdfjkdjfdk""sasfjaslaljs"
    Error Encountered
    ORA-01461: can bind a LONG value only for insert into a LONG column
    Table sampThanks in advance

    I can't reproduce it on my 10.2.0.4.0. CTL file:
    load data
    INFILE *
    Replace into table samp
    fields terminated by ","
    trailing nullcols
    no,
    col1 Char(100000000) ,
    col2 Char(100000000) enclosed by '"' and '"'
    BEGINDATA
    1,asdf,"assasadsdsdsd""sfasdfadf""sdsdsa,ssfsf"
    2,sfjass,"dksadk,kd,ss""dfdfjkdjfdk""sasfjaslaljs"Loading:
    SQL> Create table samp
      2  (
      3  no number,
      4  col1 clob,
      5  col2 clob
      6  );
    Table created.
    SQL> host sqlldr scott/tiger control=c:\temp\samp.ctl log=c:\temp\samp.log
    SQL> select * from samp
      2  /
            NO
    COL1
    COL2
             1
    asdf
    assasadsdsdsd"sfasdfadf"sdsdsa,ssfsf
             2
    sfjass
    dksadk,kd,ss"dfdfjkdjfdk"sasfjaslaljs
            NO
    COL1
    COL2
    SQL> SY.

Maybe you are looking for