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

Why do we use Aliases and Synonyms in DB2


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pjnithin

Active User


Joined: 22 Dec 2005
Posts: 116

PostPosted: Mon Apr 02, 2007 11:09 am
Reply with quote

Why do we use Aliases and Synonyms in DB2???
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Mon Apr 02, 2007 11:36 am
Reply with quote

Hi There,

Please refer the below link

www.ibmmainframes.com/viewtopic.php?t=13674&highlight=aliases+synonyms
Back to top
View user's profile Send private message
pjnithin

Active User


Joined: 22 Dec 2005
Posts: 116

PostPosted: Mon Apr 02, 2007 12:07 pm
Reply with quote

Those links doesn't give you a clear idea.
Could you please explain the actual use of it.
Back to top
View user's profile Send private message
Ranjanapai

New User


Joined: 21 Mar 2007
Posts: 3
Location: India

PostPosted: Tue Apr 03, 2007 3:38 pm
Reply with quote

Aliases and synonyms are alternate names given the data base object. Using these will ease programming because since we are not hardcoding the table names with full qualifiers in the query, it becomes simple to use the code in different regions like testing, development production etc...


Synonyms can be created only on existing objects and they get deleted when the object is deleted.

alias can b created even if the object is not available and remains even if the object is deleted.

Hope this helps...
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts ISPF 3.4, SF line command does not su... TSO/ISPF 0
No new posts Whats the difference between alias an... Mainframe Interview Questions 5
No new posts can we create view to synonyms plz g... DB2 1
Search our Forums:

Back to Top