Using Before & After Sql in ORacle Stage

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
ashcar
Charter Member
Charter Member
Posts: 28
Joined: Mon Feb 09, 2004 11:54 am
Location: Minneapolis

Using Before & After Sql in ORacle Stage

Post by ashcar »

I have a Server job ..where i drop Indexes and build Index in after and before Sql in Oracle stage...but since going to Parallel Extender...i cannot find a similar screen in Oracle Enterprise stage....

how do i put in the before and after SQL for dropping indexes ???
T42
Participant
Posts: 499
Joined: Thu Nov 11, 2004 6:45 pm

Post by T42 »

Several ways.

1. You can use the Open Command/Close Command. Click on "Options" within the Oracle stage and you'll see those options available.

2. Do a Before Job & After Job routines using sqlplus calls.

3. Use ExecuteCommand in the job sequencer to make sqlplus calls. (This is RECOMMENDED since if the job fails, the above 2 options still get executed, especially the before job/open command. Within job sequencer, you can control whether indexes can be preserved/dropped/et cetera.)
l_homme_de_rio
Participant
Posts: 17
Joined: Fri Jul 30, 2004 1:16 am

Post by l_homme_de_rio »

Hi,
If you use "Load" as a "write method" you have in the "options"/"Index mode" several options to rebuild, maintain etc ... indexes
All the best
Post Reply