Bluemix에서 데이터 분석 "dashDB": DB2 V11의 클라이언트에서 Linux에서 dashDB에 연결해 보았다.
v11부터 IBM Data Server Driver는 dashDB 및 SQLDB를 지원합니다.
소개
이번에는 최소한의 것만 넣고 싶었기 때문에 CLP만 사용할 수 있도록 IBM Data Server Runtime Client를 CentOS7(64bit) 설치했습니다.
htp://www01. 이 bm. 코 m / 쏙 rt / 드 cゔぃ에 w. ws? 우이 d = swg21385217
(캡쳐가 크고 긴 기사로 보이지만 전혀 곧 끝납니다 (웃음))
설치 전 준비
다운로드한 패키지의 압축해제
$ tar xvfz ibm_data_server_runtime_client_linuxx64_v11.1.tar.gz
설치를 위한 명령을 실행합니다(GUI 환경(X 환경) 필요)
$ cd rtcl/
$ ./db2setup
설치 마법사
뭔가 멋진 화면에서 "새로운 설치"를 클릭

다음을 클릭합니다.

특히 코다와리 없기 때문에, 「표준」을 선택했습니다. 다음을 클릭합니다.

암호를 설정합니다. 다음을 클릭합니다.

마침을 클릭하여 잠시 기다립니다.


이것으로 설치 완료. 매우 간단했습니다.
겨우, select에서 해보자!
참조: ぃ tp // 이 m/아제 텐/있어 ms/554552 아 1150다 6607d35
$ db2 catalog tcpip node dashENT remote dashdb-xxxxxxx.bluemix.net server 50000
DB20000I CATALOG TCPIP NODE コマンドが正常に完了しました。
DB21056W ディレクトリーの変更は、
ディレクトリー・キャッシュがリフレッシュされるまで反映
されません。
$ db2 catalog db bludb as DDEP at node dashENT
DB20000I CATALOG DATABASE コマンドが正常に完了しました。
DB21056W ディレクトリーの変更は、
ディレクトリー・キャッシュがリフレッシュされるまで反映
されません。
연결!
$ db2 connect to DDEP user hogename using hogepassword
データベース接続情報
データベース・サーバー = DB2/LINUXX8664 11.1.0
SQL 許可 ID = HOGENAME...
ローカル・データベース別名 = DDEP
SQL을 쳐 보자
$ db2 "select count(*) from meisai"
1
---------------------------------
10000.
1 レコードが選択されました。
좋아!
Reference
이 문제에 관하여(Bluemix에서 데이터 분석 "dashDB": DB2 V11의 클라이언트에서 Linux에서 dashDB에 연결해 보았다.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/azzeten/items/87badf4b56b803de9e1a텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)