【发布时间】:2014-08-12 12:00:02
【问题描述】:
我在本地 Ubuntu 12.04 机器上安装了 DB2 10.5 版本。现在我需要一个 GUI。我已经尝试过 squirrel-sql 和 Db-Visualizer。虽然 Db-Visualizer 为我提供了仅查看的数据库结构,但 squirrel-sql 为我提供了更多管理选项。但是现在我需要一个 DB2 管理员工具,它可以处理所有这些任务以及备份/恢复、导入/导出等。
我听了很多关于 IBM Data Studio 作为 DB2 的事实上的工具。所以我安装了它。安装完成后,我无法连接到我的 DB2 数据库/模式。令人惊讶的是,我很容易通过 squirrel-sql 和 Db-Visualizer 连接我的 Db,但 IBM Data Studio 拒绝连接。在尝试期间它会出现以下错误。
Full message content: [jcc][t4][2043][11550][4.17.30] Exception java.net.SocketException: Error opening socket to server localhost/127.0.0.1 on port 50,000 with message: Malformed reply from SOCKS server.
An attempt was made to access a database that was not found, has not been started, or does not support transactions.
Ensure that the specified database name exists in the system database directory. If the database name does not exist in the system database directory, either the database does not exist or the database name has not been cataloged. If needed, issue a db2start command and then resubmit the current command. SQL4499N A fatal error occurred that resulted in a disconnect from the data source. SQLSTATE: 08004
我已经指定了,
Local : Db2 for Linux, Unix & Windows
Database : <mydbname>
Host : localhost
Port Number : 50000
UserName : db2inst1
Password : XXXXXX
Default Schema : db2inst1
任何人都可以建议是否需要额外的步骤来连接。
更新:用于堆栈跟踪的 Pastebin 链接:http://pastebin.com/ySmrFKNV
更新 1:在线搜索 DB2 论坛是否存在相同问题,有人建议检查系统代理设置。所以是的,我的系统启用了代理设置。但即使在 Ubuntu 的网络设置中将代理设置为 NONE 后,问题仍然存在。
更新 2:重新安装 Data Studio 后问题已解决。不知道出现了什么问题,但现在它可以使用相同的设置。
【问题讨论】:
-
您确定可以从 db2clp 连接到数据库吗? db2 连接到 XXXX。看起来实例没有启动:db2start
-
@AngocA 对于shell DB登录,我总是用户登录到db2inst1并传递命令'db2',这将我引导到DB shell,然后我可以使用命令'connect to
'来连接db .这就是我用来连接到 shell 上的数据库的方式。如果 db2 命令与 db2clp 相同。我使用的是 DB2 10.5 Linux 版本。 -
实例端口呢?它是打开?使用 'telnet hostname/IP portNumber' 测试它
-
通过telnet连接。正如我在帖子中提到的,我可以通过 DB Visualizer & Squirrel Sql 工具进行连接,我在其中指定了类似的设置进行连接。
-
这很奇怪。尝试创建 PMR
标签: db2 db2-luw ibm-data-studio