Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: How can we know the DB2 database/tablespace name for table?
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    Post subject:
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: 1013
Location: India

PostPosted: Fri Apr 23, 2010 4:11 pm    Post subject:
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    Post subject:
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: 1013
Location: India

PostPosted: Fri Apr 23, 2010 6:36 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Data replication from multiple Db2 ta... kishpra DB2 5 Mon Mar 27, 2017 9:58 pm
No new posts how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm
No new posts Join of more than one table dibyendumandal11111 DB2 6 Mon Feb 13, 2017 11:36 pm
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts IMS Database backup info ashek15 IMS DB/DC 14 Wed Nov 16, 2016 5:29 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us