473,386 Members | 1,698 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Schema on Db2 database installed on Main frame machine zOS.

Hi ,

I would like to know :
1.how to find all the schema in my DB2 database on Main frame
machine .
2. How to see all the tables for a given schema .
3. What are the default schema in Db2 on Mainframe . zOS.
I know all the above when I connect to DB2 on LUW ..
1. db2 select schemaname from syscat.schemata
2. db2 list tables for schema <schema name >
3. The defauult are SYSIBM SYCAT , SYSCAT . SYSFUN .

Can u please help me ...as I am connecting to the ZOS Db2 database
for the first time ,..and all the query fails .

Thanks a lot .
Bikash Karan
Jun 27 '08 #1
3 8642
<ka*********@gmail.comwrote in message
news:58**********************************@j33g2000 pri.googlegroups.com...
Hi ,

I would like to know :
1.how to find all the schema in my DB2 database on Main frame
machine .
2. How to see all the tables for a given schema .
3. What are the default schema in Db2 on Mainframe . zOS.
I know all the above when I connect to DB2 on LUW ..
1. db2 select schemaname from syscat.schemata
2. db2 list tables for schema <schema name >
3. The defauult are SYSIBM SYCAT , SYSCAT . SYSFUN .

Can u please help me ...as I am connecting to the ZOS Db2 database
for the first time ,..and all the query fails .

Thanks a lot .
Bikash Karan
The fully qualified table names are in SYSIBM.SYSTABLES. In DB2 z/OS, the
table creator is equivalent to the table schema in DB2 for LUW.
Jun 27 '08 #2
On May 20, 10:44*am, "Mark A" <nob...@nowhere.comwrote:
<karanbik...@gmail.comwrote in message

news:58**********************************@j33g2000 pri.googlegroups.com...


Hi ,
I would like to know :
1.how to find all the schema in my DB2 database on Main frame
machine .
2. How to see all the tables for a given schema .
3. What are the default schema in Db2 on Mainframe . zOS.
I know all the above when I connect to DB2 on LUW ..
1. db2 select schemaname from syscat.schemata
2. db2 list tables for schema <schema name >
3. The defauult are *SYSIBM SYCAT , SYSCAT *. SYSFUN .
Can u please help me ...as I am connecting to *the ZOS Db2 database
for the first time ,..and all the query fails .
Thanks a lot .
Bikash Karan

The fully qualified table names are in SYSIBM.SYSTABLES. In DB2 z/OS, the
table creator is equivalent to the table schema in DB2 for LUW.- Hide quoted text -

- Show quoted text -

Hi , Thanks a lot .
I was able to find all the creator i.e schema from sysibm.systools.
I hv 1 more question ...is their a way to get the tables of a schema
with out using the query "select name , creator from sysibm.systools
where creator='XYZ' ;

In normal case in LUW we use the command "db2 list tables for schema
<schemaname. Is their any similar command in zOS DB2.

Thanks and Regards
Bikash
Jun 27 '08 #3
ka*********@gmail.com wrote:
On May 20, 10:44*am, "Mark A" <nob...@nowhere.comwrote:
[snip]
Hi , Thanks a lot .
I was able to find all the creator i.e schema from sysibm.systools.
I hv 1 more question ...is their a way to get the tables of a schema
with out using the query "select name , creator from sysibm.systools
where creator='XYZ' ;

In normal case in LUW we use the command "db2 list tables for schema
<schemaname. Is their any similar command in zOS DB2.
Not as far as I know. On DB2 for z/OS, you're basically limited to
querying the system catalog for information (which wouldn't be a bad
thing if its system catalog was anywhere near as complete as the DB2
for LUW one - unfortunately it's not and there's several "warts" in
there too, e.g. the way view definitions are spread across several rows
in SYSIBM.SYSVIEWS).

On the plus side, the REMARKS columns in the z/OS system catalog permit
762 (?!) characters, beating the rather puny 254 character limit in DB2
for LUW :-). Still, it's not as much as the REMARKS columns in the
QSYS2 catalog on DB2 for i5/OS (2000 characters!) ... which has yet
another layout.

You can find the documentation for the z/OS catalog tables here:

v8
http://publib.boulder.ibm.com/infoce...ic/com.ibm.db2
..doc.sqlref/rctabls.htm#rctabls

v9.1
http://publib.boulder.ibm.com/infoce...ic/com.ibm.db2
9.doc.sqlref/db2z_catalogtablesintro.htm
Cheers,

Dave.
P.S. If I sound a bit cheesed off at all differences it's because
they're causing difficulties for me in a small project. Deep breaths...
:-)
Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Andrew K | last post by:
Hi, I am trying to set up a web site using a frameset. There is a frame on the right-hand side for the menu (menuFrame), a header frame (headFrame) and the main frame (mainFrame) which displays...
2
by: Don | last post by:
Ok, I give up. I've spent hours on this one, and am totally baffled. In the "header frame": function addWatchedSubject(msgNumber) { var msgNumber;
2
by: crferguson | last post by:
I'm having a really odd issue. Recently my company has upgraded our data server. For a couple of months I'm having to host two versions of the same website on our webserver until the new data...
3
by: =?Utf-8?B?Vmlua2k=?= | last post by:
Is there any way I can access .net application through mainframe.
2
by: marlongrech | last post by:
Hi, I am trying to load a managed application without .Net being actually installed on the machine. Basically I am loading the managed assembly by hosting the CLR from a un-managed assembly. I...
1
by: santel | last post by:
Hi, How to check whether the MSOffice files like word, excel, powerpoint are installed in the machine or not? Anyone please help!
0
by: namrataa | last post by:
Cannot Open default database. Invalid login for \ -------------------------------------------------------------------------------- Hi, I have written services in WCF using C# and SQL Server...
0
EntryTeam
by: EntryTeam | last post by:
class Browser has method getBrowserWindow() which returns JEditorPane(new URL("some URL")). class MainForm calls new Browser().getBrowserWindow() and assigns it to another JEditorPane object. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.