Quote:
Originally Posted by yyt030
but how to do change the local db TESTDB to remote and Not need to catalog another alias db LOOPDB?
it looks like this:
db2 list db directory
Database 1 entry:
Database alias = TESTDB
Database name = TESTDB
Node name = NDETEST
Database release level = d.00
Comment =
Directory entry type = Remote
Authentication = SERVER
Catalog database partition number = -1
Alternate server hostname =
Alternate server port number =
|
I don't know why you want this to be remote but here is an example:
whatever@panipuri /home/whatever > db2 create db test
DB20000I The CREATE DATABASE command completed successfully.
whatever@panipuri /home/whatever > db2 uncatalog db test
DB20000I The UNCATALOG DATABASE command completed successfully.
DB21056W Directory changes may not be effective until the directory cache is
refreshed.
whatever@panipuri /home/whatever > db2 catalog tcpip node local remote localhost server 21267
DB20000I The CATALOG TCPIP NODE command completed successfully.
DB21056W Directory changes may not be effective until the directory cache is
refreshed.
whatever@panipuri /home/whatever > db2 catalog db test as test at node local
DB20000I The CATALOG DATABASE command completed successfully.
DB21056W Directory changes may not be effective until the directory cache is
refreshed.
whatever@panipuri /home/whatever > db2 list db directory
System Database Directory
Number of entries in the directory = 1
Database 1 entry:
Database alias = TEST
Database name = TEST
Node name = LOCAL
Database release level = c.00
Comment =
Directory entry type = Remote
Catalog database partition number = -1
Alternate server hostname =
Alternate server port number =