IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How can we know the DB2 database/tablespace name for table?


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
santoshkumarmanilakkoju

New User


Joined: 24 Nov 2009
Posts: 37
Location: Don't know

PostPosted: Fri Apr 23, 2010 1:56 pm
Reply with quote

Hi,

I know a table name and its corresponding database name in production sub-system DB2.

I want to know corresponding db name for the table in test subsytem DB2Q/DB2T.

Ex:NNDB2M.T_OMR_RQST is the name in production sub-system.

Please let me know if there is a way to find out the corrsponding name in test i.e. ?.T_OMR_RQST
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Apr 23, 2010 4:09 pm
Reply with quote

other than asking someone, like DBA,

I would
  • look in JES and find the DB2 started tasks
  • look at a bind for a module in test/quality control environments
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Fri Apr 23, 2010 4:11 pm
Reply with quote

Santosh,

Try this in your test sub-systems,
Code:
Select dbname,creator,name from sysibm.systables
where name like '%T_OMR_RQST%';



Sushanth
Back to top
View user's profile Send private message
santoshkumarmanilakkoju

New User


Joined: 24 Nov 2009
Posts: 37
Location: Don't know

PostPosted: Fri Apr 23, 2010 5:10 pm
Reply with quote

Thank you Sushanth It worked.

My be my question was not clear.
It was to know the creator name of a table in a particulat DB2 sub-system

I tried this and it worked.

SELECT CREATOR FROM SYSIBM.SYSTABLES
WHERE NAME = 'T_OMR_RQST';
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Fri Apr 23, 2010 6:36 pm
Reply with quote

I am glad it worked, thanks for letting us know santosh.

As dbz said, you can also look creator name of the table in bind statement QUALIFIER option.

Sushanth
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Check data with Exception Table DB2 0
No new posts What database does Jobtrac use CA Products 4
Search our Forums:

Back to Top