If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
Anyone can explain how should a user be aliased ( please explain command ).
If aliased can we limit the permission compared to original user to aliased user ?
OK.
suppose you are a 'db2inst1' user with syadm/dbadm previledges and a new user 'mytask' wants to use all the object created by 'db2inst1' so if you alias 'mytask' to 'db2inst1'.
db2 -x " select ' create alias mytask.'||rtrim(name)||' for '||rtrim(creator)||'.'||ltrim(name) ||';' from sysibm.systables where creator = 'DB2INST1' " > crtalias.sql
db2 -tvf crtalias.sql -z crtalias.log
that will generate DDL for create alias & create alias