我在连接数据库发生错误
db2 connect to raychn
SQL1031N The database directory cannot be found on the indicated file system.
查看本地数据库
db2 list db directory System Database Directory Number of entries in the directory = 1Database 1 entry: Database alias = RAYCHN
Database name = RAYCHN
Local database directory = /db2/RAYCHN
Database release level = d.00
Comment =
Directory entry type = Indirect
Catalog database partition number = 0
Alternate server hostname =
Alternate server port number =
我的数据文件目录: /db2/RAYCHN/dbdata(1-6)/db2inst1/NODE0000/RAYCHN/T0000000
我试着uncatalog db 然后再执行
db2 catalog db raychn as raychn on /db2/RAYCHN 报
SQL6028N Catalog database failed because database "raychn" was not found in
the local database directory.
怎么才能解决这个问题啊?
收起