Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: sqlload CTL for fixed-width VARRAY?

Re: sqlload CTL for fixed-width VARRAY?

From: <sorry_at_spam.invalid>
Date: Thu, 23 Dec 1999 15:24:07 GMT
Message-ID: <r8r84.21$WC4.4419@news.wenet.net>

So, from the lack of responses, I'm guessing SQL Loader can't load arrays from fixed-width, undelimited fields...

Last week I wrote:

> We're moving from System 1032 (a wonderful database system) on a
> VAX/VMS system to Oracle 8.0.5 on an RS/6000 AIX box. We have LOTS of
> data in array fields, and for now want to keep them that way. Can
> anyone provide me with an appropriate syntax for the SQL Loader
> control file, given a fixed-width, undelimited ASCII data input file?
> For a simple example, how would one write the control file for
> something like:

> create or replace type NARRAY as varray(10) of number;
> create or replace type CARRAY as varray(10) of varchar(5);

> create table DUMMY
> (some_numbers NARRAY
> ,some_letters CARRAY
> );

> and an input file consisting of:

> 12121212121212121212the quickbrownfox jumpsover the lazy dogs back.
> 1 2 3 4 5 6 7 8 9 0abcdeabcdeabcdeabcdeabcdeabcdeabcdeabcdeabcdeabcde

> (some_numbers always being two digits, and some_letters always being
> left-justified, space-padded, 5-character text, for this example.)

> Thanks!

--
--

Received on Thu Dec 23 1999 - 09:24:07 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US