Solved

DB2: Export DB2's Data Dictionary

Posted on 2011-09-20
10
900 Views
Last Modified: 2012-05-12
Techies,
I'm a DB2 newbie. I'm not quite used to the esoteric table names!;-) How do I get a data dictionary export from our dev instance--which-- I hope will provide a more verbose description of what these tables and attributes are trying to be.  
0
Comment
Question by:ditallop
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
  • 2
10 Comments
 
LVL 45

Accepted Solution

by:
Kent Olsen earned 500 total points
ID: 36569496
Hi ditallop,

I'm not sure what you're trying to get to, but I'd start with a query of the sysibm.tables and/or sysibm.columns views.  They pull most of the table/column definitions into easy to use views.


Kent
0
 
LVL 37

Expert Comment

by:momi_sabag
ID: 36569619
you can also use the control center tool to see all tables, their columns etc
0
 

Author Comment

by:ditallop
ID: 36569789
Kent,

Thanks for pointing me to the system catalogs. What I had in mind was more of a description of the purpose of the column. For example:

ENO               Employee Number
BDLOI            Building Location Identifier

rather than:

ENO             CHARACTER 20
BDLOI          NUMERIC

0
Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

 

Author Comment

by:ditallop
ID: 36569806

I am using Eclipse with an the IBM Data Studio plugin pointing to a development box--no control center here!;-)
0
 
LVL 45

Assisted Solution

by:Kent Olsen
Kent Olsen earned 500 total points
ID: 36569829

Ok.  :)

The view syscat.columns has a column named 'remarks'.  If a descriptive comment was generated for your column, it would be there.


Kent
0
 
LVL 37

Expert Comment

by:momi_sabag
ID: 36569875
one thing to note
it will only show remarks that people took the time to create using the comment on statement
you are not guaranteed to see something in the remarks column
0
 

Author Comment

by:ditallop
ID: 36569922

 Well, for a brief moment I was hopeful.


syscat.columns-def.PNG
0
 

Author Comment

by:ditallop
ID: 36570394
clearly my problems today are greater than which catalogs to review!:-)
0
 

Author Closing Comment

by:ditallop
ID: 36570401
Kent, thanks for your help!
0
 
LVL 45

Expert Comment

by:Kent Olsen
ID: 36570808

Which version of DB2 are you using?  (What O/S is on the server?)

0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

November 2009 Recently, a question came up in the DB2 forum regarding the date format in DB2 UDB for AS/400.  Apparently in UDB LUW (Linux/Unix/Windows), the date format is a system-wide setting, and is not controlled at the session level.  I'm n…
Recursive SQL in UDB/LUW (you can use 'recursive' and 'SQL' in the same sentence) A growing number of database queries lend themselves to recursive solutions.  It's not always easy to spot when recursion is called for, especially for people una…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question