MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

alias stored in which catalog table

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
yadav2005
Intermediate


Joined: 10 Jan 2005
Posts: 348
Topics: 144

PostPosted: Tue Sep 14, 2010 9:45 am    Post subject: alias stored in which catalog table Reply with quote

Members,

I would like to know if we create an Alias for a table , which catalog table DB2 creates an entry for , how can we check for aliases created.
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Tue Sep 14, 2010 10:27 am    Post subject: Reply with quote

see this link for system catalog
or this one for sysibm.sys....
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
yadav2005
Intermediate


Joined: 10 Jan 2005
Posts: 348
Topics: 144

PostPosted: Mon Sep 20, 2010 10:46 am    Post subject: Reply with quote

We have a alias created for a table.I want to know what all are the users who can access the alias.
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Mon Sep 20, 2010 11:05 am    Post subject: Reply with quote

D.69 SYSIBM.SYSTABAUTH table. Records the privileges that users hold on tables and views.

Though this is Vsn 7 D.0 Appendix D. DB2 catalog tables it will get you started.
each DB2 Reference manual has an Appendix for the DB2 catalog tables.
Suggest you bookmark the appropriate reference for your Vsn of DB2,
since you seem to have a loooooooooot of questions about db2 catalog tables.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
yadav2005
Intermediate


Joined: 10 Jan 2005
Posts: 348
Topics: 144

PostPosted: Mon Sep 20, 2010 9:43 pm    Post subject: Reply with quote

Dick,

I checked for SYSIBM.SYSTABAUTH table for all the column definations but I could not find any alias information. I see that this catalog table records the privileges that users hold on tables and views but does not mention anything for aliases. Am I am missing something here.
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Tue Sep 21, 2010 1:32 am    Post subject: Reply with quote

well, maybe someone else knows and will post.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
yadav2005
Intermediate


Joined: 10 Jan 2005
Posts: 348
Topics: 144

PostPosted: Tue Sep 21, 2010 5:20 am    Post subject: Reply with quote

Members can anybody help me further.
Back to top
View user's profile Send private message
Sqlcode
Intermediate


Joined: 15 Dec 2006
Posts: 157
Topics: 38

PostPosted: Tue Sep 21, 2010 8:59 am    Post subject: Re: alias stored in which catalog table Reply with quote

yadav2005 wrote:
Members,

I would like to know if we create an Alias for a table , which catalog table DB2 creates an entry for , how can we check for aliases created.


Alias(as the name suggests) is another logical name for table object. It inherits ALL the attributes of the original object. Seems like you are mixing VIEW with ALIAS because VIEWS can have different privileges than actual physical table privileges. How do you get all the users having access to particular table? The same users should have access to ALIAS as well. But to answer your question, AFAIK, no table stores access information for ALIAS.

At my shop, usually ALIAS is used in Application programs only and access is that of the owner of the plan or package.

See if this link helps you ...
http://publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=/com.ibm.db29.doc.sqlref/db2z_sql_createalias.htm

Let us know if this helps or if you still have specific question.

Thanks,
Back to top
View user's profile Send private message
yadav2005
Intermediate


Joined: 10 Jan 2005
Posts: 348
Topics: 144

PostPosted: Tue Sep 21, 2010 10:18 am    Post subject: Reply with quote

Thanks a lot your explanation helps me a lot.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group