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: SQL LOADER

Re: SQL LOADER

From: Andy Robinson <ajr_at_mink.mt.att.com>
Date: 10 Mar 2000 10:04:12 -0500
Message-ID: <yhad7p250k3.fsf@mink.mt.att.com>


ulysse51_at_my-deja.com writes:

> i want to load some data in a table with sql loader in direct path, my
> control file seems like :
>

[...]
> FIELDS TERMINATED BY ";" OPTIONALLY ENCLOSED BY '"'
> (
> LINE_ID "IMPORT_SEQ.NEXTVAL", SOURCE_FILE
> CONSTANT "C:\\Windows\\temp\\\File000.csv", USERID CONSTANT "JPB1",
> ID_INTERNAL_SOURCE,EXTERNAL_SOURCE,.......)
>
> without the options (direct=true) it works but with this option i've
> got the message : not allowed in direct path on column line_id, i
[...]

If you don't absolutely need to use IMPORT_SEQ, try using SEQUENCE instead:

(
LINE_ID SEQUENCE,
...

With SEQUENCE, you can also specify the starting value and increment. See the SQL*Loader guide for more information.

--
Andy Robinson Received on Fri Mar 10 2000 - 09:04:12 CST

Original text of this message

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