IT分销/经销

数据库连接错误

我在连接数据库发生错误 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...显示全部
我在连接数据库发生错误
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.
怎么才能解决这个问题啊?收起
参与8

查看其它 6 个回答Jerrychan的回答

JerrychanJerrychan系统架构师思达奇
是的。数据库已经catalog上去了。原来是有个/db2/db2inst1的目录没有拷贝出来 。拷出来就可以了。但是现在连接还是不行 。报
SQL0293N  Error accessing a table space container.  SQLSTATE=57048
IT分销/经销 · 2012-09-11
浏览909

回答者

Jerrychan
系统架构师思达奇

Jerrychan 最近回答过的问题

回答状态

  • 发布时间:2012-09-11
  • 关注会员:1 人
  • 回答浏览:909
  • X社区推广