SQL Loader problem in loading MS Access Memo Data
HI guys!
I am having trouble loading my Access data into my Oracle Database.
I export first the data from Access to an Excel file and then I save as the Excel file as a CSV file.
Then by using SQL Loader I load the csv file to the Oracle.
load data
REPLACE
into table TBL1
fields terminated by ','
TRAILING NULLCOLS
NAME,
ID
NOTES CHAR(4000),
The problem is with the NOTES data. It is declared as Memo type in Access and I declared it as VARCHAR2(1000) in Oracle. If I don't have any carriage returns (Enter Key) in the data, the data is loaded successfully but when it has some carriage returns (Enter Key) the data is cut (continued to next line) and wrong data is being loaded...
BUt if I just copy-paste manually the data, it is loaded successfully..
How do I deal with this problem.I have over 20,000 data so I can't do copy-paste..
Appreciate any help..
Thanks!
Did you try to specify the "end of record " string (str <terminator string> function) , or Trimming whitespaces function ? Please refer to "Oracle Database utilities" for more information about it .
Similar Messages
-
Sql loader error in offline data load
Hi,
I have done an offline schema creation using existing tablespace.
I am trying to do an offline data load using sql loader.The CTL and DAT file are generated by the work bench.
This is my CTL file code generated by workbench.
load data
infile 'Import.dat' "str '<EORD>'"
into table IMPORT
fields terminated by '<EOFD>'
trailing nullcols
When I am running the ctl file with DAT file in sql loader I am getting the following error
SQL*Loader-350: Syntax error at line 4.
Expecting single char, found "<EOFD>".
fields terminated by '<EOFD>'
^
My Sql Loader version is Release 8.0.6.3.0
Please help if anyone has came across this issue.
Thanks in advance.
Regards
Saravanan.BSaravanan,
Its a long time since I have seen 8 sql loader. Check the doc. Is it resrticted to a single character delimter??
Barry -
SQL Loader - double quote within data
Hi,
I'm putting together some SQL loader scripts to load source data into a DB. The data we are receiving is comma delimited, optionally enclosed by double quotes (").
e.g. "abc","123","this is a "test"","987"
The problem I've got is that some data items contain double quotes ("test") as part of the data and this cause the SQL Loader to fall over with the error:
Record 14644: Rejected - Error on table x, column y.
no terminator found after TERMINATED and ENCLOSED field
Is it possible to load this without changing the extraction process from the source system?
My .ctl file looks like this:
LOAD DATA
INFILE '../data/toload/BR_ADDRESS.CSV'
APPEND INTO TABLE STA_COMP_BRADD
FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"'
etc....
Message was edited by:
MaximumStaggHi,
Look in to this in Oracle documentation:
"If two delimiter characters are encountered next to each other, a single occurrence of the delimiter character is used in the data value. For example, 'DON''T' is stored as DON'T. However, if the field consists of just two delimiter characters, its value is null."
http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/ldr_field_list.htm
Thanks,
Kishore -
SQL*Loader Error Field in data file exceeds maximum length", version 8.1.6
Hi All,
I am trying to load a data file into a database table using SQL loader. I
received the data in an data file but I saved it as a pipe delimited
file.
When I run the SQL Loader command no records are loaded - looking at the log
file I get the following error:
Rejected - Error on table FARESDATA, column FANOTESIN.
Then I tried with substr and doesnt seem to work for values greater than 4000 chars, it only works if the field value is below 4000 chars (say doing a substr for first 3000 chars).
see the code--------
LOAD DATA
INFILE 'p.dat'
APPEND INTO TABLE PROSPECTUS
FIELDS TERMINATED BY '|' OPTIONALLY ENCLOSED BY '"'
TRAILING NULLCOLS
Fanotesin char(4000) "substr(:fanotesin,1,4000)"
We get the error ORA-01461: can bind a LONG value only for insert into a LONG column when using substr for 4000 chars.
Please help!
Thanks,
Rajesh
nullI believe the problem here is that the ORACLE database regards anything > 4000chs as a CLOB (or LONG). 4000 is the maximum length of a varchar2 field in the database, although of course you can declare larger values in PL/SQL. (Since the incoming data is > 4000 chs it is regarded as a LONG and you cannot therefore use SUBSTR on it)
I think that you must either truncate your data before loading or load into a table with the offending field as a CLOB (or LONG)
and then use PL/SQL to recreate it in a table with a varchar2(4000) which is otherwise identical. (You can select from a LONG into a varchar2(32000) for example and then truncate before writing out to the new table). -
SQL Loader (how to cut data header)
Hi there,
[oracle 11g]
I got the following text file:
mod; DD.MM.YYYY; HH:MM:SS; aligned
src; "ptv "; "15.04.2012"; "10:47:49"
chs; "ISO8859-1"
ver; "V1.0"
ifv; "V1.0"
dve; "V1.0"
fft; "LIO"
tbl; MENGE_FGR
atr; BASIS_VERSION; FGR_NR; FGR_TEXT
frm; num[9.0]; num[5.0]; char[40]
rec; 122; 8; "VVZ"
rec; 123; 18; "VHZ"
rec; 124; 13; "VTZ" Now I am interested in the column TBL and ATR and follwing rawdata
Do you see a way to automatically create the table MENGE_FR with columns BASIS_VERSION; FGR_NR;FGR_TEST and column types num, num, char and insert the raw data below?
PS:OK, this is mysql ...so I need to convert this first to sql. So you should see num as number.
Thx in advance Thorsten
Edited by: Thorsten on 16.05.2013 07:30
Edited by: Thorsten on 16.05.2013 07:32There are various ways that you could do this. I have demonstrated one method below. I created a table with two columns, then used SQL*Loader to load the data from the text file into those two columns. Skipping the header rows is optional. You could also use an external table instead, if the text file is on your server, not your client. I then used some PL/SQL to create and execute "create table" and "insert" statements. This is just some starter code. You will need to make modifications to handle other data types and such that were not in the example that you provided, but it should give you the general idea.
SCOTT@orcl_11gR2> host type text_file.dat
mod; DD.MM.YYYY; HH:MM:SS; aligned
src; "ptv "; "15.04.2012"; "10:47:49"
chs; "ISO8859-1"
ver; "V1.0"
ifv; "V1.0"
dve; "V1.0"
fft; "LIO"
tbl; MENGE_FGR
atr; BASIS_VERSION; FGR_NR; FGR_TEXT
frm; num[9.0]; num[5.0]; char[40]
rec; 122; 8; "VVZ"
rec; 123; 18; "VHZ"
rec; 124; 13; "VTZ"
SCOTT@orcl_11gR2> host type test.ctl
options(skip=7)
load data
infile text_file.dat
into table tbl
(col1 terminated by ';',
col2 terminated by x'0a')
SCOTT@orcl_11gR2> create table tbl
2 (col1 varchar2(4),
3 col2 varchar2(60))
4 /
Table created.
SCOTT@orcl_11gR2> host sqlldr scott/tiger control=test.ctl log=test.log
SQL*Loader: Release 11.2.0.1.0 - Production on Thu May 16 13:44:24 2013
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Commit point reached - logical record count 6
SCOTT@orcl_11gR2> select * from tbl
2 /
COL1 COL2
tbl MENGE_FGR
atr BASIS_VERSION; FGR_NR; FGR_TEXT
frm num[9.0]; num[5.0]; char[40]
rec 122; 8; "VVZ"
rec 123; 18; "VHZ"
rec 124; 13; "VTZ"
6 rows selected.
SCOTT@orcl_11gR2> declare
2 v_tab varchar2(30);
3 v_atr varchar2(32767);
4 v_frm varchar2(32767);
5 v_sql varchar2(32767);
6 v_cols number;
7 v_next varchar2(32767);
8 begin
9 select col2 into v_tab from tbl where col1 = 'tbl';
10 select col2 || ';' into v_atr from tbl where col1 = 'atr';
11 select col2 || ';' into v_frm from tbl where col1 = 'frm';
12 v_sql := 'CREATE TABLE ' || v_tab || ' (';
13 select regexp_count (col2, ';') + 1 into v_cols from tbl where col1 = 'atr';
14 for i in 1 .. v_cols loop
15 v_sql := v_sql || substr (v_atr, 1, instr (v_atr, ';') - 1) || ' ';
16 v_next := substr (v_frm, 1, instr (v_frm, ';') - 1);
17 v_next := replace (v_next, '[', '(');
18 v_next := replace (v_next, ']', ')');
19 v_next := replace (v_next, '.', ',');
20 v_next := replace (v_next, 'num', 'number');
21 v_next := replace (v_next, 'char', 'varchar2');
22 v_sql := v_sql || v_next || ',';
23 v_atr := substr (v_atr, instr (v_atr, ';') + 1);
24 v_frm := substr (v_frm, instr (v_frm, ';') + 1);
25 end loop;
26 v_sql := rtrim (v_sql, ',') || ')';
27 dbms_output.put_line (v_sql);
28 execute immediate v_sql;
29 for r in (select col2 from tbl where col1 = 'rec') loop
30 v_sql := 'INSERT INTO ' || v_tab || ' VALUES (''';
31 v_sql := v_sql || replace (replace (r.col2, ';', ''','''), '"', '');
32 v_sql := v_sql || ''')';
33 dbms_output.put_line (v_sql);
34 execute immediate v_sql;
35 end loop;
36 end;
37 /
CREATE TABLE MENGE_FGR ( BASIS_VERSION number(9,0), FGR_NR number(5,0),
FGR_TEXT varchar2(40))
INSERT INTO MENGE_FGR VALUES (' 122',' 8',' VVZ')
INSERT INTO MENGE_FGR VALUES (' 123',' 18',' VHZ')
INSERT INTO MENGE_FGR VALUES (' 124',' 13',' VTZ')
PL/SQL procedure successfully completed.
SCOTT@orcl_11gR2> describe menge_fgr
Name Null? Type
BASIS_VERSION NUMBER(9)
FGR_NR NUMBER(5)
FGR_TEXT VARCHAR2(40)
SCOTT@orcl_11gR2> select * from menge_fgr
2 /
BASIS_VERSION FGR_NR FGR_TEXT
122 8 VVZ
123 18 VHZ
124 13 VTZ
3 rows selected. -
SQL Loader Approch to fetch data from Previous Data Segment.
CREATE TABLE T
RECORD_ID NUMBER,
SEG_VALUES VARCHAR2(4000)
==============================================================================
LOAD DATA
INFILE *
TRUNCATE
INTO TABLE T
WHEN SEG_VALUES <> ''
RECORD_ID RECNUM,
SEG_VALUES POSITION(1:4000)
BEGIN DATA
AAASH9561000000074120081029SYS
BBB0000001H0351
CCC0000001 6040818 078141532A 202007083020070830 36274
CCC0000002 12623239 526486168A 202008063020080630 4808
CCC0000003 13326331 530229550A 202008042620080426 V4611
CCC0000004 23554261 161340499A 202008082220080822 6868
==============================================================================
CREATE TABLE T1
FILE_ID VARCHAR2(20),
CONT_NBR VARCHAR2(20),
SEG_VALUES VARCHAR2(4000)
==============================================================================
CREATE OR REPLACE PROCEDURE P
AS
l_Fileid T1.file_id%type;
l_Contractnbr t1.CONT_NBR%Type;
BEGIN
FOR REC IN (SELECT SEG_VALUES FROM T ORDER BY RECORD_ID)
LOOP
IF SUBSTR(REC.SEG_VALUES,1,3) ='AAA' THEN
l_Fileid := SUBSTR(REC.SEG_VALUES,10,10);
ELSIF SUBSTR(REC.SEG_VALUES,1,3) ='BBB' THEN
l_Contractnbr := SUBSTR(REC.SEG_VALUES,11,5);
ELSIF SUBSTR(REC.SEG_VALUES,1,3) ='CCC' THEN
INSERT INTO T1 VALUES (l_Fileid,l_Contractnbr,REC.SEG_VALUES);
END IF;
END LOOP;
COMMIT;
EXCEPTION
WHEN OTHERS THEN
RAISE_APPLICATION_ERROR (-20458,SQLERRM);
END P;
==============================================================================
Is there is any simple approch to handle the above scenario in SQL Loader Control file? if possible can you please show me?Handle the above scenario? What above scenario?
Could I guess ... you betcha. Will I guess? Quite another matter.
Please provide full version (all 3 decimal places) and a clear and concise description of what help you need. -
Hi
I have a text file like this:
logs~-~189.138.221.234~[19/Nov/2007:18:39:53 +0100]~mujer.orange.es~/mujer.woo/home/home/index.html~mujer.woo~home~home~index.html~Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; InfoPath.2)~bid=1195493283-1925481236; __em_p=1195493283-1925481236%26bid; GUID=0002D029C7BD07412A7C28F861626364~-~?ord=4939922038660
Im trying to load via sql loader to a table like this:
CREATE TABLE SPY_LOGS_FLOGS
TYPE VARCHAR2(10 BYTE),
PROXY VARCHAR2(30 BYTE),
IP VARCHAR2(30 BYTE),
DATETIME DATE,
REFERER VARCHAR2(100 BYTE),
SPY VARCHAR2(100 BYTE),
SPY0 VARCHAR2(100 BYTE),
SPY1 VARCHAR2(100 BYTE),
SPY2 VARCHAR2(100 BYTE),
SPY3 VARCHAR2(100 BYTE),
BROWSER VARCHAR2(300 BYTE),
COOKIE VARCHAR2(100 BYTE),
UNKNOWN VARCHAR2(100 BYTE),
QS VARCHAR2(100 BYTE)
Im using a control similar to this:
LOAD DATA
infile '../files/spy_logs_flogs'
append
into table spy_logs_flogs
FIELDS TERMINATED BY '~'
TRAILING NULLCOLS
TYPE char,
PROXY char,
IP char,
DATETIME date 'to_date(:DATETIME,'"["yyyymmdd hh24:mi:ss"] +100"')' ,
REFERER char,
SPY char,
SPY0 char,
SPY1 char,
SPY2 char,
SPY3 char,
BROWSER char,
COOKIE char,
UNKNOWN char,
qs char
Im trying to transform the DATETIME field from [19/Nov/2007:18:39:53 +0100] to date 19/10/2007 18:39:53, but have tested with control and cant find the way to do it.
Any help will be appreciate.Play with
select substr('[19/Nov/2007:18:39:53 +0100]',2,20) the_date
from dualand if you get 19/Nov/2007:18:39:53 proceed to
select to_date('19/Nov/2007:18:39:53','DD/MON/YYYY:HH24:MI:SS')
from dual
select to_date('19/Nov/2007:18:39:53','DD/Mon/YYYY:HH24:MI:SS')
from dual
select to_date('19/Nov/2007 18:39:53','DD/MON/YYYY HH24:MI:SS')
from dual
select to_date('19/Nov/2007 18:39:53','DD/Mon/YYYY HH24:MI:SS')
from dualperhaps one of those will work (if it's the one without : then you must replace it with space using substr and || before using to_date)
Regards
Etbin -
SQL Loader Error : ORA-01830: date format picture ends before converting en
I am inserting following data
BES101706 M.E. Deals 7 10/17/2006
through control file :
LOAD DATA
APPEND
INTO TABLE abc_temp
FIELDS TERMINATED BY ' '
TRAILING NULLCOLS
(BATCH_NAME ,
SUPPLIER_NAME ,
SUPPLIER_NBR ,
INV_DATE "to_date(substr(:INV_DATE,1,10),'MM/DD/YYYY' )"
But I am getting this error:
ORA-01830: date format picture ends before converting entire input string
inv_data is a date field in the database.I think it has to do with data format.Exactly.
You have
BES101706*M.E.*Deals*7*10/17/2006
I replace each space with an asterisk. You have 5 columns according to your spec (terminated by '<space>')
SQL Loader doesn't know that M.E. Deals is the supplier name.
It's trying to convert 7 as the date. -
Sql*loader to select distinct data
Hi,
i am getting the following data from a csv file.
For repeated values of phone and dept, i am getting duplicate records of empno, empname and sal
I need to load the distinct record of empno,ename into a emp table
and then move the data salary and phone numbers into different table.
Is it possible to do at sql*loader level
>
EMPNO EMPNAME SAL PHONE DETP
1 TOM 2000 99999 20
1 TOM 2000 22222
2 BEN 3000 33333 30
2 BEN 3000 40
>
thanks
sunilsunil_dba wrote:
Hi,
thanks
sunilSo what's stopping you then to create primary key on empno column ? -
SQL Loader Null Value for Date
Dear buddies,
This is how my date column is in my control file.
dtEdu timestamp(6) with local time zone "YYYY-MM-DD HH24:MI:SS" "nvl (to_date (:dtEdu, 'YYYY-MM-DD HH24:MI:SS'), to_date ('1982-03-01 00:00:00', 'YYYY-MM-DD HH24:MI:SS'))", The problem is some of the columns in dtEdu has NULL values and I couldn't load them.
So, trying to replace it with something else.
Could someone help me?
Thanks a lot.
Nith>
The problem is some of the columns in dtEdu has NULL values and I couldn't load them.
>
I don't know how your so called "NULL" values look like, but if the null data is actually made up of blanks, try adding LTRIM() around :dtEdu. -
Using sql load insert multiple fields data into a single column in database
Hi ,
I have my log file in sun OS box something like this
=======
(07/29/2009 00:02:24.467) 367518 (07/29/2009 00:02:26.214) 949384011
(07/29/2009 00:02:26.236) 3675 (07/29/2009 00:02:28.207) 949395117
(07/29/2009 00:02:28.240) 337710 (07/29/2009 00:02:30.621) 949400864
=============
I am trying to insert the data into oracle data base as follows.
=============================
column1 : (07/29/2009 00:02:24.467)
column2 : 367518
column3 : (07/29/2009 00:02:26.214)
column4 : 949384011
===========================
Can anyone help me with the control file format?
someone suggested me the code below.
==========
LOAD DATA
INFILE 'D:\work\load.txt'
INTO TABLE sample
(col1 POSITION(02:24) char,
col2 POSITION(27:32) INTEGER EXTERNAL,
col3 POSITION(35:57) CHAR,
col4 POSITION(60:68) INTEGER EXTERNAL
===========
but this works only for the fixed length data? Please helpuser11744904 wrote:
Hi ,
I have my log file in sun OS box something like this
=======
(07/29/2009 00:02:24.467) 367518 (07/29/2009 00:02:26.214) 949384011
(07/29/2009 00:02:26.236) 3675 (07/29/2009 00:02:28.207) 949395117
(07/29/2009 00:02:28.240) 337710 (07/29/2009 00:02:30.621) 949400864
=============
I am trying to insert the data into oracle data base as follows.
=============================
column1 : (07/29/2009 00:02:24.467)
column2 : 367518
column3 : (07/29/2009 00:02:26.214)
column4 : 949384011
===========================
Can anyone help me with the control file format?
someone suggested me the code below.
==========
LOAD DATA
INFILE 'D:\work\load.txt'
INTO TABLE sample
(col1 POSITION(02:24) char,
col2 POSITION(27:32) INTEGER EXTERNAL,
col3 POSITION(35:57) CHAR,
col4 POSITION(60:68) INTEGER EXTERNAL
===========
but this works only for the fixed length data? Please helpIs the requirement to load all data in a single column or multiple columns? The thread subject and body are conflicting. -
Problem when using MS Access as data source
I want to get the source data from MS Access Database and load the data into a Oracle Database by OWB.
I created a ODBC for the Access Database,and added the correlative informations in the files such as hs/admin/initmsaces.ora��network/admin/listener.ora��network/admin/tnsname.ora.
Then I created a new module under the "DataBase->Other->ODBC" in OWB,the schema I selected is "Undefine"��it is the only one selection��Then I created some mappings.All these steps are successful.
But when I was deploying the project,OWB reported a wrong: Talbe or View is not exist.
I want to know how can I resolve the problem.
Thanks!I think we are having the same problem and (I think) set up everything as described in the note.
We are using an ODBC connection to an MS-Access database with OWB 9.2. We have successfully defined the data source to OWB, and imported 2 target tables, then mapped one of the tables to a staging table.
The mapping process validates correctly. From Deployment Manager, we register the source file location, which asks for a schema owner, username, and
password. We supply the value admin for each of these as Location Registration windows requires a value for each [no blanks allowed] and the registration is successful.
However, when we Generate/Deploy the mapping, the Generate succeeds, but deployment fails with the error PL/SQL: ORA-00942: table or view does not exist. Looking at the generated code, we see that the SELECT statement in the generated mapping code specifies the source table as owner.table_name@db_link.
From SQL*Plus, the table_name@db_link can be described correctly. Trying to describe owner.table_name@db_link fails with object does not exist error, which is similar to the OWB table does not exist error.
MS-Access has no concept of schema-owner. Is there a way to generate the Mapping without specifying the schema-owner ??. -
SQL Developer problem. Rows without columns on data tab
Hello,
I have a strange behavior in Oracle SQL Developer Version 2.1.0.63. When I'm trying to open the "Data tab" for some tables, SQL Developer shows data rows but without columns! It seems that I can select different rows but I can't see neither any data nor column names.
Under the filter setting there are no available columns either.
At the same time, when I'm trying to open sys tables they are displayed normally.
From the other side, those tables which are not displayed correctly in 2.1.0.63, could be opened in Version 1.5.5 without any problems.
Do you have any ideas?
Thanks in advance.Hi,
Refer to the SQL Developer forum: SQL Developer for SQL Developer related questions -
Hi Experts,
i'm using SQL Loader for loading data from an XML file into the DB , my control file was some thing like that :
load data
infile 'D:data.xml' "str '</dataNode>'"
replace
into table MY_TABLE
where dataNode is the records' separator, this was working fine, what i'm trying to do now is writing all the parameters to a PARFILE , then passing only the PARFILE to the sql loader like the following :
sqlldr PARFILE=myParaFile.par
where myParaFile looks like that :
userid=xxx/xxx
control=xxx.ctl
log=xxx.log
data=D:\data.xml
the problem now that i have removed the INFILE clause from the control file , and i have put the "data" parameter insetad on the PARFILE , the question now is Where shall i write "str '</dataNode>'" to tell the SQL Loader that the input data is in stream format and use </dataNode> as records' separator
I really appreciate your help.My XML File:
<dataNode>
<ProductID>1</ProductID>
<Type>Phone</Type>
</dataNode>
<dataNode>
<ProductID>2</ProductID>
<Type>Sim</Type>
</dataNode>
My Control File :
load data
infile 'D:data.xml' "str '</dataNode>'"
replace
into table MY_TABLE
dummy filler terminated by "<dataNode>",
ProductID enclosed by "<ProductID>" and "</ProductID>",
Type enclosed by "<Type>" and "</Type>"
) -
Sql Loader - Decimal numbers showing in null column
Greetings,
My apologies if this is in the wrong forum section. It seemed to be the most logical.
I have added new column to a control file used in a sql loader upload and I am getting unexpected results. Long story short, I copy foxpro tables from a network directory to my local pc. A foxpro exe converts these tables to .dat files. Sql loader then uploads the .dat files to matching oracle tables. I've run this program from my pc for years with no problems.
Problem now: We added a new column to a foxpro table and to the matching oracle table. This column in FoxPro in null for now - no data at all. I then added the new column to my ctl file for this table. The program runs, sql loader does it's thing with no errors. However, in the new field in Oracle, I'm finding decimal numbers in many of the records, when all records should have null values in this field. I've checked all other columns in the oracle table and the data looks accurate. I'm not sure why I'm getting these decimal values in the new column.
My log and bad files show no hints of any problems. The bad file is empty for this table.
At first I thought the positioning of the new column in the fox table, .ctl file and the oracle table were not lining up correctly, but I checked and they are.
I've double checked the FoxPro table and all records for this new column are null.
I'm not sure what to check for next or what to test. I am hoping someone in this forum might lend a clue or has maybe seen this problem before. Below is my control file. The new column is the last one: fromweb_id. It is a number field in both FoxPro and Oracle.
Thanks for any advise.
JOBS table control file:
load data
infile 'convdata\fp_ora\JOBS.dat' "str X'08'"
into table JOBS
fields terminated by X'07'
TRAILING NULLCOLS
(SID,
CO_NAME "replace(replace(:CO_NAME,chr(11),chr(10)),chr(15),chr(13))",
JOB_TITLE "replace(replace(:JOB_TITLE,chr(11),chr(10)),chr(15),chr(13))",
CREDITS,
EARN_DATE date "mm/dd/yyyy",
COMMENTS CHAR(2000) "replace(replace(:COMMENTS,chr(11),chr(10)),chr(15),chr(13))",
DONT_SHOW,
PC_SRC "replace(replace(:PC_SRC,chr(11),chr(10)),chr(15),chr(13))",
PC_SRC_NO,
SALARY,
SALFOR,
ROOM,
BOARD,
TIPS,
UPD_DATE date "mm/dd/yyyy hh12:mi:ss am",
STUKEY,
JOBKEY,
JO_COKEY,
JO_CNKEY,
JO_ZUKEY,
EMPLID,
CN_NAME "replace(replace(:CN_NAME,chr(11),chr(10)),chr(15),chr(13))",
JOB_START date "mm/dd/yyyy",
JOB_END date "mm/dd/yyyy",
FROMWEB_ID)I apologize for not explaining how this was resolved. Sql Loader was working as it should.
The problem was due to new fields being added to the FoxPro table, along with the fromweb_id column, that I was not informed about. I was asked to add a column named fromweb_id to the oracle jobs table and to the sql-loader program. I was not told that there were other columns added at the same time. In the foxpro table, the fromweb_id column was the last column added.
The jobs.dat file contained data from all columns in the foxpro table, including all the new columns. I only added the "fromweb_id" to the control file, which is what I was asked to do. When it ran, it was getting values from one of the new columns and the values were being uploaded into the fromweb_id column in Oracle. It is that simple.
When I had checked the FoxPro table earlier, I did not pickup on the other new columns. I was focussing in on looking for values in the fromweb_id column. When back-tracing data in the jobs.dat file, I found a value in the fromweb_id column that matched a value in a differnt column (new column) in FoxPro. That is when I realized the other new columns. I instantly knew what the problem was.
Thanks for all the feedback. I'm sorry if this was an inconvenience to anyone. I'll try to dig a little deeper next time. Lessons learned...
regards,
Maybe you are looking for
-
Error message - Unable to find proxy server - how can I solve this problem
When I try to enter some sites I get the error message: Unable to find the proxy server, Firefox is configured to use a proxy server that can't be found. This happened suddenly and I'm not sure why or how I can fix it, it doesn't help that most help
-
Windows 8.1 Hanging / performance issue
Hi , Today i clean install using windows 8.1 and after that i am facing lot of issues. like,. 1. Installation itself very slow. ( extracting files took almost 30 mins ) 2. After successfully installed . ( by clicking any icons it hangs for 2-5 second
-
How do I import an image directly from the internet without printing and scanning it in first?
How do I import an image directly from the internet without printing and scanning it in first?
-
[Solved] keyboard layout
I think i've set the keyboard properly but I clearly haven't after a rebook the alter for number 2 is different and the ash key. I believe it has returned to it's defaul but am not sure why? localectl status Says that the key layout is N/A I believe
-
Is there a way to have files available for download on your iweb site?
Ok here's the question. If I wanted a image file or music file to be available for download on your iweb site.....would that be possible? Kind of like when you go to a website and sometimes it has a link you can press to download a file. If you click