<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE feed [
      <!ENTITY lt "&#38;#60;">
      <!ENTITY gt "&#62;">
      <!ENTITY amp "&#38;#38;">
      <!ENTITY apos "&#39;">
      <!ENTITY quot "&#34;">
      <!ENTITY nbsp "&#160;">
      <!ENTITY copy "&#169;">
]>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title type="text">ブログ</title>
    <subtitle type="text">UJP-Unwired Job Professional</subtitle>
    <updated>2026-05-26T10:10:15+09:00</updated>
    <id>http://www.ujp.jp/modules/d3blog/index.php</id>
    <link rel="alternate" type="text/xhtml" hreflang="ja" href="http://www.ujp.jp/" />
    <link rel="self" type="application/atom+xml" href="http://www.ujp.jp/modules/d3blog/index.php?page=atom" />
    <rights>Copyright (c) 1995-2020</rights>
    <generator uri="http://www.ujp.jp/">D3BLOG - XOOPS BLOG MODULE</generator>
    <entry>
        <title>DB2でユーザー ID とパスワードに有効な文字</title>
        <link rel="alternate" type="text/xhtml" href="http://www.ujp.jp/modules/d3blog/details.php?bid=6062" />
        <id>http://www.ujp.jp/modules/d3blog/details.php?bid=6062</id>
        <published>2019-03-07T23:00:00+09:00</published>
        <updated>2019-03-11T00:44:18+09:00</updated>
        <category term="Db2" label="Db2" />
        <author>
            <name>ujpblog</name>
        </author>
        <summary type="html" xml:base="http://www.ujp.jp/" xml:lang="ja">　DB2のユーザ管理はOSユーザと統合？されているのだけれど，OSユーザのパスワードに使えても，DB2のユーザとしては使えない文字があります．ユーザー ID とパスワードに有効な文字https:/...</summary>
       <content type="html" xml:lang="ja" xml:base="http://www.ujp.jp/">
<![CDATA[<div>　DB2のユーザ管理はOSユーザと統合？されているのだけれど，OSユーザのパスワードに使えても，DB2のユーザとしては使えない文字があります．<br /><br />ユーザー ID とパスワードに有効な文字<br /><a href="https://www.ibm.com/support/knowledgecenter/ja/SSNE44_4.2.0/com.ibm.tpc_V42.doc/fqz0_r_valid_userids_and_passwords.html" rel="external">https://www.ibm.com/support/knowledgecenter/ja/SSNE44_4.2.0/com.ibm.tpc_V42.doc/fqz0_r_valid_userids_and_passwords.html</a><br /><br /><div class="xoopsCode"><pre><code>ユーザー ID には以下の文字を使用できます。

A から Z (大文字)
a から z (小文字)
0 から 9 (数字)
特殊文字: - _ .

以下の特殊文字は使用しないでください。

! @ $ * = + [ ] \ | ; : &quot; , &lt; &gt; / ? .</code></pre></div>　これで，OSログインはできるのに，DB2に接続できないという事象が発生してしまう．当然，５回ほどパスワードを間違えるとアカウントロックされてしまうので，気をつけないとね．．．</div>]]>
       </content>
    </entry>
    <entry>
        <title>Db2 Developer-C Edition11.1.3.3をmacOS X 10.13.6(High Sierra)にインストール　その２</title>
        <link rel="alternate" type="text/xhtml" href="http://www.ujp.jp/modules/d3blog/details.php?bid=6045" />
        <id>http://www.ujp.jp/modules/d3blog/details.php?bid=6045</id>
        <published>2019-02-19T19:43:44+09:00</published>
        <updated>2019-02-19T19:43:44+09:00</updated>
        <category term="Db2" label="Db2" />
        <author>
            <name>ujpblog</name>
        </author>
        <summary type="html" xml:base="http://www.ujp.jp/" xml:lang="ja">　去年(2018年)の８月にうやりかけた作業の続き．ほぼ忘れてしまっていた．　前回は本体のダウンロードが始まったところで終わっていたけれど，それらが終了するとこのように表示され...</summary>
       <content type="html" xml:lang="ja" xml:base="http://www.ujp.jp/">
