DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: import scipts failing for columns containing "enter character"

  1. #1
    Join Date
    Dec 2001
    Posts
    120

    import scipts failing for columns containing "enter character"

    hi,

    The Problem:
    Data import scripts in oracle 8i for a table containing line breaks/enter character as a part of its data is failing during execution of the script.

    Problem Description:
    This table has a field called xmlparameters varchar2(4000) and stores the formatted xml tags and values in it. The data to this field is entered through html pages/GUI and while formatting the tags through the GUI/textarea the user puts lots of "enter" to break the lines and align them in the textarea of the GUI.The data however gets saved properly in the above mentioned table. Now while running the oracle script from sql prompt to import data from this table to another table the records which contain the line break\enter character in its field fails and are neglected by the insert statement.So even the script completes successfully but it fails to insert all the data.It only inserts records which don't have the linebreakls in them.
    I've checked the records which are failing in the script and found that because of the enter character\line break in the data for the given field , while constructing the insert statement oracle is breaking the line and writing the rest of the insert statement into a new line. So when the script is run oracle reports an error for these records as the line break causes the syntax error.

    pls advice me about how to solve this problem while running the scripts.Its very very urgent for me.

    thanks a lot

    Parijat Paul

  2. #2
    Join Date
    Aug 2002
    Posts
    18
    Could you post your SQL? How you import the data from one table to another?
    That may help people figure out what is the problem.

  3. #3
    Join Date
    Dec 2001
    Posts
    120
    hi,

    the scripts are created through the export utility of TOAD\Quest software.

    thanks

    Paul

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width