我在 AIX 服务器上的 DB2 上有一些数据库。
我以 DB2 实例用户 ID“chandroo”(登录时自动设置 db2profile)登录并发出如下命令,但没有得到任何结果。
chandroo@xxxxxxxx::/db2/chandroo> db2 list db directory
chandroo@xxxxxxxx::/db2/chandroo>
但是,如果我直接从安装目录调用 db2,我可以看到这些条目,但我不知道为什么会发生这种情况。
chandroo@xxxxxxxxx::/opt/IBM/db2/V9.5/bin> ./db2 list db directory
System Database Directory
Number of entries in the directory = 2
Database 1 entry:
Database alias = CHANDB
Database name = CHANDB
Local database directory = /db2/chandroo/db
Database release level = c.00
Comment =
Directory entry type = Indirect
Catalog database partition number = 0
Alternate server hostname =
Alternate server port number =
Database 2 entry:
Database alias = CHAN
Database name = CHAN
Local database directory = /db2/chandroo/db
Database release level = c.00
Comment =
Directory entry type = Indirect
Catalog database partition number = 0
Alternate server hostname =
Alternate server port number =
chandroo@xxxxxxxxx::/opt/IBM/db2/V9.5/bin>