<![CDATA[<div>　<a href="http://www.ujp.jp/modules/d3blog/details.php?bid=5745" rel="external">去年(2018年)の８月</a>にうやりかけた作業の続き．ほぼ忘れてしまっていた．<br /><br />　前回は本体のダウンロードが始まったところで終わっていたけれど，それらが終了するとこのように表示される．<br /><br /><center><img src="http://www.ujp.jp/modules/xelfinder/index.php?page=view&file=5854&Db2forMac015.jpg" align="center" alt="" /></center><br />　右下のLaunch Db2 Developer Cをクリック．<br /><br /><center><img src="http://www.ujp.jp/modules/xelfinder/index.php?page=view&file=5855&Db2forMac016.jpg" align="center" alt="" /></center><br />　Get Startedを選択．<br /><br /><center><img src="http://www.ujp.jp/modules/xelfinder/index.php?page=view&file=5856&Db2forMac017.jpg" align="center" alt="" /></center><br />　ユーザは，インストールした時に作成したもの（ここではscott/tiger）を使ってログイン．<br /><br /><center><img src="http://www.ujp.jp/modules/xelfinder/index.php?page=view&file=5853&Db2forMac018.jpg" align="center" alt="" /></center><br />　起動できたことが確認できた．</div>]]>
       </content>
    </entry>
    <entry>
        <title>DB2 Express-C database server for Windows (64bit) その12 Oracle SQL Developer接続する</title>
        <link rel="alternate" type="text/xhtml" href="http://www.ujp.jp/modules/d3blog/details.php?bid=6027" />
        <id>http://www.ujp.jp/modules/d3blog/details.php?bid=6027</id>
        <published>2019-02-05T00:13:52+09:00</published>
        <updated>2019-02-05T00:13:52+09:00</updated>
        <category term="Db2" label="Db2" />
        <author>
            <name>ujpblog</name>
        </author>
        <summary type="html" xml:base="http://www.ujp.jp/" xml:lang="ja">　データベース管理ツールで（OTNに会員登録が必要だが）無料のOracle SQL Developerは，Oracle Databaseだけでなく他のデータベースにも対応している．　その１つがDb2．ということで接続してみ...</summary>
       <content type="html" xml:lang="ja" xml:base="http://www.ujp.jp/">
<![CDATA[<div>　データベース管理ツールで（OTNに会員登録が必要だが）無料のOracle SQL Developerは，Oracle Databaseだけでなく他のデータベースにも対応している．　その１つがDb2．ということで接続してみる．<br /><br />　前提としては，<a href="http://www.ujp.jp/modules/d3blog/details.php?bid=6026" rel="external">Db2用のJDBCドライバ</a>を入手してあること．SQL Developerの導入も済んでいること．ここでは，Mac用のOracle SQL Deverloperで操作をするが，Windows版でも方法は同じ．<br /><br />　まずは，SQL DeverloperにDb2用のJDBCドライバを登録するところから始まる．<br /><br /><center><img src="http://www.ujp.jp/modules/xelfinder/index.php?page=view&file=5838&SQLdevDB2_00001.jpg" align="center" alt="" /></center><br />　あとは見ていけばわかるでしょう．．．<br /><center><img src="http://www.ujp.jp/modules/xelfinder/index.php?page=view&file=5837&SQLdevDB2_00002.jpg" align="center" alt="" /></center><br /><br /><center><img src="http://www.ujp.jp/modules/xelfinder/index.php?page=view&file=5828&SQLdevDB2_00003.jpg" align="center" alt="" /></center><br /><br /><center><img src="http://www.ujp.jp/modules/xelfinder/index.php?page=view&file=5829&SQLdevDB2_00004.jpg" align="center" alt="" /></center><br /><br /><center><img src="http://www.ujp.jp/modules/xelfinder/index.php?page=view&file=5836&SQLdevDB2_00005.jpg" align="center" alt="" /></center><br /><br /><center><img src="http://www.ujp.jp/modules/xelfinder/index.php?page=view&file=5835&SQLdevDB2_00006.jpg" align="center" alt="" /></center><br />　ここで，Db2のタブが増えてない場合，ドライバの認識に失敗している．再ダウンロードなり正しいドライバを入手する．<br /><br /><center><img src="http://www.ujp.jp/modules/xelfinder/index.php?page=view&file=5834&SQLdevDB2_00007.jpg" align="center" alt="" /></center><br />　保存を忘れないように．<br /><br /><center><img src="http://www.ujp.jp/modules/xelfinder/index.php?page=view&file=5833&SQLdevDB2_00008.jpg" align="center" alt="" /></center><br /><br /><center><img src="http://www.ujp.jp/modules/xelfinder/index.php?page=view&file=5832&SQLdevDB2_00009.jpg" align="center" alt="" /></center><br />　testで接続できない場合，Firewallをまず疑ってみる．<br /><br /><center><img src="http://www.ujp.jp/modules/xelfinder/index.php?page=view&file=5827&SQLdevDB2_00010.jpg" align="center" alt="" /></center><br /><br /><center><img src="http://www.ujp.jp/modules/xelfinder/index.php?page=view&file=5831&SQLdevDB2_00011.jpg" align="center" alt="" /></center><br /><br /><center><img src="http://www.ujp.jp/modules/xelfinder/index.php?page=view&file=5830&SQLdevDB2_00012.jpg" align="center" alt="" /></center></div>]]>
       </content>
    </entry>
    <entry>
        <title>DB2 JDBC Driverの入手</title>
        <link rel="alternate" type="text/xhtml" href="http://www.ujp.jp/modules/d3blog/details.php?bid=6026" />
        <id>http://www.ujp.jp/modules/d3blog/details.php?bid=6026</id>
        <published>2019-02-04T23:15:32+09:00</published>
        <updated>2019-02-04T23:15:32+09:00</updated>
        <category term="Db2" label="Db2" />
        <author>
            <name>ujpblog</name>
        </author>
        <summary type="html" xml:base="http://www.ujp.jp/" xml:lang="ja">　JavaアプリからDb2に接続するためのドライバ．My IBMに登録が必要．DB2 JDBC Driver Versions and Downloadshttp://www-01.ibm.com/support/docview.wss?uid=swg21363866　JDBC 3.0 driver (db2jcc.jar)と，JDBC 4.0 Driver (db2jcc4.jar)...</summary>
       <content type="html" xml:lang="ja" xml:base="http://www.ujp.jp/">
