DB Name specified matches the SPM Name. Please use a different name SQLSTATE

 

在创建数据库或者恢复的时候出现下面语句:

SQL0901N The SQL statement failed because of a non-severe system error. 
Subsequent SQL statements can be processed. (Reason "DB Name specified 
matches the SPM Name. Please use a different name".) SQLSTATE=58004

 

SQL0901N  SQL 语句因为不严重的系统错误而失败。可以处理后续 SQL 语句。(原因为

"DB Name specified matches the SPM Name. Please use a different name"。)

SQLSTATE=58004


  ------------------------------------------------------


解决方法如下:

db2 update dbm cfg using SPM_NAME NULL
db2 update dbm cfg using SPM_NAME newname

db2stop
db2start

你可能感兴趣的:(matches)