1

I see that SQL Loader is behaving quite weird.

I have executed a command on my Terminal(Linux) as

sqlldr username/password@XXXX control=xxx.ctl

The above command didnot produces any errors:

Total logical records skipped:          0
Total logical records read:             4
Total logical records rejected:         0
Total logical records discarded:        0 

but when i used this statement inside python script:

subprocess.call('sqlldr USERNAME/PASSWORD3@XXX control=XXX.ctl', shell=True)

i see no records are been loaded into the target table:

Total logical records skipped:          0
Total logical records read:             0
Total logical records rejected:         0
Total logical records discarded:        0

The concern is that when i run the SQL loader command in commandline it behaves normal, but not within the python script.Any suggestions please..

Thanks

1 Answer 1

4

Try this as I believe you need the USERID= before the login info:

subprocess.call('sqlldr userid=USERNAME/PASSWORD3@XXX control=XXX.ctl', shell=True)
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.