<![CDATA[<div>　JavaアプリからDb2に接続するためのドライバ．My IBMに登録が必要．<br /><br />DB2 JDBC Driver Versions and Downloads<br /><a href="http://www-01.ibm.com/support/docview.wss?uid=swg21363866" rel="external">http://www-01.ibm.com/support/docview.wss?uid=swg21363866</a><br /><br />　JDBC 3.0 driver (db2jcc.jar)と，JDBC 4.0 Driver (db2jcc4.jar)がある．今回は，DB2 Version 11.1を入手．<br /><br /><center><img src="http://www.ujp.jp/modules/xelfinder/index.php?page=view&file=5826&Db2JdbcDriver.jpg" align="center" alt="" /></center><br />　ダウンロードしたファイルを確認．<br /><div class="xoopsCode"><pre><code>$ ls -la🆑
total 10576
drwxr-xr-x   4 ujpadmin staff      128  2  4 23:04  .
drwx------+ 46 ujpadmin staff     1472  2  4 23:05  ..
-rw-r--r--   1 ujpadmin staff     6148  2  4 23:05  .DS_Store
-rw-r--r--   1 ujpadmin staff 10821468  2  4 22:58 &#039;db2_db2driver_for_jdbc_sqlj_v11.1 2.zip&#039;🈁
$</code></pre></div>　ZIPファイルを展開．<br /><div class="xoopsCode"><pre><code>$ unzip db2_db2driver_for_jdbc_sqlj_v11.1\ 2.zip🆑
Archive:  db2_db2driver_for_jdbc_sqlj_v11.1 2.zip
  inflating: db2jcc.jar🈁
  inflating: db2jcc4.jar🈁
  inflating: sqlj.zip
  inflating: sqlj4.zip
  inflating: jdbc_REDIST.txt
  inflating: jdbc4_REDIST.txt
  inflating: jdbc_LI_zh_TW
  inflating: jdbc4_LI_zh_TW
  inflating: jdbc_LI_zh
  inflating: jdbc4_LI_zh
  inflating: jdbc_LI_tr
  inflating: jdbc4_LI_tr
  inflating: jdbc_LI_pt
  inflating: jdbc4_LI_pt
  inflating: jdbc_LI_pl
  inflating: jdbc4_LI_pl
  inflating: jdbc_LI_ko
  inflating: jdbc4_LI_ko
  inflating: jdbc_LI_ja
  inflating: jdbc4_LI_ja
  inflating: jdbc_LI_it
  inflating: jdbc4_LI_it
  inflating: jdbc_LI_fr
  inflating: jdbc4_LI_fr
  inflating: jdbc_LI_es
  inflating: jdbc4_LI_es
  inflating: jdbc_LI_de
  inflating: jdbc4_LI_de
  inflating: jdbc_LI_cs
  inflating: jdbc4_LI_cs
  inflating: jdbc_LI_en
  inflating: jdbc4_LI_en
  inflating: jdbc_LI_tw.rtf
  inflating: jdbc4_LI_tw.rtf
  inflating: jdbc_LI_cn.rtf
  inflating: jdbc4_LI_cn.rtf
  inflating: jdbc_LI_tr.rtf
  inflating: jdbc4_LI_tr.rtf
  inflating: jdbc_LI_br.rtf
  inflating: jdbc4_LI_br.rtf
  inflating: jdbc_LI_pl.rtf
  inflating: jdbc4_LI_pl.rtf
  inflating: jdbc_LI_kr.rtf
  inflating: jdbc4_LI_kr.rtf
  inflating: jdbc_LI_jp.rtf
  inflating: jdbc4_LI_jp.rtf
  inflating: jdbc_LI_it.rtf
  inflating: jdbc4_LI_it.rtf
  inflating: jdbc_LI_fr.rtf
  inflating: jdbc4_LI_fr.rtf
  inflating: jdbc_LI_es.rtf
  inflating: jdbc4_LI_es.rtf
  inflating: jdbc_LI_en.rtf
  inflating: jdbc4_LI_en.rtf
  inflating: jdbc_LI_de.rtf
  inflating: jdbc4_LI_de.rtf
  inflating: jdbc_LI_cz.rtf
  inflating: jdbc4_LI_cz.rtf
$</code></pre></div>　ファイルはたくさんあるけれど，プログラムのご使用条件とあるライセンスに関する文言が各国語分入っている．<br />　必要なのはこの２つのファイル．<br /><div class="xoopsCode"><pre><code>$ ls -la *.jar
-rw-r--r-- 1 ujpadmin staff 3657990  6  9  2016 db2jcc.jar
-rw-r--r-- 1 ujpadmin staff 3894263  6  9  2016 db2jcc4.jar
$</code></pre></div>　JDBC3.0を利用する場合は，db2jcc.jarでJDBC4.0を利用する場合はdb2jcc4.jarなのだそうです．これを使うには，CLASSPATHが通る場所に配置する．</div>]]>
       </content>
    </entry>
    <entry>
        <title>DB2 Express-C database server for Windows (64bit) その２</title>
        <link rel="alternate" type="text/xhtml" href="http://www.ujp.jp/modules/d3blog/details.php?bid=6014" />
        <id>http://www.ujp.jp/modules/d3blog/details.php?bid=6014</id>
        <published>2019-01-27T22:01:15+09:00</published>
        <updated>2019-01-27T22:01:15+09:00</updated>
        <category term="Db2" label="Db2" />
        <author>
            <name>ujpblog</name>
        </author>
        <summary type="html" xml:base="http://www.ujp.jp/" xml:lang="ja">　ダウンロードしたファイルを展開して，基本的にはデフォルトでインストールを行う．今回はIBM SSH Serverも同時にインストールする．</summary>
       <content type="html" xml:lang="ja" xml:base="http://www.ujp.jp/">
