Problem while loading Oracle Tables

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

Problem while loading Oracle Tables

Post by Munish »

Hi All,

I am loading target tables in Oracle.
Source is a sequential file.

seqFile >Oracle Enterprise Stage(TargetTable)

I am getting the following error.

Code: Select all

Oracle_Enterprise_0: Indexes on table 'OLB_ADJUSTMENT_FACT' preclude direct parallel loading unless an index option is included. Add an index option or drop indexes and rerun step.
My table does not have any indexes so far.


Thanks and regards,
Munish
[/code]
MK
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Munish
Participant
Posts: 89
Joined: Sun Nov 19, 2006 10:34 pm

Post by Munish »

Thanks it worked.

But still unable to load.
This time

Code: Select all

Sequential_File_1,0: Field "ADJUSTMENT_KEY" has import error and no default value; data: {" 0 "}, at offset: 0

Code: Select all

Sequential_File_1,0: Import complete; 0 records imported successfully, 6 rejected.
I have checked the datatypes of source and target, they are in sync.

Am I missing out something here ?

Any comment would be highly appreciated.

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 »

Check if this helps

An exact search on "has import error and no default value" gave similar posts.
Narasimha Kade

Finding answers is simple, all you need to do is come up with the correct questions.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

So now you two are some kind of search for hire tag team? :P
-craig

"You can never have too many knives" -- Logan Nine Fingers
Munish
Participant
Posts: 89
Joined: Sun Nov 19, 2006 10:34 pm

Post by Munish »

Thanks Guys,
It really worked.

Closing the job.

Thanks and regards,
Munish
MK
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Nah...just a friendly reminder for our dsxians that its "all" covered. :wink:
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
narasimha
Charter Member
Charter Member
Posts: 1236
Joined: Fri Oct 22, 2004 8:59 am
Location: Staten Island, NY

Post by narasimha »

That's a nice team name coined :wink:
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

index is 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
I_Server_Whale
Premium Member
Premium Member
Posts: 1255
Joined: Wed Feb 02, 2005 11:54 am
Location: United States of America

Re: index is in unusable state

Post by I_Server_Whale »

Munish wrote: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........
My guess is you need to open a new topic rather than appending a new question to an old discussion.
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
narasimha
Charter Member
Charter Member
Posts: 1236
Joined: Fri Oct 22, 2004 8:59 am
Location: Staten Island, NY

Post by narasimha »

I agree with Whale.
Contact your DBA's or if you can re-build the index.
Nothing can be done on the datastage side.
Narasimha Kade

Finding answers is simple, all you need to do is come up with the correct questions.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

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.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Munish
Participant
Posts: 89
Joined: Sun Nov 19, 2006 10:34 pm

Post by Munish »

Hi All,
I am closing this job and opening a new thread.
Thanks,
Munish
MK
Post Reply