sqlldr how and where to execute [message #187937] |
Wed, 16 August 2006 07:04 |
vikas_miraj2003
Messages: 13 Registered: July 2006 Location: INDIA
|
Junior Member |
|
|
hello,sir
Below given is sqlldr executed by me in sql plus but
it gives errors pl help me how to use this n where to use
iam using oracle 8i
SQLLDR VIKAS/VIKAS2003@LMSERVER control=LOADER.ctl LOG=MyData.log
data=TEST_mgr.csv
load data
infile 'E:\vikas\TEST_MGR\TEST_mgr.CSV'
into table emp_V
fields terminated by "," optionally enclosed by '"'
( empno, empname,empadd, salary)
thanking you
vikas
[Updated on: Wed, 16 August 2006 07:35] Report message to a moderator
|
|
|
|
|
|
|
Re: sqlldr how and where to execute [message #187955 is a reply to message #187937] |
Wed, 16 August 2006 08:37 |
vikas_miraj2003
Messages: 13 Registered: July 2006 Location: INDIA
|
Junior Member |
|
|
hello
sir,
thank's a lot for reply
it's giving error like syntax error at line 3
data is not a valid internal or external command
when executed
SQLLDR VIKAS/VIKAS2003@LMSERVER control=LOAD.ctl LOG=MyData.log
data=TEST_mgr.csv
and error like
load is not an recognized..i/o command
likewise
pl help
thank's a lot
vikas
|
|
|
|
Re: sqlldr how and where to execute [message #188563 is a reply to message #187955] |
Sat, 19 August 2006 14:53 |
|
Barbara Boehmer
Messages: 9101 Registered: November 2002 Location: California, USA
|
Senior Member |
|
|
If you are running it from the SQL> prompt in SQL*Plus, then put the HOST command in front of it, like:
SQL> HOST SQLLDR VIKAS/VIKAS2003@LMSERVER control=LOAD.ctl LOG=MyData.log data=TEST_mgr.csv
If you are running it from the operating system command prompt, then you either need to have it all on one line or use a hyphen to indicate that you are continuing on the next line, like:
C:\> SQLLDR VIKAS/VIKAS2003@LMSERVER control=LOAD.ctl -
C:\> LOG=MyData.log -
C:\> data=TEST_mgr.csv
From the mangled abbreviation of the error message that you provided, it appears that you are running it from the operating system without the hyphens for continution and that your third line starts with data and it is saying that it is not a recognized command because it does not recognize that it is part of the command on the previous line without the continuation character.
You can specify the data file in either the command line or the control file, but it should not be in both.
[Updated on: Sat, 19 August 2006 14:54] Report message to a moderator
|
|
|