Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 6968
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 Update table without cursor Ron Klop DB2 3 Wed Oct 11, 2017 1:06 pm
No new posts Table(Unicode(Graphic) table) loading... muralikrishnan_new DB2 0 Thu Oct 05, 2017 5:10 pm
No new posts Moving UDB database to Db2 on z/OS Keith Hooley DB2 4 Wed Sep 27, 2017 12:38 am
No new posts Insert a Row_number into table useit DB2 2 Tue Sep 19, 2017 1:07 pm
No new posts how to see when the last read access ... Mike 1304 DB2 1 Tue Sep 12, 2017 7:52 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us