Warning while importing metadata from DB2

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
kalimuddin
Participant
Posts: 28
Joined: Tue Aug 08, 2006 8:07 am

Warning while importing metadata from DB2

Post by kalimuddin »

Hello,

I am trying to import table from DB2, it is giving warning No columns in TABLE NAME - not imported. I am importing through import--plugin metadata--DB2. I can see all the tables there but when i am clicking import i am getting this warning. When i opened DB2 i can see the table and columns there. Two days ago i imported the table for another project i was succesful, I also designed job using that, When i run those jobs today its working fine,its deleting, inserting. But the problem is its not allowing to import the table to any project, not alone this single table i tried importing other tables also its not working giving me the same warrning. Do give me a better solution to rectify this.

Thanks & Regards,
Kalimuddin.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Often this is because your userid in DB/2 doesn't have sufficient access rights to read the table metadata. I am assuming that you have set up DataStage PX access correctly since it does work in another project.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You need SELECT privilege to a number of system tables in DB2 to be able to import table definitions from DB2. Search the forum to discover which system tables they are.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kalimuddin
Participant
Posts: 28
Joined: Tue Aug 08, 2006 8:07 am

Post by kalimuddin »

ray.wurlod wrote:You need SELECT privilege to a number of system tables in DB2 to be able to import table definitions from DB2. Search the forum to discover which system tables they are. ...
I have given the privilege to all the tables which are needed. This I did at the time when i created those tables. But the problem started from yesterday.When i checked the privilege its granted. But still i am getting the same warning while importing.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

System tables. You don't create system tables.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Per the upgrade/install guide, make sure of the following (particularly #2):

1 Install DB2 and make sure it is working properly.

2 Grant the DataStage users SELECT privileges on the system tables
syscat.nodegroupdef, syscat.tablespaces, and syscat.tables.

3 Make the file db2nodes.cfg readable by the DataStage
administrative user.

4 DataStage runs many processes for each job. This can require the
system administrator to modify DB2 resources, configuration
parameters, and manager configuration parameters of your
system. See the DB2 administration manuals for more
information.

5 The DB2/UDB Enterprise stage requires that users invoking it in
load mode have DBADM privilege on the DB2 database written to
by the stage. Among the ways to grant this privilege is to start
DB2, connect to a database, and grant privileges as follows:
db2> CONNECT TO database_name
db2> GRANT DBADM ON DATABASE TO USER user_name
peterbaun
Premium Member
Premium Member
Posts: 93
Joined: Thu Jul 10, 2003 5:27 am
Location: Denmark
Contact:

Post by peterbaun »

Hi -

Besides being a permission issue it could also be related to the DB2 Connect parameter named SCHEMALIST. The name of the database(s) that you extract metadata from should be in SCHEMALIST.

Regards
Peter
kalimuddin
Participant
Posts: 28
Joined: Tue Aug 08, 2006 8:07 am

Post by kalimuddin »

Thank you gentelmen with your help i tried to correct it.Its working now.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Do you know which the suggestions worked for you and could you post that so that this thread can help future DSXchange users?
Thanks!
kalimuddin
Participant
Posts: 28
Joined: Tue Aug 08, 2006 8:07 am

Post by kalimuddin »

ArndW wrote:Per the upgrade/install guide, make sure of the following (particularly #2):

1 Install DB2 and make sure it is working properly.

2 Grant the DataStage users SELECT privileges on the system tables
syscat.nodegroupdef, syscat.tablespaces, and syscat.tables.

3 Make the file db2nodes.cfg readable by the DataStage
administrative user.

4 DataStage runs many processes for each job. This can require the
system administrator to modify DB2 resources, configuration
parameters, and manager configuration parameters of your
system. See the DB2 administration manuals for more
information.

5 The DB2/UDB Enterprise stage requires that users invoking it in
load mode have DBADM privilege on the DB2 database written to
by the stage. Among the ways to grant this privilege is to start
DB2, connect to a database, and grant privileges as follows:
db2> CONNECT TO database_name
db2> GRANT DBADM ON DATABASE TO USER user_name
This is the one which helped me.
Thanks & Regard,
Kalimuddin.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

That's the information I was trying to remember when I kept going on about system tables. Clearly it's important. But when one is in an internet cafe paying for connection time one does not really want to spend it searching.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply