0

i want to import csv file into oracle database using pl / sql developer, i inform you that the base is installed under linux, and pl / sql under windows, i ran the command:

SQL> @C:\app\session_name\product\11.2.0\client_3\BIN\sqlldr user/passwd@base_name  control=/opt/FNDBSS/Control/FNControl.txt log=log.txt;

but the error has appeared: Error reading file

thank you for helping me

7
  • Your control file is pointing to Linux path - /opt/FNDBSS/Control/FNControl.txt and you are executing sqlldr in Windows. You should either have a local control file or run it in Linux command prompt. Commented Dec 3, 2017 at 12:44
  • Thanks, but in PL/SQL i connected to database installed in Linux system Commented Dec 3, 2017 at 13:46
  • @KaushikNayak seems to be suggesting you copy the FNControl.txt file to windows where you are running sqlldr (and give the correct path to it in your pl/sql command). Did you try that? Commented Dec 3, 2017 at 21:38
  • i try in Windows but i have the same error: Commented Dec 5, 2017 at 9:15
  • SQL> @C:\app\session_name\product\11.2.0\client_3\BIN\sqlldr user/passwd control=C:\TEST\Control2.ctl, DATA=C:\TEST\test2.csv Error reading file Commented Dec 5, 2017 at 9:16

1 Answer 1

1

A the least add the LOG file to the command line or your control file. It tells you what loader is doing and perhaps why. Additionally check into the BAD and DISCARD files. See the SQL Loader concepts for your Oracle version.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.