0

I want to import data on a weekly basis to an Oracle DB. I'm receiving this data on specific location in a server in EDR format. For now I'm uploading them manually using Toad for Oracle uploader wizard. Is there any way to upload them automatically using Unix or any kind of scripting?

4
  • Can you provide reference for EDR format? Commented Nov 29, 2019 at 18:37
  • here is a sample, note that each field is delimited with pipes bash|112322|ahmed|0|20400101000000||2014|21001111090211|||ahmed|4525435333|jack|0|20400101000000||20191111090211|20111111090211||| Commented Dec 1, 2019 at 13:36
  • 1
    Check the answer below and read how to use sqlldr Commented Dec 1, 2019 at 13:50
  • Can you place the sample and the tabel in the question, not comment. You might select a 4 table with 4 columns, easier to understand. Commented Dec 1, 2019 at 14:49

1 Answer 1

3

I would suggest to try out SQL loader through a shell script.

Code:

sqlldr username@server/password control=loader.ctl

two important files:

a. your data file to be uploaded.

b. Control file which states the table to be inserted and the delimiter character and the column fields, etc. basically describe how to load the data.

Oracle Reference

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.