posts - 13,  comments - 4,  trackbacks - 0
          Linux環(huán)境VNC服務(wù)安裝、配置與使用http://blog.chinaunix.net/space.php?uid=57865&do=blog&cuid=1982905

          UNIX 系統(tǒng)
          http://www.linuxsir.org/bbs/showthread.php?s=c5e7da060762ad290ad8d2bd26bac6e0&t=195579

          CDE問(wèn)題的troubleshooting http://blog.chinaunix.net/space.php?uid=9816449&do=blog&cuid=80800

          HP-UX 11i下安裝VNC  http://www.chinaunix.net/jh/8/576126.html

          ORA-01207: old control file完全解決方案    
          http://bbs.chinaunix.net/thread-2070372-1-1.html
          posted @ 2011-08-29 17:09 身在半空 閱讀(309) | 評(píng)論 (0)編輯 收藏

          WebLogic9.2拒絕訪問(wèn)的異常分析及解決方案
          之前分析不對(duì),特此改正

          一、 故障概述

          近三個(gè)月來(lái),已有3次發(fā)生業(yè)務(wù)自動(dòng)開(kāi)通系統(tǒng)執(zhí)行平臺(tái)維護(hù)系統(tǒng)訪問(wèn)異常,所有頁(yè)面拒絕訪問(wèn)并提示:

          Connection rejected, the server is in the RUNNING state. Starting service weblogic.application.internal.BackgroundDeploymentService$WaitForBackgroundCompletion, 110 of 112. Last service weblogic.deploy.service.internal.adminserver.HeartbeatService took 2ms.

          多點(diǎn)施工管理平臺(tái)維護(hù)系統(tǒng)同時(shí)出現(xiàn)上述問(wèn)題,部署這兩個(gè)維護(hù)系統(tǒng)的WebLogic服務(wù)器服務(wù)異常。

          該故障使工單查詢、系統(tǒng)監(jiān)控、失敗工單轉(zhuǎn)移和受理等功能無(wú)法使用。對(duì)業(yè)務(wù)工單的自動(dòng)執(zhí)行無(wú)影響,所有執(zhí)行服務(wù)器正常。

          每次均是采用強(qiáng)制停止服務(wù)后重啟的方式恢復(fù)服務(wù)。

          二、 故障描述

          訪問(wèn)業(yè)務(wù)自動(dòng)開(kāi)通系統(tǒng)執(zhí)行平臺(tái)維護(hù)系統(tǒng)和多點(diǎn)施工管理平臺(tái)維護(hù)系統(tǒng)均報(bào)以下異常:

          Connection rejected, the server is in the RUNNING state. Starting service weblogic.application.internal.BackgroundDeploymentService$WaitForBackgroundCompletion, 110 of 112. Last service weblogic.deploy.service.internal.adminserver.HeartbeatService took 2ms.

          此時(shí),網(wǎng)絡(luò)狀況、設(shè)備狀態(tài)、服務(wù)器操作系統(tǒng)均正常;WebLogic應(yīng)用服務(wù)器異常,其控制臺(tái)無(wú)法正常訪問(wèn),顯示報(bào)告同業(yè)務(wù)自動(dòng)開(kāi)通系統(tǒng)執(zhí)行平臺(tái)維護(hù)系統(tǒng),且不能正常停止WebLogic服務(wù)。

          經(jīng)查,WebLogic應(yīng)用服務(wù)器在記錄以下日志后無(wú)法正常訪問(wèn):

          ####<2011-8-13 上午10時(shí)4615 CST> <Critical> <Server> <tfh-node2> <TFHWEB> <DynamicListenThread[Default]> <<WLS Kernel>> <> <> <1313203575118> <BEA-002616> <Failed to listen on channel "Default" on 132.60.5.29:8080, failure count: 2, failing for 1 seconds, java.net.SocketException: 無(wú)效的自變量>

          ####<2011-8-13 上午10時(shí)4659 CST> <Critical> <Server> <tfh-node2> <TFHWEB> <DynamicListenThread[Default]> <<WLS Kernel>> <> <> <1313203619270> <BEA-002617> <Attempting to close and reopen the server socket on on channel "Default" on 132.60.5.29:8080.>

          ####<2011-8-13 上午10時(shí)4709 CST> <Notice> <Server> <tfh-node2> <TFHWEB> <DynamicListenThread[Default]> <<WLS Kernel>> <> <> <1313203629287> <BEA-002614> <Reopening channel "Default" on 132.60.5.29:8080.>

          ####<2011-8-13 上午10時(shí)4709 CST> <Notice> <Server> <tfh-node2> <TFHWEB> <DynamicListenThread[Default]> <<WLS Kernel>> <> <> <1313203629787> <BEA-002615> <After having failed to listen, the server is now listening on channel "Default" on 132.60.5.29:8080.>

          之后所有訪問(wèn)均記錄如下日志:

          ####<2011-8-13 上午10時(shí)4709 CST> <Notice> <Server> <tfh-node2> <TFHWEB> <DynamicListenThread[Default]> <<WLS Kernel>> <> <> <1313203629787> <BEA-002615> <After having failed to listen, the server is now listening on channel "Default" on 132.60.5.29:8080.>

           

          三、 處理過(guò)程和解決方法

          使用正常停止WebLogic服務(wù)的命令無(wú)法停止服務(wù),強(qiáng)行killWebLogic服務(wù)進(jìn)程,并按照正常流程啟動(dòng)WebLogic服務(wù)

              故障分析和建議

          1、故障的原因分析

          此故障是由WebLogic9.2bug導(dǎo)致,Oracle官方解釋如下:

          Solaris 9 或更高版本上使用 JDK 1.5 時(shí),半閉套接口上的任何設(shè)置操作都會(huì)引發(fā) SocketException。這延遲了服務(wù)器在相同端口上接受新連接,而且如果故障間的最大補(bǔ)償時(shí)間達(dá)到最大值,還會(huì)導(dǎo)致回收服務(wù)器套接口。

          需要安裝CR283953補(bǔ)丁解決該BUG

          以下為Oracle官方對(duì)CR283953補(bǔ)丁的英文解釋?zhuān)?/span>

          http://docs.oracle.com/cd/E13222_01/wls/docs100/issues/known_resolved.html

          On Solaris 9 or later, with JDK 1.5, any set operation on a half-closed socket throws a SocketException. This delayed the server in accepting new connections on the same port and also caused the server socket to be recycled if the maximum backoff time between failures reaches its maximum.

          Solution:

          WebLogic Server no longer throws an exception in connection with a set operation on half-closed sockets.

           

          2、改進(jìn)措施和計(jì)劃

          1.WebLogic服務(wù)編寫(xiě)守護(hù)程序,定時(shí)查看WebLogic服務(wù)狀態(tài),若出現(xiàn)故障則重啟WebLogic服務(wù)。守護(hù)程序采用crontab+shell腳本實(shí)現(xiàn),參見(jiàn)

          掃描日志重啟WebLogic服務(wù)shell腳本

          2.獲取CR283953補(bǔ)丁,并安裝。BEA已被oracle收購(gòu),補(bǔ)丁已不能免費(fèi)下載,具體詢oracle客服。

           

           

          posted @ 2011-08-16 17:31 身在半空 閱讀(3636) | 評(píng)論 (3)編輯 收藏
          操作系統(tǒng):Solaris
          1.使用oracle用戶進(jìn)行定時(shí)備份,添加crontab時(shí)要用root用戶添加,執(zhí)行命令為:crontab -e oracle;
          2.shell腳本中不能使用“()”,如
          exp ywkt/ywkt@ywkt buffer=64000 file=/backup/config_$dd.dmp log=/backup/exp_config.log tables=(ACTIONTYPEIDLIST,RESOURCE_CONFIGURE)。會(huì)提示紅色括號(hào)附件錯(cuò)誤。

          附個(gè)人感覺(jué)有用的鏈接:
          http://space.itpub.net/4227/viewspace-68717
          http://www.itpub.net/thread-92487-1-1.html
          posted @ 2011-06-09 15:47 身在半空 閱讀(571) | 評(píng)論 (0)編輯 收藏

          說(shuō)明:IbosExecHistory系列表是提供歷史數(shù)據(jù)查詢的歷史表;

          IbosExecHistory為試圖;

          IbosExecHistory_XXXX中“XXXX”為年份,供存放該年所有歷史數(shù)據(jù),此類(lèi)表做歷史數(shù)據(jù)備份用,不提供維護(hù)系統(tǒng)查詢;

          IbosExecHistory_month_X中“X”為月份(1-9不加0),此類(lèi)表做循環(huán)使用,根據(jù)維護(hù)系統(tǒng)要求查詢時(shí)提供6個(gè)月內(nèi)數(shù)據(jù),故在此前六個(gè)月之外的數(shù)據(jù)可清楚。最后及時(shí)清楚,否則將造成與往年數(shù)據(jù)共存現(xiàn)象,較難分離。若造成累計(jì),建議將數(shù)據(jù)使用bcp導(dǎo)出后,對(duì)文件進(jìn)行操作,不要在數(shù)據(jù)庫(kù)中進(jìn)行操作。

          工作原理:為減少對(duì)數(shù)據(jù)庫(kù)性能造成影響,使用bcptruncate table操作,做truncate table時(shí)應(yīng)謹(jǐn)慎。

          本文目的:提供IbosExecHistory_month_X表歷史數(shù)據(jù)清除步驟。

          注:以下步驟以20105月份歷史數(shù)據(jù)清除為例,在實(shí)際操作中需更改重要sql語(yǔ)句,謹(jǐn)記。

          具體步驟:

          1.查詢年份表中是否已有該月數(shù)據(jù),結(jié)果為0,則順序執(zhí)行

          select count(*) from IbosExecHistory_2010 where SendTime>='2010-05-01' and SendTime<'2010-06-01'

          2.查詢?cè)路荼碇惺欠褚亚宄Y(jié)果不為0,則順序執(zhí)行

          select count(*) from IbosExecHistory_month_5

          3.使用bcp命令進(jìn)行數(shù)據(jù)導(dǎo)出,bcp命令OS命令,在已安裝sybase數(shù)據(jù)庫(kù)客戶端的系統(tǒng)上方可使用

          bcp test..IbosExecHistory_month_5 out d:\IbosExecHistory_month_5.txt -c -t "{" -r "\r\n" -Uibos -Pibos123 -Stfh28

          4.使用bcp命令進(jìn)行數(shù)據(jù)導(dǎo)入

          bcp test..IbosExecHistory_2010 in d:\IbosExecHistory_month_5.txt -c -t "{" -r "\r\n" -Uibos -Pibos123 -Stfh28

          5.清除月份表數(shù)據(jù)

          truncate table IbosExecHistory_month_5

          posted @ 2010-12-22 15:54 身在半空 閱讀(297) | 評(píng)論 (0)編輯 收藏
               摘要: Oracle SQL Developer外觀改為windows后啟動(dòng)異常的解決方法

          刪除我的文檔下面的 \AppData\Roaming\SQL Developer文件夾即可。  閱讀全文
          posted @ 2010-06-24 11:01 身在半空 閱讀(1608) | 評(píng)論 (0)編輯 收藏

          引自:http://www.examda.com/linux/fudao/20090928/091946607.html

          在Windows和Linux(Fedora/Ubuntu/RedHat)中安裝了NetBeans后,會(huì)遇到菜單等顯示亂碼的 問(wèn)題。這里告訴大家如何解決中文顯示亂碼的問(wèn)題,包括Windows、Fedora、Ubuntu下NetBeans中文亂碼解決辦法。

          一、Windows下NetBeans中文亂碼解決辦法

          l              找到你的Netbeans安裝目錄下的etc文件夾

          l              用記事本打開(kāi)netbeans.conf

          l              找到netbeans_default_options(不是最后那個(gè)帶句號(hào)的…), 在其屬性的最后(引號(hào)以內(nèi))加一個(gè)空格, 再加上-J-Dfile.encoding=UTF-8

          二、Fedora   NetBeans中文亂碼解決辦法

          l              拷貝/usr/share/fonts/zh_CN/TrueType中的ttf文件到你的JDK安裝目錄下 jre/lib/fonts/fallback里,如果在”java安裝目錄/jre/lib/fonts”下沒(méi)有”fallback”這個(gè)目錄, 可以手工創(chuàng)建一個(gè),即可解決。

          l              如果還不行的話,打開(kāi)Netbeans的默認(rèn)配置文件:我的在/home/www.dengchao.org/netbeans-6.5.1/etc /netbeans.conf。

          l              找到netbeans_default_options這一項(xiàng)(注意不要在#后面,那個(gè)是注釋?zhuān)?

          l              在最后加上:(空格)-J-Duser.language=zh -J-Duser.country=CNs -J-Dfile.encoding=UTF-8

          三、Ubuntu NetBeans中文亂碼解決辦法

          l              在$JAVA_HOME/jre/lib/fonts目錄下創(chuàng)建一名為fallback的目錄

          l              將一可顯示中文的字體放到fallback目錄下,可以到Ubuntu字體目錄(/usr/share/fonts)去復(fù)制一份或者用ln命令做一個(gè)硬鏈 接到該目錄(注:軟鏈接無(wú)效)

          l              再運(yùn)行NetBeans(or NetBean)即可

          posted @ 2010-05-16 13:44 身在半空 閱讀(1281) | 評(píng)論 (0)編輯 收藏
          對(duì)于過(guò)濾流的關(guān)閉,一般采取先開(kāi)后關(guān)、由外向內(nèi)的原則。

          FileInputStream f=new FileInputStream( "file ");
          BufferedInputStream b=new BufferedInputStream(f);
          DataInputStream d=new DataInputStream(b);

          關(guān)閉”真正有意義的事情在于“釋放系統(tǒng)資源”。在這個(gè)例子里,只有FileInputStream占據(jù)了系統(tǒng)資源(打開(kāi)了一個(gè)文件),另外兩個(gè)流對(duì)象只是從數(shù)據(jù)處理角度做的包裝(可能會(huì)占用一些內(nèi)存,但不占用其它“系統(tǒng)資源”)。所以,只需要確保關(guān)閉了FileInputStream即可。

          在實(shí)際編程實(shí)踐中,你不一定總能清楚地知道每層的流對(duì)象是否占據(jù)了系統(tǒng)資源,所以,最安全(也是最常規(guī))的做法就是關(guān)閉最外層的那個(gè)對(duì)象。這種逐層包裝的對(duì)象在實(shí)現(xiàn)上都會(huì)有一個(gè)特點(diǎn),像“關(guān)閉”這種操作都會(huì)逐層向內(nèi)調(diào)用。

          引自:http://blog.sina.com.cn/s/blog_6307d85b0100gqtt.html
          posted @ 2010-02-25 11:26 身在半空 閱讀(1162) | 評(píng)論 (0)編輯 收藏
          準(zhǔn)備:
              Solaris系統(tǒng)運(yùn)行過(guò)一段時(shí)間后,時(shí)間和標(biāo)準(zhǔn)時(shí)間有偏差,單機(jī)系統(tǒng)下,不與其他系統(tǒng)同步。
          若要修改系統(tǒng)時(shí)間,得考慮一下系 統(tǒng)上的服務(wù)是否會(huì)由于修改了時(shí)間而服務(wù)起不來(lái)。
          現(xiàn)網(wǎng)運(yùn)行中有一臺(tái)服務(wù)器,時(shí)間比標(biāo)準(zhǔn)時(shí)間快15分鐘,由于應(yīng)用的需要,要求時(shí)間要與標(biāo)準(zhǔn)時(shí)間相近, 服務(wù)器上系統(tǒng)是SunOS 5.8,數(shù)據(jù)庫(kù)是IBM Informix Dynamic Server Version 9.40.FC7,一個(gè)實(shí)例,好幾個(gè)庫(kù)。
          經(jīng)過(guò)一番咨詢,在不停止服務(wù)的情況下可以修改系統(tǒng)時(shí)間,用root用戶登陸后修改。修改時(shí)間就用date 命令就性,格式為date mmddHHMMYYYY.SS,月日時(shí)分年.秒
          下面是操作記錄
           
           
          操作:
           
           
          SunOS 5.8
           
          login: login: xxxuser
          Password:
          Last login: Tue Jan 16 18:27:47 from 10.2.0.221
          Sun Microsystems Inc.   SunOS 5.8       Generic Patch   February 2004
          You have new mail.
          infodb% echo $TZ
          PRC
          infodb% onstat -
          IBM Informix Dynamic Server Version 9.40.FC7     -- On-Line -- Up 40 days 01:02:36 -- 3920896 Kbytes
          infodb% su - root
          Password:
          Sun Microsystems Inc.   SunOS 5.8       Generic Patch   February 2004
          You have new mail.
          Sourcing //.profile-EIS.....
          root@infodb # id
          uid=0(root) gid=1(other)
          root@infodb # date               
          Tue Jan 16 19:08:25 CST 2007
          root@infodb # date 011618552007.10
          Tue Jan 16 18:55:10 CST 2007
          root@infodb # date
          Tue Jan 16 18:55:13 CST 2007
          root@infodb # date
          Tue Jan 16 18:55:22 CST 2007
          root@infodb # exit
          infodb% onstat -
          IBM Informix Dynamic Server Version 9.40.FC7     -- On-Line -- Up 40 days 00:55:31 -- 3920896 Kbytes
          infodb% onstat -
          IBM Informix Dynamic Server Version 9.40.FC7     -- On-Line -- Up 40 days 00:55:34 -- 3920896 Kbytes

          轉(zhuǎn)自:http://blog.chinaunix.net/u/20228/showart_233546.html
          posted @ 2010-02-10 15:05 身在半空 閱讀(652) | 評(píng)論 (0)編輯 收藏

          <2010年2月>
          31123456
          78910111213
          14151617181920
          21222324252627
          28123456
          78910111213

          常用鏈接

          留言簿

          隨筆檔案

          文章檔案

          搜索

          •  

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          主站蜘蛛池模板: 永仁县| 偃师市| 同江市| 苏尼特左旗| 镇沅| 泽普县| 喀什市| 信宜市| 霍林郭勒市| 临桂县| 安平县| 洛隆县| 舞阳县| 金堂县| 中阳县| 霍城县| 阜新市| 秀山| 海伦市| 讷河市| 中阳县| 丰宁| 沈阳市| 三门县| 灌南县| 双鸭山市| 湾仔区| 陈巴尔虎旗| 若羌县| 汝阳县| 海伦市| 古蔺县| 彩票| 大理市| 扶余县| 澄城县| 泰兴市| 凤庆县| 叙永县| 惠州市| 白银市|