Home » RDBMS Server » Server Utilities » import data from csv. file
import data from csv. file [message #138185] Tue, 20 September 2005 11:38 Go to next message
hubstack
Messages: 12
Registered: August 2005
Junior Member
I've created the following control file in order to load data from a comma-delimited file into a SQL table. However, when I select and attempt to run the control file I receive the error
"ORA 0900: invalid SQL Statement".

OPTIONS (ERRORS = 30000 )

LOAD DATA



APPEND

INTO TABLE hs_import_su

Fields terminated by ',' OPTIONALLY ENCLOSED BY '"'

TRAILING NULLCOLS

(

SEQ NUMBER,

PANEL_SITE_ID NUMBER,

SEQNEXT NUMBER,

MEMBER_ID NUMBER,

MEMBERV NUMBER,

START_TIME DATE,

END_TIME DATE,

SEC_PROX NUMBER,

SEQNO NUMBER,

SEQNEW NUMBER,

ASSIGNED_MEMBER_ID NUMBER,

SEC_DUR NUMBER,

NEXT_AMI NUMBER,

NEXT_SDU NUMBER,

NEXT_HH NUMBER,

ACTV_MEM NUMBER,

S_PRIN NUMBER,

SUPER NUMBER,

NO_OF_ADULT NUMBER,

COMPUTES NUMBER,

CONNECTION_SPEED_ID NUMBER,

SAMEHHFL NUMBER,

DIRECT_F NUMBER,

DURATN_F NUMBER,

SHRTPR_F NUMBER,

MEDMPR_F NUMBER,

LONGPR_F NUMBER,

CREATEV NUMBER,

SUPER_SESS_ID NUMBER

);

Re: import data from csv. file [message #138228 is a reply to message #138185] Tue, 20 September 2005 15:53 Go to previous messageGo to next message
Barbara Boehmer
Messages: 9101
Registered: November 2002
Location: California, USA
Senior Member
Remove the semicolon ; at the end. Then you can run it from SQL*Plus as:

HOST SQLLDR username/password CONTROL=control_file.ctl

substituting your actual username, password and control_file.ctl. You can also run it from the operating system without the host command. Make sure you do not put any spaces on either side of the equal sign =.



Re: import data from csv. file [message #138361 is a reply to message #138228] Wed, 21 September 2005 09:33 Go to previous messageGo to next message
hubstack
Messages: 12
Registered: August 2005
Junior Member
I tried it from the MS-DOS prompt and receive the error message " 'sqlldr' is not recognized as an internal or external command, operable program or batch file.' "
Re: import data from csv. file [message #138382 is a reply to message #138361] Wed, 21 September 2005 10:58 Go to previous messageGo to next message
Frank Naude
Messages: 4587
Registered: April 1998
Senior Member
Sounds like a PATH issue. The sqlldr executable should be in your ORACLE_HOME\bin directory.

Best regards.

Frank
Re: import data from csv. file [message #138390 is a reply to message #138382] Wed, 21 September 2005 11:43 Go to previous messageGo to next message
hubstack
Messages: 12
Registered: August 2005
Junior Member
I don't see it in there...is there a way to download it?
Re: import data from csv. file [message #140573 is a reply to message #138390] Tue, 04 October 2005 16:35 Go to previous messageGo to next message
29april
Messages: 1
Registered: October 2005
Location: New Jersey
Junior Member
did you figure out how to do it?? Pls let me know too. Im having exactly the same problem. Is it bcos of any virus or something?

I recently uninstalled oracle server and loaded client. Im having this problem from now only. Pls email me at krizzynat@yahoo.com. Thanks

Krishna
Re: import data from csv. file [message #140591 is a reply to message #138185] Tue, 04 October 2005 18:49 Go to previous messageGo to next message
cumin
Messages: 82
Registered: August 2005
Member
I had a similar problem, and learned that sqlldr is not necessarily installed on all clients. If you do not have it, you will need the dba to install it (I believe). I tried putting a copy of the .exe file in the right place, and it didn't work; I had to get the dba to manually install the software.
Re: import data from csv. file [message #140615 is a reply to message #140591] Wed, 05 October 2005 00:02 Go to previous message
tarundua
Messages: 1080
Registered: June 2005
Location: India
Senior Member


Try executing it from the following location:


 Go to $ORACLE_HOME/bin , like on my machine it is

D:\oracle\ora92\bin>sqlldr

SQL*Loader: Release 9.2.0.1.0 - Production on Wed Oct 5 10:29:49 2005

Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.

 


Are you getting this on your machine.

regards,
tarun
Previous Topic: Export data with password protection
Next Topic: Ora Server Shutdown problem
Goto Forum:
  


Current Time: Thu Dec 26 06:08:28 CST 2024