1

I am trying to establish a DB2 ODBC connection from my system. I installed the DB2 driver from IBM and i tried creating a system DSN. I got the following options: Data Source Name, Database Alias (Empty Drop down along with a Add button), Description. I do not know where to enter the IP of the server and the database name. When i click on the Add button, I get the textboxes to enter the UserID and Password. I tried entering them and a system DSN was created. I clicked on the DSN that was created and selected Configure button, to test the connection. It asked me to enter the password. When i entered the password and clicked on Connect button, I get a message stating that SQL1013N The Database alias name or database name "" cannot be found. SQLSTATE = 42705

I am not supposed to install DB2 on my machine. Please help me in resolving this.

4

3 に答える 3

2

以下の手順に従うと、DSN の作成に成功します。1. データ ソース名ファイルに DSN 名を指定します (名前は任意のユーザー名にすることができます。例: DSN_TEST) 2. [追加] ボタンをクリックします。 3. タブのある新しいウィンドウが開きます。 4. 最初のタブでユーザー名とパスワードを指定します。タブ: データベース名、エイリアス名を指定します (両方を同じ名前で指定することをお勧めします) ホスト フィールドはデータベース サーバーの IP アドレスを指定し、最後にポート フィールドはポート番号を指定します. 8. これで DSN が作成されました。

問題が解決しない場合はお知らせください

于 2013-06-03T09:00:00.777 に答える
0

DB2 データベース [DB2 カタログ] http://www-01.ibm.com/support/knowledgecenter/SSEPGG_9.7.0/com.ibm.db2.luw.admin.cmd.doc/doc/r0001936.htmlをカタログ化してから、新しく追加されたエイリアスを使用して DSN を作成します。動作するはずです。

于 2015-11-18T20:15:40.897 に答える
0

私は同じ問題を抱えていましたが、幸いにも詳細に役立つこのリンクに出くわしました http://www.ryslander.com/how-to-install-and-configure-db2-odbc-driver/

于 2016-06-16T08:17:27.007 に答える