隨筆 - 25, 文章 - 1, 評論 - 0, 引用 - 0
          數據加載中……

          Struts2 下報出:Unable to load configuration

          Unable to load configuration. - bean - jar:file:/F:/Web/homesite/jsp/struts/WEB-INF/lib/struts2-convention-plugin-2.1.8.jar!/struts-plugin.xml


          Struts2下加載的架包:
          一般有
          :
          commons-logging-1.0.4.jar
          commons-fileupload-1.2.1.jar
          commons-io-1.3.2.jar
          struts2-core-2.1.8.jar
          xwork-2.1.6.jar
          freemarker-2.3.15.jar
          ognl-2.7.3.jar
             

          posted @ 2010-01-18 23:25 至尊貝貝 閱讀(367) | 評論 (0)編輯 收藏

          ORA-27102 解決辦法

           

          因為在32位操作系統上執行了如下的操作
          alter system set sga_max_size=2G scope=spfile;

          之后再重啟數據庫就會失敗
          報出錯誤:
          ORA-27102
          Out of Memory

          解決的方法也很簡單:
          新建一個文本文件 如initaaa.ora
          內容:

          SPFILE='../product/10.2.0/db_1/dbs/spfileorcl.ora'
          sga_max_size=1073741824

           

          保存之后
          如是啟動數據庫:

          SQL>startup pfile=$ORACLE_HOME/dbs/initaaa.ora

           

          啟動成功之后就可以把之前的錯誤參數修改過來了


          對于Spfile損壞或者丟失的情況
          可以刪除原來的Spfile,然后利用系統中備份的pfile 來創建一個新的Spfile

           

          SQL>CREATE SPFILE FROM PFILE='.\pfile\init.ora.83200715416'

           

          ------------------------------------------------------------------------------------------------------------------------------------------------------

          其他命令(轉):

          //查看Oracle以pfile還以Spfile方式啟動

          SQL>Select isspecified,count(*from v$spparameter group by isspecified;

           

          如果isspecified里有true,表明用spfile進行了指定配置
          如果全為false,則表明用pfile啟動

          //查看Spfile的路徑

          SQL>show parameter spfile

           

          //從spfile獲取pfile

          SQL>Create pfile='d:pfileSID.ora' from spfile;
          SQL
          >Create pfile='d:pfileSID.ora' from spfile='spfile_location';

           

          //從pfile獲取spfile

          SQL>Create spfile from pfile='Your_pfile_location'
          SQL
          >Create spfile='spfile_location' from pfile='Your_pfile_location'

           

          //動態修改參數

          SQL>alter system set parameter=Value scope=spfile|both|memory

           

          Startup nomount的時候需要讀去spfile或pfile,兩者共存,spfile優先

          //強制用pfile啟動

          SQL>startup pfile='Your_Pfile.ora'
          SQL
          >startup spfile='/data/oracle/product/10.2.0/db_1/dbs/dbs/spfile_mqq.ora' force

           


           

          posted @ 2010-01-16 10:18 至尊貝貝 閱讀(8925) | 評論 (0)編輯 收藏

          JavaScirpt

          從Date類型中取形如 20091201 字符串

          function getDate(s_date) {

              
          var str_date = new Array();
              str_date.push(s_date.getFullYear());
              str_date.push(s_date.getMonth() 
          < 9 ? "0" + (s_date.getMonth() + 1)
                      : (s_date.getMonth() 
          + 1));
              str_date.push(s_date.getDate() 
          < 10 ? "0" + s_date.getDate() : s_date
                      .getDate());
              
          return str_date.join("");

          }

          posted @ 2009-12-31 14:11 至尊貝貝 閱讀(133) | 評論 (0)編輯 收藏

          關于FusionCharts出現的 Not a function 問題



          posted @ 2009-12-23 10:57 至尊貝貝 閱讀(207) | 評論 (0)編輯 收藏

          JavaScript 在字符串中統計某個字符的次數

          //查找字符串中的逗號
           var s = "aa,bb,cc,"
          //方法一
          var count =0;
          a.replace(
          /[,]/g,function(){
              count
          =count+1;
              
          return "a";
          }
          )
          alert(count);

          //方法二
           var r = a.split(",");
           r.pop();
           alert (r.length);
          //方法三
          alert(a.replace(/[^,]/g,'').length);

          posted @ 2009-12-16 20:37 至尊貝貝 閱讀(159) | 評論 (0)編輯 收藏

          僅列出標題
          共3頁: 上一頁 1 2 3 
          主站蜘蛛池模板: 万全县| 黑山县| 响水县| 疏附县| 湘潭县| 中牟县| 清原| 海伦市| 宝丰县| 方城县| 盈江县| 萨嘎县| 阳泉市| 拜泉县| 砀山县| 延寿县| 大庆市| 东丽区| 克山县| 皮山县| 八宿县| 淅川县| 汪清县| 恭城| 平罗县| 安乡县| 玉田县| 通渭县| 北碚区| 潞城市| 建始县| 博湖县| 莱阳市| 福泉市| 板桥市| 大庆市| 余江县| 高唐县| 信阳市| 钟山县| 加查县|