IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

difference btn synonym, alias ,views


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sankari_thiyaga

New User


Joined: 14 May 2005
Posts: 4

PostPosted: Sat May 14, 2005 8:00 pm
Reply with quote

hi,
could u plz explain me the difference btn synonym,alias,views.
Of these three which do occupy memory space?
which can be deleted?
sankari.
Back to top
View user's profile Send private message
brain_s390

New User


Joined: 06 May 2005
Posts: 58
Location: Mumbai

PostPosted: Sun May 15, 2005 1:15 am
Reply with quote

Synonym : It is an unqualified alternative name for a table or view.

VIEW : It is a virtual table made up of data from base tables and other views, but not stored separately.

ALIAS : An alias is an alternative to a synonym, designed for a distributed environment to avoid having to use the location qualifier of a table or view. The alias is not dropped when the table is dropped.

Hope above clarifies !!
Back to top
View user's profile Send private message
i413678
Currently Banned

Active User


Joined: 19 Feb 2005
Posts: 112
Location: chennai

PostPosted: Mon May 16, 2005 5:27 pm
Reply with quote

Hi,

Alias and synanyms are alternate names for DB2 objects with the following differences.

Synonym:
1. this is the local object only user has to create and access it.
2.used in local environment.
3.when base table is dropped automatically synonyms are dropped.
4.SYSADM authority is not needed.

Alias:
1. this is the global object.
2.used in distributed environment.
3.when base table is dropped aliases not dropped.
4.SYSADM authority is needed to create this or CREATEALIAS previlege is needed.

View:
View is part of the table(s).

pavan
Back to top
View user's profile Send private message
sankari_thiyaga

New User


Joined: 14 May 2005
Posts: 4

PostPosted: Thu May 26, 2005 6:38 pm
Reply with quote

thank u ,i'm clarified.
sankari.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts How to delete a user's alias from the... JCL & VSAM 11
No new posts Timestamp difference and its average ... DB2 11
No new posts DB2 Views with Multiple SQL & Col... DB2 8
No new posts Difference when accessing dataset in ... JCL & VSAM 7
No new posts What is the difference between Taskty... Compuware & Other Tools 2
Search our Forums:

Back to Top