<?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>Kevin 的小家</title>
	<atom:link href="http://blog.donews.com/kevinhlj/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://blog.donews.com/kevinhlj</link>
	<description>天行健，君子以自强不息；地势坤，圣人以厚德载物</description>
	<lastBuildDate>Tue, 25 Oct 2011 15:04:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>实现MAXIMO7.5工作流任务箱任务颜色提示功能</title>
		<link>http://blog.donews.com/kevinhlj/?p=1569330</link>
		<comments>http://blog.donews.com/kevinhlj/?p=1569330#comments</comments>
		<pubDate>Tue, 25 Oct 2011 15:03:02 +0000</pubDate>
		<dc:creator>kevin</dc:creator>
				<category><![CDATA[maximo]]></category>

		<guid isPermaLink="false">http://blog.donews.com/kevinhlj/?p=1569330</guid>
		<description><![CDATA[在MAXIMO7.5之前的版本，可以通过在任务描述中，写入HTML 或CSS标识 来实现这个，如
<span style="color:red">提示内容</span>来实现。 

但是在7.5版本，以方法已经无法实现， 可能出于安全考虑，7.5版的收件箱里，对提示内容进行了标识转换"" 转换成&#60;&qout;

 在wfassigment中，添加一个字段 cust_css来实现节点color，当客户要求在节点上有颜色要求的时候，我们在工作流设计器设置一下CSS Value值]]></description>
			<content:encoded><![CDATA[在MAXIMO7.5之前的版本，可以通过在任务描述中，写入HTML 或CSS标识 来实现这个，如
<span style="color:red">提示内容</span>来实现。 

但是在7.5版本，以方法已经无法实现， 可能出于安全考虑，7.5版的收件箱里，对提示内容进行了标识转换"" 转换成&#60;&qout;

 在wfassigment中，添加一个字段 cust_css来实现节点color，当客户要求在节点上有颜色要求的时候，我们在工作流设计器设置一下CSS Value值]]></content:encoded>
			<wfw:commentRss>http://blog.donews.com/kevinhlj/?feed=rss2&amp;p=1569330</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XP 用代码来强制关机　或重启</title>
		<link>http://blog.donews.com/kevinhlj/?p=1569323</link>
		<comments>http://blog.donews.com/kevinhlj/?p=1569323#comments</comments>
		<pubDate>Mon, 14 Feb 2011 15:25:11 +0000</pubDate>
		<dc:creator>kevin</dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://blog.donews.com/kevinhlj/?p=1569323</guid>
		<description><![CDATA[DELPHI shutdown XP]]></description>
			<content:encoded><![CDATA[<p>unction MyExitWindows(RebootParam: Longword): Boolean;<br />
<strong>var</strong><br />
TTokenHd: THandle;<br />
TTokenPvg: TTokenPrivileges;<br />
cbtpPrevious: DWORD;<br />
rTTokenPvg: TTokenPrivileges;<br />
pcbtpPreviousRequired: DWORD;<br />
tpResult: Boolean;<br />
<strong>const</strong><br />
SE_SHUTDOWN_NAME = &#8217;SeShutdownPrivilege&#8217;;<br />
<strong>begin</strong><br />
if Win32Platform = VER_PLATFORM_WIN32_NT <strong>then</strong><br />
<strong>begin</strong><br />
tpResult := OpenProcessToken(GetCurrentProcess(),<br />
TOKEN_ADJUST_PRIVILEGES or TOKEN_QUERY,<br />
TTokenHd);<br />
if tpResult <strong>then</strong><br />
<strong>begin</strong><br />
tpResult := LookupPrivilegeValue(nil,<br />
SE_SHUTDOWN_NAME,<br />
TTokenPvg.Privileges[0].Luid);<br />
TTokenPvg.PrivilegeCount := 1;<br />
TTokenPvg.Privileges[0].Attributes := SE_PRIVILEGE_ENABLED;<br />
cbtpPrevious := SizeOf(rTTokenPvg);<br />
pcbtpPreviousRequired := 0;<br />
if tpResult <strong>then</strong><br />
Windows.AdjustTokenPrivileges(TTokenHd,<br />
False,<br />
TTokenPvg,<br />
cbtpPrevious,<br />
rTTokenPvg,<br />
pcbtpPreviousRequired);<br />
<strong>end;</strong><br />
<strong>end;</strong><br />
Result := ExitWindowsEx(RebootParam, 0);<br />
<strong>end;</strong><br />
关机<br />
<strong>MyExitWindows(EWX_POWEROFF or EWX_FORCE);<br />
</strong>重启<br />
<strong>MyExitWindows(EWX_REBOOT or EWX_FORCE);</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.donews.com/kevinhlj/?feed=rss2&amp;p=1569323</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>maximo 弹出确认对话框</title>
		<link>http://blog.donews.com/kevinhlj/?p=1569315</link>
		<comments>http://blog.donews.com/kevinhlj/?p=1569315#comments</comments>
		<pubDate>Thu, 20 May 2010 02:50:34 +0000</pubDate>
		<dc:creator>kevin</dc:creator>
				<category><![CDATA[maximo]]></category>
		<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://blog.donews.com/kevinhlj/?p=1569315</guid>
		<description><![CDATA[在客户开发过程中，有些客户经常提出，要在操作的时候，给他们一个一弹出式对话框来确认。
解决方法：
1.后台登录数据库中，为&#8221;MAXMESSAGES&#8221;添加一笔记录
Insert into  MAXMESSAGES
(MSGKEY, MSGGROUP, VALUE, TITLE, DISPLAYMETHOD, OPTIONS, MAXMESSAGESID, ROWSTAMP)
Values
(&#8216;endcontinue&#8217;, &#8216;jspmessages&#8217;, &#8216;日志是否交班？&#8216;, &#8216;日志管理系统&#8216;, &#8216;MSGBOX&#8217;, 24, 1, &#8216;62099904&#8242;);
Insert into  MAXMESSAGES
(MSGKEY, MSGGROUP, VALUE, TITLE, DISPLAYMETHOD, OPTIONS, MAXMESSAGESID, ROWSTAMP)
Values
(&#8216;endcontinue&#8217;, &#8216;jspmessages&#8217;, &#8216;日志是否交班？&#8216;, &#8216;日志管理系统&#8216;, &#8216;MSGBOX&#8217;, 24, 1, &#8216;62099904&#8242;);
说明:msgkey是你的消息标识
MSGGROUP是消息分组
系统通过 msgkey和msggroup来找到你定义 的消息
value:提示内容
title:提示标题（我在maximo 6.2.1设置，无作用）
DISPLAYMETHOD：（TEXT，STATUS,MSGBOX)
OPTIONS, 24:显示（是，否两个按钮）26：显示（确认，取消，否三个按钮）
其它无特别意义
在BEAN类中实现如下代码：
private boolean EndLogYesNoCheck() throws MXException {
WebClientEvent event = sessionContext.getCurrentEvent();
int msgRet = event.getMessageReturn();
if (msgRet &#60; 0) {
throw new MXApplicationException(&#8220;jspmessages&#8221;, &#8220;endcontinue&#8221;);
} else if (msgRet [...]]]></description>
			<content:encoded><![CDATA[<p>在客户开发过程中，有些客户经常提出，要在操作的时候，给他们一个一弹出式对话框来确认。</p>
<p>解决方法：</p>
<p>1.后台登录数据库中，为&#8221;MAXMESSAGES&#8221;添加一笔记录</p>
<p><strong><em>Insert into  MAXMESSAGES</em></strong></p>
<p><strong><em>(MSGKEY, MSGGROUP, VALUE, TITLE, DISPLAYMETHOD, OPTIONS, MAXMESSAGESID, ROWSTAMP)</em></strong></p>
<p><strong><em>Values</em></strong></p>
<p><strong><em>(&#8216;endcontinue&#8217;, &#8216;jspmessages&#8217;, &#8216;</em></strong><strong><em>日志是否交班？</em></strong><strong><em>&#8216;, &#8216;</em></strong><strong><em>日志管理系统</em></strong><strong><em>&#8216;, &#8216;MSGBOX&#8217;, 24, 1, &#8216;62099904&#8242;);</em></strong></p>
<p><strong><em>Insert into  MAXMESSAGES</em></strong></p>
<p><strong><em>(MSGKEY, MSGGROUP, VALUE, TITLE, DISPLAYMETHOD, OPTIONS, MAXMESSAGESID, ROWSTAMP)</em></strong></p>
<p><strong><em>Values</em></strong></p>
<p><strong><em>(&#8216;endcontinue&#8217;, &#8216;jspmessages&#8217;, &#8216;</em></strong><strong><em>日志是否交班？</em></strong><strong><em>&#8216;, &#8216;</em></strong><strong><em>日志管理系统</em></strong><strong><em>&#8216;, &#8216;MSGBOX&#8217;, 24, 1, &#8216;62099904&#8242;);</em></strong></p>
<p>说明:msgkey是你的消息标识</p>
<p>MSGGROUP是消息分组</p>
<p>系统通过 msgkey和msggroup来找到你定义 的消息</p>
<p>value:提示内容</p>
<p>title:提示标题（我在maximo 6.2.1设置，无作用）</p>
<p>DISPLAYMETHOD：（TEXT，STATUS,MSGBOX)</p>
<p>OPTIONS, 24:显示（是，否两个按钮）26：显示（确认，取消，否三个按钮）</p>
<p>其它无特别意义</p>
<p>在BEAN类中实现如下代码：</p>
<p>private boolean EndLogYesNoCheck() throws MXException {</p>
<p>WebClientEvent event = sessionContext.getCurrentEvent();</p>
<p>int msgRet = event.getMessageReturn();</p>
<p>if (msgRet &lt; 0) {</p>
<p>throw new MXApplicationException(&#8220;jspmessages&#8221;, &#8220;endcontinue&#8221;);</p>
<p>} else if (msgRet == <img src='http://blog.donews.com/kevinhlj/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> {</p>
<p>return true;        } else if (msgRet == 16) {</p>
<p>reset();</p>
<p>resetRemote = true;</p>
<p>return false;</p>
<p>} else {</p>
<p>return false;</p>
<p>}</p>
<p>}</p>
<p>在需要显示对话框的事件中写如下：</p>
<p>if (EndLogYesNoCheck()) {</p>
<p>logRemote.EndLog();</p>
<p>this.save();</p>
<p>//对页面进行刷新</p>
<p>sessionContext.queueRefreshEvent();</p>
<p>}</p>
<p>return 1;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.donews.com/kevinhlj/?feed=rss2&amp;p=1569315</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>maximo 自动出入库</title>
		<link>http://blog.donews.com/kevinhlj/?p=1569310</link>
		<comments>http://blog.donews.com/kevinhlj/?p=1569310#comments</comments>
		<pubDate>Thu, 13 May 2010 02:11:37 +0000</pubDate>
		<dc:creator>kevin</dc:creator>
				<category><![CDATA[maximo]]></category>

		<guid isPermaLink="false">http://blog.donews.com/kevinhlj/?p=1569310</guid>
		<description><![CDATA[在实施MAXIMO中，有的公司因为某些原因，不想用标准《发放和转移》功能进行物资的出库操作，想在领料单中，自动通过流程确认后，就自动出库，发放数据与领用数据相符。
同样，在入库时，也不想通过标准《接收》模块进行物资的入库操作。
经过研究，可以对相关类进行客户化，即可达到这种效果
代码如下：
对WORLORDER客户化，使其有自动出库功能
private void AutoUse() throws MXException,RemoteException
{
MboSetRemote locationset=getMboSet(&#8220;$LOCATIONS&#8221;,&#8221;LOCATIONS&#8221;,&#8221;type=&#8217;STOREROOM&#8217;&#8221;);
MboRemote location=locationset.getMbo(0);
if (location!=null)
{
MboSetRemote matusetrans=location.getMboSet(&#8220;MATUSETRANSISSUE&#8221;);
MboSetRemote wpset=getMboSet(&#8220;WPMATERIAL&#8221;);
if (!wpset.isEmpty())
{
for (int i=0;i&#60;wpset.count();i++)
{
MboRemote wpmbo=wpset.getMbo(i);
if (wpmbo!=null)
{
MboRemote matuseMbo=matusetrans.add();
matuseMbo.setValue(&#8220;ITEMNUM&#8221;, wpmbo.getString(&#8220;ITEMNUM&#8221;));
matuseMbo.setValue(&#8220;POSITIVEQUANTITY&#8221;, wpmbo.getDouble(&#8220;ITEMQTY&#8221;));
matuseMbo.setValue(&#8220;GLDEBITACCT&#8221;, &#8220;1000-4102-3501&#8243;);
}
}
}
}
}
//对PO客户化，使其有自动入库功能
private void matrec() throws MXException, RemoteException
{
String ownerSysId = getString(&#8220;ownersysid&#8221;);
MboSetRemote polineSet=this.getMboSet(&#8220;POLINE&#8221;);
for (int i=0; i&#60;polineSet.count();i++)
{
MboRemote poline=polineSet.getMbo(i);//每行数据
if (poline!=null)
{
long linenum=poline.getLong(&#8220;polinenum&#8221;);//行号
double quantity=poline.getDouble(&#8220;orderqty&#8221;);//数量
//针对行，创建一个接收
MboRemote receipt = createReceipt(null, linenum, ownerSysId);
//接收数据赋值
receipt.setValue(&#8220;tobin&#8221;, &#8220;&#8221;, 2L);
receipt.setValue(&#8220;quantity&#8221;, quantity, 2L);
}
}
}
]]></description>
			<content:encoded><![CDATA[<p>在实施MAXIMO中，有的公司因为某些原因，不想用标准《发放和转移》功能进行物资的出库操作，想在领料单中，自动通过流程确认后，就自动出库，发放数据与领用数据相符。</p>
<p>同样，在入库时，也不想通过标准《接收》模块进行物资的入库操作。</p>
<p>经过研究，可以对相关类进行客户化，即可达到这种效果</p>
<p>代码如下：</p>
<p>对WORLORDER客户化，使其有自动出库功能<br />
private void AutoUse() throws MXException,RemoteException<br />
{</p>
<p>MboSetRemote locationset=getMboSet(&#8220;$LOCATIONS&#8221;,&#8221;LOCATIONS&#8221;,&#8221;type=&#8217;STOREROOM&#8217;&#8221;);<br />
MboRemote location=locationset.getMbo(0);<br />
if (location!=null)<br />
{<br />
MboSetRemote matusetrans=location.getMboSet(&#8220;MATUSETRANSISSUE&#8221;);<br />
MboSetRemote wpset=getMboSet(&#8220;WPMATERIAL&#8221;);<br />
if (!wpset.isEmpty())<br />
{<br />
for (int i=0;i&lt;wpset.count();i++)<br />
{<br />
MboRemote wpmbo=wpset.getMbo(i);<br />
if (wpmbo!=null)<br />
{<br />
MboRemote matuseMbo=matusetrans.add();<br />
matuseMbo.setValue(&#8220;ITEMNUM&#8221;, wpmbo.getString(&#8220;ITEMNUM&#8221;));<br />
matuseMbo.setValue(&#8220;POSITIVEQUANTITY&#8221;, wpmbo.getDouble(&#8220;ITEMQTY&#8221;));<br />
matuseMbo.setValue(&#8220;GLDEBITACCT&#8221;, &#8220;1000-4102-3501&#8243;);</p>
<p>}<br />
}<br />
}<br />
}<br />
}</p>
<p>//对PO客户化，使其有自动入库功能</p>
<p>private void matrec() throws MXException, RemoteException<br />
{<br />
String ownerSysId = getString(&#8220;ownersysid&#8221;);</p>
<p>MboSetRemote polineSet=this.getMboSet(&#8220;POLINE&#8221;);<br />
for (int i=0; i&lt;polineSet.count();i++)<br />
{<br />
MboRemote poline=polineSet.getMbo(i);//每行数据<br />
if (poline!=null)<br />
{<br />
long linenum=poline.getLong(&#8220;polinenum&#8221;);//行号</p>
<p>double quantity=poline.getDouble(&#8220;orderqty&#8221;);//数量<br />
//针对行，创建一个接收<br />
MboRemote receipt = createReceipt(null, linenum, ownerSysId);<br />
//接收数据赋值<br />
receipt.setValue(&#8220;tobin&#8221;, &#8220;&#8221;, 2L);<br />
receipt.setValue(&#8220;quantity&#8221;, quantity, 2L);</p>
<p>}<br />
}</p>
<p>}</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.donews.com/kevinhlj/?feed=rss2&amp;p=1569310</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MAXIMO 序列维护</title>
		<link>http://blog.donews.com/kevinhlj/?p=1569308</link>
		<comments>http://blog.donews.com/kevinhlj/?p=1569308#comments</comments>
		<pubDate>Thu, 01 Apr 2010 03:52:33 +0000</pubDate>
		<dc:creator>kevin</dc:creator>
				<category><![CDATA[maximo]]></category>

		<guid isPermaLink="false">http://blog.donews.com/kevinhlj/?p=1569308</guid>
		<description><![CDATA[经常在导入导出MAXIMO的时候，遇到序列值不匹配的情况，每次都客户应用或测试的时候发现这个问题，搞得巨没面子，为此，写了如下脚本，解决此问题
declare
&#8211; Local variables here
i integer;
&#8211; Local variables here
cursor seq_cursor is(
select * from maxsequence   );
seq_cursor_row seq_cursor%rowtype;
imaxseq        number(10);
icurvalseq     number(10);
strsql         varchar2(200);
ic             number;
isExist        number(10);
begin
&#8211; Test statements here
open seq_cursor;
loop
fetch seq_cursor
into seq_cursor_row;
EXIT WHEN seq_cursor%NOTFOUND;
imaxseq := 0;
strSQL  := &#8217;select count(*) from all_objects where object_name=:1 and object_type=&#8221;TABLE&#8221;&#8217;;
execute IMMEDIATE strSQL
into isExist
using seq_cursor_row.tbname;
dbms_output.put_line(isExist);
if (isExist = 1) then
strsql := &#8217;select max(&#8216; &#124;&#124; seq_cursor_row.name &#124;&#124; &#8216;)  from [...]]]></description>
			<content:encoded><![CDATA[<p>经常在导入导出MAXIMO的时候，遇到序列值不匹配的情况，每次都客户应用或测试的时候发现这个问题，搞得巨没面子，为此，写了如下脚本，解决此问题<br />
declare<br />
&#8211; Local variables here<br />
i integer;<br />
&#8211; Local variables here<br />
cursor seq_cursor is(<br />
select * from maxsequence   );<br />
seq_cursor_row seq_cursor%rowtype;<br />
imaxseq        number(10);<br />
icurvalseq     number(10);<br />
strsql         varchar2(200);<br />
ic             number;<br />
isExist        number(10);<br />
begin<br />
&#8211; Test statements here<br />
open seq_cursor;<br />
loop<br />
fetch seq_cursor<br />
into seq_cursor_row;<br />
EXIT WHEN seq_cursor%NOTFOUND;<br />
imaxseq := 0;<br />
strSQL  := &#8217;select count(*) from all_objects where object_name=:1 and object_type=&#8221;TABLE&#8221;&#8217;;<br />
execute IMMEDIATE strSQL<br />
into isExist<br />
using seq_cursor_row.tbname;<br />
dbms_output.put_line(isExist);<br />
if (isExist = 1) then<br />
strsql := &#8217;select max(&#8216; || seq_cursor_row.name || &#8216;)  from &#8216; ||<br />
seq_cursor_row.tbname;<br />
EXECUTE IMMEDIATE strsql<br />
into imaxseq;</p>
<p>strsql := &#8217;select &#8216; || seq_cursor_row.sequencename ||<br />
&#8216;.nextval from dual&#8217;;</p>
<p>EXECUTE IMMEDIATE strsql<br />
into icurvalseq;</p>
<p>ic := imaxseq &#8211; icurvalseq;<br />
if ic &lt;&gt; -1 then<br />
strSQL := &#8216;alter sequence &#8216; || seq_cursor_row.sequencename ||<br />
&#8216; increment by &#8216; || ic || &#8216; nocache&#8217;;<br />
EXECUTE IMMEDIATE strsql;<br />
strSQL := &#8217;select &#8216; || seq_cursor_row.sequencename ||<br />
&#8216;.nextval from dual&#8217;;<br />
EXECUTE IMMEDIATE strsql<br />
into ic;<br />
strSQL := &#8216;alter sequence &#8216; || seq_cursor_row.sequencename ||<br />
&#8216; increment by 1 cache 20&#8242;;</p>
<p>EXECUTE IMMEDIATE strsql;<br />
end if;<br />
end if;</p>
<p>end loop;<br />
close seq_cursor;<br />
end;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.donews.com/kevinhlj/?feed=rss2&amp;p=1569308</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>清空任务表无效数据</title>
		<link>http://blog.donews.com/kevinhlj/?p=1569303</link>
		<comments>http://blog.donews.com/kevinhlj/?p=1569303#comments</comments>
		<pubDate>Thu, 01 Apr 2010 03:32:11 +0000</pubDate>
		<dc:creator>kevin</dc:creator>
				<category><![CDATA[maximo]]></category>
		<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://blog.donews.com/kevinhlj/?p=1569303</guid>
		<description><![CDATA[maximo 工作流 任务箱]]></description>
			<content:encoded><![CDATA[<p>在maximo运行过程中，工作流任务数据越来越多，导致每次进入系统都比较慢，为了解决这个问题，特意做如下过程，清空无用数据！</p>
<p>create or replace procedure clearwstask is</p>
<p>tbname varchar2(100);</p>
<p>strSQL varchar2(1000);</p>
<p>recordcount number(10);</p>
<p>ideletecount number(10);</p>
<p>begin</p>
<p>select count(*) into recordcount from wfassignment where assignstatus=&#8217;INACTIVE&#8217;;</p>
<p>&#8211;备份表数据</p>
<p>tbname:=to_char(sysdate,&#8217;yymmdd&#8217;);</p>
<p>strsql:=&#8217;create table wfassignment_&#8217;||tbname||&#8217; as select * from wfassignment  where assignstatus=&#8221;INACTIVE&#8221;&#8217;;</p>
<p>EXECUTE IMMEDIATE strsql;</p>
<p>&#8211;删除数据</p>
<p>loop</p>
<p>if recordcount&lt;2000 then</p>
<p>ideletecount:=recordcount;</p>
<p>recordcount:=0;</p>
<p>else</p>
<p>recordcount:=recordcount-2000;</p>
<p>ideletecount:=2000;</p>
<p>end if;</p>
<p>strSQL:=&#8217;begin delete from  wfassignment where assignstatus=&#8221;INACTIVE&#8221; and rownum&lt;&#8217;||ideletecount;</p>
<p>strSQL:=strSQL||&#8217;;commit; end;&#8217;;</p>
<p>EXECUTE IMMEDIATE strSQL;</p>
<p>exit when recordcount=0;</p>
<p>end loop;</p>
<p>&#8211;得建索引</p>
<p>strSQL:=&#8217;alter index WFASSIGN_NDX1  rebuild&#8217;;</p>
<p>EXECUTE IMMEDIATE strSQL;</p>
<p>strSQL:=&#8217;alter index WFASSIGN_NDX2 rebuild&#8217;;</p>
<p>EXECUTE IMMEDIATE strSQL;</p>
<p>strSQL:=&#8217;alter index WFASSIGN_NDX3 rebuild&#8217;;</p>
<p>EXECUTE IMMEDIATE strSQL;</p>
<p>strSQL:=&#8217;alter index WFASSIGN_NDX4 rebuild&#8217;;</p>
<p>EXECUTE IMMEDIATE strSQL;</p>
<p>end clearwstask;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.donews.com/kevinhlj/?feed=rss2&amp;p=1569303</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>解决ora-01110和ORA-01157 错误</title>
		<link>http://blog.donews.com/kevinhlj/?p=1569297</link>
		<comments>http://blog.donews.com/kevinhlj/?p=1569297#comments</comments>
		<pubDate>Wed, 28 Oct 2009 03:21:00 +0000</pubDate>
		<dc:creator>kevin</dc:creator>
				<category><![CDATA[oracle]]></category>

		<guid isPermaLink="false">http://blog.donews.com/kevinhlj/archive/2009/10/28/1569297.aspx</guid>
		<description><![CDATA[某一天，学习过程中，发现oracle的undo表空间文件比较大，所以就学着去减小undo表空间文件大小，<br />第二天启动的时候，发现数据库不能启动了<br /><br />&#160;<br />sqlplus &#34;/as sysdba&#34;<br /><br />SQL&#62; shutdown immediate<br />ORA-01109: database not open<br /><br /><br />Database dismounted.<br />ORACLE instance shut down.<br />SQL&#62; startup<br />ORACLE instance started.<br /><br />Total System Global Area&#160; 285212672 bytes<br />Fixed Size&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; 1218992 bytes<br />Variable Size&#160;&#160;&]]></description>
			<content:encoded><![CDATA[<p>某一天，学习过程中，发现oracle的undo表空间文件比较大，所以就学着去减小undo表空间文件大小，<br />第二天启动的时候，发现数据库不能启动了</p>
<p>&nbsp;<br />sqlplus &quot;/as sysdba&quot;</p>
<p>SQL&gt; shutdown immediate<br />ORA-01109: database not open</p>
<p>Database dismounted.<br />ORACLE instance shut down.<br />SQL&gt; startup<br />ORACLE instance started.</p>
<p>Total System Global Area&nbsp; 285212672 bytes<br />Fixed Size&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 1218992 bytes<br />Variable Size&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; 96470608 bytes<br />Database Buffers&nbsp;&nbsp;&nbsp; &nbsp; 184549376 bytes<br />Redo Buffers&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 2973696 bytes<br />Database mounted.<br /><span style="color: rgb(255, 0, 0);">ORA-01157: cannot identify/lock data file 2 &#8211; see DBWR trace file</span><br style="color: rgb(255, 0, 0);" /><span style="color: rgb(255, 0, 0);">ORA-01110: data file 2: &#8216;/opt/oracle/oradata/myora/undotbs01.dbf&#8217;;</span><br />发现错误，<br />查阅资料后<br />SQL&gt; ALTER SYSTEM SET &quot;_allow_resetlogs_corruption&quot;=TRUE SCOPE=SPFILE;</p>
<p>System altered.</p>
<p>SQL&gt; shoutdown immediate<br />;<br />ORA-01109: database not open</p>
<p>Database dismounted.<br />ORACLE instance shut down.</p>
<p>SQL&gt; startup mount;<br />ORACLE instance started.</p>
<p>Total System Global Area&nbsp; 285212672 bytes<br />Fixed Size&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 1218992 bytes<br />Variable Size&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; 96470608 bytes<br />Database Buffers&nbsp;&nbsp;&nbsp; &nbsp; 184549376 bytes<br />Redo Buffers&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 2973696 bytes<br />Database mounted.</p>
<p>SQL&gt; alter database datafile<span style="color: rgb(255, 0, 0);"> &#8216;/opt/oracle/oradata/myora/undotbs01.dbf&#8217;</span> offline drop;</p>
<p>Database altered.<br />SQL&gt; shoutdown immediate<br />ORA-01109: database not open</p>
<p>Database dismounted.<br />ORACLE instance shut down.<br />SQL&gt; startup<br />ORACLE instance started.</p>
<p>Total System Global Area&nbsp; 285212672 bytes<br />Fixed Size&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 1218992 bytes<br />Variable Size&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; 96470608 bytes<br />Database Buffers&nbsp;&nbsp;&nbsp; &nbsp; 184549376 bytes<br />Redo Buffers&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 2973696 bytes<br />Database mounted.<br />Database opened.</p>
<p>解决问题！</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.donews.com/kevinhlj/?feed=rss2&amp;p=1569297</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>解决报表故障 afc\rptroot.bas</title>
		<link>http://blog.donews.com/kevinhlj/?p=1551260</link>
		<comments>http://blog.donews.com/kevinhlj/?p=1551260#comments</comments>
		<pubDate>Mon, 24 Aug 2009 10:08:00 +0000</pubDate>
		<dc:creator>kevin</dc:creator>
				<category><![CDATA[maximo]]></category>

		<guid isPermaLink="false">http://blog.donews.com/kevinhlj/archive/2009/08/24/1551260.aspx</guid>
		<description><![CDATA[&#160;Status No: 1 : <br />&#160;基本错误: 118<br />&#160;模块: afc\rptroot.bas<br />&#160;行: 511<br />&#160;<br />&#160;未能创建文件 /rpt/CSTM_WSD2/reports/roi/.1.40049.6251967593_31.roi。<br /><br /><br />maximo的报表重装后，某些用户不能打印报表，为此，管理员登录系统后，选中rpt文件夹，将属性分配给相关用户即可！<br /><br />]]></description>
			<content:encoded><![CDATA[<p>&nbsp;Status No: 1 : <br />&nbsp;基本错误: 118<br />&nbsp;模块: afc\rptroot.bas<br />&nbsp;行: 511<br />&nbsp;<br />&nbsp;未能创建文件 /rpt/CSTM_WSD2/reports/roi/.1.40049.6251967593_31.roi。</p>
<p>maximo的报表重装后，某些用户不能打印报表，为此，管理员登录系统后，选中rpt文件夹，将属性分配给相关用户即可！</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.donews.com/kevinhlj/?feed=rss2&amp;p=1551260</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>connection to &#8220;:0.0&#8243; refused by server　错误</title>
		<link>http://blog.donews.com/kevinhlj/?p=1495528</link>
		<comments>http://blog.donews.com/kevinhlj/?p=1495528#comments</comments>
		<pubDate>Thu, 07 May 2009 15:34:00 +0000</pubDate>
		<dc:creator>kevin</dc:creator>
				<category><![CDATA[Linux学习]]></category>
		<category><![CDATA[oracle]]></category>

		<guid isPermaLink="false">http://blog.donews.com/kevinhlj/archive/2009/05/07/1495528.aspx</guid>
		<description><![CDATA[今天在安装oracle11g的时候，系统报Xlib:connection to &#34;:0.0&#34; refused by server错误，]]></description>
			<content:encoded><![CDATA[<p>今天在安装oracle11g的时候，系统报Xlib:connection to &quot;:0.0&quot; refused by server错误，</p>
<p>查资料后<br />xhost local:oracle non-network local connections being added to access control list<br />&nbsp; 解决！</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.donews.com/kevinhlj/?feed=rss2&amp;p=1495528</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>解决ORA-01033: ORACLE initialization or shutdown in progress错误</title>
		<link>http://blog.donews.com/kevinhlj/?p=1495432</link>
		<comments>http://blog.donews.com/kevinhlj/?p=1495432#comments</comments>
		<pubDate>Thu, 07 May 2009 11:14:00 +0000</pubDate>
		<dc:creator>kevin</dc:creator>
				<category><![CDATA[oracle]]></category>

		<guid isPermaLink="false">http://blog.donews.com/kevinhlj/archive/2009/05/07/1495432.aspx</guid>
		<description><![CDATA[ORA-01033]]></description>
			<content:encoded><![CDATA[<p>由于我的机器上安装了N个oracle实例，一天，清理磁盘空间，不小心删除了一个数据库文件，当启动oracle中的个实例后，登录oracle数据库，系统报ORA-01033: ORACLE initialization or shutdown in progress这个错误</p>
<p>解决方案<br />&nbsp;cmd<br />&nbsp; sqlplus/nolog<br />&nbsp; sql&gt; connect system/asdjkl@oracle as sysdba<br />&nbsp; sql&gt;&nbsp; <span style="color: rgb(51, 51, 153);">alter database datafile &#8216;数据空间表文件&#8217; offline drop; </span><br />&nbsp;因为我oracle是采用<span style="color: rgb(51, 51, 153);">NOARCHIVELOG模式，所以offiline 加drop，如果是</span><span style="color: rgb(51, 51, 153);">ARCHIVELOG则不需drop</p>
<p>重启数据库，解决问题！<br /></span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.donews.com/kevinhlj/?feed=rss2&amp;p=1495432</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

