Home » SQL & PL/SQL » SQL & PL/SQL » question on sqlload [SOLVED]
question on sqlload [SOLVED] [message #149882] |
Mon, 05 December 2005 09:23  |
madchaz
Messages: 65 Registered: October 2005
|
Member |
|
|
I'm working on a validation package and I need to load some data from excel into an oracle table.
The table as 3 fields. The first one is employee numbers obtained from HR. The second and third columns contain the employee number and email attached to it from notes.
My issue is that column A does not always have the same number of records as column B and C (B being a key I use for referencing C)
My question is this. Will it cause problems for SQLLOAD if my columns do not have the same number of records?
[Updated on: Tue, 06 December 2005 08:20] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
Re: question on sqlload [message #149896 is a reply to message #149882] |
Mon, 05 December 2005 10:24   |
madchaz
Messages: 65 Registered: October 2005
|
Member |
|
|
Well, I just tried loading the data and it didn't work quite as expected.
SQL*Loader: Release 8.0.6.3.0 - Production on Mon Dec 5 11:21:45 2005
(c) Copyright 1999 Oracle Corporation. All rights reserved.
Commit point reached - logical record count 17
cacpx1orudbd01:/home/applsnbx/validations
That part worked. However, the last records with data only in column A did not get recorded. Looking at the why.
edit: It looks like it doesn't like the rows with only column A.
SQL*Loader: Release 8.0.6.3.0 - Production on Mon Dec 5 11:21:45 2005
(c) Copyright 1999 Oracle Corporation. All rights reserved.
Control File: definition.ini
Data File: data.csv
Bad File: load.bad
Discard File: load.disc
(Allow all discards)
Number to load: ALL
Number to skip: 0
Errors allowed: 50
Bind array: 64 rows, maximum of 65536 bytes
Continuation: none specified
Path used: Conventional
Table USER_VALIDATIONS, loaded from every logical record.
Insert option in effect for this table: REPLACE
Column Name Position Len Term Encl Datatype
------------------------------ ---------- ----- ---- ---- ---------------------
EMPLOYEE_NUMBER_HR FIRST * ; CHARACTER
EMPLOYEE_NUMBER_NOTES NEXT * ; CHARACTER
EMAIL NEXT * ; CHARACTER
Record 15: Rejected - Error on table USER_VALIDATIONS, column EMAIL.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 16: Rejected - Error on table USER_VALIDATIONS, column EMAIL.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 17: Rejected - Error on table USER_VALIDATIONS, column EMPLOYEE_NUMBER_HR.
Column not found before end of logical record (use TRAILING NULLCOLS)
Table USER_VALIDATIONS:
14 Rows successfully loaded.
3 Rows not loaded due to data errors.
0 Rows not loaded because all WHEN clauses were failed.
0 Rows not loaded because all fields were null.
Space allocated for bind array: 65016 bytes(84 rows)
Space allocated for memory besides bind array: 0 bytes
Total logical records skipped: 0
Total logical records read: 17
Total logical records rejected: 3
Total logical records discarded: 0
Run began on Mon Dec 05 11:21:45 2005
Run ended on Mon Dec 05 11:21:48 2005
Elapsed time was: 00:00:03.16
CPU time was: 00:00:00.03
[Updated on: Mon, 05 December 2005 10:28] Report message to a moderator
|
|
|
|
|
|
|
Goto Forum:
Current Time: Wed May 21 10:52:44 CDT 2025
|