Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: sqlload CTL for fixed-width VARRAY?
In article <5xV84.77$WC4.11516_at_news.wenet.net>,
sorry_at_spam.invalid wrote:
> Ed Prochak <prochak_at_my-deja.com> wrote:
>
[snip]
>
> That was an oversight leaving the sig in. The first message I had
> taken it out. I was expecting followups rather than replies. (Since
> so many people have asked questions about VARRAYs, it seemed like
someone
> else besides me might benefit from an answer.)
I agree, many can benefit when the answers are posted.
>
> > Oracle's SQL*Loader can handle fixed length fields easily. You
specify
> > the field position by character position, like:
>
> > ...
> > color (31-35),
> > noun (36-40),
> > ...
>
> > would load 'brown' in the color column and 'fox ' in the noun
column.
> > Rest of control file information can be more easily found in the
> > manuals. Did you look there?
>
> Yes. Did you read the question? VARRAY. I've loaded fixed-width
> NON-VARRAY data into my tables, but I was having problems specifically
> with VARRAY. The examples in the manuals tried to combine several
> things into one control file (varray, secondary files, nested tables,
> etc.) and were for variable width, delimited data. I looked on the
> web when I couldn't find something understandable in the manuals. The
> newsgroup was a last resort. (Our $200.00/hour consultants from
> Oracle Corp, don't seem to be willing or perhaps able to answer the
> question either.)
Well, the phrasing on the question (especially the second posting) implied (to me at least) that the problem was fixed width data, not VARRAY columns.
I haven't played with VARRAY type enough, but I still have a suggestion:
Alternate suggestion, If you have managed to load VARRAY for terminated fields, then you seem to be more than half way there. How about giving an example of what you have tried? It seems to me that all that needs to change is the field definitions.
My manuals aren't handy now, but there is a way to define fixed width fields that are relative to the previous column. I cannot think of it now, but that's likely what you need.
I hope this helps (you AND others).
--
Ed Prochak
Magic Interface, Ltd.
ORACLE Development, conversions, training and support
440-498-3700 magic_at_interfacefamily.com
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Sun Dec 26 1999 - 17:31:22 CST