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

Thread: Run SQL Loader without inserting data

  1. #1
    Join Date
    Oct 2008
    Posts
    7

    Run SQL Loader without inserting data

    Hi,
    Is there a way to run SQL Loader without actually inserting records into a table?

    Thanks,
    Shivam

  2. #2
    Join Date
    Jul 2002
    Location
    Lake Worth, FL
    Posts
    1,492

    Talking When

    Add a WHEN condition that would never be true.
    .
    "The person who says it cannot be done should not interrupt the person doing it." --Chinese Proverb

  3. #3
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,555
    ...use an empty source or make sure your source data is bad in a way all rows get rejected.

    Just out of curiosity, may I ask why do you want to run SQL*Loader without loading anything?
    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.

  4. #4
    Join Date
    Oct 2008
    Posts
    7

    Smile

    Thanks! ...actually I want to run list this 'coz I want to check the number of rows in my source file which I can't open in excel to count(excel does not load all records)...

    I thought there could be a command or something that can be written in the control file to do a mock run.

    Thanks,
    Shivam

  5. #5
    Join Date
    Jul 2002
    Location
    Lake Worth, FL
    Posts
    1,492

    Talking wc -l

    Why not just use wc -l in unix?

    Code:
    wc -l 
    
    .
    "The person who says it cannot be done should not interrupt the person doing it." --Chinese Proverb

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