Unable to load clob data through sql loader

Hi Experts ,
My ctl file is :
LOAD DATA infile '$di_top/conversion/devtrack_notes.csv'
truncate into table xxdi_proj
fields terminated by ','
optionally enclosed by '"'
trailing nullcols (bugid,note *clob*)
{code}
The problem is note column is a clob and one of the
values has line breaks like this :
{code}
Hi Sir,
Would you please inform when the reports are scheduled for automatic process?
Maria will stop his process to avoid duplication.
Please inform asap
With Regards ,
Ronaldinho
{code}
When the data gets loaded ,
The first column gets the sentence 'Would you please inform.....' i.e . the data of second columns gets loaded into first column as nulls are recognized as end delimiter.
How to overcome this problem?
Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Pl post your exact OS and database versions, along with your complete sqlldr command, the table description and a sample of your input csv file.
HTH
Srini

Similar Messages

  • View CLOB data in SQL Developer

    Hi,
    Can anyone let me know how to view CLOB data in SQL Developer 2.1.
    I am having images stored in a column of datatype CLOB. How to view this image.
    Database is 10.2.0.4.

    Since SQL Developer has no idea about the type of data stored in LOB columns, one cannot view that content in desired format.
    You need a tool to extract the LOB data and render it accordingly.
    BTW, do you mean BLOB here?

  • Unable to retrieve CLOB data from oracle

    hello I am trying to retreive a clob data from database. I am passing "country" to get "information". after submitting data it is showing SQLException caught: General error .
    whatz wrong.? can anybody help?
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    public class ClobTest2 extends HttpServlet{
         public void doGet( HttpServletRequest req, HttpServletResponse res )
              throws ServletException, IOException
                   Connection conn = null;
                   Statement st = null;
                   ResultSet rs = null;
                   res.setContentType( "text/html" );
                   PrintWriter out = res.getWriter();
                   String coun$ = "";
                   coun$ = req.getParameter( "coun" );
                   try{
                      Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver");
                      conn = DriverManager.getConnection( "jdbc:odbc:clobtester",    "temp", "sol" );
                      st = conn.createStatement();
                      rs = st.executeQuery( "SELECT information FROM testclob WHERE country = '"+coun$+"' ");
                        while( rs.next() )
                         out.println(rs.getClob(1) );
                      catch( ClassNotFoundException e )
                           out.println( "Could not load database driver" + e.getMessage() );
                      catch( SQLException e )
                           out.println("SQLException caught: " + e.getMessage()  );
                    e.printStackTrace();
                   catch( Exception e )
                       System.err.println( "Problem closing the database" );
                 try{
                             st.close();
                             conn.close();
                         }catch( Exception e )
                            System.err.println( "Problem closing the database" );
         }

    certainly but this problem can go on several
    category. and I am the needy one to get the solutionHowever I don't need to answer cross-posted questions. And I don't.

  • Help needed in Exporting tables data through SQL query

    Hi All,
    I need to write a shell script(ksh) to take some of the tables data backup.
    The tables list is not static, and those are selecting through dynamic sql
    query.
    Can any body tell help me how to write the export command to export tables
    which are selected dynamically through SQL query.
    I tried like this
    exp ------ tables = query \" select empno from emp where ename\= \'SSS\' \"
    but its throws the following error
    EXP-00035: QUERY parameter valid only for table mode exports
    Thanks in advance,

    Hi,
    You can dynamically generate parameter file for export utility using shell script. This export parameter file can contain any table list you want every time. Then simply run the command
    $ exp parfile=myfile.txt

  • Viewing CLOB data in sql developer

    In SQL Developer 1.1, if CLOB data was returned from a query, you could place your mouse over the column and get most of it.
    But in 1.2, all you get is "(CLOB) <some data> ...", and nothing else. Is there something I need to set?

    You should look in the SQL Developer forum. I think your question is answered here:
    How to view the entire CLOB in results table?
    Regards Nigel

  • How to read zipped CLOB data in SQL developer

    hi,
    We have recently switched to SQL developer from TOAD,
    And i have few tables with CLOB column types , and having data in it in zipped form
    Functionality to view zipped CLOB data is there in Toad, please suggest how can i use same in SQL dev.
    Thanks,
    Mayank
    Lead DBA
    Budapest

    Hi,
    I downloaded the SQL Server 2000 Driver for JDBC Service Pack 1 at http://www.microsoft.com/downloads/details.aspx?familyid=4f8f2f01-1ed7-4c4d-8f7b-3d47969e66ae&displaylang=en#filelist.
    I put the mysql jdbc driver to tomcat before.
    However, I write an application program running on console window.
    Where should I put that msbase.jar, mssqlserver.jar and msutil.jar on the windows 2000 server?
    Also, how can I make the application program as a service running on windows 2000 server?
    Thanks for help

  • How to view clob data using sql

    Hi,
    In our database, we have one table that is having one column of CLOB datatype but now i want to view the data using sql select query but it throws error: "Datatype not supported".
    Could any one please let me know how to view the clob data using select query.
    Oracle DB version : 10.2.0.3
    Thanks

    h5.
    use read procedure
    PROCEDURE READ (
    lobsrc IN BFILE|BLOB|CLOB ,
    amount IN OUT BINARY_INTEGER,
    offset IN INTEGER,
    buffer OUT RAW|VARCHAR2 );
    example  Updating LOB by Using DBMS_LOB in PL/SQL
    DECLARE
    lobloc CLOB; -- serves as the LOB locator
    text VARCHAR2(32767):='Resigned: 5 August 2000';
    amount NUMBER ; -- amount to be written
    offset INTEGER; -- where to start writing
    BEGIN
    SELECT resume INTO lobloc
    FROM employees
    WHERE employee_id = 405 FOR UPDATE;
    offset := DBMS_LOB.GETLENGTH(lobloc) + 2;
    amount := length(text);
    DBMS_LOB.WRITE (lobloc, amount, offset, text );
    text := ' Resigned: 30 September 2000';
    SELECT resume INTO lobloc
    FROM employees
    WHERE employee_id = 170 FOR UPDATE;
    amount := length(text);
    DBMS_LOB.WRITEAPPEND(lobloc, amount, text);
    COMMIT;
    END;

  • CLOB data through Visual Basic 2005

    Does anyone have any sample code for writing a CLOB field through VB .NET? From what I've read, if you simply place the data into the field, then this will work but you are still limited to 4000 characters. To write a true CLOB value, you need to stream the data to the field, but I can't figure out how to do this.

    OK. After many hours of searching I've finally put together something that works. Not sure if this is technically correct, but here it is for anyone else who gets stuck trying to do this:
    Dim myBigString as String = "The BIG chunk of text that you need to store"
    Dim conn As New OracleConnection
    conn.ConnectionString = "Your connection string"
    Dim cmd As New OracleCommand
    conn.Open()
    Dim CLOBobject As New OracleClob(conn)
    CLOBobject.Write(myBigString.ToCharArray(), 0, myBigString.ToCharArray().Length)
    cmd.Connection = conn
    cmd.CommandText = "INSERT INTO SOMETABLE VALUES (<otherfield>,<otherfield>,<etc>,:1)"
    Dim paramMyBigString As OracleParameter = cmd.Parameters.Add("1", OracleDbType.Clob)
    paramMyBigString.Direction = ParameterDirection.Input
    paramMyBigString.Value = CLOBobject.Value
    cmd.ExecuteNonQuery()
    conn.Close()

  • Problem in displaying CLOB data through procedure

    Can anyone suggest me the stored procedure which will output CLOB data which is stored in table
    SQL>Create table XMLDOC
    (col1 number(11,0),col2 CLOB);
    Thanks in Advance

    Create the stored procedure with one OUT VARCHAR2 parameter,then select the CLOB column value from the
    table into this OUT parameter and then display this
    using DBMS_OUTPUT package.
    Or by using bind variable of type VARCHAR2(4000) you
    can print that value of clob column.
    I think this will solve your problem.

  • Loading datas through sql loader

    dear all,
    I have a table with a date column where I have specified the datatype as date, and when am trying to load datas sqlloader :
    Record 51: Rejected - Error on table SYSTEM.PROJECT, column D_DATE.
    ORA-01843: not a valid month
    select sysdate from dual
    11/10/2007 1:53:55 PM -- which is of the format mm/dd/2007
    am loading the datas in the same format even then, am getting the above error..
    Here it is..
    control file
    LOAD DATA
    infile *
    INSERT
    INTO TABLE system.project
    FIELDS TERMINATED BY ','
    (SERIAL,D_DATE date "DD-Mon-YY",PLATE_NO,IN_KM,OUT_KM,LOCATION,DESTINATION,LITERS,VEHICLE_TYPE,Division,REMARKS)
    begindata
    table structure :
    SQL> desc project1
    Name Null? Type
    SERIAL NUMBER(10)
    D_DATE DATE
    PLATE_NO VARCHAR2(20)
    IN_KM VARCHAR2(20)
    OUT_KM VARCHAR2(20)
    LOCATION VARCHAR2(20)
    DESTINATION VARCHAR2(40)
    LITERS NUMBER(10)
    VEHICLE_TYPE VARCHAR2(40)
    DIVISION VARCHAR2(40)
    REMARKS VARCHAR2(40)
    Please guide

    Thanks sam.. I changed the control file like :
    LOAD DATA
    infile *
    append
    INTO TABLE system.project
    FIELDS TERMINATED BY ','
    (SERIAL,D_DATE date "DD-Mon-YY",REMARKS)
    begindata
    and now it is working fine..
    Thanks
    Yusuf

  • Unable to Run SSIS Package Through SQL Agent Job

    Hi,
    I recently upgraded SQL server 2008 R2 to SQL Server 2012. I also upgraded all the packages on the server. The package runs fine from BIDS. However when I try to run the package through the SQL Agent Job it fails with the error below:
    Executed as user: A. Microsoft (R) SQL Server Execute Package Utility  Version 11.0.2100.60 for 64-bit  Copyright (C) Microsoft Corporation. All rights reserved.    Started:  11:43:04 PM  Could not load package "\FolderA\Package.dtsx"
    because of error 0xC00160AE.  Description: Connecting to the Integration Services service on the computer "S2345WE" failed with the following error: "Access is denied."    By default, only administrators have access to the
    Integration Services service. On Windows Vista and later, the process must be running with administrative privileges in order to connect to the Integration Services service. See the help topic for information on how to configure access to the service.  Source:
      Started:  11:43:04 PM  Finished: 11:43:04 PM  Elapsed:  0.016 seconds.  The package could not be loaded.
    Using Windows Authentication I am able to login to Integration services through SSMS. In the SQL Agent job I am using package store to execute the package. I have admin permission on the server. The integration services currently uses my credentials while
    running.I am not sure why I am getting this error.
    Please advice..
    Thanks,
    EVA05

    Hi ,
    similar thread - http://social.technet.microsoft.com/Forums/en-US/sqlintegrationservices/thread/25e22c7e-bae0-42e4-b86d-2db7a4af519d
    Try this link -
    http://msdn.microsoft.com/en-us/library/dd440760%28v=sql.100%29.aspx
    sathya --------- Please Mark as answered if my post solved your problem and Vote as helpful if my post was useful.

  • View clob data is sql

    i have a column name "Description" with clob datatype.
    In one of the records, the 'description' has 5mb of text data.
    Is there a way to display the whole 5mb of data.
    Thanks in advance,
    Regards

    If you are using PL/SQL Developer its very easy to see the CLOB oblects just clicking ... button infront of that column .
    OR
    If you are using SQL*PLUS
    SET LONG 10000 -- to the size u want
    select col_clob from test
    Else
    set the offset LOBOFFSET from where u want to see the out put, 1 will give u the out put from begining
    SET LOBOFFSET 1
    Select col_clob from test

  • Help needed in copying data through sql

    Hi
    I want to populate data in a table in a manner
    EID     ENAME     EADDRESS     ESALARY     EDEPARTMENT     MANAGER_ID
    101     Pankaj Saxena     New Delhi     2000     IT     
    102     Sanjay Singh     New Delhi     2000     IT     101
    103     Dhiraj Tuteja     Kanpur     3000     NONIT     101
    104     Nitin Grover     New Delhi     4000     IT     102
    105     Juhi Agarwal     Itawa     5000     NONIT     103
    106     Siddharth     Itawa     5000     NONIT     103
    107     Kalyan     Itawa     7000     IT     104Now i want to populate the same data 10 times but the ids need to be incremented
    What should i do??
    I am using oracle 9i
    insert into demo_1
    select eid,ename,eaddress,esalary,edepartment,manager_id from demo_1I eid need to be increased sequencially

    Try this
    select eid, ENAME, EADDRESS, ESALARY, EDEPARTMENT, MANAGER_ID
      from <table>
    union all
    select max(eid) over() +rownum eid, ENAME, EADDRESS, ESALARY, EDEPARTMENT, MANAGER_ID
      from <table>
    cross join (select level no from dual connect by level <=9)

  • Append a string while fetching data Through Sql Statement

    Hi i have a table which having a one field contains information of some delted files.
    when i write a sql query to fetch the information its giving out put like ..
    SELECT DISTINCT filedname  FROM TB_JOBCOMP_DBS40
    Assinid
    complte_date
    pr_date
    but i need a out put like
    Assinid -------------------->deleted
    complte_date -------------------->deleted
    pr_date -------------------->deleted
    is there any way to write sql to fetch this information

    Are you looking for concatenation ?
    SQL> select concat(ename,'----- Names Of employee') from emp
      2  WHERE rownum<3
      3  ;
    CONCAT(ENAME,'-----NAMESOFEMPLOYEE')
    SMITH----- Names Of employee
    ALLEN----- Names Of employee
    SQL> select ename||'----- Names Of employee' from emp
      2  WHERE rownum<3;
    ENAME||'-----NAMESOFEMPLOYEE'
    SMITH----- Names Of employee
    ALLEN----- Names Of employee

  • Unable to delete PSA data through process chain.

    Hi Everyone,
    I have got a problem in PSA deletion. We have got few PSA and change log deletion jobs which run at daily or fortnight basis. We planned to add few PSA tables to each daily and fortnight jobs depending on requirement.
    We added in development and could see jobs deleting PSAs properly. Now on transporting to testing, we could see that PSA tables are not being deleted and there is no change in data. We have checked the PSA table names properly, in table RSTSODS and confirmed PSA is given properly only.
    Anyone faced this problem or have idea about this issue, please let us know and suggest us.
    Thanks and regards,
    Shashidhar.

    Hi Shashidhar
    Just check for the PSA requests as below:
    Go to PSA in RSA1/ RSA1OLD -
    > Select the PSA -
    > Settings -> Display selection for PSA tree -> give start date and end date or any other selecetions as per your requirement-> it will show you all the details.
    Hope this helps.
    Cheers
    Chanda

Maybe you are looking for

  • Ipod not showing up in itunes when connected

    I get a message that says the device has been detected but can't be identified and to reinstall itunes.  I did that and it is still not showing up.  I have reset it and tried most suggestions that I have found.  Short of going to the Apple store, is

  • Error in code of relative navigation

    Hi Experts, I am using relative navigation for the first time. Dont know why i am facing the following error while I am typing the method for relative navigation in the component controller of my project: "The method navigateRelative(String, int, Str

  • "does not appear to be a valid email address"

    I get this message for random emails that I send out and more specifically for my husband's email address which is the same @XXX.ca that I have. I know that the addresses are correct, I don't understand why the program has a problem with them?

  • How do I get back up to work again..... I pay for this

    trying back up my pins on pin4ever. It gets stuck on93% finished and it stayed like that all night I found a help area that said refresh Firefox by going to the icon in the upper left corner of this page ( 3 bars) and click on t then click on help. T

  • Why am I getting the flag Invalid URL for web content overlay when making scrolling panel in Indesig

    Why am I getting the flag 'Invalid URL for web content overlay" when making scrolling panel in Indesign? Iam making additions to existing articles but the problem is new. The articles were originally made using CS and now I am on CC, which I have jus