<![CDATA[<div>　ダウンロードしたファイルを展開して，基本的にはデフォルトでインストールを行う．今回はIBM SSH Serverも同時にインストールする．<br /><br /><center><img src="http://www.ujp.jp/modules/xelfinder/index.php?page=view&file=5799&DB2Expess-CforWin10_005.jpg" align="center" alt="" /></center><br /><center><img src="http://www.ujp.jp/modules/xelfinder/index.php?page=view&file=5798&DB2Expess-CforWin10_006.jpg" align="center" alt="" /></center><br /><br /><center><img src="http://www.ujp.jp/modules/xelfinder/index.php?page=view&file=5794&DB2Expess-CforWin10_007.jpg" align="center" alt="" /></center><br /><br /><center><img src="http://www.ujp.jp/modules/xelfinder/index.php?page=view&file=5791&DB2Expess-CforWin10_008.jpg" align="center" alt="" /></center><br /><br /><center><img src="http://www.ujp.jp/modules/xelfinder/index.php?page=view&file=5790&DB2Expess-CforWin10_009.jpg" align="center" alt="" /></center><br />　展開したファイルの中に，setup.exeがあるので，それを実行．<br /><br /><center><img src="http://www.ujp.jp/modules/xelfinder/index.php?page=view&file=5789&DB2Expess-CforWin10_010.jpg" align="center" alt="" /></center><br />　この画面が問題．左にあるペインに表示されているべキモいのがないので，タブキーとエンターで手探りで移動して，新規インストールを選ぶかか，ALT+Iキーを押してインストールを選択する．<br /><br /><center><img src="http://www.ujp.jp/modules/xelfinder/index.php?page=view&file=5788&DB2Expess-CforWin10_011.jpg" align="center" alt="" /></center><br /><br /><center><img src="http://www.ujp.jp/modules/xelfinder/index.php?page=view&file=5787&DB2Expess-CforWin10_012.jpg" align="center" alt="" /></center><br /><br /><center><img src="http://www.ujp.jp/modules/xelfinder/index.php?page=view&file=5786&DB2Expess-CforWin10_013.jpg" align="center" alt="" /></center><br /><br /><center><img src="http://www.ujp.jp/modules/xelfinder/index.php?page=view&file=5814&DB2Expess-CforWin10_014.jpg" align="center" alt="" /></center><br /><br /><center><img src="http://www.ujp.jp/modules/xelfinder/index.php?page=view&file=5813&DB2Expess-CforWin10_015.jpg" align="center" alt="" /></center><br />　今回は標準でインストール．<br /><br /><center><img src="http://www.ujp.jp/modules/xelfinder/index.php?page=view&file=5812&DB2Expess-CforWin10_016.jpg" align="center" alt="" /></center><br />　応答ファイルは保存しておく．多分，次回以降のインストールを簡単にするための設定ファイルが書き出されるでしょう．<br />　<br /><br /><center><img src="http://www.ujp.jp/modules/xelfinder/index.php?page=view&file=5811&DB2Expess-CforWin10_017.jpg" align="center" alt="" /></center><br /><br /><center><img src="http://www.ujp.jp/modules/xelfinder/index.php?page=view&file=5810&DB2Expess-CforWin10_018.jpg" align="center" alt="" /></center><br />　コマンドラインでリモート接続しやすいようにするためか？　IBM Secue Shell Server for Windowsが用意されているので，今回は使って観たいのでインストールする．リモート画面などを使うので不要と言うなら，いらないと思う．<br /><br /><center><img src="http://www.ujp.jp/modules/xelfinder/index.php?page=view&file=5809&DB2Expess-CforWin10_019.jpg" align="center" alt="" /></center><br />　DB2はOSのアカウントと認証が統合されているが，DB2用の管理者権限を持つアカウントを，デフォルトではdb2adminとしてあって，これをOSにユーザを作成する．<br /><br /><center><img src="http://www.ujp.jp/modules/xelfinder/index.php?page=view&file=5808&DB2Expess-CforWin10_020.jpg" align="center" alt="" /></center><br /><br /><center><img src="http://www.ujp.jp/modules/xelfinder/index.php?page=view&file=5807&DB2Expess-CforWin10_021.jpg" align="center" alt="" /></center><br />　インスタンスはデフォルトのまま．<br /><br /><center><img src="http://www.ujp.jp/modules/xelfinder/index.php?page=view&file=5806&DB2Expess-CforWin10_022.jpg" align="center" alt="" /></center><br />　これまで選択した情報が表示されている．ライセンスに同意していても，結局は使用権なのでDB2COPY1という名前でコピーされる模様．<br />　テキストをコピペで保存したものがこれ．<br /><div class="xoopsCode"><pre><code>インストールする製品:                   	DB2 Express-C - DB2COPY1
インストール・タイプ:                   	標準

DB2 コピー名:                           	DB2COPY1
デフォルト DB2 コピーに設定:            	はい
デフォルト IBM データベース・クライアント・インターフェース・コピーに設定:	はい

選択されたフィーチャー:
    基本アプリケーション開発ツール
    基本クライアント・サポート
    管理ツール
    IBM Data Server Provider for .NET
    ファースト・ステップ
    Spatial Extender クライアント
    DB2 更新サービス
    JDBC サポート
    DB2 LDAP サポート
    ODBC サポート
    OLE DB サポート
	サンプル・データベース・ソース
    SQLJ サポート
    IBM Secure Shell Server for Windows 	
    DB2 WMI プロバイダー

言語:
    英語
    日本語

ターゲット・ディレクトリー :            	C:¥Program Files¥IBM¥SQLLIB
必要なスペース:                         	1495 MB
インストール固有のドライバーの詳細      
IBM Data Server Driver for ODBC and CLI の名前:	IBM DB2 ODBC DRIVER - DB2COPY1
OLE DB Provider GUID:                   	{7D3AF897-40EA-8B65-EFA3-3D9CFE41465F}
新規インスタンス:                       
    インスタンス名:                     	DB2
        リブート時にインスタンスを開始する:	はい
        TCP/IP の構成:                  	
            サービス名:                 	db2c_DB2
            ポート番号:                 	50000
        インスタンス・ユーザー情報:     	
            ユーザー名:                 	db2admin
                                        
DB2 Administration server:              
    インスタンス・ユーザー情報:         	
        ユーザー名:                     	db2admin

IBM Secure Shell Server for Windows:    

        IBM SSH サーバーのターゲット・ディレクトリー:	C:¥Program Files¥IBM¥IBM SSH Server
        IBM SSH サーバー・サービスの始動タイプ:	自動
応答ファイル名:                         	C:¥Users¥ujpadmin¥Documents¥PROD_EXPC.rsp</code></pre></div>　内容に問題がなければ，インストールを開始する．<br /><br /><center><img src="http://www.ujp.jp/modules/xelfinder/index.php?page=view&file=5805&DB2Expess-CforWin10_023.jpg" align="center" alt="" /></center><br /><br /><center><img src="http://www.ujp.jp/modules/xelfinder/index.php?page=view&file=5804&DB2Expess-CforWin10_024.jpg" align="center" alt="" /></center><br /><br /><center><img src="http://www.ujp.jp/modules/xelfinder/index.php?page=view&file=5803&DB2Expess-CforWin10_025.jpg" align="center" alt="" /></center><br />　DB2はデフォルトでは50000番ポートを使って通信を行う．<br /><br /><center><img src="http://www.ujp.jp/modules/xelfinder/index.php?page=view&file=5802&DB2Expess-CforWin10_026.jpg" align="center" alt="" /></center><br />　GUI画面が出たら完了．</div>]]>
       </content>
    </entry>
</feed>