[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

sql loader return codes - shell

Posted on 2006-04-04
1
Medium Priority
?
1,274 Views
Last Modified: 2008-02-20
I am executing a sql loader script from within a vbs file utilizing the wscript.shell Object.

x = createObject(wscript.shell)
retcode= x.run (sqlloader string)

What are the possible return codes. [Are there any other codes except 0,1,2,3 ]
Any help is appreciated.
0
Comment
Question by:crystalguy2000
1 Comment
 
LVL 4

Accepted Solution

by:
Harish_Rajani earned 2000 total points
ID: 16381935

You can viisit :

http://www.cs.umbc.edu/help/oracle8/server.815/a67792/ch06.htm#1956

Exit Codes for Inspection and Display
Oracle SQL*Loader provides the results of a SQL*Loader run immediately upon completion. Depending on the platform, as well as recording the results in the log file, the SQL*Loader may report the outcome also in a process exit code. This Oracle SQL*Loader functionality allows for checking the outcome of a SQL*Loader invocation from the command line or script. The following load results return the indicated exit codes:

Result  Exit Code  
All rows loaded successfully  
 EX_SUCC  
 
All/some rows rejected  
 EX_WARN  
 
All/some rows discarded  
 EX_WARN  
 
Discontinued load  
 EX_WARN  
 
Command line/syntax errors  
 EX_FAIL  
 
Oracle errors fatal to SQL*Loader  
 EX_FAIL  
 
OS related errors (like file open/close, malloc, etc.)  
 EX_FTL  
 
 


For UNIX the exit codes are as follows:

EX_SUCC      0
EX_FAIL      1
EX_WARN      2
EX_FTL      3


Rgds,
HR
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
Suggested Courses

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question