Home » RDBMS Server » Server Utilities » Very Urgent - SQL LOADER, DATE PROBLEM
Very Urgent - SQL LOADER, DATE PROBLEM [message #73137] Thu, 12 February 2004 23:53 Go to next message
Govind
Messages: 2
Registered: February 2004
Junior Member
Hi Pals,

I have a problem here,

Table name : upld_table

dlt_BYTE        VARCHAR2(2)
sat_ID           VARCHAR2(10)
dt_ENTERED   DATE

I have following data in sat.dat

0001022363+20020109

0001022590+20020109

0001022610+20020102

0001027868+20020118

0001027970+20020118

I would like to upload through SQL loader to my table upld_table

Please Help me to write a control file.

Its very urgent

 

 

 
Re: Very Urgent - SQL LOADER, DATE PROBLEM [message #73139 is a reply to message #73137] Fri, 13 February 2004 00:26 Go to previous messageGo to next message
nabila mekkaoui
Messages: 5
Registered: March 2003
Junior Member
LOAD DATA
INFILE 'sat.dat'
INTO TABLE upld_table
REPLACE
TRAILING NULLCOLS
(dlt_BYTE position(1:2) CHAR NULLIF (dlt_BYTE=BLANKS)
, sat_ID position(3:11) CHAR NULLIF (sat_ID=BLANKS),
dt_ENTERED position(12:19) DATE "RRRRMMDD" NULLIF (dt_ENTERED=BLANKS)
)
Re: Very Urgent - SQL LOADER, DATE PROBLEM [message #73156 is a reply to message #73139] Thu, 19 February 2004 04:19 Go to previous messageGo to next message
jim
Messages: 74
Registered: July 2000
Member
Note that this will wipe out anything you have loaded currently. If you have data you wish to keep, use append in place of replace
Re: Very Urgent - SQL LOADER, DATE PROBLEM [message #73315 is a reply to message #73156] Mon, 22 March 2004 23:09 Go to previous messageGo to next message
Azzah Al-Sayegh
Messages: 3
Registered: June 2002
Junior Member
I have a problem with the loading of the following date by using SQL*Loader
Date: "02/29/1403" in format "MM/DD/YYYY"

The date is a valid Hijra date but the oracle date format is Gregorian, therefore this year "1403" is considered as not a leap year and day "29" is invalid day, so this record is rejected during the loading

I can't change NLS_DATE_FORMAT because my data file contains mix of dates' format (Hijra & Gregorian)

Can I change the format of date for each column in the control file of SQL*Loader

Thanks
Re: Very Urgent - SQL LOADER, DATE PROBLEM [message #73693 is a reply to message #73315] Sat, 19 June 2004 03:31 Go to previous message
mohamed
Messages: 27
Registered: November 2001
Junior Member
* You can make the date field Varchar or nvarchar
Previous Topic: Damage file during load
Next Topic: URGENT-*9
Goto Forum:
  


Current Time: Mon Jul 01 02:08:53 CDT 2024