如果你用的是一个CLP session的话,连到一个新库会自动断掉先前的连接吧?难道不是? ...limin19821 发表于 2010-7-29 23:20
哈,可能我没有说清楚,如下:环境如下:instance 1: instance1 下的DB sample instance 2: instance2 下的DB sample...
显示全部如果你用的是一个CLP session的话,连到一个新库会自动断掉先前的连接吧?难道不是? ...
limin19821 发表于 2010-7-29 23:20
哈,可能我没有说清楚,如下:
环境如下:
instance 1: instance1 下的DB sample
instance 2: instance2 下的DB sample
在instance1 做过instance2的catalog 后:
Database 2 entry:
Database alias = SAMPLE2
Database name = SAMPLE
Node name = NDELOCAL
Database release level = d.00
Comment =
Directory entry type = Remote
Authentication = SERVER
Catalog database partition number = -1
Alternate server hostname =
Alternate server port number =
Database 3 entry:
Database alias = SAMPLE
Database name = SAMPLE
Local database directory = /data
Database release level = d.00
Comment =
Directory entry type = Indirect
Catalog database partition number = 0
Alternate server hostname =
Alternate server port number =
当我连接到sample2 后,如何判断我连接到的是远程的sample 还是本地的sample ???
若使用楼上的 db2 values current server
1
------------------
SAMPLE
1 record(s) selected.
是没有办法判断的
现在我的做法就是先断掉当前未知的链接,再重新链接一次后,根据Database Connection Information 判断出来现在的链接的是db
敢问大师们,有没有其他的方法?
收起