Search found 165 matches

by vnspn
Tue Apr 01, 2008 7:29 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Only inserts through Oracle Enterprise stage
Replies: 18
Views: 7537

My approach that I tried was,

Write Method : Upsert
Upsert Mode : Auto-generated Update & Insert
Insert SQL : <auto-generated Insert SQL>
Update SQL : <auto-generated Update SQL>
by vnspn
Fri Mar 28, 2008 8:26 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Oracle Enterprise stage - Load and Upsert
Replies: 10
Views: 6331

Re: Oracle Enterprise stage - Load and Upsert

what value did you assign to $APT_ORACLE_LOAD_OPTIONS? Is that table partitioned? Are there any constraints/indexes on that table and how did you maintain the indexes/constraints during loading? How many records are to be loaded and how many records exist in that table? ============================...
by vnspn
Thu Mar 27, 2008 3:56 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Oracle Enterprise stage - Load and Upsert
Replies: 10
Views: 6331

The Load Method tried was Append...
by vnspn
Thu Mar 27, 2008 1:22 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Oracle Enterprise stage - Load and Upsert
Replies: 10
Views: 6331

Oracle Enterprise stage - Load and Upsert

Hi, We have a process were we would need to load data in range of a million into an Oracle table. We started using the Write Method as Load in the Oracle Enterprise stage as default, thinking that this should be the fastest as it uses Oracle loader concept. But, just by chance we gave a try with Wri...
by vnspn
Thu Mar 27, 2008 9:29 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Only inserts through Oracle Enterprise stage
Replies: 18
Views: 7537

Hi, Yeah, I get your point, but... If so see, there were previous replies in this same post that, the SQL in Update placeholder would get executed only if the SQL in Insert placeholder fails. As per this, in out case all incoming rows would get inserted through the Insert SQL and the Update SQL will...
by vnspn
Wed Mar 26, 2008 1:42 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Only inserts through Oracle Enterprise stage
Replies: 18
Views: 7537

The user-defined SQL is loading data from DS job only. It just uses a Oracle sequence in it to generate a sequence number. Hope we can use the ODBC stage only if we have an ODBC connection. But we do not have a ODBC connection to the Oracle database. But, I think we could try using DRS stage. DRS st...
by vnspn
Tue Mar 25, 2008 9:06 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Only inserts through Oracle Enterprise stage
Replies: 18
Views: 7537

Yes ArndW, we cannot use Load with Append, because, we have a user-defined SQL statement. We use a user-defined SQL to create a sequence number using Oracle sequence.
by vnspn
Tue Mar 25, 2008 9:02 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Joining / doing lookup without a key
Replies: 10
Views: 2720

Since the Parameter data is very few, you can use a Server job to read the data from Table, and using transformer, UtilityRunJob can be used to call the job and pass the extracted value to the job as ... I would like to clarify on what you are saying. You mean to have a separate Server job to run t...
by vnspn
Mon Mar 24, 2008 3:48 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Only inserts through Oracle Enterprise stage
Replies: 18
Views: 7537

Ok, the SQL given in "Update SQL" will execute only in the SQL given in "Insert SQL" fails. So, what is the real difference on whether I give an Insert statement or a Update statement in the "Update SQL" place holder. In both cases, its not going to get executed as the ...
by vnspn
Mon Mar 24, 2008 1:11 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Only inserts through Oracle Enterprise stage
Replies: 18
Views: 7537

But, this doesn't sound correct.

If we have Insert statements at both Insert SQL and Update SQL, then the same row it going to get inserted twice, is it not?
by vnspn
Mon Mar 24, 2008 10:20 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Only inserts through Oracle Enterprise stage
Replies: 18
Views: 7537

Thanks ArndW.

So that means, even though I provide an Update SQL, update does not take place, because an Insert has taken place for that row.

Thanks for the information.
by vnspn
Mon Mar 24, 2008 9:37 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Only inserts through Oracle Enterprise stage
Replies: 18
Views: 7537

Only inserts through Oracle Enterprise stage

Hi, We are in process of migrating some of the jobs from Server to Parallel. We supply a user-defined SQL to do an insert in the server job's Oracle OCI stage. Now in a parallel job's, Oracle Enterprise stage, when we select the Write Method to be "Upsert", we are supposed to give 2 SQLs, ...
by vnspn
Mon Mar 24, 2008 9:10 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Joining / doing lookup without a key
Replies: 10
Views: 2720

Hi kumar_s,

This looks to be a nice idea. But, how can the output of a SQL statement be passed to a parameter? Can you please give a brief note on how to do that.

Thank you.
by vnspn
Fri Mar 21, 2008 7:09 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Joining / doing lookup without a key
Replies: 10
Views: 2720

No, that cannot be done. The column we fetch from the Reference table is an ID column. So, the value would be different / change when migrated to different enviornments. Also, we have to do a similar kind of ID column fetching from different reference tables in different jobs. So, if we hard code in...
by vnspn
Thu Mar 20, 2008 8:10 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Joining / doing lookup without a key
Replies: 10
Views: 2720

Thanks for this solution Craig.

We were thinking if there is a way to do it without hard-coding any static key-value. Could there be a solution to use the lookup stage without the key :roll: