OCI Stage: Indexes in Unusable State

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
Munish
Participant
Posts: 89
Joined: Sun Nov 19, 2006 10:34 pm

OCI Stage: Indexes in Unusable State

Post by Munish »

Hi Champs,
I am using Oracle Load to load my fact table.
Volume: 280 mills per load.

The DB is partitioned by date.
We have 7 bitmap indexes on this table.

The problem starts after the data is loaded and when OCI stage tries to rebuild the indexes and it is failing there.

The error:
ORA-01502: index 'CBA_DBA.XIF1EDX_RPT_SDF_BMAP' or partition of such index is in unusable state

Any Guesses........
MK
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Don't need to guess. Need to Search.

This is a known issue, and has been discussed here previously.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
I_Server_Whale
Premium Member
Premium Member
Posts: 1255
Joined: Wed Feb 02, 2005 11:54 am
Location: United States of America

Post by I_Server_Whale »

It can't get any better than Craig's answer.
chulett wrote:Bitmap indexes are notoriously picky and prone to going bad during a load. As people have said, have a chat with your DBAs but I'd bet you'll need to drop them before the load and then rebuild them post load.
Also, check this POST.
Anything that won't sell, I don't want to invent. Its sale is proof of utility, and utility is success.
Author: Thomas A. Edison 1847-1931, American Inventor, Entrepreneur, Founder of GE
Munish
Participant
Posts: 89
Joined: Sun Nov 19, 2006 10:34 pm

Post by Munish »

I went through the search and found it very informative.
However,
I am just wondering if other than duplicate primary keys, break in referential integrity can cause this error.

Thanks,
Munish
MK
narasimha
Charter Member
Charter Member
Posts: 1236
Joined: Fri Oct 22, 2004 8:59 am
Location: Staten Island, NY

Post by narasimha »

Are you doing a bulk load with direct/parallel mode?
Narasimha Kade

Finding answers is simple, all you need to do is come up with the correct questions.
Munish
Participant
Posts: 89
Joined: Sun Nov 19, 2006 10:34 pm

Post by Munish »

Yes
MK
crouse
Charter Member
Charter Member
Posts: 204
Joined: Sun Oct 05, 2003 12:59 pm
Contact:

Post by crouse »

We get this problem when Oracle runs out of temp space. The temp space is used to store/sort/create your indexes as the data is being loaded. Google for this error and you'll find ways to calculate how much temp space is needed. And other tricks like sorting the input data in the order of (one of) you indexes.

Are DataStage and Oracle on the say server, or at least on the same version of operating system.

-Craig
Craig Rouse
Griffin Resouces, Inc
www.griffinresources.com
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You can get this problem when pretty much any error happens during a direct path bulk load. That's the price you pay for the speed of a direct path load - any problem will leave indexes in an UNUSABLE state.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply