Error in sql loader
hi,
when i am trying to load data using sql loader i come across the following errors and i was unable to load data into my staging tables.
please explain me what are they and how to rectify them.
SQL*Loader-524: partial record found at end of datafile (D:\oracle\prodappl\fnd\11.5.0\bin\sri3.ctl)
Program exited with status 3
SQL*Loader-500: Unable to open file (D:\oracle\prodappl\fnd\11.5.0\bin\sr2.ctl)
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified.
please tell me where can i get complete information on errors occured during loading of data.
please tell me whether there is any list of common errors encountered in sql*oader
thanks in advance
siddam
Message was edited by:
siddam
null
Both of datafile and control file should have line feed characters at the end.
Check this site :
http://radio.weblogs.com/0108008/stories/2003/04/11/experienceWithSqlLoader.html
Similar Messages
-
Hi,
I use SQL Loader to load files into my database running on Suse Linux. The loader is invoked by a Java application.
In Oracle 9i my string would be something like
sqlldr DATA='opt/test information/sample.dat' PARFILE=/opt/test.par
It worked.
When I ran the same string in 10g I got an error like
" multiple values not allowed for parameter 'data' "
I tried escaping the ' with a \ , like
sqlldr DATA=\'opt/test information/sample.dat\' PARFILE=/opt/test.par
Now it gives me a different error
SQL*Loader-500: Unable to open file (opt/test information/302.DAT)
SQL*Loader-553: file not found
I cannot remove the space from the directory. It has to be "test information".
Can anybody help me out?
Thanks,
Karthikor better yet, you are on Linux so you have the luxury of creating a symbolic link to that directory and make the sym link without spaces and then use that in your sqlldr command line.
you can keep the directory with spaces and have sqlldr run from the sym link. -
I've this process that would perform multiple sql load into the same table with append option. It was working fine and then I get this error in 1 of my load.
Number to load: ALL
Number to skip: 0
Errors allowed: 50
Continuation: none specified
Path used: Direct
Table OWNER.SCORES_TEMP, loaded from every logical record.
Insert option in effect for this table: APPEND
TRAILING NULLCOLS option in effect
Column Name Position Len Term Encl Datatype
ID FIRST * | O(") CHARACTER
HSE NEXT * | O(") CHARACTER
PROB NEXT * | O(") CHARACTER
MODEL NEXT * | O(") CHARACTER
SCORE_DATE NEXT * | O(") DATE YYYY-MM-DD
SQL*Loader-951: Error calling once/load initialization
ORA-00604: error occurred at recursive SQL level 1
ORA-00054: resource busy and acquire with NOWAIT specified
I;ve read that update could cause this error, but haven't found anything on sql loading. What to do?
KuBe sure that no one (tools, program, session, previous sqlldr session, etc ) are using the underlining table.
ciao -
Hi,
when i run this using CMD it runs without any problem :
sqlplus u_net/u_net@"(DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=ORCL))(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.0.53)(PORT=1521)))"
And when i run this it gives me an error:
sqlldr userid=u_net/u_net@"(DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=ORCL))(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.0.53)(PORT=1521)))" control='C:\Documents and Settings\faheem.latif\Desktop\input\ControlFile.txt' skip=1 log=emp.log
error is :
LRM-00116: syntax error at 'u_net/u_net@(DES' following '='
Help please
Faheem LatifSure this is:
sqlldr userid='u_net/u_net@(DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=ORCL))(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.0.53)(PORT=1521)))' control=ControlFile.txt skip=1 log=emp.log -
I am using sql loader command line sqlldr to load 141306 records into my table. It ended with an error message --
SQL*Loader-605: Non-data dependent ORACLE error occurred -- load discontinued.
Checking for data load failures
Checking Log data for clinic_biotox table data load
90970 Rows successfully loaded.
78 Rows not loaded due to data errors.
And moreover (90970+78 = 91048) which is much less than 141306
Any ideas as to what might have happened ?
ThanksHave you checked the sqlldr log file (the name of which you should have supplied at the command line)? This sometimes provides additional information as to what occurred.
I would also say that the reason why your record counts do not tally up like they should would be because the error occurred before sqlldr was able to complete the load.
The last thing I can offer would be for you to check what your allowable error threshold is within your logfile. It could be that you exceeded the allowable number of bad records and as such caused the load to fail.
Hope this helps... -
Error in loading data using SQL loader
I am getting a error like ‘SQL*Loader -350 syntax error of illegal combination of non-alphanumeric characters’ while loading a file using SQL loader in RHEL. The command used to run SQL*Loader is:
Sqlldr userid=<username>/<password> control =data.ctl
The control file, data.ctl is :
LOAD data
infile '/home/oraprod/data.txt'
append into table test
empid terminated by ',',
fname terminated by ',',
lname terminated by ',',
salary terminated by whitespace
The data.txt file is:
1,Kaushal,halani,5000
2,Chetan,halani,1000
I hope, my question is clear.
Please revert with the reply to my query.
RegardsReplace ''{" by "(" in your control file
LOAD data
infile 'c:\data.txt'
append into table emp_t
empid terminated by ',',
fname terminated by ',',
lname terminated by ',',
salary terminated by whitespace
C:\>sqlldr user/pwd@database control=c.ctl
SQL*Loader: Release 10.2.0.3.0 - Production on Wed Nov 13 10:10:24 2013
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Commit point reached - logical record count 1
Commit point reached - logical record count 2
SQL> select * from emp_t;
EMPID FNAME LNAME SALARY
1 Kaushal halani 5000
2 Chetan halani 1000
Best regards
Mohamed Houri -
Error while calling sql loader from shell script.
In the table DBMS_SCHEDULER_JOB_RUN_DETAILS im getting the error as ""SQL*Loader-128: unable to begin a session ORA-01017: invalid username/password; logon denied""....do we need previliges for creating session of the db user????.....or wht other settings we require to do.....if the username and password used is right.
user1122577 wrote:
SQL*Loader-128: unable to begin a session ORA-01017: invalid username/password; logon deniedI don't know, but somehow the error you recived looks like ORA-01017 : )
[oracle@dell ~]$ sqlplus ring/ring
SQL*Plus: Release 10.2.0.4.0 - Production on Thu Jul 22 11:50:58 2010
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
With the Partitioning, Data Mining and Real Application Testing options
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
With the Partitioning, Data Mining and Real Application Testing options
[oracle@dell ~]$
[oracle@dell ~]$
[oracle@dell ~]$ sqlldr ring/ring
control = i don't have it
SQL*Loader: Release 10.2.0.4.0 - Production on Thu Jul 22 11:51:08 2010
Copyright (c) 1982, 2007, Oracle. All rights reserved.
SQL*Loader-500: Unable to open file (i don't have it.ctl)
SQL*Loader-553: file not found
SQL*Loader-509: System error: No such file or directory
[oracle@dell ~]$
[oracle@dell ~]$
[oracle@dell ~]$ sqlldr ring/wrongpassword
control = i don't have it again
SQL*Loader: Release 10.2.0.4.0 - Production on Thu Jul 22 11:51:38 2010
Copyright (c) 1982, 2007, Oracle. All rights reserved.
SQL*Loader-128: unable to begin a session
ORA-01017: invalid username/password; logon denied
[oracle@dell ~]$ -
SQL Loader Multibyte character error
Hello,
Oracle Database 11g Release 11.2.0.2.0 - 64bit Production
Database Characterset: WE8MSWIN1252
To load an utf8 File (UTF-8 Unicode text) i use option characterset UTF8 in controlfile.
All went fine until in textfile the column is filled up with 40 chars and
german umlaute included (ÜÖÄüöä...)
Loader stops (errors=0) and gives:
Record 146466: Rejected - Error on table 'TableName', column 'ColumnName'.
Multibyte character error
* use CHAR(40) and POSITION(start-end) for field description - no help
* modify column, from VC2(40 char) to VC2(50 char) - no help
* without characterset UTF8 option i got wrong characters for german umlaute - no help
* manual insert the data from this row with NO problems !
any hint or workaround?
Regards
MichaelHi Werner,
on my linux desktop:
$ file test.dat
test.dat: UTF-8 Unicode text, with very long lines
my colleague is working on a windows system.
On both systems exact the same error from SQL Loader.
Btw, try with different number of special characters (german umlaute and euro) and there is no chance to load without the error
when to many (?) special characters or data is long as column length and special characters included.
Regards
Michael -
SQL Loader Multibyte character error, LENGTH SEMANTICS CHARACTER
Hi,
startet SQL Loader Multibyte character error
{thread:id=2340726}
some mod locked the thread, why?
the solution for others:
add LENGTH SEMANTICS CHARACTER to the controlfile
LOAD DATA characterset UTF8 LENGTH SEMANTICS CHARACTER
TRUNCATE
INTO TABLE utf8file_to_we8mswin1252
ID CHAR(1)
, TEXT CHAR(40)
)Regards
MichaelHi Werner,
on my linux desktop:
$ file test.dat
test.dat: UTF-8 Unicode text, with very long lines
my colleague is working on a windows system.
On both systems exact the same error from SQL Loader.
Btw, try with different number of special characters (german umlaute and euro) and there is no chance to load without the error
when to many (?) special characters or data is long as column length and special characters included.
Regards
Michael -
Multibyte character error... (SQL*Loader)
Hi,
I am getting error while loading data via SQL*Loader:
"Multibyte character error." while loading data from flat files comgin from mailframe into oracle 10g Rel2 with character set AL32UTF8
here is my .ctl loader file
OPTIONS (ERRORS=9999, ROWS=500, BINDSIZE=65536, SILENT=(FEEDBACK) )
LOAD DATA
APPEND
INTO TABLE GLSTB270
GLS27001_CONUMBER POSITION(0001:0011)
, GLS27002_STORE POSITION(0012:0012)
, GLS27003_STATUS POSITION(0013:0013)
, GLS27004_CUST_TYPE POSITION(0014:0014)
, GLS27005_EXTERN POSITION(0015:0025)
, GLS27006_ADD_DATE POSITION(0026:0039) DATE "yyyymmddhh24miss"
, GLS27007_EXTCUST POSITION(0040:0071)
, GLS27008_LPICKCHRO POSITION(0072:0073)
, GLS27009_LAST_ITEM POSITION(0074:0075)
, GLS27010_DLVADD1 POSITION(0076:0107)
, GLS27011_DLVADD2 POSITION(0108:0139)
, GLS27012_DLVADD3 POSITION(0140:0171)
, GLS27013_DLVPOSTAL POSITION(0172:0181)
, GLS27014_DLVCOUNTY POSITION(0182:0213)
, GLS27015_DLVCNTRY POSITION(0214:0215)
, GLS27016_SPECADD POSITION(0216:0216)
, GLS27017_GROUPING POSITION(0217:0217)
, GLS27018_CO_TYPE POSITION(0218:0218)
, GLS27019_QUOTATION POSITION(0219:0226) DATE "yyyymmdd"
NULLIF (GLS27019_QUOTATION = "00000000")
, GLS27020_USHIP POSITION(0227:0227)
, GLS27021_CONFIRM POSITION(0228:0228)
, GLS27022_UNUDEMAND POSITION(0229:0229)
, GLS27023_FREECHARG POSITION(0230:0230)
, GLS27024_CONF_DATE POSITION(0231:0238) DATE "yyyymmdd"
NULLIF (GLS27024_CONF_DATE = "00000000")
, GLS27025_CONTACT POSITION(0239:0270)
, GLS27026_LICENCE POSITION(0271:0290)
, GLS27027_WARRANT POSITION(0291:0291)
, GLS27028_WARR_AUTH POSITION(0292:0301)
, GLS27029_CURRENCY POSITION(0302:0304)
, GLS27030_FSE POSITION(0305:0310)
, GLS27031_CARRIER POSITION(0311:0320)
, GLS27032_MANPRICIN POSITION(0321:0321)
, GLS27033_ADD_USER POSITION(0322:0329)
, GLS27034_AUTO_INV POSITION(0330:0330)
, GLS27035_PRIFACT POSITION(0331:0338)
, GLS27036_CRELETTER POSITION(0339:0353)
, GLS27025_CONTACT POSITION(0239:0270)
, GLS27026_LICENCE POSITION(0271:0290)
, GLS27027_WARRANT POSITION(0291:0291)
, GLS27028_WARR_AUTH POSITION(0292:0301)
, GLS27029_CURRENCY POSITION(0302:0304)
, GLS27030_FSE POSITION(0305:0310)
, GLS27031_CARRIER POSITION(0311:0320)
, GLS27032_MANPRICIN POSITION(0321:0321)
, GLS27033_ADD_USER POSITION(0322:0329)
, GLS27034_AUTO_INV POSITION(0330:0330)
, GLS27035_PRIFACT POSITION(0331:0338)
, GLS27036_CRELETTER POSITION(0339:0353)
, GLS27037_SHIPMENT POSITION(0354:0354)
, GLS27038_DIVISION POSITION(0355:0356)
, GLS27039_ACCREF POSITION(0357:0365)
, GLS27040_EXPENSE POSITION(0366:0366)
, GLS27041_ALREADY POSITION(0367:0367)
, GLS27042_SITE POSITION(0368:0375)
, GLS27043_SITE_DES POSITION(0376:0395)
, GLS27044_ADDTYPE POSITION(0396:0396)
, GLS27045_PROJECT POSITION(0397:0406)
, GLS27046_SITE_DOWN POSITION(0407:0407)
, GLS27047_QUOTATION POSITION(0408:0408)
, GLS27048_DELIVERY POSITION(0409:0428)
, GLS27049_CONSPERM POSITION(0429:0429)
, GLS27050_CHARACT POSITION(0430:0432)
, GLS27051_CONTRACT POSITION(0433:0434)
, GLS27052_FSE POSITION(0435:0435)
, GLS27053_SYSTEM POSITION(0436:0445)
, GLS27054_SYSTEM_D POSITION(0446:0465)
, GLS27055_JOBSTATUS POSITION(0466:0468)
, GLS27056_BO_L_CHRO POSITION(0469:0470)
, GLS27057_BUYER POSITION(0471:0480)
, GLS27058_SCREASON POSITION(0481:0481)
, GLS27059_L_M_DATE POSITION(0482:0495) DATE "yyyymmddhh24miss"
, GLS27061_L_M_USER POSITION(0496:0503)
, GLS27062_SCREEN POSITION(0504:0507)
, GLS27063_CUST_EXP POSITION(0508:0508)
, GLS270F1_GLS08001 POSITION(0509:0509)
, GLS270F2_GLS08002 POSITION(0510:0511)
, GLS270F3_GLS25001 POSITION(0512:0512)
, GLS270F4_GLS25002 POSITION(0513:0522)
)and here is the .log file containing error msg for sql*loader:
SQL*Loader: Release 9.2.0.8.0 - Production on Thu Apr 5 15:35:21 2007
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Control File: /opt/oracle/test/admin/glsdbt01/load/glstb270.ctl
Data File: /opt/oracle/test/admin/glsdbt01/download2/GLSTB270.ZZ.CRE
Bad File: /dblog02/glsdbt01/load/results/glsltb270zz.bad
Discard File: /dblog02/glsdbt01/load/results/glsltb270zz.dis
(Allow all discards)
Number to load: ALL
Number to skip: 0
Errors allowed: 9999
Continuation: none specified
Path used: Direct
Silent options: FEEDBACK
Table GLSTB270, loaded from every logical record.
Insert option in effect for this table: APPEND
Column Name Position Len Term Encl Datatype
GLS27001_CONUMBER 1:11 11 CHARACTER
GLS27002_STORE 12:12 1 CHARACTER
GLS27003_STATUS 13:13 1 CHARACTER
GLS27004_CUST_TYPE 14:14 1 CHARACTER
GLS27005_EXTERN 15:25 11 CHARACTER
GLS27006_ADD_DATE 26:39 14 DATE yyyymmddhh24miss
GLS27007_EXTCUST 40:71 32 CHARACTER
GLS27008_LPICKCHRO 72:73 2 CHARACTER
GLS27009_LAST_ITEM 74:75 2 CHARACTER
GLS27010_DLVADD1 76:107 32 CHARACTER
GLS27011_DLVADD2 108:139 32 CHARACTER
GLS27012_DLVADD3 140:171 32 CHARACTER
GLS27013_DLVPOSTAL 172:181 10 CHARACTER
GLS27014_DLVCOUNTY 182:213 32 CHARACTER
GLS27015_DLVCNTRY 214:215 2 CHARACTER
GLS27016_SPECADD 216:216 1 CHARACTER
GLS27017_GROUPING 217:217 1 CHARACTER
GLS27018_CO_TYPE 218:218 1 CHARACTER
GLS27019_QUOTATION 219:226 8 DATE yyyymmdd
NULL if GLS27019_QUOTATION = 0X3030303030303030(character '00000000')
GLS27020_USHIP 227:227 1 CHARACTER
GLS27020_USHIP 227:227 1 CHARACTER
GLS27021_CONFIRM 228:228 1 CHARACTER
GLS27022_UNUDEMAND 229:229 1 CHARACTER
GLS27023_FREECHARG 230:230 1 CHARACTER
GLS27024_CONF_DATE 231:238 8 DATE yyyymmdd
NULL if GLS27024_CONF_DATE = 0X3030303030303030(character '00000000')
GLS27025_CONTACT 239:270 32 CHARACTER
GLS27026_LICENCE 271:290 20 CHARACTER
GLS27027_WARRANT 291:291 1 CHARACTER
GLS27028_WARR_AUTH 292:301 10 CHARACTER
GLS27029_CURRENCY 302:304 3 CHARACTER
GLS27030_FSE 305:310 6 CHARACTER
GLS27031_CARRIER 311:320 10 CHARACTER
GLS27032_MANPRICIN 321:321 1 CHARACTER
GLS27033_ADD_USER 322:329 8 CHARACTER
GLS27034_AUTO_INV 330:330 1 CHARACTER
GLS27035_PRIFACT 331:338 8 CHARACTER
GLS27036_CRELETTER 339:353 15 CHARACTER
GLS27037_SHIPMENT 354:354 1 CHARACTER
GLS27038_DIVISION 355:356 2 CHARACTER
GLS27039_ACCREF 357:365 9 CHARACTER
GLS27040_EXPENSE 366:366 1 CHARACTER
GLS27041_ALREADY 367:367 1 CHARACTER
GLS27042_SITE 368:375 8 CHARACTER
GLS27043_SITE_DES 376:395 20 CHARACTER
GLS27044_ADDTYPE 396:396 1 CHARACTER
GLS27045_PROJECT 397:406 10 CHARACTER
GLS27046_SITE_DOWN 407:407 1 CHARACTER
GLS27047_QUOTATION 408:408 1 CHARACTER
GLS27048_DELIVERY 409:428 20 CHARACTER
GLS27049_CONSPERM 429:429 1 CHARACTER
GLS27050_CHARACT 430:432 3 CHARACTER
GLS27051_CONTRACT 433:434 2 CHARACTER
GLS27052_FSE 435:435 1 CHARACTER
GLS27053_SYSTEM 436:445 10 CHARACTER
GLS27054_SYSTEM_D 446:465 20 CHARACTER
GLS27055_JOBSTATUS 466:468 3 CHARACTER
GLS27056_BO_L_CHRO 469:470 2 CHARACTER
GLS27057_BUYER 471:480 10 CHARACTER
GLS27058_SCREASON 481:481 1 CHARACTER
GLS27059_L_M_DATE 482:495 14 DATE yyyymmddhh24miss
GLS27061_L_M_USER 496:503 8 CHARACTER
GLS27062_SCREEN 504:507 4 CHARACTER
GLS27063_CUST_EXP 508:508 1 CHARACTER
GLS27063_CUST_EXP 508:508 1 CHARACTER
GLS270F1_GLS08001 509:509 1 CHARACTER
GLS270F2_GLS08002 510:511 2 CHARACTER
GLS270F3_GLS25001 512:512 1 CHARACTER
GLS270F4_GLS25002 513:522 10 CHARACTER
Record 20405: Rejected - Error on table GLSTB270, column GLS27043_SITE_DES.
Multibyte character error.
Record 20418: Rejected - Error on table GLSTB270, column GLS27043_SITE_DES.
Multibyte character error.
Record 20419: Rejected - Error on table GLSTB270, column GLS27043_SITE_DES.
Multibyte character error.
Record 20420: Rejected - Error on table GLSTB270, column GLS27043_SITE_DES.
Multibyte character error.
Record 20425: Rejected - Error on table GLSTB270, column GLS27043_SITE_DES.
Multibyte character error.
Record 20426: Rejected - Error on table GLSTB270, column GLS27043_SITE_DES.
Multibyte character error.
Record 20436: Rejected - Error on table GLSTB270, column GLS27043_SITE_DES.
Multibyte character error.
Record 20452: Rejected - Error on table GLSTB270, column GLS27043_SITE_DES.
Multibyte character error.
Record 20481: Rejected - Error on table GLSTB270, column GLS27043_SITE_DES.
Multibyte character error.
Record 20482: Rejected - Error on table GLSTB270, column GLS27043_SITE_DES.
Multibyte character error.
Record 20483: Rejected - Error on table GLSTB270, column GLS27043_SITE_DES.
Multibyte character error.
Record 20484: Rejected - Error on table GLSTB270, column GLS27043_SITE_DES.
Multibyte character error.
Record 20485: Rejected - Error on table GLSTB270, column GLS27043_SITE_DES.
Multibyte character error.
Record 20486: Rejected - Error on table GLSTB270, column GLS27043_SITE_DES.
Multibyte character error.
Record 20487: Rejected - Error on table GLSTB270, column GLS27043_SITE_DES.
Multibyte character error.
Record 20494: Rejected - Error on table GLSTB270, column GLS27043_SITE_DES.
Multibyte character error.
Record 20499: Rejected - Error on table GLSTB270, column GLS27043_SITE_DES.
Multibyte character error.
Record 20502: Rejected - Error on table GLSTB270, column GLS27043_SITE_DES.
Multibyte character error.
Record 20503: Rejected - Error on table GLSTB270, column GLS27043_SITE_DES.
Multibyte character error.Can you pls help..?
thanksHi Werner,
on my linux desktop:
$ file test.dat
test.dat: UTF-8 Unicode text, with very long lines
my colleague is working on a windows system.
On both systems exact the same error from SQL Loader.
Btw, try with different number of special characters (german umlaute and euro) and there is no chance to load without the error
when to many (?) special characters or data is long as column length and special characters included.
Regards
Michael -
SQL*Loader-929: Error parsing insert statement for table
Hi,
I get the following error with SQL*Loader:
Table MYTABLE loaded from every logical record.
Insert option in effect for this table: INSERT
Column Name Position Len Term Encl Datatype
IDE FIRST * ; CHARACTER
SQL string for column : "mysequence.NEXTVAL"
CSI_NBR 1:10 10 ; CHARACTER
POLICY_NBR 11:22 12 ; CHARACTER
CURRENCY_COD 23:25 3 ; CHARACTER
POLICY_STAT 26:27 2 ; CHARACTER
PRODUCT_COD 28:35 8 ; CHARACTER
END_DAT 44:53 10 ; CHARACTER
FISCAL_COD 83:83 1 ; CHARACTER
TOT_VAL 92:112 21 ; CHARACTER
SQL*Loader-929: Error parsing insert statement for table MYTABLE.
ORA-01031: insufficient privileges
I am positive that I can SELECT the sequence and INSERT into the table with the user invoking sql*loader.
Where does that "ORA-01031" come from?
Regards
...Options:
1) you are wrong about privileges OR
2) you have the privilege only when you connect via SQL*Plus (or whichever other tool you used to test the insert).
Is it possible that during your test you enabled the role which granted you the INSERT privilege - and that SQL*Loader doesn't do this?
Can you see the table in this list?
select *
from user_tab_privs_recd
where table_name='MY_TABLE'
and owner='table owner whoever';
select *
from user_role_privs;Any roles where DEFAULT_ROLE is not YES?
HTH
Regards Nigel -
SQL*Loader-350: Syntax error at line 1.
I am getting an systax error saying :
SQL*Loader-350: Syntax error at line 1.
Expecting keyword LOAD, found "ï".
What could be the prob ??description of the control file :
LOAD DATA
APPEND INTO TABLE TEST_UPDATE
FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"'
TRAILING NULLCOLS
(STATUS constant 3,
CID sequence (count),
SUBJECT_ID constant 0,
PNO "RTRIM(LTRIM(:PID))",
FREQ NULLIF VISIT = BLANKS,
INV "RTRIM(LTRIM(:INV))",
PNUM NULLIF PAGENUM = BLANKS,
VDT DATE "DD/MM/YYYY HH24:MI:SS"
NULLIF VISIT_DATE = BLANKS,
MKEY "RTRIM(LTRIM(:MASTERKEY))",
DKEY "RTRIM(LTRIM(:DETAILKEY))")
I found a sysntax error for this. Plz suggest. -
"ORA-00054 Resource Busy Error" when running SQL*Loader in Parallel
Hi all,
Please help me on an issue. We are using Datastage which uses sql*loader to load data into an Oracle Table. SQL*Loader invokes 8 parallel sessions for insert on the table. When doing so, we are facing the following error intermittently:
SQL*Loader-951: Error calling once/load initialization
ORA-00604: error occurred at recursive SQL level 1
ORA-00054: resource busy and acquire with NOWAIT specifiedSince the control file is generated automatically by datastage, we cannot modify/change the options and test. Control File for the same is:
OPTIONS(DIRECT=TRUE, PARALLEL=TRUE, SKIP_INDEX_MAINTENANCE=YES)
LOAD DATA INFILE 'ora.2958.371909.fifo.1' "FIX 1358"
APPEND INTO TABLE X
x1 POSITION(1:8) DECIMAL(15,0) NULLIF (1:8) = X'0000000000000000',
x2 POSITION(9:16) DECIMAL(15,0) NULLIF (9:16) = X'0000000000000000',
x3 POSITION(17:20) INTEGER NULLIF (17:20) = X'80000000',
IDNTFR POSITION(21:40) NULLIF (21:40) = BLANKS,
IDNTFR_DTLS POSITION(41:240) NULLIF (41:240) = BLANKS,
FROM_DATE POSITION(241:259) DATE "YYYY-MM-DD HH24:MI:SS" NULLIF (241:259) = BLANKS,
TO_DATE POSITION(260:278) DATE "YYYY-MM-DD HH24:MI:SS" NULLIF (260:278) = BLANKS,
DATA_SOURCE_LKPCD POSITION(279:283) NULLIF (279:283) = BLANKS,
EFFECTIVE_DATE POSITION(284:302) DATE "YYYY-MM-DD HH24:MI:SS" NULLIF (284:302) = BLANKS,
REMARK POSITION(303:1302) NULLIF (303:1302) = BLANKS,
OPRTNL_FLAG POSITION(1303:1303) NULLIF (1303:1303) = BLANKS,
CREATED_BY POSITION(1304:1311) DECIMAL(15,0) NULLIF (1304:1311) = X'0000000000000000',
CREATED_DATE POSITION(1312:1330) DATE "YYYY-MM-DD HH24:MI:SS" NULLIF (1312:1330) = BLANKS,
MODIFIED_BY POSITION(1331:1338) DECIMAL(15,0) NULLIF (1331:1338) = X'0000000000000000',
MODIFIED_DATE POSITION(1339:1357) DATE "YYYY-MM-DD HH24:MI:SS" NULLIF (1339:1357) = BLANKS
)- it occurs intermittently. When this job runs, no one will be accessing the database or the tables.
- When we do not run in parallel, then we are not facing the error but it is very slow (obviously).Just in case, I am also attaching the Datastage Logs:
Item #: 466
Event ID: 1467
Timestamp: 2009-06-02 23:03:19
Type: Info
User Name: dsadm
Message: main_program: APT configuration file: /clu01/datastage/Ascential/DataStage/Configurations/default.apt
node "node1"
fastname "machine_name"
pools ""
resource disk "/clu01/datastage/Ascential/DataStage/Datasets" {pools ""}
resource scratchdisk "/clu01/datastage/Ascential/DataStage/Scratch" {pools ""}
node "node2"
fastname "machine_name"
pools ""
resource disk "/clu01/datastage/Ascential/DataStage/Datasets" {pools ""}
resource scratchdisk "/clu01/datastage/Ascential/DataStage/Scratch" {pools ""}
node "node3"
fastname "machine_name"
pools ""
resource disk "/clu01/datastage/Ascential/DataStage/Datasets" {pools ""}
resource scratchdisk "/clu01/datastage/Ascential/DataStage/Scratch" {pools ""}
node "node4"
fastname "machine_name"
pools ""
resource disk "/clu01/datastage/Ascential/DataStage/Datasets" {pools ""}
resource scratchdisk "/clu01/datastage/Ascential/DataStage/Scratch" {pools ""}
node "node5"
fastname "machine_name"
pools ""
resource disk "/clu01/datastage/Ascential/DataStage/Datasets" {pools ""}
resource scratchdisk "/clu01/datastage/Ascential/DataStage/Scratch" {pools ""}
node "node6"
fastname "machine_name"
pools ""
resource disk "/clu01/datastage/Ascential/DataStage/Datasets" {pools ""}
resource scratchdisk "/clu01/datastage/Ascential/DataStage/Scratch" {pools ""}
node "node7"
fastname "machine_name"
pools ""
resource disk "/clu01/datastage/Ascential/DataStage/Datasets" {pools ""}
resource scratchdisk "/clu01/datastage/Ascential/DataStage/Scratch" {pools ""}
node "node8"
fastname "machine_name"
pools ""
resource disk "/clu01/datastage/Ascential/DataStage/Datasets" {pools ""}
resource scratchdisk "/clu01/datastage/Ascential/DataStage/Scratch" {pools ""}
Item #: 467
Event ID: 1468
Timestamp: 2009-06-02 23:03:20
Type: Warning
User Name: dsadm
Message: main_program: Warning: the value of the PWD environment variable (/clu01/datastage/Ascential/DataStage/DSEngine) does not appear to be a synonym for the current working directory (/clu01/datastage/Ascential/DataStage/Projects/Production). The current working directory will be used, but if your ORCHESTRATE job does not start up correctly, you should set your PWD environment variable to a value that will work on all nodes of your system.
Item #: 468
Event ID: 1469
Timestamp: 2009-06-02 23:03:32
Type: Warning
User Name: dsadm
Message: Lkp_1: Input dataset 1 has a partitioning method other than entire specified; disabling memory sharing.
Item #: 469
Event ID: 1470
Timestamp: 2009-06-02 23:04:22
Type: Warning
User Name: dsadm
Message: Lkp_2: Input dataset 1 has a partitioning method other than entire specified; disabling memory sharing.
Item #: 470
Event ID: 1471
Timestamp: 2009-06-02 23:04:30
Type: Warning
User Name: dsadm
Message: Xfmer1: Input dataset 0 has a partitioning method other than entire specified; disabling memory sharing.
Item #: 471
Event ID: 1472
Timestamp: 2009-06-02 23:04:30
Type: Warning
User Name: dsadm
Message: Lkp_2: When checking operator: Operator of type "APT_LUTProcessOp": will partition despite the
preserve-partitioning flag on the data set on input port 0.
Item #: 472
Event ID: 1473
Timestamp: 2009-06-02 23:04:30
Type: Warning
User Name: dsadm
Message: SKey_1: When checking operator: A sequential operator cannot preserve the partitioning
of the parallel data set on input port 0.
Item #: 473
Event ID: 1474
Timestamp: 2009-06-02 23:04:30
Type: Warning
User Name: dsadm
Message: SKey_2: When checking operator: Operator of type "APT_GeneratorOperator": will partition despite the
preserve-partitioning flag on the data set on input port 0.
Item #: 474
Event ID: 1475
Timestamp: 2009-06-02 23:04:30
Type: Warning
User Name: dsadm
Message: buffer(1): When checking operator: Operator of type "APT_BufferOperator": will partition despite the
preserve-partitioning flag on the data set on input port 0.
Item #: 475
Event ID: 1476
Timestamp: 2009-06-02 23:04:30
Type: Info
User Name: dsadm
Message: Tgt_member: When checking operator: The -index rebuild option has been included; in order for this option to be
applicable and to work properly, the environment variable APT_ORACLE_LOAD_OPTIONS should contain the options
DIRECT and PARALLEL set to TRUE, and the option SKIP_INDEX_MAINTENANCE set to YES;
this variable has been set by the user to `OPTIONS(DIRECT=TRUE, PARALLEL=TRUE, SKIP_INDEX_MAINTENANCE=YES)'.
Item #: 476
Event ID: 1477
Timestamp: 2009-06-02 23:04:35
Type: Info
User Name: dsadm
Message: Tgt_member_idtfr: When checking operator: The -index rebuild option has been included; in order for this option to be
applicable and to work properly, the environment variable APT_ORACLE_LOAD_OPTIONS should contain the options
DIRECT and PARALLEL set to TRUE, and the option SKIP_INDEX_MAINTENANCE set to YES;
this variable has been set by the user to `OPTIONS(DIRECT=TRUE, PARALLEL=TRUE, SKIP_INDEX_MAINTENANCE=YES)'.
Item #: 477
Event ID: 1478
Timestamp: 2009-06-02 23:04:41
Type: Warning
User Name: dsadm
Message: Lkp_2,6: Ignoring duplicate entry at table record 1; no further warnings will be issued for this table
Item #: 478
Event ID: 1479
Timestamp: 2009-06-02 23:04:41
Type: Warning
User Name: dsadm
Message: Tgt_member_idtfr,0: SQL*Loader-951: Error calling once/load initialization
Item #: 479
Event ID: 1480
Timestamp: 2009-06-02 23:04:41
Type: Warning
User Name: dsadm
Message: Tgt_member_idtfr,0: ORA-00604: error occurred at recursive SQL level 1
Item #: 480
Event ID: 1481
Timestamp: 2009-06-02 23:04:41
Type: Warning
User Name: dsadm
Message: Tgt_member_idtfr,0: ORA-00054: resource busy and acquire with NOWAIT specified
Item #: 481
Event ID: 1482
Timestamp: 2009-06-02 23:04:41
Type: Warning
User Name: dsadm
Message: Tgt_member_idtfr,6: SQL*Loader-951: Error calling once/load initialization
Item #: 482
Event ID: 1483
Timestamp: 2009-06-02 23:04:41
Type: Warning
User Name: dsadm
Message: Tgt_member_idtfr,6: ORA-00604: error occurred at recursive SQL level 1
Item #: 483
Event ID: 1484
Timestamp: 2009-06-02 23:04:41
Type: Warning
User Name: dsadm
Message: Tgt_member_idtfr,6: ORA-00054: resource busy and acquire with NOWAIT specified
Item #: 484
Event ID: 1485
Timestamp: 2009-06-02 23:04:41
Type: Fatal
User Name: dsadm
Message: Tgt_member_idtfr,6: The call to sqlldr failed; the return code = 256;
please see the loader logfile: /clu01/datastage/Ascential/DataStage/Scratch/ora.23335.478434.6.log for details.
Item #: 485
Event ID: 1486
Timestamp: 2009-06-02 23:04:41
Type: Fatal
User Name: dsadm
Message: Tgt_member_idtfr,0: The call to sqlldr failed; the return code = 256;
please see the loader logfile: /clu01/datastage/Ascential/DataStage/Scratch/ora.23335.478434.0.log for details. -
Error: SQL Loader-466 column not exist ???
dear all.
i have a problem with sql loader.
The error is:
SQL*Loader-466: Column NUM_PAQ does not exist in table PLANELEC.file
i saw desc table:
SQL> DESC PLANELEC.file
Nombre ¿Nulo? Tipo
num_paq NOT NULL CHAR(8)
formulario NOT NULL CHAR(4)
norden NOT NULL NUMBER(38)
cod_docide_dec NOT NULL NUMBER(38)
num_docide_dec NOT NULL VARCHAR2(11)
num_correl_a NOT NULL NUMBER(38)
cod_docide_aseg NOT NULL NUMBER(38)
num_docide_aseg NOT NULL VARCHAR2(15)
cod_cat_tra NOT NULL NUMBER(38)
cod_tipo NOT NULL NUMBER(38)
fec_ini_perlab NOT NULL DATE
fec_fin_perlab DATE
cod_extincion CHAR(2)
ind_envio NUMBER(38)
fec_envio DATE
num_ctl CHAR(6)
my ctl file is:
Load DATA
INFILE file.UNL
INSERT
INTO TABLE PLANELEC.file
fields terminated by '|'
TRAILING NULLCOLS
NUM_PAQ,FORMULARIO,NORDEN,COD_DOCIDE_DEC,NUM_DOCIDE_DEC,NUM_CORREL_A,COD_DOCIDE_ASEG,
NUM_DOCIDE_ASEG,COD_CAT_TRA,COD_TIPO,FEC_INI_PERLAB,FEC_FIN_PERLAB,COD_EXTINCION,
IND_ENVIO,FEC_ENVIO,NUM_CTL
and the first line of the file.unl is:
00000000|0601|2000043|6|20100066603|1|1|90000001|1|20|01/02/2002|||0||613954|
what could be the problem with that?
thanks a lot !
cesar
ORACLE 10GR2
RHEL AS V4.0Hi ThinkingEye,
Please check the definition of the control file. Did you for instance inclose the file name in quotes?
That's usually the reason for the 466 error with SQL*Loader.
Also check column definitions and column formats that are in the definition.
Cheers, Patrick
ps Is this thread related to the other 2 you have with the same target table STG_GEM_EVENT_ITS? -
Loading two tables at same time with SQL Loader
I have two tables I would like to populate from a file C:\my_data_file.txt.
Many of the columns I am loading into both tables but there are a handful of columns I do not want. The first column I do not want for either table. My problem is how I can direct SQL Loader to go back to the first column and skip over it. I had tried using POSITION(1) and FILLER for the first column while loading the second table but I got THE following error message:
SQL*Loader-350: Syntax error at line 65
Expecting "," or ")" found keyword Filler
col_a Poistion(1) FILLER INTEGER EXTERNALMy control file looks like the following:
LOAD DATA
INFILE 'C:\my_data_file.txt'
BADFILE 'C:\my_data_file.txt'
DISCARDFILE 'C:\my_data_file.txt'
TRUNCATE INTO TABLE table_one
WHEN (specific conditions)
FIELDS TERMINATED BY ' '
TRAILING NULLCOLS
col_a FILLER INTEGER EXTERNAL,
col_b INTEGER EXTERNAL,
col_g FILLER CHAR,
col_h CHAR,
col_date DATE "yyyy-mm-dd"
INTO TABLE table_two
WHEN (specific conditions)
FIELDS TERMINATED BY ' '
TRAILING NULLCOLS
col_a POSITION(1) FILLER INTEGER EXTERNAL,
col_b INTEGER EXTERNAL,
col_g FILLER CHAR,
col_h CHAR,
col_date DATE "yyyy-mm-dd"
)Try adapting this for your scenario.
tables for the test
create table test1 ( fld1 varchar2(20), fld2 integer, fld3 varchar2(20) );
create table test2 ( fld1 varchar2(20), fld2 integer, fld3 varchar2(20) );
control file
LOAD DATA
INFILE "test.txt"
INTO TABLE user.test1 TRUNCATE
WHEN RECID = '1'
FIELDS TERMINATED BY ' '
recid filler integer external,
fld1 char,
fld2 integer external,
fld3 char
INTO TABLE user.test2 TRUNCATE
WHEN RECID <> '1'
FIELDS TERMINATED BY ' '
recid filler position(1) integer external,
fld1 char,
fld2 integer external,
fld3 char
data for loading [text.txt]
1 AAAAA 11111 IIIII
2 BBBBB 22222 JJJJJ
1 CCCCC 33333 KKKKK
2 DDDDD 44444 LLLLL
1 EEEEE 55555 MMMMM
2 FFFFF 66666 NNNNN
1 GGGGG 77777 OOOOO
2 HHHHH 88888 PPPPP
HTH
RK
Maybe you are looking for
-
I purged cache in bridge, and photoshop. NO photos will open when I double clik, or will not open again in ACR alone. When I double clik on raw file I get Sign In required Notice--We will now register your TRIAL to your Adobe ID-------I am alread a
-
I registered the the wrong information for my iCloud account--I misspelled the account name. I accidentally spelled blackberry instead of blackbird. How can I change this?
-
Hi, I am using Multicube for one of my report, which is using two infocubes. One infocube A has characteristics x,y and keyfigure x1 and other infocube B has characteristics x,y,z and keyfigure y1. I need to display the characeristics x,y,z values i
-
Please help, I am trying to do a good deed and unlock an older Ipod Touch.
I know this might seem silly to some of you, but I desperately need some assistance. Every article I have looked up says I need to restore this old Ipod Touch and that will erase the memory, allowing me to get in. I Don't want to do that!! HERES WHY:
-
Presentation speeds up when exported to QT Pro v6
Hello, I have a presentation which is timed perfectly to a music track when played through Keynote. However, when I export the file to QT (using standard settings), the presentation runs too quickly whilst the music track plays normally. What's going