<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>UKoom &#187; Database</title>
	<atom:link href="http://www.ukoom.com/category/database/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ukoom.com</link>
	<description>Documentum, SharePoint, Alfresco, ECM...</description>
	<lastBuildDate>Tue, 25 Oct 2011 15:11:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Register table issue caused by using wrong column type in SQL</title>
		<link>http://www.ukoom.com/register-table-issue-caused-by-using-wrong-column-type-in-sql.htm</link>
		<comments>http://www.ukoom.com/register-table-issue-caused-by-using-wrong-column-type-in-sql.htm#comments</comments>
		<pubDate>Tue, 07 Dec 2010 03:54:26 +0000</pubDate>
		<dc:creator>ukoom</dc:creator>
				<category><![CDATA[Documentum]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.ukoom.com/?p=1127</guid>
		<description><![CDATA[Wow, how long the title is! I came across one strange issue today (actually I found this last Friday, but you know weekend coming, hehehe). When using the update DQL to fill up one new column in the registered table, there are always lots of blanks appended. The root cause after doing some investigation, what [...]]]></description>
			<content:encoded><![CDATA[<p>Wow, how long the title is! <img src='http://www.ukoom.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I came across one strange issue today (actually I found this last Friday, but you know weekend coming, hehehe).</p>
<p>When using the update DQL to fill up one new column in the registered table, there are always lots of blanks appended.</p>
<p>The root cause after doing some investigation, what I found:</p>
<p>We are adding the column in type &#8211; char rather than varchar2 which is the normal one.</p>
<p>CHAR should be used for storing <span style="font-weight: bold;">fix length character strings</span>. String values will be <span style="font-weight: bold;">space/blank padded</span> before stored on disk.</p>
<p>Baiqing, one of my colleges , wrote the DQL to add the new column. I believe that:</p>
<p>1. He should be more careful <img src='http://www.ukoom.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>2. The DQL used to register table in Documentum are defining the type as &#8216;char&#8217;. Documentum is using &#8216;char&#8217; type to define <span style="font-weight: bold;">variable length character strings. </span>there is no type to define fix length strings. That make developer confused.</p>
<p>Anyway, the cause was found. Happy Monday!!!!</p>
<p>Reference:</p>
<p>http://www.orafaq.com/faq/what_is_the_difference_between_varchar_varchar2_and_char_data_types</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ukoom.com/register-table-issue-caused-by-using-wrong-column-type-in-sql.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Server Profiler &#8211; Only TrueType fonts are supported</title>
		<link>http://www.ukoom.com/sql-server-profiler-only-truetype-fonts-are-supported.htm</link>
		<comments>http://www.ukoom.com/sql-server-profiler-only-truetype-fonts-are-supported.htm#comments</comments>
		<pubDate>Sun, 22 Aug 2010 05:12:27 +0000</pubDate>
		<dc:creator>ukoom</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Database]]></category>

		<guid isPermaLink="false">http://www.ukoom.com/?p=1115</guid>
		<description><![CDATA[Error message &#8211; &#8220;Only TrueType fonts are supported. This is not a TrueType font.&#8221; was thrown when using SQL Server Profiler. Solution： 1. Open SQL Server Profilr 2. Go to &#8216; Tool&#8217;Menu 3. Select Options 4. Change the font name to &#8220;Arial&#8221; 5. Click OK.]]></description>
			<content:encoded><![CDATA[<p>Error message &#8211; &#8220;Only TrueType fonts are supported. This is not a TrueType font.&#8221; was thrown when using SQL Server Profiler.</p>
<p>Solution：</p>
<p>1. Open SQL Server Profilr</p>
<p>2. Go to &#8216; Tool&#8217;Menu</p>
<p>3. Select Options</p>
<p>4. Change the font name to &#8220;Arial&#8221;</p>
<p>5. Click OK.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ukoom.com/sql-server-profiler-only-truetype-fonts-are-supported.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get definition for view in Oracle</title>
		<link>http://www.ukoom.com/get-definition-for-view-in-oracle.htm</link>
		<comments>http://www.ukoom.com/get-definition-for-view-in-oracle.htm#comments</comments>
		<pubDate>Fri, 23 Apr 2010 01:19:36 +0000</pubDate>
		<dc:creator>ukoom</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Database]]></category>

		<guid isPermaLink="false">http://www.ukoom.com/?p=1059</guid>
		<description><![CDATA[set LONG 10000 select TEXT from ALL_VIEWS where view_name = &#8216;MY_VIEW&#8216;; Line one must be at least the size of the statement used to create the view. Either pick a really big number if you think the view is large or use the following to determine how long it is first. If it isn&#8217;t, the [...]]]></description>
			<content:encoded><![CDATA[<div><span><span style="font-family: Arial; font-size: 85%; color: #0000ff;">set  LONG 1000<span>0</span><br />
select TEXT from ALL_VIEWS  where  view_name<span> </span>=<span> </span>&#8216;<span>MY_VIEW</span>&#8216;;</span></span></div>
<div><span><span style="font-family: Arial; font-size: 85%;"> </span></span></div>
<div><span><span style="font-family: Arial; font-size: 85%;">Line one must be at  least the size of the statement used to  create the view. Either pick a really  big number if you think the view  is large or use the following to determine how  long it is first. If it  isn&#8217;t, the text will be truncated</span></span></div>
<div><span><span style="font-family: Arial; font-size: 85%;"> </span></span></div>
<div><span><span style="font-family: Arial; font-size: 85%; color: #0000ff;">select   text_length from all_views where view_name = &#8216;MY_VIEW&#8217;</span></span></div>
<div><span><span style="font-family: Arial; font-size: 85%;"> </span></span></div>
<div><span><span style="font-family: Arial; font-size: 85%;">NOTE: name of the  view is case sensitive as are most every thing  in Oracle.</span></span></div>
<div><span><span style="font-family: Arial; font-size: 85%;"> </span></span></div>
<div><span><span style="font-family: Arial; font-size: 85%;">If you want to  capture output to something other than a SQL Plus  window such as a file, be sure  to include do the following before you  execute the select  statement.</span></span></div>
<div><span><span style="font-family: Arial; font-size: 85%;"> </span></span></div>
<div><span><span style="font-family: Arial; font-size: 85%; color: #0000ff;">spool   c:\v_person.sql</span></span></div>
<div><span><span style="font-family: Arial; font-size: 85%;"> </span></span></div>
<div><span><span style="font-family: Arial; font-size: 85%;">To close the file  when you  are done writing output to it, call the following:</span></span></div>
<div><span><span style="font-family: Arial; font-size: 85%;"> </span></span></div>
<div><span><span style="font-family: Arial; font-size: 85%; color: #0000ff;">spool   off</span></span></div>
<div><span><span style="font-family: Arial; font-size: 85%;"> </span></span></div>
<div><span><span style="font-family: Arial; font-size: 85%;"><strong> </strong></span></span></div>
<div><span><span style="font-family: Arial; font-size: 85%;"><strong>To  summarize:</strong></span></span></div>
<div><span><span style="font-family: Arial; font-size: 85%;"> </span></span></div>
<div><span><span><span style="font-family: Arial; font-size: 85%; color: #0000ff;">select text_length from all_views where   view_name = &#8216;MY_VIEW&#8217;</span></span></span></div>
<div><span><span><span style="font-family: Arial; font-size: 85%; color: #0000ff;">10000</span></span></span></div>
<div><span><span style="font-family: Arial; font-size: 85%;"><span> </span></span></span></div>
<div><span><span style="font-family: Arial; font-size: 85%;"><span>&#8211; whatever value you  get back, use on the next  statement.</span></span></span></div>
<div><span><span style="font-family: Arial; font-size: 85%;"><span> </span></span></span></div>
<div><span><span><span><span style="font-family: Arial;"><span style="font-size: 85%;"><span style="color: #0000ff;">set  LONG  1000<span>0</span></span></span></span></span></span></span></div>
<div><span><span><span><span style="font-family: Arial; font-size: 85%; color: #0000ff;"><span> </span></span></span></span></span></div>
<div><span><span><span><span><span style="font-family: Arial; font-size: 85%; color: #0000ff;">spool  c:\v_person.sql</span></span></span></span></span></div>
<div><span><span><span><span><span style="font-family: Arial; font-size: 85%; color: #0000ff;"> </span></span></span></span></span></div>
<div><span><span><span><span style="font-family: Arial; font-size: 85%; color: #0000ff;"><span>select TEXT from ALL_VIEWS where view_name<span> </span>=<span> </span>&#8216;<span>MY_VIEW</span>&#8216;;</span></span></span></span></span></div>
<div><span><span><span><span style="font-family: Arial; font-size: 85%; color: #0000ff;"><span> </span></span></span></span></span></div>
<div><span><span><span><span><span style="font-family: Arial; font-size: 85%; color: #0000ff;">spool off</span></span></span></span></span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.ukoom.com/get-definition-for-view-in-oracle.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowerDesigner Non SQLError</title>
		<link>http://www.ukoom.com/powerdesigner-non-sqlerror.htm</link>
		<comments>http://www.ukoom.com/powerdesigner-non-sqlerror.htm#comments</comments>
		<pubDate>Fri, 05 Feb 2010 05:35:56 +0000</pubDate>
		<dc:creator>ukoom</dc:creator>
				<category><![CDATA[Database]]></category>

		<guid isPermaLink="false">http://www.ukoom.com/?p=1042</guid>
		<description><![CDATA[The error &#8220;Non SQLError Could not load class Driver_name&#8221; was thrown when using PowerDesigner to generate the hibernate mapping files. This error occurs if you enter an incorrect Driver and URL in the Database Profile.]]></description>
			<content:encoded><![CDATA[<p>The error &#8220;Non SQLError Could not load class Driver_name&#8221; was thrown when using PowerDesigner to generate the hibernate mapping files.</p>
<p>This error occurs if you enter an incorrect Driver and URL in the Database Profile.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ukoom.com/powerdesigner-non-sqlerror.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowerDesigner Reverse Engineer</title>
		<link>http://www.ukoom.com/powerdesigner-reverse-engineer.htm</link>
		<comments>http://www.ukoom.com/powerdesigner-reverse-engineer.htm#comments</comments>
		<pubDate>Fri, 05 Feb 2010 05:34:06 +0000</pubDate>
		<dc:creator>ukoom</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.ukoom.com/?p=1040</guid>
		<description><![CDATA[Get the Physical Data Model 1. Menu Operation File, Reverse Engineer , Database, New Phycial Data Model 2. Connection Add a connect to the target database 3. Choose tables to generate the models Generate the Java Code 1. Menu Operation Tools , Generate Object-Oriented Model, Detail, O/R Mapping, Enable Transformations, Extended Model Definitions, O/R Mapping,      [...]]]></description>
			<content:encoded><![CDATA[<p>Get the Physical Data Model<br />
1. Menu Operation<br />
File, Reverse Engineer , Database, New Phycial Data Model<br />
2. Connection<br />
Add a connect to the target database<br />
3. Choose tables to generate the models</p>
<p>Generate the Java Code<br />
1. Menu Operation<br />
Tools , Generate Object-Oriented Model, Detail, O/R Mapping,<br />
Enable Transformations, Extended Model Definitions, O/R Mapping,      Hibernate</p>
<p>To be continued.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ukoom.com/powerdesigner-reverse-engineer.htm/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Import MySQL dumpfile</title>
		<link>http://www.ukoom.com/import-mysql-dumpfile.htm</link>
		<comments>http://www.ukoom.com/import-mysql-dumpfile.htm#comments</comments>
		<pubDate>Wed, 27 Jan 2010 05:55:32 +0000</pubDate>
		<dc:creator>ukoom</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.ukoom.com/?p=1025</guid>
		<description><![CDATA[how to correctly import a MySQL dumpfile through a command line. mysql -p -h DBSERVER dbname &#60; dbname.sql]]></description>
			<content:encoded><![CDATA[<p>how to correctly import a MySQL dumpfile through a command line.</p>
<p>mysql -p -h DBSERVER dbname &lt; dbname.sql</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ukoom.com/import-mysql-dumpfile.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DateDiff 用法</title>
		<link>http://www.ukoom.com/datediff-%e7%94%a8%e6%b3%95.htm</link>
		<comments>http://www.ukoom.com/datediff-%e7%94%a8%e6%b3%95.htm#comments</comments>
		<pubDate>Wed, 13 Jan 2010 08:17:04 +0000</pubDate>
		<dc:creator>ukoom</dc:creator>
				<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://www.ukoom.com/?p=1013</guid>
		<description><![CDATA[DateDiff 用法 DateDiff: SQL server函数 返回 Variant (Long) 的值，表示两个指定日期间的时间间隔数目。 语法 DateDiff(interval, date1, date2[, firstdayofweek[, firstweekofyear]]) DateDiff 函数语法中有下列命名参数： 部分 描述 interval 必要。字符串表达式，表示用来计算date1 和 date2 的时间差的时间间隔 Date1□date2 必要；Variant (Date)。计算中要用到的两个日期。 Firstdayofweek 可选。指定一个星期的第一天的常数。如果未予指定，则以星期日为第一天。 firstweekofyear 可选。指定一年的第一周的常数。如果未予指定，则以包含 1 月 1 日的星期为第一周。 设置 interval 参数的设定值如下： 设置 描述 yyyy 年 q 季 m 月 y 一年的日数 d 日 w 一周的日数 ww 周 hh [...]]]></description>
			<content:encoded><![CDATA[<p>DateDiff 用法<br />
DateDiff: SQL server函数</p>
<p>返回 Variant (Long) 的值，表示两个指定日期间的时间间隔数目。</p>
<p>语法</p>
<p>DateDiff(interval, date1, date2[, firstdayofweek[, firstweekofyear]])</p>
<p>DateDiff 函数语法中有下列命名参数：</p>
<p>部分 描述</p>
<p>interval 必要。字符串表达式，表示用来计算date1 和 date2 的时间差的时间间隔</p>
<p>Date1□date2 必要；Variant (Date)。计算中要用到的两个日期。</p>
<p>Firstdayofweek 可选。指定一个星期的第一天的常数。如果未予指定，则以星期日为第一天。</p>
<p>firstweekofyear 可选。指定一年的第一周的常数。如果未予指定，则以包含 1 月 1 日的星期为第一周。</p>
<p>设置</p>
<p>interval 参数的设定值如下：</p>
<p>设置 描述</p>
<p>yyyy 年</p>
<p>q 季</p>
<p>m 月</p>
<p>y 一年的日数</p>
<p>d 日</p>
<p>w 一周的日数</p>
<p>ww 周</p>
<p>hh 时</p>
<p>n 分钟</p>
<p>s 秒</p>
<p>firstdayofweek 参数的设定值如下：</p>
<p>常数 值 描述</p>
<p>vbUseSystem 0 使用 NLS API 设置。</p>
<p>vbSunday 1 星期日（缺省值）</p>
<p>vbMonday 2 星期一</p>
<p>vbTuesday 3 星期二</p>
<p>vbWednesday 4 星期三</p>
<p>vbThursday 5 星期四</p>
<p>vbFriday 6 星期五</p>
<p>vbSaturday 7 星期六</p>
<p>常数 值 描述</p>
<p>vbUseSystem 0 用 NLS API 设置。</p>
<p>vbFirstJan1 1 从包含 1 月 1 日的星期开始（缺省值）。</p>
<p>vbFirstFourDays 2 从第一个其大半个星期在新的一年的一周开始。</p>
<p>vbFirstFullWeek 3 从第一个无跨年度的星期开始。</p>
<p>说明</p>
<p>DateDiff 函数可用来决定两个日期之间所指定的时间间隔数目。例如，可以使用 DateDiff 来计算两个日期之间相隔几日，或计算从今天起到年底还有多少个星期。</p>
<p>为了计算 date1 与 date2 相差的日数，可以使用“一年的日数”(y) 或“日”(d)。当 interval 是“一周的日数”(w) 时，DateDiff 返回两日期间的周数。如果 date1 是星期一，DateDiff 计算到 date2 为止的星期一的个数。这个数包含 date2 但不包含 date1。不过，如果 interval 是“周”(ww)，则 DateDiff 函数返回两日期间的“日历周”数。由计算 date1 与 date2 之间星期日的个数而得。如果 date2 刚好是星期日，则 date2 也会被加进 DateDiff 的计数结果中；但不论 date1 是否为星期日，都不将它算进去。</p>
<p>如果 date1 比 date2 来得晚，则 DateDiff 函数的返回值为负数。date2-data10</p>
<p>firstdayofweek 参数会影响使用时间间隔符号 “W” 或 “WW” 计算的结果。</p>
<p>如果 date1 或 date2 是日期文字，则指定的年份成为该日期的固定部分。但是，如果 date1 或 date2 用双引号 (&#8221; &#8220;) 括起来，且年份略而不提，则在每次计算表达式 date1 或 date2 时，当前年份都会插入到代码之中。这样就可以书写适用于不同年份的程序代码。</p>
<p>在计算 12 月 31 日和来年的 1 月 1 日的年份差时，DateDiff 返回 1 表示相差一个年份，虽然实际上只相差一天而已。</p>
<p>示例</p>
<p>此示例确定在 pubs 数据库中标题发布日期和当前日期间的天数。</p>
<p>USE pubsGOSELECT DATEDIFF(day, pubdate, getdate()) AS no_of_daysFROM titlesGO</p>
<p>DATEDIFF函数在Access和MSSQL中的使用区别</p>
<p>ACCESS中用法：DATEDIFF(&#8216;day&#8217;, pubdate, Now())</p>
<p>MSSQL中用法：DATEDIFF(day, pubdate, getdate())</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ukoom.com/datediff-%e7%94%a8%e6%b3%95.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Server JDBC Connection Errors: Error establishing socket, connection refused&#8230;</title>
		<link>http://www.ukoom.com/sql-server-jdbc-connection-errors-error-establishing-socket-connection-refused.htm</link>
		<comments>http://www.ukoom.com/sql-server-jdbc-connection-errors-error-establishing-socket-connection-refused.htm#comments</comments>
		<pubDate>Wed, 06 Jan 2010 12:29:27 +0000</pubDate>
		<dc:creator>ukoom</dc:creator>
				<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://www.ukoom.com/?p=1007</guid>
		<description><![CDATA[SQL Server JDBC Connection Errors: Error establishing socket, connection refused&#8230; java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket. at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source) at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source) at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source) at com.microsoft.jdbc.sqlserver.tds.TDSConnection.(Unknown Source) at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source) at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source) at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source) at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source) SQL server 2005 JDBC Driver: com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host has [...]]]></description>
			<content:encoded><![CDATA[<p>SQL Server JDBC Connection Errors: Error establishing socket, connection refused&#8230;<br />
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.<br />
        at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)<br />
        at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)<br />
        at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)<br />
        at com.microsoft.jdbc.sqlserver.tds.TDSConnection.(Unknown Source)<br />
        at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)<br />
        at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)<br />
        at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)<br />
        at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)</p>
<p>SQL server 2005 JDBC Driver:<br />
com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host has failed.<br />
                                     java.net.ConnectionException: Connection refused: connect<br />
        at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(Unknown Source)<br />
        at com.microsoft.sqlserver.jdbc.SQLServerException.connect(Unknown Source)<br />
        at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(Unknown Source)</p>
<p>For this kind of database connection problem, there are always two distinct issues:<br />
The SQL server itself is not running or TCP/IP is disabled. That can be confirmed by run<br />
netstat</p>
<p>and see it is listed there. And then run </p>
<p>telnet localhost 1433</p>
<p>and see it can connect (or whatever port number). </p>
<p>Even if the server is running, a client program such like jdbc may still fail to connect to it because of a<br />
firewall </p>
<p>For testing, you can turn off the XP firewall. And if you have other firewall running, check the firewall log and see any activities that might be related. </p>
<p>You can also verify whether or not your server is running from the </p>
<p>SQL Server Network Utility<br />
on the server, or from another client utility such as</p>
<p>SQL Query Analyzer </p>
<p>or a command line utility such as </p>
<p>osql </p>
<p>To check the enabled protocols for a server, follow these steps:<br />
In SQL Server 2000, start the SQL Server Network Utility (svrnetcn.exe).<br />
On the General tab, select the instance of Microsoft SQL Server on which to load an installed server network library.<br />
Make sure that TCP/IP appears in the Enabled Protocols list.<br />
To find the port number, in the Enabled Protocols list, click TCP/IP, and then click Properties. The Properties dialog box displays the port number.<br />
There is an known bug: SQL Server May Not Listen on TCP/IP Sockets When TCP/IP is the Only Protocol<br />
In a SQL Server 2000 custom installation, if TCP/IP is the only selected protocol and all other protocols are disabled, SQL Server may not initialize and listen on TCP/IP sockets. The Server Network Utility shows that it is listening only on TCP/IP port 1433 even though it is not. To identify if SQL Server is not listening on TCP/IP, check to see if the value for TcpPort in the following registry key is incorrectly set to blank or empty: </p>
<p>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\ [Instance Name]\MSSQLServer\SuperSocketNetLib\Tcp\REG_SZ TcpPort= </p>
<p>To work around this problem, follow these steps: </p>
<p>Start Registry Editor (Regedt32.exe).<br />
Locate the TcpPort value in the following key in the registry:<br />
Named instance:<br />
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\[InstanceName]\MSSQLServer\SuperSocketNetLib\Tcp\TcpPort </p>
<p>Default instance:<br />
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer<br />
\MSSQLServer\SuperSocketNetLib\TCP\TcpPort </p>
<p>. On the Edit menu, click String. Enter either of the following values:<br />
a. Type the port number you want. -or-<br />
b. Enter a value of 0 to have SQL Server dynamically detect and assign a port the next time SQL Server starts.</p>
<p>Click OK.<br />
Quit Registry Editor.<br />
SQL Server 2000 Service Pack 4 (SP4): </p>
<p>You are running a version of Microsoft SQL Server 2000 or Microsoft SQL Server 2000 Desktop Engine (also called MSDE) that has known security vulnerabilities when used in conjunction with the Microsoft Windows Server 2003 family. To reduce your computer&#8217;s vulnerability to certain virus attacks, the TCP/IP and UDP network ports of Microsoft SQL Server 2000, MSDE, or both have been disabled. To enable these ports, you must install SQL Server 2000 Service Pack 3a, or the most recent service pack for Microsoft SQL Server 2000 or MSDE from    http://www.microsoft.com/sql/downloads/2000/sp4.mspx. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.ukoom.com/sql-server-jdbc-connection-errors-error-establishing-socket-connection-refused.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle Tuning Documentum Server</title>
		<link>http://www.ukoom.com/oracle-tuning-documentum-server.htm</link>
		<comments>http://www.ukoom.com/oracle-tuning-documentum-server.htm#comments</comments>
		<pubDate>Mon, 07 Dec 2009 06:44:56 +0000</pubDate>
		<dc:creator>ukoom</dc:creator>
				<category><![CDATA[Documentum]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Database]]></category>

		<guid isPermaLink="false">http://www.ukoom.com/?p=942</guid>
		<description><![CDATA[Modifying the dmcl.ini File on the Oracle WebCenter Content Service for Documentum Host On all computers that host the Oracle WebCenter Content Service for Documentum, you can increase the max_session_count variable in the dmcl.ini file to allow for additional concurrent sessions. By default, the max_session_count is set to 10, meaning there can be 10 concurrent [...]]]></description>
			<content:encoded><![CDATA[<h2>Modifying the dmcl.ini File on the Oracle WebCenter Content Service for Documentum Host</h2>
<p><a name="wp1046181"> </a> On all computers that host the Oracle WebCenter Content Service for Documentum, you can increase the <span style="font-weight: bold;">max_session_count</span> variable in the<span style="font-weight: bold;"> dmcl.ini</span> file to allow for additional concurrent sessions. By default, the <span style="font-weight: bold;">max_session_count</span> is set to 10, meaning there can be 10 concurrent sessions to Documentum.</p>
<div>
<ul>
<li><a name="wp1046182"> </a>The number of Documentum sessions depends on the number of content crawlers you expect to run concurrently, as well as the number of users you expect to click through links concurrently. We recommend you set the <span style="font-weight: bold;">max_session_count </span>parameter accordingly. You can increase this setting later if you find that you run out of sessions or want to increase the number of content crawlers running simultaneously.</li>
<li><a name="wp1046183"> </a>A session is started for each user with a unique user name/password that tries to click through to a Documentum document in the portal. The <span style="font-weight: bold;">max_session_count</span> must accommodate the estimated number of click through users to be handled concurrently.</li>
</ul>
<h2>Modifying the server.ini File on the Documentum Server</h2>
<p><a name="wp1046185"> </a> On the Documentum Server computer, you can change the settings in the <span style="font-weight: bold;">server.ini</span> file to allow for additional concurrent sessions.</p>
<div>
<ul>
<li><a name="wp1046186"> </a>The <span style="font-weight: bold;">concurrent_sessions</span> variable controls the number of connections the Documentum server can handle concurrently. This parameter should accommodate for the sum of all the <span style="font-weight: bold;">max_session_count</span> values in your environment.</li>
</ul>
</div>
<p><a name="wp1046187"> </a> If you plan to use the Oracle WebCenter Content Service for Documentum with several different docbases, you must modify the <span style="font-weight: bold;">server.ini</span> for each docbase. When making these configuration changes, consider the following:</p>
<div>
<ul>
<li><a name="wp1046188"> </a>As with any configuration changes, take into account any hardware limitations.</li>
<li><a name="wp1046189"> </a>The configuration settings depend on both existing and projected Documentum usage.</li>
</ul>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.ukoom.com/oracle-tuning-documentum-server.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle Session Statistics</title>
		<link>http://www.ukoom.com/oracle-session-statistics.htm</link>
		<comments>http://www.ukoom.com/oracle-session-statistics.htm#comments</comments>
		<pubDate>Mon, 07 Dec 2009 05:55:32 +0000</pubDate>
		<dc:creator>ukoom</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Database]]></category>

		<guid isPermaLink="false">http://www.ukoom.com/?p=939</guid>
		<description><![CDATA[Here are some scripts related to Session Statistics . Session I/O By User SESSION I/O BY USER NOTES: Username &#8211; Name of the Oracle process user OS User &#8211; Name of the operating system user PID &#8211; Process ID of the session SID &#8211; Session ID of the session Serial# &#8211; Serial# of the session [...]]]></description>
			<content:encoded><![CDATA[<p>Here are some scripts related to Session Statistics .</p>
<h2>Session I/O By User</h2>
<p><strong>SESSION I/O BY USER NOTES:</strong></p>
<div>
<li><strong>Username</strong> &#8211; Name of the Oracle process user</li>
<li><strong>OS User</strong> &#8211; Name of the operating system user</li>
<li><strong>PID</strong> &#8211; Process ID of the session</li>
<li><strong>SID</strong> &#8211; Session ID of the session</li>
<li><strong>Serial#</strong> &#8211; Serial# of the session</li>
<li><strong>Physical Reads</strong> &#8211; Physical reads for the session</li>
<li><strong>Block Gets</strong> &#8211; Block gets for the session</li>
<li><strong>Consistent Gets</strong> &#8211; Consistent gets for the session</li>
<li><strong>Block Changes</strong> &#8211; Block changes for the session</li>
<li><strong>Consistent Changes</strong> &#8211; Consistent changes for the session<br />
<blockquote>
<pre>select	nvl(ses.USERNAME,'ORACLE PROC') username,
	OSUSER os_user,
	PROCESS pid,
	ses.SID sid,
	SERIAL#,
	PHYSICAL_READS,
	BLOCK_GETS,
	CONSISTENT_GETS,
	BLOCK_CHANGES,
	CONSISTENT_CHANGES
from	v$session ses,
	v$sess_io sio
where 	ses.SID = sio.SID
order 	by PHYSICAL_READS, ses.USERNAME</pre>
</blockquote>
<h2>CPU Usage By Session</h2>
<p><strong>CPU USAGE BY SESSION NOTES:</strong></li>
<li><strong>Username</strong> &#8211; Name of the user</li>
<li><strong>SID</strong> &#8211; Session id</li>
<li><strong>CPU Usage</strong> &#8211; CPU centiseconds used by this session (divide by 100 to get real CPU seconds)<br />
<blockquote>
<pre>select 	nvl(ss.USERNAME,'ORACLE PROC') username,
	se.SID,
	VALUE cpu_usage
from 	v$session ss,
	v$sesstat se,
	v$statname sn
where  	se.STATISTIC# = sn.STATISTIC#
and  	NAME like '%CPU used by this session%'
and  	se.SID = ss.SID
order  	by VALUE desc</pre>
</blockquote>
<h2>Resource Usage By User</h2>
<p><strong>RESOURCE USAGE BY USER NOTES:</strong></li>
<li><strong>SID</strong> &#8211; Session ID</li>
<li><strong>Username</strong> &#8211; Name of the user</li>
<li><strong>Statistic</strong> &#8211; Name of the statistic</li>
<li><strong>Value</strong> &#8211; Current value<br />
<blockquote>
<pre>select 	ses.SID,
	nvl(ses.USERNAME,'ORACLE PROC') username,
	sn.NAME statistic,
	sest.VALUE
from 	v$session ses,
	v$statname sn,
	v$sesstat sest
where 	ses.SID = sest.SID
and 	sn.STATISTIC# = sest.STATISTIC#
and 	sest.VALUE is not null
and 	sest.VALUE != 0
order 	by ses.USERNAME, ses.SID, sn.NAME</pre>
</blockquote>
<h2>Session Stats By Session</h2>
<p><strong>SESSION STAT NOTES:</strong></li>
<li><strong>Username</strong> &#8211; Name of the user</li>
<li><strong>SID</strong> &#8211; Session ID</li>
<li><strong>Statistic</strong> &#8211; Name of the statistic</li>
<li><strong>Usage</strong> &#8211; Usage according to Oracle<br />
<blockquote>
<pre>select  nvl(ss.USERNAME,'ORACLE PROC') username,
	se.SID,
	sn.NAME stastic,
	VALUE usage
from 	v$session ss,
	v$sesstat se,
	v$statname sn
where  	se.STATISTIC# = sn.STATISTIC#
and  	se.SID = ss.SID
and	se.VALUE &gt; 0
order  	by sn.NAME, se.SID, se.VALUE desc</pre>
</blockquote>
<h2>Cursor Usage By Session</h2>
<p><strong>CURSOR USAGE BY SESSION NOTES:</strong></li>
<li><strong>Username</strong> &#8211; Name of the user</li>
<li><strong>Recursive Calls</strong> &#8211; Total number of recursive calls</li>
<li><strong>Opened Cursors</strong> &#8211; Total number of opened cursors</li>
<li><strong>Current Cursors</strong> &#8211; Number of cursor currently in use<br />
<blockquote>
<pre>select 	user_process username,
	"Recursive Calls",
	"Opened Cursors",
	"Current Cursors"
from  (
	select 	nvl(ss.USERNAME,'ORACLE PROC')||'('||se.sid||') ' user_process,
			sum(decode(NAME,'recursive calls',value)) "Recursive Calls",
			sum(decode(NAME,'opened cursors cumulative',value)) "Opened Cursors",
			sum(decode(NAME,'opened cursors current',value)) "Current Cursors"
	from 	v$session ss,
		v$sesstat se,
		v$statname sn
	where 	se.STATISTIC# = sn.STATISTIC#
	and 	(NAME  like '%opened cursors current%'
	or 	 NAME  like '%recursive calls%'
	or 	 NAME  like '%opened cursors cumulative%')
	and 	se.SID = ss.SID
	and 	ss.USERNAME is not null
	group 	by nvl(ss.USERNAME,'ORACLE PROC')||'('||se.SID||') '
)
orasnap_user_cursors
order 	by USER_PROCESS,"Recursive Calls"</pre>
</blockquote>
<h2>User Hit Ratios</h2>
<p><strong>USER HIT RATIO NOTES:</strong></li>
<li><strong>Username</strong> &#8211; Name of the user</li>
<li><strong>Consistent Gets</strong> &#8211; The number of accesses made to the block buffer to retrieve data in a  consistent mode.</li>
<li><strong>DB Blk Gets</strong> &#8211; The number of blocks accessed via single block gets (i.e. not through the consistent get mechanism).</li>
<li><strong>Physical Reads</strong> &#8211; The cumulative number of blocks read from disk.</li>
<li>Logical reads are the sum of <strong>consistent gets</strong> and <strong>db block gets</strong>.</li>
<li>The <strong>db block gets</strong> statistic value is incremented when a block is read for update and when segment header blocks are accessed.</li>
<li>Hit ratio should be &gt; 90%<br />
<blockquote>
<pre>select	USERNAME,
	CONSISTENT_GETS,
        BLOCK_GETS,
        PHYSICAL_READS,
        ((CONSISTENT_GETS+BLOCK_GETS-PHYSICAL_READS) / (CONSISTENT_GETS+BLOCK_GETS)) Ratio
from 	v$session, v$sess_io
where 	v$session.SID = v$sess_io.SID
and 	(CONSISTENT_GETS+BLOCK_GETS) &gt; 0
and 	USERNAME is not null
order	by ((CONSISTENT_GETS+BLOCK_GETS-PHYSICAL_READS) / (CONSISTENT_GETS+BLOCK_GETS))</pre>
</blockquote>
</li>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.ukoom.com/oracle-session-statistics.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

