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

Thread: Need Help in Control File

  1. #1
    Join Date
    Jul 2007
    Posts
    21

    Need Help in Control File

    Hi,

    i have a flat file to be exported to database say 123.txt which have id,party_no,email_addr fields.

    my data looks like this
    123 1234567890 UNUSED
    234 2345678901 UNUSED

    i wanted to load this file in to say test_abc table.

    i have another table test_xxx
    it contains the fields party_no,email as follows

    1234567890 xxxyyy@yahoo.com
    2345678901 aaabbb@yahoo.com

    wat i needed to do is i want to create a control file which loads email field in test_abc by selecting records from test_xxx where party_no is same.

    Can anybody help with the control file?

    Thnx..,

  2. #2
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,555
    Quote Originally Posted by Shining Star
    i have a flat file to be exported to database say 123.txt which have id,party_no,email_addr fields.
    Shall we understand you want to load it into the database?

    If Yes and since your business requirements call for some data manipulation I would explore "external tables" instead of plain sqlloader.
    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
    Jul 2007
    Posts
    21
    Yes.., i want to load it in to database

  4. #4
    Join Date
    Jul 2007
    Posts
    21
    is it possible with Sqlldr?
    i have insufficient privileges to create directory in the database?

    Any idea???

    Thnx,

  5. #5
    Join Date
    Nov 2006
    Location
    Sofia
    Posts
    630
    Call the DBA to create one for you and give you read/write on it.
    Otherwise, you can always load the data into a staging table "as they are" and later transform and send them to another table

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