Help on sql*loader Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: Help on sql*loader

  1. #1
    Join Date
    Mar 2004
    IA USA

    Help on sql*loader


    I need to load 10M rows in flat file into one table.

    The flat file format like


    I need to combine the two first_name and Last _name fields in the flat file into two columns of the tables—
    Name 1 and CONTACT_NAME

    For example
    The above record should be loaded into two columns in the tables like
    Laura Lee, Laura LEE

    Laura Lee Laura Lee

    How can I do this in control file of the SQL*LOADER



  2. #2
    Join Date
    Mar 2007
    Ft. Lauderdale, FL
    I assume your source flat file is a variable size one as opposed as a fixed size one.

    If my assumption is correct I wouldn't be surprised if you end up loading the file as it is, probably first_name into Name_1 and last_name into contact_name then run a simple procedure to update the loaded rows formatting both columns as you need.

    If my assumption is incorrect and your source file is a fixed size one just map the columns by position.
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.

  3. #3
    Join Date
    Mar 2004
    IA USA
    thanks for the reply.

    yes, the flat file is variable size.

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