Plug in issue

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
g_rkrish
Participant
Posts: 264
Joined: Wed Feb 08, 2006 12:06 am

Plug in issue

Post by g_rkrish »

hi,

I have a DB2 dtabases i have dev and test in one server and the prod in diff server..In my dev installation on the Datastage i defined the plug in defn for all the three databases in my .odbc.ini file also in the uvodbc.config in the project dir..but when i try to import the table definition in the list i view only my dev which is being defined earlier and the other two defined now...both has the DB2 plugin driver Is some thing else that i need to do ..Pls help me out......
RK
thebird
Participant
Posts: 254
Joined: Thu Jan 06, 2005 12:11 am
Location: India
Contact:

Post by thebird »

You can just type in the DSNs and check it out.
------------------
Aneesh
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

How are you importing the metadata? As in, "import plug-in metadata" or "import odbc metadata"?
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
g_rkrish
Participant
Posts: 264
Joined: Wed Feb 08, 2006 12:06 am

Post by g_rkrish »

DSguru2B wrote:How are you importing the metadata? As in, "import plug-in metadata" or "import odbc metadata"?
I am importing as plug inmetadata but i could not able to see those definitions..but i can see those in my odbc's......
RK
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Did you setup and bind the database. Its been a while since I worked with DB2 but I remember that you need to bind the database. You should be able to find the relevent info in the manuals.
If you are able to import the metadata using odbc connection, use that and then use the db2 api stage to access the database. It works.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
g_rkrish
Participant
Posts: 264
Joined: Wed Feb 08, 2006 12:06 am

Post by g_rkrish »

DSguru2B wrote:Did you setup and bind the database. Its been a while since I worked with DB2 but I remember that you need to bind the database. You should be able to find the relevent info in the manuals.
If you ar ...
I tired importing the table defn by odbc and using the API stage it did n't work it is giving me the databse not defined.But i can able to import by odbc..Is this beacuse of the binding thing....
RK
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Yes it is. You need to bind it before using the API. I am not currently on a DS machine so cannot even look at the manul and guide you. Try the DB2 plugin stage manual.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Ask your DB2 DBA about the bind20 utility.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
g_rkrish
Participant
Posts: 264
Joined: Wed Feb 08, 2006 12:06 am

Post by g_rkrish »

ray.wurlod wrote:Ask your DB2 DBA about the bind20 utility. ...
hi,this is the one that i got from the manual

Creating and binding a DB2 package to a DSN Before you connect to a DB2 DSN you need to bind DB2 packages to the DSN. You must bind a package to every DSN you are going to use to connect to a DB2 database.

To create and bind a package to a DSN:
1. Open a terminal window and change to the $DSHOME/../branded_odbc/lib directory.
2. Enter the command bind20dsn. dsn is the ODBC data source name.
You are prompted for a user ID and password if one is required.

when i isued the command bind20<mydsnname> it says bind20 not found is the utility need to be installed on the server or is it inbuild with datstage while installtion....Pls let me know.....
RK
g_rkrish
Participant
Posts: 264
Joined: Wed Feb 08, 2006 12:06 am

Post by g_rkrish »

g_rkrish wrote:
ray.wurlod wrote:Ask your DB2 DBA about the bind20 utility. ...
hi,this is the one that i got from the manual

Creating and binding a DB2 package to a DSN Before you connect to a DB2 DSN you need to bind DB2 packages to the DSN. You must bind a package to every DSN you are going to use to connect to a DB2 database.

To create and bind a package to a DSN:
1. Open a terminal window and change to the $DSHOME/../branded_odbc/lib directory.
2. Enter the command bind20dsn. dsn is the ODBC data source name.
You are prompted for a user ID and password if one is required.

when i isued the command bind20<mydsnname> it says bind20 not found is the utility need to be installed on the server or is it inbuild with datstage while installtion....Pls let me know.....
Can any body help me with finding this utility.....
RK
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

As noted, your DBA.
-craig

"You can never have too many knives" -- Logan Nine Fingers
g_rkrish
Participant
Posts: 264
Joined: Wed Feb 08, 2006 12:06 am

Post by g_rkrish »

chulett wrote:As noted, your DBA.
Thanks craig...I will do that.....
RK
g_rkrish
Participant
Posts: 264
Joined: Wed Feb 08, 2006 12:06 am

Post by g_rkrish »

chulett wrote:As noted, your DBA.
I did ran the bind22 utitily it said it is successfuly binded but i don't see the DSN in the import plugin....Is ther some thing else i am missing
RK
Post Reply