db2数据库别名未通过列表数据库目录列出,但仍无法创建该数据库
作者:互联网
我试图通过登录到安装了db2服务器的linux服务器来创建数据库,作为实例所有者
db2 => list database directory
System Database Directory
Number of entries in the directory = 1
Database 1 entry:
Database alias = SAMPLE
Database name = SAMPLE
Local database directory = /home/mylogin/sqllib
Database release level = f.00
Comment =
Directory entry type = Indirect
Catalog database partition number = 0
Alternate server hostname =
Alternate server port number =
db2 => create database testdb2
SQL1005N The database alias "TESTDB2" already exists in either the local
database directory or system database directory.
db2 => list database directory on /home/mylogin/sqllib
Local Database Directory on /home/mylogin/sqllib
Number of entries in the directory = 1
Database 1 entry:
Database alias = SAMPLE
Database name = SAMPLE
Database directory = SQL00001
Database release level = f.00
Comment =
Directory entry type = Home
Catalog database partition number = 0
Database member number = 0
db2 => quit
我还检查了除了我的以外是否存在任何其他实例,但没有.
DB20000I The QUIT command completed successfully.
-bash-4.1$db2ilist
mylogin
虽然列表数据库目录未列出别名testdb2,但db2声称该别名已存在于系统数据库目录或本地数据库目录中.
如果是这样,我如何获得列出testdb2的list database目录的等价物?
解决方法:
db2 list db目录用于系统级目录. < path>上还有db2 list db目录.列出该特定路径上的所有数据库.
想知道你是否曾试图取消目录或编目?您可以看到编目是否允许您删除它.
更糟糕的情况是,您可能需要使用数据库在磁盘上找到该位置并手动将其删除(只要它没有编目).
标签:linux,db2,catalogs 来源: https://codeday.me/bug/20190806/1598375.html