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: 6970
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 Searching a table for the field name? socker_dad COBOL Programming 8 Sat Mar 31, 2018 2:57 am
No new posts Need inputs on DB2 tablespace/table r... ashek15 DB2 3 Sat Mar 24, 2018 11:49 pm
No new posts COBOL declaration for table Poha Eater DB2 3 Mon Feb 26, 2018 6:58 pm
No new posts load and delete table through JCL wit... ram_vizag JCL & VSAM 9 Thu Feb 01, 2018 12:47 am
No new posts Unloading DB2 table in CSV format alo... grvtomar COBOL Programming 7 Sun Jan 28, 2018 2:05 am

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