连接到DB2数据库的错误58031
问题描述:
我在DB2中创建了一个数据库。这是工作,直到昨天,但现在我正在尝试连接到数据库时出现以下错误:连接到DB2数据库的错误58031
[IBM][CLI Driver] SQL1031N The database directory cannot be
found on the indicated file system. SQLSTATE=58031
Explanation:
The system database directory or local database directory could not be
found. A database has not been created or it was not cataloged
correctly.
The command cannot be processed.
User response:
Verify that the database is created with the correct path specification.
The Catalog Database command has a path parameter which specifies the
directory where the database resides.
sqlcode: -1031
sqlstate: 58031
什么是错误的原因以及如何解决它?
答
查看您的实际数据库文件所在的数据库文件夹是否已被重命名或移动。
答
这可能是一个许可问题。尝试重新安装许可证(如果有的话)。
您还需要检查$ DB2DIR值 – Ricketyship