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

Home -> Community -> Usenet -> c.d.o.server -> Re: SQL Loader and new not null columns.

Re: SQL Loader and new not null columns.

From: Daniel Morgan <damorgan_at_x.washington.edu>
Date: Fri, 13 Aug 2004 18:42:49 -0700
Message-ID: <1092447812.859120@yasure>


akush wrote:

> Hi,
>
> i want to migrate a database from centura to oracle with the SQL
> Loader. The new Schema on Oracle has now on some tables a new Column
> that has "not null" values. Is it possible to tell the SQL Loader that
> there should be inserte default values and not a null value? I thougth
> that if i define the column with a default value that the SQL Loader
> will take this value, but that seems not to be.
>
>
> The controlfile:
>
> LOAD DATA
> INFILE '/LinuxDBMigration/Data.bulk'
> BADFILE '/LinuxDBMigration/Data.bad'
> DISCARDFILE '/LinuxDBMigration/Data.dis'
> APPEND INTO TABLE usr.xsession
> FIELDS TERMINATED BY ','
> ("SESSIONID","XSTART" DATE(20) "dd.MM.yyyy HH24.MI.SS","XEND" DATE(20))
>
> Thx for help
> akush

Yes. Look up SQL Loader at http://tahiti.oracle.com

There are several ways to do it. One way is to use NVL in your control file.

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace 'x' with 'u' to respond)
Received on Fri Aug 13 2004 - 20:42:49 CDT

Original text of this message

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