How to Capture rejects through Oracle Load Option

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
chpraveen.msc
Participant
Posts: 26
Joined: Tue Nov 08, 2005 5:36 am

How to Capture rejects through Oracle Load Option

Post by chpraveen.msc »

Hi All,
In our project, we have a requirement to load millions of records from file to Oracle database. Data volume being quite high. We decided to go for Oracle Load option. We are able to load data through this option (oracle Load utility), but we need to capture rejects as per the client requirements. When ever we made the interface to run, Oracle loader is creating a bad file (containing Reject records) in the Scratch Disk area. Is there any way that we can explicitly specify the path for Bad file.
so that we can get flexibility to mail the Reject file to respective client Departments.
Since we have planned to run many of the DS interfaces using the oracle Load option, all the bad files will be capture in the same path and its becoming complex for us to identify the bad file generated by respective interface.

Thanks in Advance.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Yes there is. Research the properties of the stage carefully (particularly the available properties to add in each of the properties folder). Report back with your research findings.

You might also Search the forum; I'm fairly sure this has been answered before.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Maveric
Participant
Posts: 388
Joined: Tue Mar 13, 2007 1:28 am

Post by Maveric »

Ray, I could think of Open, Close command properties and APT_ORACLE_LOAD_OPTIONS. Will these help? Am i on the right path?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Re: How to Capture rejects through Oracle Load Option

Post by chulett »

chpraveen.msc wrote:Is there any way that we can explicitly specify the path for Bad file.
Just the .bad file? I don't believe so, but you should be able to control where all the files are written. I don't recall the exact answer but a search should turn up the APT variable that needs to set.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

I too am not doing DataStage things this week and operating from memory. But you definitely have control, and the question has been asked and answered in the past. Search.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Checkout csrazdan's reply in this post.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
JoshGeorge
Participant
Posts: 612
Joined: Thu May 03, 2007 4:59 am
Location: Melbourne

Post by JoshGeorge »

APT_ORA_WRITE_FILES will allow you to specify a file (not a directory) from where you can execute sqlldr. The post referred above was later discussed in another thread and clarified.
Pls. find the same HERE
DSguru2B :

Checkout csrazdan's reply in this post.
Joshy George
<a href="http://www.linkedin.com/in/joshygeorge1" ><img src="http://www.linkedin.com/img/webpromo/bt ... _80x15.gif" width="80" height="15" border="0"></a>
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

O yea. THats right. Thanks for the clarification Joshy.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply