我有一个旧的测试数据库在我运行时显示db2 list database directory
Database 8 entry:
Database alias = TEST_AN
Database name = TEST_AN
Local database directory = /home/users/db2inst
Database release level = d.00
Comment =
Directory entry type = Indirect
Catalog database partition number = 0
Alternate server hostname =
Alternate server port number =
但是当我跑步时它不存在db2 list database directory on /home/users/db2inst
我无法连接到它:
> db2 connect to TEST_AN
SQL1013N The database alias name or database name "TEST_AN" could not be
found. SQLSTATE=42705
或放弃它:
> db2 drop db TEST_AN
SQL1013N The database alias name or database name "TEST_AN " could not be
found. SQLSTATE=42705
而且我无法使用该名称创建新数据库:
> db2 create database TEST_AN
SQL1005N The database alias "TEST_AN" already exists in either the local
database directory or system database directory.
有谁知道问题是什么,我怎样才能摆脱这个存在和不存在的数据库?