Partition Table Error

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
sridharvis
Premium Member
Premium Member
Posts: 26
Joined: Thu Apr 17, 2008 1:38 pm
Location: Chennai

Partition Table Error

Post by sridharvis »

Hi,

I am reading a Oracle source which is range partioned on a key column , i am doing a simple select from the Oracle source using a Oracle EE stage and paassing it to the target dataset. If I perform a normal read without specifying the partition table option, the job reads and loads fine without error. But when i specify the partition table option and then perform the read. I get the following Error ...

"main_program: (aptoci.C:388). Message: ORA-00942: table or view does not exist
(aptoci.C:524). Message: ORA-00942: table or view does not exist
(aptoci.C:436). Message: ORA-00942: table or view does not exist
(aptoci.C:493). Message: ORA-24374: define not done before fetch or execute and fetch".

One thing i can assure is the connection strings are all fine, as the source in the userdefined select and partition table are the same . The source reads 6 rows and loads it to the target as well and the job was finished successfully. But my only concern is why i get the error message
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I'm guessing that between the ORA-24374 and your mention of "userdefined select" that the latter is the issue and you seem to have a mismatch between what's in the sql and the columns you have defined in the stage. If you are saying that you are not allowing the stage to generate the sql, I would be wondering why that is.
-craig

"You can never have too many knives" -- Logan Nine Fingers
sridharvis
Premium Member
Premium Member
Posts: 26
Joined: Thu Apr 17, 2008 1:38 pm
Location: Chennai

Partion Table Error

Post by sridharvis »

chulett wrote:I'm guessing that between the ORA-24374 and your mention of "userdefined select" that the latter is the issue and you seem to have a mismatch between what's in the sql and the columns you have ...
I tried reading the whole table, using Read Method as Table with all the columns defined. But i still face the same issue.

My Partition Table is RDM.TBL_A, Read method = Table and Table = RDM.TBL_A.
udayk_2007
Participant
Posts: 72
Joined: Wed Dec 12, 2007 2:29 am

Post by udayk_2007 »

Is your sql query working successfully on database prompt ?

Regards
Ulhas
sridharvis
Premium Member
Premium Member
Posts: 26
Joined: Thu Apr 17, 2008 1:38 pm
Location: Chennai

Post by sridharvis »

My sql is working correctly in database prompt and in Datastage, except that in Datastage when i give the partiton table option i get the above error's
Regards
Sridhar V
sridharvis
Premium Member
Premium Member
Posts: 26
Joined: Thu Apr 17, 2008 1:38 pm
Location: Chennai

Post by sridharvis »

sridharvis wrote:My sql is working correctly in database prompt and in Datastage, except that in Datastage when i give the partiton table option i get the above error's
Regards
Sridhar V
Can you please help me in resolving the above partition table error.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

If anyone could, they would have by now I would think. Time to turn to your official support provider if you haven't already.
-craig

"You can never have too many knives" -- Logan Nine Fingers
udayk_2007
Participant
Posts: 72
Joined: Wed Dec 12, 2007 2:29 am

Post by udayk_2007 »

Can you put the sql query here, which you are giving in Oracle Source Stage.

Regards
Ulhas
bkamila
Premium Member
Premium Member
Posts: 29
Joined: Tue Jun 14, 2005 5:01 pm
Location: Mascot

Post by bkamila »

I have know more before I can suggest something?

Is it an Oracle partition or DataStage partition? Which type of partition method you are using?

Regards,
BANA KAMILA
BI, Data Warehouse and Database Consultant
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Try qualifying the table name with its schema (owner) name.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
sridharvis
Premium Member
Premium Member
Posts: 26
Joined: Thu Apr 17, 2008 1:38 pm
Location: Chennai

Post by sridharvis »

ray.wurlod wrote:Try qualifying the table name with its schema (owner) name. ...
No the problem still persists. I gave the schema name.owner name, but still facing the above error. But intrestingly the job did not abort and is still reading in parallel

"
main_program: This step has 1 dataset:
ds0: {op0[2p] (parallel Oracle_Enterprise_3)
eAny=>eCollectAny
op1[2p] (parallel Copy_6)}
It has 2 operators:
op0[2p] {(parallel Oracle_Enterprise_3)
on nodes (
node1[op0,p0]
node2[op0,p1]
)}
op1[2p] {(parallel Copy_6)
on nodes (
node1[op1,p0]
node2[op1,p1]
)}
It runs 4 processes on 2 nodes.
"
Post Reply