View previous topic :: View next topic |
Author |
Message |
schintala Beginner
Joined: 18 May 2005 Posts: 108 Topics: 31 Location: USA
|
Posted: Wed Jan 04, 2012 4:20 pm Post subject: Remote Aliases in DB2 LUW |
|
|
Hi,
We have DB2 databases listed on z/OS. We want to work with aliases in DB2 LUW, but physical databases resides on z/OS. Can we create alias to those in LUW DB2? Please advise. Does it work?
Thank you. |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Wed Jan 04, 2012 4:49 pm Post subject: |
|
|
schintala,
As long as you have communication between LUW and DB2 on z/OS it is pretty much straight forward
On LUW DB2 use this to create the alias (Untested)
Code: |
CREATE ALIAS alias_name FOR z/os_location_name.tablespace.tablename |
Kolusu |
|
Back to top |
|
|
GuyC Supermod
Joined: 27 May 2011 Posts: 35 Topics: 0
|
Posted: Thu Jan 05, 2012 11:42 am Post subject: |
|
|
I don't think so.
What you are looking for are federated objects and to set that up , you need to
Quote: | 1. Set up the dbm cfg federated yes
2. catalog the node and database to which u want to connect
3. created wrapper (as applicable like for db2..DRDA)
4. create server definition.
5. create nickname.
6. create user mapping
7. give required permission. |
Pretty old , but still interesting
http://www.redbooks.ibm.com/redbooks/pdfs/sg247052.pdf
chapter 4.3 |
|
Back to top |
|
|
|
|