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

  • Home
  • SEARCH
  • 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 331123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T09:44:43+00:00 2026-05-12T09:44:43+00:00

Suppose I have a custom file format, which can be analogous to N tables.

  • 0

Suppose I have a custom file format, which can be analogous to N tables. Let’s pick 3. I could transform the file, writing a custom load wrapper to fill 3 database tables.

But suppose for space and resource constraints, I can’t store all of this in the tablespace.

Can I use Oracle Preprocessor for External Tables to transform the custom file three different ways?

The examples of use I have read give gzip’d text files an example. But this is a one-to-one file-to-table relationship, with only one transform.

I have a single file with N possible extractions of data.

  • Would I need to define N external tables, each referencing a different program?
  • If I map three tables to the same file, how will this affect performance? (Access is mostly or all reads, few or no writes).

Also, what format does the standard output of my preprocessor have to be? Must it be CSV, or are there ways to configure the external table driver?

  • 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-12T09:44:43+00:00Added an answer on May 12, 2026 at 9:44 am

    “If I map three tables to the same
    file, how will this affect
    performance? (Access is mostly or all
    reads, few or no writes”

    There should be little or no difference between three sessions accessing the same file through one external table definition or three external table definitions.
    External tables aren’t cached by the database (might be by the file system or disk), so any access is purely physical reads.
    Depending on the pre-processor program, there might be some level of serialization there (or you may use a pre-processor program to impose serialization).

    Performance-wise, you’d be better for a single session to scan the external file/table and load it into one or more database tables. The other sessions read it from there and it is cached in the SGA. Also, you can index a database table so you don’t have to read it all.

    You may be able to use multi-table inserts to load multiple database tables from a single external table definition in a single pass.

    “what format does the standard output
    of my preprocessor have to be? Must it
    be CSV, or are there ways to configure
    the external table driver?”

    It pretty much follows SQL*Loader, and both are in the Utilities manual. You can use fixed format or other delimiters.

    Would I need to define N external
    tables, each referencing a different
    program?

    Depends on how the data is interleaved. Ignoring pre-processors, you can have different external tables pulling different columns from the same file or use the LOAD WHEN clause to determine which records to include or exclude.

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

Sidebar

Related Questions

I have a custom html(suppose a.html) file which i am using from the resources
Suppose I have a simple XHTML document that uses a custom namespace for attributes:
Suppose I have: Toby Tiny Tory Tily Is there an algorithm that can easily
I have custom configuration section within web.config file. I'm lingering between: Reading it into
Suppose you have a file that contains IP addresses, one address in each line:
I have a custom control derived from Button: class MyControl : Button{} And suppose,
Suppose I have a custom collection class that provides some internal thread synchronization. For
Suppose i have the following 2 SQL tables: Foo Column DataType --------------------------- Title NVARCHAR(20)
I have a trusted remote server that stores many custom Python modules. I can
Suppose you have 2 different ASP.NET applications in IIS. Also, you have some ASCX

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.