Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3401756
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T05:03:16+00:00 2026-05-18T05:03:16+00:00

Scenario: I have a huge .csv file (million of lines) . With sqlldr (SQL

  • 0

Scenario:

  • I have a huge .csv file (million of lines) .
  • With sqlldr (SQL Loader) I have to create a temporary table with all the data in the CSV.
  • After this I have to do some processing on the temporary table (uppercase update some columns, etc.).
  • After processing, I have to take every row from the temporary table, make some additional checks and insert those rows in another table (being heavily used in production) .

How do you suggest to make all this processing, so that I won’t affect the overall performance of the production environment ?

(NOTE: I am not supposed to pre-process the .csv before hand).

Any suggestion will be highly appreciated !

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T05:03:16+00:00Added an answer on May 18, 2026 at 5:03 am

    I know you’ve said you want to use SQL Loader, but you might want to look at using an external table as it might make things easier. You could declare your external table as something like

    create table EXTERNAL_HR_DATA (
        EMPNO    NUMBER(4),
        ENAME    VARCHAR2(10),
        JOB      VARCHAR2(9),
        MGR      NUMBER(4),
        HIREDATE DATE,
        SAL      NUMBER(7,2),
        COMM     NUMBER(7,2),
        DEPTNO   NUMBER(2))
        Organization external
            (type oracle_loader
             default directory testdir
             access parameters (records delimited by newline
                                fields terminated by ‘,’)
             location (‘emp_ext.csv’))
        reject limit 1000;
    

    This would allow you to read (but not change) the data in your file using standard SELECT statements. You could then SELECT from the external table and INSERT the data into your ‘temp’ table directly, doing at least some of the editing during the INSERT:

    INSERT INTO TEMP_HR_DATA
      SELECT EMPNO,
             UPPER(TRIM(ENAME)),
             UPPER(TRIM(JOB)),
             MGR,
             HIREDATE,
             SAL,
             COMM,
             DEPTNO
        FROM EXTERNAL_HR_DATA;
    

    Share and enjoy.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was recently pondering the following scenario: suppose you have a huge database and
Here's the scenario, I have a main.js file in abc.com which does $.post(index.php) to
I have a scenario where in I need to keep a log of all
Scenario: We have a client who has multiple large sites, a huge number of
I have an activity which fetches huge set of data from the network and
Scenario: I have a MySQL database of people and all their various features as
I have a unit test which contains huge data that needs to compared with
I have a java/mysql application. I am writing huge data to mysql using my
Beginner level question Scenario: Have simple string cocantation tool, that I might expand later
SCENARIO I have to access a web service with a .NET client. The service

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.