<?xml version="1.0" encoding="gb2312"?>
<rss version="2.0">
<channel>
<title><![CDATA[yangkun Time]]></title>
        <image>
        <title>http://hi.baidu.com</title>
        <link>http://hi.baidu.com</link>
        <url>http://img.baidu.com/img/logo-hi.gif</url>
        </image>
<description><![CDATA[]]></description>
<link>http://hi.baidu.com/shunxinyangkun</link>
<language>zh-cn</language>
<generator>www.baidu.com</generator>
<ttl>5</ttl>


<item>
        <title><![CDATA[The Network Adapter could not establish the connection]]></title>
        <link><![CDATA[http://hi.baidu.com/shunxinyangkun/blog/item/7d4178c7d931cdc2d10060dc.html]]></link>
        <description><![CDATA[
		
		<p>打开 C:\Windows\System32\drivers\etc\hosts 文件</p><p>取消注释 </p><p>#&nbsp;&nbsp; &nbsp;127.0.0.1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; localhost</p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/shunxinyangkun/blog/category/Oracle">Oracle</a>&nbsp;<a href="http://hi.baidu.com/shunxinyangkun/blog/item/7d4178c7d931cdc2d10060dc.html#comment">查看评论</a>]]></description>
        <pubDate>2011-12-15  10:01</pubDate>
        <category><![CDATA[Oracle]]></category>
        <author><![CDATA[shunxinyangkun]]></author>
		<guid>http://hi.baidu.com/shunxinyangkun/blog/item/7d4178c7d931cdc2d10060dc.html</guid>
</item>

<item>
        <title><![CDATA[利用 Fine Grained Security 对 IBM Business Monitor 进行数据权限管理]]></title>
        <link><![CDATA[http://hi.baidu.com/shunxinyangkun/blog/item/74bf49551420e5dab745ae82.html]]></link>
        <description><![CDATA[
		
		<p>&nbsp;文章已经发表在developerWorks 上了。</p><p><a target="_blank" href="http://www.ibm.com/developerworks/cn/websphere/library/techarticles/1112_yangk_fgs/1112_yangk_fgs.html">http://www.ibm.com/developerworks/cn/websphere/library/techarticles/1112_yangk_fgs/1112_yangk_fgs.html</a></p><p>&nbsp;</p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/shunxinyangkun/blog/category/Ibm">Ibm</a>&nbsp;<a href="http://hi.baidu.com/shunxinyangkun/blog/item/74bf49551420e5dab745ae82.html#comment">查看评论</a>]]></description>
        <pubDate>2011-12-10  13:46</pubDate>
        <category><![CDATA[Ibm]]></category>
        <author><![CDATA[shunxinyangkun]]></author>
		<guid>http://hi.baidu.com/shunxinyangkun/blog/item/74bf49551420e5dab745ae82.html</guid>
</item>

<item>
        <title><![CDATA[Monitor 中 Cognos 必须的oracle 文件]]></title>
        <link><![CDATA[http://hi.baidu.com/shunxinyangkun/blog/item/c69d0a54032d8c48564e00dc.html]]></link>
        <description><![CDATA[
		
		<p>在oracle 的lib 文件夹中 拷贝 libclntsh.so&nbsp; 到cognos bin目录下</p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/shunxinyangkun/blog/category/Ibm">Ibm</a>&nbsp;<a href="http://hi.baidu.com/shunxinyangkun/blog/item/c69d0a54032d8c48564e00dc.html#comment">查看评论</a>]]></description>
        <pubDate>2011-10-16  14:56</pubDate>
        <category><![CDATA[Ibm]]></category>
        <author><![CDATA[shunxinyangkun]]></author>
		<guid>http://hi.baidu.com/shunxinyangkun/blog/item/c69d0a54032d8c48564e00dc.html</guid>
</item>

<item>
        <title><![CDATA[扩展aix系统的paging space]]></title>
        <link><![CDATA[http://hi.baidu.com/shunxinyangkun/blog/item/d73a09edbc2cb3c8b21cb16e.html]]></link>
        <description><![CDATA[
		
		<div><div><p><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 扩展<span>IBM Aix</span>操作系统的<span>paging space</span>空间，将其增加到<span>4G</span>。具体的步骤如下：</span></p><p><span><span style="">1)<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  </span></span></span><span>用<span>lsps -a</span>命令可以显示页面空间的属性，例如：页面空间的名字、物理卷、卷组、大小、类型和页面空间使用百分比率，还包括页面空间是否处于激活状态，是否被设置成自动激活。</span></p><p><span><span style="">2)<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  </span></span></span><span>lsvg <span>rootvg</span></span><span>命令查看页面空间所在卷组的情况，如卷组剩余空间大小，<span>ppsize</span>的大小等。</span></p><p><span><span style="">3)<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  </span></span></span><span>lsvg –p <span>rootvg</span></span><span>查看卷组中物理卷的信息，</span><span>系统将给出<span>VG</span>中每个<span>PV</span>上的空闲<span>PP</span>的分布情况，根据此情况划分适当的空间给<span>paging space</span>。</span></p><p><span><span style="">4)<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  </span></span></span><span>使用<span>smit <span>chps</span></span>命令进入操作界面，选定需要扩展的页面空间名称<span>hd6</span>，根据需要增加<span>PP</span>的个数。</span></p><p><span><span style="">5)<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  </span></span></span><span>lsps –a</span><span>查看<span>扩展</span>后的页面空间的情况。</span></p></div></div><p><span></span></p><p></p><p></p><p></p><p></p><p></p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/shunxinyangkun/blog/category/Aix">Aix</a>&nbsp;<a href="http://hi.baidu.com/shunxinyangkun/blog/item/d73a09edbc2cb3c8b21cb16e.html#comment">查看评论</a>]]></description>
        <pubDate>2011-10-11  17:58</pubDate>
        <category><![CDATA[Aix]]></category>
        <author><![CDATA[shunxinyangkun]]></author>
		<guid>http://hi.baidu.com/shunxinyangkun/blog/item/d73a09edbc2cb3c8b21cb16e.html</guid>
</item>

<item>
        <title><![CDATA[windows 2008--- the disk is offline because of policy set by an administrator]]></title>
        <link><![CDATA[http://hi.baidu.com/shunxinyangkun/blog/item/42c463a487053deb9052eeb5.html]]></link>
        <description><![CDATA[
		
		<div>Here's the <b>solution </b>to this annoying problem.</div><div><br /></div><div>What you have to do is first to query the current SAN policy from the command line with <b>DISKPART </b>and issue the following SAN commands:</div><div><br /></div><div>= = = = = = = = = = = = = = = = = = </div><div><br /></div><div><i>DISKPART.EXE</i></div><div><i><br /></i></div><div><i>DISKPART&gt; san</i></div><div><i><br /></i></div><div><i>SAN Policy : Offline Shared</i></div><div><br /></div><div>= = = = = = = = = = = = = = = = = =</div><div><br /></div><div>Once you have verified that the applied policy is Offline Shared, you have t<b>wo options</b> to set the disk to Online.</div><div><br /></div><div>The first one is to log in to your system as an Administrator, click Computer Management &gt; Storage &gt; <b>Disk Management</b>, right-click the disk and choose Online.</div><div><br /></div><div>The second one is to make a <b>SAN policy change</b>, then select the offline disk, force a clear of its readonly flag and bring it online. Follow these steps:</div><div><br /></div><div>= = = = = = = = = = = = = = = = = =</div><div><br /></div><div><i>DISKPART&gt; san policy=OnlineAll</i></div><div><i><br /></i></div><div><i>DiskPart successfully changed the SAN policy for the current operating system.</i></div><div><br /></div><div><i>DISKPART&gt; LIST DISK</i></div><div><i><br /></i></div><div><i>Disk ###  Status         Size     Free     Dyn  Gpt</i></div><div><i>--------  -------------  -------  -------  ---  ---</i></div><div><i>Disk 0    Online           40 GB      0 B</i></div><div><i>* Disk 1    Offline          10 GB  1024 KB</i></div><div><i><br /></i></div><div><i>DISKPART&gt;; select disk 1</i></div><div><i><br /></i></div><div><i>Disk 1 is now the selected disk.</i></div><div><i><br /></i></div><div><i>DISKPART&gt; ATTRIBUTES DISK CLEAR READONLY</i></div><div><i><br /></i></div><div><i>Disk attributes cleared successfully.</i></div><div><i><br /></i></div><div><i>DISKPART&gt; attributes disk</i></div><div><i>Current Read-only State : No</i></div><div><i>Read-only  : No</i></div><div><i>Boot Disk  : No</i></div><div><i>Pagefile Disk  : No</i></div><div><i>Hibernation File Disk  : No</i></div><div><i>Crashdump Disk  : No</i></div><div><i>Clustered Disk  : No</i></div><div><i><br /></i></div><div><i>DISKPART&gt; ONLINE DISK</i></div><div><i><br /></i></div><div><i>DiskPart successfully onlined the selected disk.</i></div><div><b>Restart OS.</b><br /></div><div>= = = = = = = = = = = = = = = = = =</div><div><br /></div><div>Once that is done, the drive mounts automagically.</div> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/shunxinyangkun/blog/category/%C8%ED%BC%FE%B3%A3%CA%B6">软件常识</a>&nbsp;<a href="http://hi.baidu.com/shunxinyangkun/blog/item/42c463a487053deb9052eeb5.html#comment">查看评论</a>]]></description>
        <pubDate>2011-10-10  18:34</pubDate>
        <category><![CDATA[软件常识]]></category>
        <author><![CDATA[shunxinyangkun]]></author>
		<guid>http://hi.baidu.com/shunxinyangkun/blog/item/42c463a487053deb9052eeb5.html</guid>
</item>

<item>
        <title><![CDATA[enable the Oracle database XA]]></title>
        <link><![CDATA[http://hi.baidu.com/shunxinyangkun/blog/item/39261ddfde18ce0f48540337.html]]></link>
        <description><![CDATA[
		
		<p>Configuring the Oracle database</p><div><p>The Oracle database must be configured to enable OracleJVM and, to be used by <span>WebSphere&#174; ProcessServer</span>, itmust be XA-enabled.</p><div><div>About this task</div><p>XA is a two-phase commit protocol defined by the X/OpenDTP group.</p><p>The following steps must be performed by the databaseuser with SYS authority.</p></div><div><strong>Procedure</strong></div><p><span>To enable Oracle JVM, perform the following steps:</span><span></span></p><p><span>As the SYS user, determine whether the Oracle <span>JVM</span> component is already installed by invokingthe following query from SQL*Plus:</span></p><p><span></span>selectcomp_name, version, status from dba_registry;</p><div><p>You see the following messages:</p><table width="375"><tbody><tr><td>COMP_NAME<span style="">&nbsp;</span></td><td>VERSION<span style="">&nbsp;</span></td><td>STATUS</td></tr><tr><td>Oracle<span style="">&nbsp;</span>Database<span style="">&nbsp;</span>Catalog<span style="">&nbsp;</span>Views<span style="">&nbsp;</span></td><td>10.2.0.1.0<span style="">&nbsp;</span></td><td>VALID</td></tr><tr><td>Oracle<span style="">&nbsp;</span>Database<span style="">&nbsp;</span>Packages<span style="">&nbsp;</span>and<span style="">&nbsp;</span>Types<br /></td><td>10.2.0.1.0<span style="">&nbsp;</span></td><td>VALID</td></tr><tr><td>Oracle<span style="">&nbsp;</span>Workspace<span style="">&nbsp;</span>Manager<span style="">&nbsp;</span><br /></td><td>10.2.0.1.0<span style="">&nbsp;</span></td><td>VALID</td></tr><tr><td>JServer<span style="">&nbsp;</span>JAVA<span style="">&nbsp;</span>Virtual<span style="">&nbsp;</span>Machine<span style="">&nbsp;</span><br /></td><td>10.2.0.1.0</td><td>VALID</td></tr><tr><td>Oracle<span style="">&nbsp;</span>XDK<span style="">&nbsp;</span></td><td>10.2.0.1.0<span style="">&nbsp;</span></td><td>VALID</td></tr><tr><td>Oracle<span style="">&nbsp;</span>Database<span style="">&nbsp;</span>Java<span style="">&nbsp;</span>Packages<span style="">&nbsp;</span></td><td>10.2.0.1.0</td><td>VALID</td></tr><tr><td><br /></td><td><br /></td><td><br /></td></tr></tbody></table><p>&nbsp;</p></div><span>To enable Oracle JVM, you can use the Oracle DatabaseConfiguration Assistant or specific SQL scripts. See the Oracle documentationfor details. The documentation can be found at:   <a href="http://www.oracle.com/technology/documentation/index.html" target="_blank">http://www.oracle.com/technology/documentation/index.html</a>.  </span><p>In addition, the correctprivilege to run Java&#8482; needs to be granted to eachof your users. (You will get XA errors if you do not do this). Togrant access, you use the following command: </p><p>grant javauserprivto user; </p><p>This is documented later in thistutorial for each database user. </p><p>&nbsp;</p><p><span>As the SYS user, enable the Oracle database for XA by performingthe following steps:</span></p><p><span></span><span>Configure the database for XA by running the followingscript on the WPSDB database: <br /></span></p><p><span></span>ORACLE_HOME/javavm/install/initxa.sql script</p><p>Youcan find more information on this requirement in the <a href="http://www-128.ibm.com/developerworks/websphere/library/techarticles/0407_woolf/0407_woolf.html" target="_blank">Configuring and using XA distributed transactionsin WebSphere Studio</a> article.</p><p><span>Run the following queries:</span></p><p><span></span>grant select on pending_trans$ to public; </p><p> grant select on dba_2pc_pending to public; </p><p> grant select on dba_pending_transactions to public; </p><p> grant select on V$XATRANS$ TO PUBLIC;  </p><div><span>Note:</span> If the lastquery fails, the V$XATRANS$ view does not exist. You would then needto prepare the Oracle database for XA transaction recovery by runningthe xaview.sql script located under ORACLE_HOME/RDBMS/ADMIN: sqlplus SYS/xxxxxx@WPSDB @xaview.sql</div><p>Laterin this tutorial, for each user, you will grant access to dbms_system. </p><p>&nbsp;</p></div> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/shunxinyangkun/blog/category/Oracle">Oracle</a>&nbsp;<a href="http://hi.baidu.com/shunxinyangkun/blog/item/39261ddfde18ce0f48540337.html#comment">查看评论</a>]]></description>
        <pubDate>2011-09-23  14:37</pubDate>
        <category><![CDATA[Oracle]]></category>
        <author><![CDATA[shunxinyangkun]]></author>
		<guid>http://hi.baidu.com/shunxinyangkun/blog/item/39261ddfde18ce0f48540337.html</guid>
</item>

<item>
        <title><![CDATA[AIX 上配置Oracle Client 11G R2]]></title>
        <link><![CDATA[http://hi.baidu.com/shunxinyangkun/blog/item/72b02409baa975d33ac7635a.html]]></link>
        <description><![CDATA[
		
		<p>export ORACLE_HOME=/home/db2inst1/app/db2inst1/product/11.2.0/client_8<br />export ORACLE_SID=orcl<br />export PATH=$PATH:$ORACLE_HOME/bin<br />export LD_LIBRARY_PATH=$ORACLE_HOME/lib</p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/shunxinyangkun/blog/category/Oracle">Oracle</a>&nbsp;<a href="http://hi.baidu.com/shunxinyangkun/blog/item/72b02409baa975d33ac7635a.html#comment">查看评论</a>]]></description>
        <pubDate>2011-09-23  14:09</pubDate>
        <category><![CDATA[Oracle]]></category>
        <author><![CDATA[shunxinyangkun]]></author>
		<guid>http://hi.baidu.com/shunxinyangkun/blog/item/72b02409baa975d33ac7635a.html</guid>
</item>

<item>
        <title><![CDATA[The messaging engine&#39;s unique id does not match that found in the data store.]]></title>
        <link><![CDATA[http://hi.baidu.com/shunxinyangkun/blog/item/b4b6d850f43b5179843524c7.html]]></link>
        <description><![CDATA[
		
		<p>Exception in SystemOut.logs</p><p><em>[9/20/11 10:19:24:723 CDT] 0000001a SibMessage&nbsp;&nbsp;&nbsp; I&nbsp;&nbsp; [CEI.VIPBJ02SP04L26Cell01.BUS:DE920.AppTarget.000-CEI.VIPBJ02SP04L26Cell01.BUS] CWSIS1545I: A single previous owner was found in the messaging engine's data store, ME_UUID=6151B098C8DB8549, INC_UUID=15C415C48138924B<br>[9/20/11 10:19:24:724 CDT] 0000001b SibMessage&nbsp;&nbsp;&nbsp; I&nbsp;&nbsp; [MONITOR.VIPBJ02SP04L26Cell01.Bus:DE920.AppTarget.000-MONITOR.VIPBJ02SP04L26Cell01.Bus] CWSIS1545I: A single previous owner was found in the messaging engine's data store, ME_UUID=AD36CA4D1DA6576D, INC_UUID=434843488138924B<br>[9/20/11 10:19:24:727 CDT] 0000001a SibMessage&nbsp;&nbsp;&nbsp; E&nbsp;&nbsp; [CEI.VIPBJ02SP04L26Cell01.BUS:DE920.AppTarget.000-CEI.VIPBJ02SP04L26Cell01.BUS] CWSIS1535E: The messaging engine's unique id does not match that found in the data store. ME_UUID=8F18287FFEEF44C0, ME_UUID(DB)=6151B098C8DB8549<br>[9/20/11 10:19:24:728 CDT] 0000001b SibMessage&nbsp;&nbsp;&nbsp; E&nbsp;&nbsp; [MONITOR.VIPBJ02SP04L26Cell01.Bus:DE920.AppTarget.000-MONITOR.VIPBJ02SP04L26Cell01.Bus] CWSIS1535E: The messaging engine's unique id does not match that found in the data store. ME_UUID=390E35EB5177E2D2, ME_UUID(DB)=AD36CA4D1DA6576D<br>[9/20/11 10:19:24:732 CDT] 00000019 SibMessage&nbsp;&nbsp;&nbsp; I&nbsp;&nbsp; [CEI.VIPBJ02SP04L26Cell01.BUS:DE920.AppTarget.000-CEI.VIPBJ02SP04L26Cell01.BUS] CWSIS1593I: The messaging engine, ME_UUID=8F18287FFEEF44C0, INC_UUID=6F0C6F0C876B8AED, has failed to gain an initial lock on the data store.<br>[9/20/11 10:19:24:732 CDT] 00000018 SibMessage&nbsp;&nbsp;&nbsp; I&nbsp;&nbsp; [MONITOR.VIPBJ02SP04L26Cell01.Bus:DE920.AppTarget.000-MONITOR.VIPBJ02SP04L26Cell01.Bus] CWSIS1593I: The messaging engine, ME_UUID=390E35EB5177E2D2, INC_UUID=6CE86CE8876B8AE4, has failed to gain an initial lock on the data store.<br>[9/20/11 10:19:24:744 CDT] 00000019 SibMessage&nbsp;&nbsp;&nbsp; E&nbsp;&nbsp; [CEI.VIPBJ02SP04L26Cell01.BUS:DE920.AppTarget.000-CEI.VIPBJ02SP04L26Cell01.BUS] CWSIS1519E: Messaging engine DE920.AppTarget.000-CEI.VIPBJ02SP04L26Cell01.BUS cannot obtain the lock on its data store, which ensures it has exclusive access to the data.<br>[9/20/11 10:19:24:744 CDT] 00000018 SibMessage&nbsp;&nbsp;&nbsp; E&nbsp;&nbsp; [MONITOR.VIPBJ02SP04L26Cell01.Bus:DE920.AppTarget.000-MONITOR.VIPBJ02SP04L26Cell01.Bus] CWSIS1519E: Messaging engine DE920.AppTarget.000-MONITOR.VIPBJ02SP04L26Cell01.Bus cannot obtain the lock on its data store, which ensures it has exclusive access to the data.</em></p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p><em><strong>解决方法：</strong></em></p><p><em><strong>删除sibowner 表的所有数据，然后重启Server。</strong></em></p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/shunxinyangkun/blog/category/Ibm">Ibm</a>&nbsp;<a href="http://hi.baidu.com/shunxinyangkun/blog/item/b4b6d850f43b5179843524c7.html#comment">查看评论</a>]]></description>
        <pubDate>2011-09-21  09:37</pubDate>
        <category><![CDATA[Ibm]]></category>
        <author><![CDATA[shunxinyangkun]]></author>
		<guid>http://hi.baidu.com/shunxinyangkun/blog/item/b4b6d850f43b5179843524c7.html</guid>
</item>

<item>
        <title><![CDATA[用db2_install命令行安装DB2数据库]]></title>
        <link><![CDATA[http://hi.baidu.com/shunxinyangkun/blog/item/12beaa24e3a4d21a4c088d83.html]]></link>
        <description><![CDATA[
		
		<div></div><div></div><div><div><div><b><span>用</span></b><b><span>db2_install</span></b><b><span>命令行安装</span></b><b><span>DB2</span></b><b><span>数据库</span></b></div><div>&nbsp;</div><div><b>测试系统：AIX 7.1</b><br /></div><div></div><div><b>安装过程：</b></div><p><span>一、</span><b>上传安装文件</b></p><p>&nbsp;<span>二、</span><b>解压安装文件</b>：# tar –xfv DB2.tar&nbsp;</p><p><span>三、</span><b>解压后</b>，<b>会出现</b><b>db2setup</b><b>和db2_install</b><b>两个可用于安装的文件</b>，db2setup是调用视窗安装，过程很简单，按照提示进行就可以。db2_install是命令行安装。下面我们就着重强调一下如何进行命令行安装。&nbsp;</p><p><span>1、<b>&nbsp;</b></span><b>运行./db2_install&nbsp; ，安装DB2.</b></p><p>安装完成后显示信息如图。有消息：<em><span style="color: #ff0000;">A minor Error occurred while installing &quot;DB2 Enterprise Server Edition &quot; on this computer. Some features may not function correctly.</span> ，</em>但是不要担心，这一般是Installing or updating SA MP :.......Failure 。不会影响我们的安装使用。</p><div>&nbsp;</div><b><span>四、</span>对新安装的db2 进行系统设置：&nbsp;</b>&nbsp;<table border="1" cellpadding="0" cellspacing="0" width="90%"><tbody><tr><td><div>必需的用户</div></td><td><div>用户名</div></td><td><div>组名</div></td></tr><tr><td><div>实例所有者</div></td><td><div>db2inst1</div></td><td><div>db2iadm1</div></td></tr><tr><td><div>受防护的用户</div></td><td><div>db2fenc1</div></td><td><div>db2fadm1</div></td></tr><tr><td><div>管理服务器用户</div></td><td><div>dasusr1</div></td><td><div>dasadm1</div></td></tr></tbody></table><p>&nbsp;<span>1、&nbsp;</span><b>添加组账号</b>。</p><p>mkgroupdasadm1</p><div>mkgroup <span>db2fadm1</span></div><div>mkgroup <span>db2iadm1</span></div><div>&nbsp;</div><p><b><span>2、</span></b><b>添加db2</b><b>用户账号</b><span>&nbsp;&nbsp; <br /></span></p><p><span>用smit命令来添加用户:<br /></span></p><p style="text-align: left;">1.db2inst1&nbsp; <span>属于</span><span>db2iadm1</span>&nbsp; <span>组；<br /></span></p><p style="text-align: left;">2.db2fenc1 <span>属于 db2fadm1</span>&nbsp; 组；<span><br /></span></p><p style="text-align: left;"><span>3.dasusr1 &nbsp;</span><span>属于 dasadm1&nbsp; 组；</span></p><p style="text-align: left;">然后分别设置用户的密码<br /><b></b></p><p><b><span>3、</span></b><b>实例操作:</b></p><div>3.1<b>创建实例db2inst1</b>.</div><p># cd /opt/ibm/db2/V9.5/instance</p><p># ./db2icrt -u db2fenc1 db2inst1 -p 50003</p><p>DBI1070I&nbsp;Program db2icrt completed successfully. –提示实例创建成功。&nbsp;</p><div>3.2<b>查看实例：</b></div><span>a、&nbsp;</span>查看所有实例：# cd /opt/ibm/db2/V9.5/bin –转入到db2安装路径# ./db2ilist<span>b、&nbsp;</span>查看当前实例：# su – db2inst1<span>&nbsp;&nbsp; --</span>切换到db2 实例用户~&gt;db2 get instance&nbsp;<div><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; C</span>、<strong>删除实例</strong>：</div><div><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>在root用户下转入到db2安装路径</div><div><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # cd /opt/ibm/db2/V9.5/instance</span></div><div><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # ./db2idrop db2inst1&nbsp;&nbsp;</span>可以使用-f参数强制删除实例</div><div>&nbsp;</div>3.3<b>安装license </b><b>：</b>上传db2 license文件DB2_WSE_CPU_Activation_V95.ziplicense,并解压。<div><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>切换到db2inst1用户，然后用下面命令进行注册</div><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; db2licm -a /</span>解压后文件所在的路径/db2wse_c.lic (db2ese_c.lic这个文件就是db2 的license）过程如下：<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # su – db2inst1</span><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ~&gt; db2licm –l&nbsp;</span>查看查看是否注册<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ~&gt; db2licm –a /backup/db2/lice/db2/license/db2wse_c.lic&nbsp;--</span>执行注册<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ~&gt; db2licm –l&nbsp;</span>查看查看是否注册成功<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><div>3.4、<b>启动停止实例</b></div>1，启动实例：切换到实例用户，然后执行db2start# su – db2inst1~&gt;&nbsp;db2start&nbsp;SQL1063N&nbsp;DB2START processing was successful. –提示启动成功2，停止实例：执行db2stop~&gt; &nbsp;db2stop&nbsp;<div><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #ff0000;">3.5</span></span><span style="color: #ff0000;">、</span><b><span style="color: #ff0000;">设定监听端口</span></b></div><p><span style="color: #ff0000;">当启动DB2实例时，会发现，DB2的监听端口并没有随着DB2实例的启动而启动。</span></p><p><span style="color: #ff0000;">下面过程设置如何启动监听。</span></p><p><span style="color: #ff0000;">1、&nbsp;</span><span style="color: #ff0000;">先执行db2set-all来检查是否有 DB2COMM=TCPIP 一项，如果没有则应该执行“ db2set DB2COMM=TCPIP ”设置。</span></p><p><span style="color: #ff0000;"># db2set –all</span></p><p><span style="color: #ff0000;"># db2set DB2COMM=TCPIP</span></p><p><span style="color: #ff0000;"># db2 get dbm cfg | grep SVCENAME 检查配置</span><span style="color: #ff0000;">SVCENAME</span><span style="color: #ff0000;">的值，</span></p><p><span style="color: #ff0000;">如果 SVCENAME为空值，则需要用下面的步骤设定该值，</span></p><p><span style="color: #ff0000;">如果是一个端口号 ( 端口号应小于 65536)，则不用读取/etc/services文件中的端口定义，</span></p><p><span style="color: #ff0000;">如果该值是一个字符串（如：db2c_db2inst1），则在实例启动时会自动读取/etc/services 中的该字符串对应的端口号来监听。</span></p><p><span style="color: #ff0000;"># db2 &nbsp;update database manager configuration using svcename</span><span style="color: #ff0000;">&nbsp;</span><span style="color: #ff0000;">db2c_db2inst1（或者为端口号如：50001）</span><span style="color: #ff0000;">--</span><span style="color: #ff0000;">我们也可以通过这种方式修改DB2监听的端口号.</span></p><p><span style="color: #ff0000;">运行完成后再次运行# db2 get dbm cfg | grep SVCENAME 检查配置</span><span style="color: #ff0000;">SVCENAME</span><span style="color: #ff0000;">的值是否更新。</span></p><div><p>&nbsp;3.6设置db2自动启动</p><pre><span>#db2set </span>DB2AUTOSTART=YES</pre></div><p><b><span>五、<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span></b><b>DB2 </b><b>管理服务器</b><span>1、&nbsp;</span>创建DB2 管理服务器。</p><p># cd /opt/ibm/db2/V9.5/instance</p><p># ./dascrt -u dasusr1</p><div>SQL4406W&nbsp;The DB2 Administration Server was started successfully.</div><p>DBI1070I&nbsp;Program dascrt completed successfully.</p><p><span>2、&nbsp;</span>启动DB2 管理服务器#&nbsp;su&nbsp;- dasusr1#&nbsp;db2admin startSQL4409W&nbsp;The DB2 Administration Server is already active. –启动完成，这时可以用命令netstat-an 查看DB2 管理服务器的监听端口523是否被监听。说明：DB2 管理服务器启动完成后，可以通过客户端对服务器数据库进行管理，比如在windows机器上通过DB2控制中心访问远端服务器数据库!</p><p><span>3、&nbsp;</span>停止DB2管理服务器。# su – dasusr1# db2admin stop</p><div>&nbsp;</div><div><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>至此，通过命令方式安装与配置DB2数据库完成。</div></div></div> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/shunxinyangkun/blog/category/Db2">Db2</a>&nbsp;<a href="http://hi.baidu.com/shunxinyangkun/blog/item/12beaa24e3a4d21a4c088d83.html#comment">查看评论</a>]]></description>
        <pubDate>2011-09-19  13:29</pubDate>
        <category><![CDATA[Db2]]></category>
        <author><![CDATA[shunxinyangkun]]></author>
		<guid>http://hi.baidu.com/shunxinyangkun/blog/item/12beaa24e3a4d21a4c088d83.html</guid>
</item>

<item>
        <title><![CDATA[Websphere Business Space work with http server]]></title>
        <link><![CDATA[http://hi.baidu.com/shunxinyangkun/blog/item/5bc0d1583467c9c59d82047c.html]]></link>
        <description><![CDATA[
		
		<p><br># Example SSL configuration which supports SSLv3 and TLSv1<br>LoadModule ibm_ssl_module modules/mod_ibm_ssl.so<br>Listen 0.0.0.0:443<br>## IPv6 support:<br>#Listen [::]:443<br>&lt;VirtualHost *:443&gt;<br>SSLEnable<br>SSLProtocolDisable SSLv2<br>&lt;/VirtualHost&gt;<br>#KeyFile C:/lasttime/IBM/HTTPServer/ihsserverkey.kdb<br>KeyFile C:/lasttime/IBM/HTTPServer/Plugins/config/webserver1/plugin-key.kdb<br>SSLDisable<br># End of example SSL configuration<br><br><br><br><br>To import the public IBM WebSphere Application
Server certificate into the IBM HTTP Server, complete the following steps:
<span>From the IBM WebSphere Application Server Integrated Solutions
Console, select <span><span>SSL certificate and key management</span> &gt; <span>Key Stores and certificates</span></span>, and then
select <span>NodeDefaultKeyStore</span> for a stand-alone deployment
or <span>CellDefaultKeyStore</span> for a network deployment.</span><span>Click <span>Personal Certificates</span>, select the <span>default</span> check
box, and then click <span>Extract</span>.</span><span>Give the extracted file a name and save it in a place you will
remember. </span></p><div><span>Note:</span> The convention is to give the file an ARM extension.</div><span>Leave encoding set to Base64.</span><span>Click <span>OK</span>.</span><span>From the IBM WebSphere Application Server Integrated Solutions
Console, select <span><span>S</span></span></span>SSL
 certificate and key management &gt; Manage endpoint security 
configurations &gt; webserver1 &gt; Key stores and certificates 
-&gt;NodeDefaultTrustStore&nbsp; <span><span><span></span></span>for a stand-alone deployment
or <span>CellDefaultKey</span></span>Trust<span><span>Store</span> for a network deployment.</span><span>Click <span>Personal Certificates</span>, select the </span>root&nbsp; and datapower&nbsp; <span>check
box, and then click <span>Extract</span>.</span><span>Give the extracted file a name and save it in a place you will
remember. </span><div><span>Note:</span> The convention is to give the file an ARM extension.</div><span>Leave encoding set to Base64.</span><span>Click <span>OK</span>.</span><span>Open the <span>httpd.conf</span> configuration file from
the /opt/IBM/HTTPServer/conf directory, and then edit it
as follows:</span><span>Find the directory in which the plugin-cfg.xml file is stored
by searching for the WebSpherePluginConfig line. It should look something
like this: </span>WebSpherePluginConfig "C:\IBM\HTTPServer\Plugins\config\
 webserver1\plugin-cfg.xml"<span>Find the directory in which the plugin-key.kdb file is stored
by searching for the term plugin-key.kdb in the plugin-cfg.xml file. For example: </span>&lt;Property 
 Name="keyring" 
 Value="c:\IBM\HTTPServer\Plugins\config\webserver1\plugin-key.kdb" /&gt; <span>From the <span>bin</span> directory of the IBM HTTP server,
execute the <span>ikeyman.bat</span> file.</span><span>Click <span><span>KeyDatabaseFile</span> &gt; <span>Open</span></span>, and then select a key database type of <span>CMS</span>.
Specify <span>plugin-key.kdb</span> as the file name. Specify the
file path to the KDB file. For example:</span>C:\IBM\HTTPServer\Plugins\config\webserver1\plugin-key.kdb<span>Click <span>OK</span>, and then enter the password. </span><div><span>Note:</span> The default password from WebSphere Application Server is <span>WebAS</span> (case
sensitive).</div><span>Click <span>Personal Certificates</span>, and then select <span>Signer
Certificates</span>.</span><span>Click <span>Add</span>.</span><span>Find the file you exported with the *.arm extension, select it,
and then click <span>OK</span>.</span><span>Save and exit.</span><span>Restart the IBM HTTP Server to apply the changes.</span> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/shunxinyangkun/blog/category/Ibm">Ibm</a>&nbsp;<a href="http://hi.baidu.com/shunxinyangkun/blog/item/5bc0d1583467c9c59d82047c.html#comment">查看评论</a>]]></description>
        <pubDate>2011-09-19  10:52</pubDate>
        <category><![CDATA[Ibm]]></category>
        <author><![CDATA[shunxinyangkun]]></author>
		<guid>http://hi.baidu.com/shunxinyangkun/blog/item/5bc0d1583467c9c59d82047c.html</guid>
</item>

<item>
        <title><![CDATA[让root用户可以直接运行db2的命令]]></title>
        <link><![CDATA[http://hi.baidu.com/shunxinyangkun/blog/item/c1312f81a3385bc3bc3e1ebf.html]]></link>
        <description><![CDATA[
		
		<p>&nbsp;在/etc/profile文件中追加：</p><p>export PATH=/opt/IBM/db2/V9.5/bin:$PATH <br>. /home/db2inst1/sqllib/db2profile <br><br>&nbsp;在/etc/group文件中添加root 用户：<br>dasadm:|;101:dasusr1,db2inst1,root <br>db2iadm:|:102:root <br>db2fadm:|:103:db2fenc1,root </p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/shunxinyangkun/blog/category/Db2">Db2</a>&nbsp;<a href="http://hi.baidu.com/shunxinyangkun/blog/item/c1312f81a3385bc3bc3e1ebf.html#comment">查看评论</a>]]></description>
        <pubDate>2011-09-08  21:48</pubDate>
        <category><![CDATA[Db2]]></category>
        <author><![CDATA[shunxinyangkun]]></author>
		<guid>http://hi.baidu.com/shunxinyangkun/blog/item/c1312f81a3385bc3bc3e1ebf.html</guid>
</item>

<item>
        <title><![CDATA[-614 54008 已经超过了索引的内部健长度的最大长度（255）限制]]></title>
        <link><![CDATA[http://hi.baidu.com/shunxinyangkun/blog/item/349cf01b227cca028618bfb3.html]]></link>
        <description><![CDATA[
		
		<p>表空间太小导致了超过了索引的内部健长度的最大长度</p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/shunxinyangkun/blog/category/Db2">Db2</a>&nbsp;<a href="http://hi.baidu.com/shunxinyangkun/blog/item/349cf01b227cca028618bfb3.html#comment">查看评论</a>]]></description>
        <pubDate>2011-09-05  11:29</pubDate>
        <category><![CDATA[Db2]]></category>
        <author><![CDATA[shunxinyangkun]]></author>
		<guid>http://hi.baidu.com/shunxinyangkun/blog/item/349cf01b227cca028618bfb3.html</guid>
</item>

<item>
        <title><![CDATA[To make all LDAP attributes available in VMM, we need handle LDAP attributes in three cases.]]></title>
        <link><![CDATA[http://hi.baidu.com/shunxinyangkun/blog/item/12beaa2479f5bc1a4d088d72.html]]></link>
        <description><![CDATA[
		
		<p>1. LDAP Attribute has the same name with one VMM built-in attribute.<br>Nothing needs to be done. The attribute is available immediately via VMM.<br><br>2. LDAP Attribute has the same intension with one VMM built-in attribute, but the name is different.<br>&nbsp;Customer has to manually specify a mapping in &lt;WAS&gt;/config/cells/&lt;CELL_NAME&gt;/wim/config/wimconfig.xml, e.g.<br><br>&lt;config:attributeConfiguration&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;config:attributes name="userPassword" propertyName="password"/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;config:attributes name="notesid" propertyName="ibm-primaryEmail"/&gt; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...<br>&nbsp;&lt;/config:attributeConfiguration&gt;<br><br>- notesid is the LDAP attribute<br>- ibm-primaryEmail is the VMM built-in attribute<br>- Bluepage LDAP is used in this example<br>3. There is no corresponding VMM built-in attribute. We need extend the VMM schema to add the new attribute to VMM.<br>3.1 Extend the VMM schema at deployment time by manually creating the &lt;WAS&gt;/config/cells/&lt;CELL_NAME&gt;/wim/model/wimxmlextension.xml, e.g.<br><br>&lt;sdo:datagraph xmlns:sdo="commonj.sdo"&nbsp; xmlns:wim="http://www.ibm.com/websphere/wim"&gt;<br>&nbsp; &lt;wim:schema&gt;<br>&nbsp;&nbsp;&nbsp; &lt;wim:propertySchema nsPrefix="wim" nsURI="http://www.ibm.com/websphere/wim" dataType="String"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; multiValued="false" propertyName="<em><strong><span style="color:#ff0000">city</span></strong></em>"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;wim:applicableEntityTypeNames&gt;PersonAccount&lt;/wim:applicableEntityTypeNames&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/wim:propertySchema&gt;&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp;&nbsp; &lt;wim:propertySchema nsPrefix="wim" nsURI="http://www.ibm.com/websphere/wim" dataType="String"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; multiValued="false" propertyName="<em><strong><span style="color:#ff0000">province</span></strong></em>"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;wim:applicableEntityTypeNames&gt;PersonAccount&lt;/wim:applicableEntityTypeNames&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/wim:propertySchema&gt;&nbsp;&nbsp; &nbsp;<br>&nbsp; &lt;/wim:schema&gt;<br>&lt;/sdo:datagraph&gt;<br><br>notesshortname attribute is added into VMM now. It is actually the name of one LDAP attribute. So we can retrieve it from VMM now just like case 1.<br>3.2 Extend the VMM schema at runtime via VMM createSchema API<br>This is the baisc WAS security specific area. We’d better not provide our code to support this dynamically at runtime.<br>The 3.1 method at deployment time is the recommended way that will let customer manually add the new VMM attribute.</p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/shunxinyangkun/blog/category/Ibm">Ibm</a>&nbsp;<a href="http://hi.baidu.com/shunxinyangkun/blog/item/12beaa2479f5bc1a4d088d72.html#comment">查看评论</a>]]></description>
        <pubDate>2011-08-29  11:03</pubDate>
        <category><![CDATA[Ibm]]></category>
        <author><![CDATA[shunxinyangkun]]></author>
		<guid>http://hi.baidu.com/shunxinyangkun/blog/item/12beaa2479f5bc1a4d088d72.html</guid>
</item>

<item>
        <title><![CDATA[db2 catalog]]></title>
        <link><![CDATA[http://hi.baidu.com/shunxinyangkun/blog/item/f663e864a5ef71ebf636542d.html]]></link>
        <description><![CDATA[
		
		<p>catalog一个普通的数据库</p><p>db2 catalog tcpip node mon25 remote 9.115.198.25 server 50000<br>db2 catalog db Test at node mon25 &nbsp;<br>db2 connect to Test user db2admin using Passw0rd<br>db2 connect reset<br>db2 uncatalog node mon25<br><br><br>catalog db2 on z/OS<br>db2 catalog tcpip node db2zos remote 9.125.72.129 server 446<br>db2 catalog db LOCDA11 at node db2zos &nbsp;<br>db2 connect to LOCDA11 user c01bm03 using aa11aa<br>db2 connect reset<br>db2 uncatalog node db2zos</p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/shunxinyangkun/blog/category/Db2">Db2</a>&nbsp;<a href="http://hi.baidu.com/shunxinyangkun/blog/item/f663e864a5ef71ebf636542d.html#comment">查看评论</a>]]></description>
        <pubDate>2011-08-25  10:12</pubDate>
        <category><![CDATA[Db2]]></category>
        <author><![CDATA[shunxinyangkun]]></author>
		<guid>http://hi.baidu.com/shunxinyangkun/blog/item/f663e864a5ef71ebf636542d.html</guid>
</item>

<item>
        <title><![CDATA[WAS 中设置VMM LDAP]]></title>
        <link><![CDATA[http://hi.baidu.com/shunxinyangkun/blog/item/be50df8277e970a56d81193e.html]]></link>
        <description><![CDATA[
		
		<p><span><img class="blogimg" small="0" src="http://hiphotos.baidu.com/shunxinyangkun/pic/item/b48f0990f63acceaa877a44b.jpg" border="0"></span></p><p><span><img class="blogimg" small="0" src="http://hiphotos.baidu.com/shunxinyangkun/pic/item/38a4855c4c02ec24faf2c054.jpg" border="0"></span></p><p><span><img class="blogimg" small="0" src="http://hiphotos.baidu.com/shunxinyangkun/pic/item/6a878a3dca9f84a09e3d6222.jpg" border="0"></span><br><span><img class="blogimg" small="0" src="http://hiphotos.baidu.com/shunxinyangkun/pic/item/d9a46b347bc9bc5c5ab5f52c.jpg" border="0"></span></p><p><span><img class="blogimg" small="0" src="http://hiphotos.baidu.com/shunxinyangkun/pic/item/b4b6d850cfba6a058435240a.jpg" border="0"></span></p><p><span><img class="blogimg" small="0" src="http://hiphotos.baidu.com/shunxinyangkun/pic/item/74bf4955457a54a3b645ae3e.jpg" border="0"></span></p><p><span><span><img class="blogimg" small="0" src="http://hiphotos.baidu.com/shunxinyangkun/pic/item/3874a5cd2e10d73b0eb345f5.jpg" border="0"></span><br></span><br><br><br><br></p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/shunxinyangkun/blog/category/Ibm">Ibm</a>&nbsp;<a href="http://hi.baidu.com/shunxinyangkun/blog/item/be50df8277e970a56d81193e.html#comment">查看评论</a>]]></description>
        <pubDate>2011-08-02  12:50</pubDate>
        <category><![CDATA[Ibm]]></category>
        <author><![CDATA[shunxinyangkun]]></author>
		<guid>http://hi.baidu.com/shunxinyangkun/blog/item/be50df8277e970a56d81193e.html</guid>
</item>


</channel>
</rss>
