Oracle Temporary table creation

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
albasir
Participant
Posts: 18
Joined: Fri Nov 09, 2007 11:08 am

Oracle Temporary table creation

Post by albasir »

Hi,

i am trying to create a oracle temporary table from datastage job.

Oracle table should contain 3 columns with datatypes

NUMBER (10)
NUMBER (5)
NUMBER (2)

So, i am using the following datatypes in the DS job

NUMERIC (10)
NUMERIC(5)
NUMERIC(2)

Now, my job creates a table with the following datatypes

NUMBER (19)
NUMBER (10)
NUMBER (10)

So, i tried the user defined CREATE TABLE option with the oracle generated DDL but it is not preparing correctly in DS job.

How to get rid of this problem?

Thanks
V'TH LUV
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

Why is it a problem?
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
albasir
Participant
Posts: 18
Joined: Fri Nov 09, 2007 11:08 am

Post by albasir »

column length has been varied in the output Oracle table...
V'TH LUV
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Oracle does that.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

No. :? It should create the columns based on your metadata in the job. Decimal gets translated to NUMBER and the Length will be the precision used. I've never seen the behaviour alledged here - define it with one size and it is created with a different size. ??
-craig

"You can never have too many knives" -- Logan Nine Fingers
Yuan_Edward
Participant
Posts: 73
Joined: Tue May 10, 2005 6:21 pm
Location: Sydney

Re: Oracle Temporary table creation

Post by Yuan_Edward »

Have you ever tried to use DECIMAL(10), DECIMAL(5), DECIMAL(2) instead of NUMBERIC.
albasir wrote:
So, i am using the following datatypes in the DS job

NUMERIC (10)
NUMERIC(5)
NUMERIC(2)


Thanks
Edward Yuan
Post Reply