<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    飛舞的幻想

    常用鏈接

    統(tǒng)計

    Google Adsense

    Zanox FWHX

    花個明白

    最新評論

    2008年6月30日 #

    DB2 時間轉換

    create function ts_fmt(TS timestamp, fmt varchar(20)) returns varchar(50) return with tmp (dd,mm,yyyy,hh,mi,ss,nnnnnn) as ( select substr( digits (day(TS)),9), substr( digits (month(TS)),9) , rtrim(char(year(TS))) , substr( digits (hour(TS)),9), substr( digits (minute(TS)),9), substr( digits (second(TS)),9), rtrim(char(microsecond(TS))) from sysibm.sysdummy1 ) select case fmt when 'yyyymmdd' then yyyy || mm || dd when 'mm/dd/yyyy' then mm || '/' || dd || '/' || yyyy when 'yyyy/dd/mm hh:mi:ss' then yyyy || '/' || mm || '/' || dd || ' ' || hh || ':' || mi || ':' || ss when 'nnnnnn' then nnnnnn else 'date format ' || coalesce(fmt,' ') || ' not recognized.' end from tmp 使用例句: update t_attachment as a set a.attach_path=(select '/'||rtrim(char(apply_com_id))||'/'||rtrim(char(ts_fmt(apply_date,'yyyymmdd')))||'/' from t_rmbs_claim as c where a.claim_id=c.claim_id)||rtrim(a.attach_path) where exists (select 1 from t_rmbs_claim as tc where tc.claim_id=a.claim_id);

    posted @ 2010-03-05 18:18 飛舞的幻想 閱讀(269) | 評論 (0)編輯 收藏

    DB2 restore Redirect

    (1)db2 restore db EFINANCE incremental from /db2/eFinance091228  taken at 200912282115 on /db2/eFinanceWJ28 into EFINAN28 logtarget /db2/eFinanceWJ28 redirect generate script  restore.clp
    說明:EFINANCE 為備份前的數(shù)據(jù)庫名稱  EFINAN28 為回復后的數(shù)據(jù)庫名稱 /db2/eFinance091228備份文件存放的路徑  /db2/eFinanceWJ28為還原后日志存放路徑以及還原后數(shù)據(jù)庫文件路徑。

    (2)db2 -tvf  restore.clp
    如果需要重新指定表空間的路徑請修改該文件
    該文件內(nèi)容如下:
    -- *****************************************************************************
    -- ** automatically created redirect restore script
    -- *****************************************************************************
    UPDATE COMMAND OPTIONS USING S ON Z ON EFINANCE_NODE0000.out V ON;
    SET CLIENT ATTACH_DBPARTITIONNUM  0;
    SET CLIENT CONNECT_DBPARTITIONNUM 0;
    -- *****************************************************************************
    -- ** automatically created redirect restore script
    -- *****************************************************************************
    RESTORE DATABASE EFINANCE
    -- USER  <username>
    -- USING '<password>'
    FROM '/db2/eFinance091228'
    TAKEN AT 20091228211504
    ON '/db2/eFinanceWJ28'
    DBPATH ON '/db2/eFinanceWJ28'
    INTO EFINAN28
    LOGTARGET '/db2/eFinanceWJ28/'
    -- NEWLOGPATH '/ef/appinst/appinst/NODE0000/SQL00002/SQLOGDIR/'
    -- WITH <num-buff> BUFFERS
    -- BUFFER <buffer-size>
    -- REPLACE HISTORY FILE
    -- REPLACE EXISTING
    REDIRECT
    -- PARALLELISM <n>
    -- WITHOUT ROLLING FORWARD
    -- WITHOUT PROMPTING
    ;
    -- *****************************************************************************
    -- ** table space definition
    -- *****************************************************************************
    -- *****************************************************************************
    -- ** Tablespace name                            = SYSCATSPACE
    -- **   Tablespace ID                            = 0
    -- **   Tablespace Type                          = Database managed space                     
    -- **   Tablespace Content Type                  = All permanent data. Regular table space.   
    -- **   Tablespace Page size (bytes)             = 4096
    -- **   Tablespace Extent size (pages)           = 4
    -- **   Using automatic storage                  = Yes    
    -- **   Auto-resize enabled                      = Yes    
    -- **   Total number of pages                    = 24576
    -- **   Number of usable pages                   = 24572
    -- **   High water mark (pages)                  = 21080
    -- *****************************************************************************
    -- *****************************************************************************
    -- ** Tablespace name                            = TEMPSPACE1
    -- **   Tablespace ID                            = 1
    -- **   Tablespace Type                          = System managed space                       
    -- **   Tablespace Content Type                  = System Temporary data                      
    -- **   Tablespace Page size (bytes)             = 4096
    -- **   Tablespace Extent size (pages)           = 32
    -- **   Using automatic storage                  = Yes    
    -- **   Total number of pages                    = 1
    -- *****************************************************************************
    -- *****************************************************************************
    -- ** Tablespace name                            = USERSPACE1
    -- **   Tablespace ID                            = 2
    -- **   Tablespace Type                          = Database managed space                     
    -- **   Tablespace Content Type                  = All permanent data. Large table space.     
    -- **   Tablespace Page size (bytes)             = 16384
    -- **   Tablespace Extent size (pages)           = 32
    -- **   Using automatic storage                  = No     
    -- **   Auto-resize enabled                      = No     
    -- **   Total number of pages                    = 1310720
    -- **   Number of usable pages                   = 1310688
    -- **   High water mark (pages)                  = 886976
    -- *****************************************************************************
    SET TABLESPACE CONTAINERS FOR 2
    -- IGNORE ROLLFORWARD CONTAINER OPERATIONS
    USING (
    FILE   '/db2/eFinanTS28/eFinance/USERSPACE1'                                 1310720
    );
    -- *****************************************************************************
    -- ** Tablespace name                            = TBS_DATA32K
    -- **   Tablespace ID                            = 3
    -- **   Tablespace Type                          = Database managed space                     
    -- **   Tablespace Content Type                  = All permanent data. Large table space.     
    -- **   Tablespace Page size (bytes)             = 32768
    -- **   Tablespace Extent size (pages)           = 32
    -- **   Using automatic storage                  = No     
    -- **   Auto-resize enabled                      = No     
    -- **   Total number of pages                    = 327680
    -- **   Number of usable pages                   = 327648
    -- **   High water mark (pages)                  = 9856
    -- *****************************************************************************
    SET TABLESPACE CONTAINERS FOR 3
    -- IGNORE ROLLFORWARD CONTAINER OPERATIONS
    USING (
    FILE   '/db2/eFinanTS28/eFinance/TBS_DATA32K'                                 327680
    );
    -- *****************************************************************************
    -- ** Tablespace name                            = TBS_DATA4K
    -- **   Tablespace ID                            = 4
    -- **   Tablespace Type                          = Database managed space                     
    -- **   Tablespace Content Type                  = All permanent data. Large table space.     
    -- **   Tablespace Page size (bytes)             = 4096
    -- **   Tablespace Extent size (pages)           = 32
    -- **   Using automatic storage                  = No     
    -- **   Auto-resize enabled                      = No     
    -- **   Total number of pages                    = 2621440
    -- **   Number of usable pages                   = 2621408
    -- **   High water mark (pages)                  = 25440
    -- *****************************************************************************
    SET TABLESPACE CONTAINERS FOR 4
    -- IGNORE ROLLFORWARD CONTAINER OPERATIONS
    USING (
    FILE   '/db2/eFinanTS28/eFinance/TBS_DATA4K'                                 2621440
    );
    -- *****************************************************************************
    -- ** Tablespace name                            = TBS_IDX4K
    -- **   Tablespace ID                            = 5
    -- **   Tablespace Type                          = Database managed space                     
    -- **   Tablespace Content Type                  = All permanent data. Large table space.     
    -- **   Tablespace Page size (bytes)             = 4096
    -- **   Tablespace Extent size (pages)           = 32
    -- **   Using automatic storage                  = No     
    -- **   Auto-resize enabled                      = No     
    -- **   Total number of pages                    = 2621440
    -- **   Number of usable pages                   = 2621408
    -- **   High water mark (pages)                  = 96
    -- *****************************************************************************
    SET TABLESPACE CONTAINERS FOR 5
    -- IGNORE ROLLFORWARD CONTAINER OPERATIONS
    USING (
    FILE   '/db2/eFinanTS28/eFinance/TBS_IDX4K'                                  2621440
    );
    -- *****************************************************************************
    -- ** Tablespace name                            = CMCC_DATA
    -- **   Tablespace ID                            = 6
    -- **   Tablespace Type                          = Database managed space                     
    -- **   Tablespace Content Type                  = All permanent data. Large table space.     
    -- **   Tablespace Page size (bytes)             = 16384
    -- **   Tablespace Extent size (pages)           = 32
    -- **   Using automatic storage                  = No     
    -- **   Auto-resize enabled                      = No     
    -- **   Total number of pages                    = 655360
    -- **   Number of usable pages                   = 655328
    -- **   High water mark (pages)                  = 32736
    -- *****************************************************************************
    SET TABLESPACE CONTAINERS FOR 6
    -- IGNORE ROLLFORWARD CONTAINER OPERATIONS
    USING (
    FILE   '/db2/eFinanTS28/eFinance/CMCC_DATA'                                   655360
    );
    -- *****************************************************************************
    -- ** Tablespace name                            = CMCC_DATA32
    -- **   Tablespace ID                            = 7
    -- **   Tablespace Type                          = Database managed space                     
    -- **   Tablespace Content Type                  = All permanent data. Large table space.     
    -- **   Tablespace Page size (bytes)             = 32768
    -- **   Tablespace Extent size (pages)           = 32
    -- **   Using automatic storage                  = No     
    -- **   Auto-resize enabled                      = No     
    -- **   Total number of pages                    = 327680
    -- **   Number of usable pages                   = 327648
    -- **   High water mark (pages)                  = 22496
    -- *****************************************************************************
    SET TABLESPACE CONTAINERS FOR 7
    -- IGNORE ROLLFORWARD CONTAINER OPERATIONS
    USING (
    FILE   '/db2/eFinanTS28/eFinance/CMCC_DATA32'                                 327680
    );
    -- *****************************************************************************
    -- ** Tablespace name                            = TBS_IDX01
    -- **   Tablespace ID                            = 8
    -- **   Tablespace Type                          = Database managed space                     
    -- **   Tablespace Content Type                  = All permanent data. Large table space.     
    -- **   Tablespace Page size (bytes)             = 4096
    -- **   Tablespace Extent size (pages)           = 32
    -- **   Using automatic storage                  = No     
    -- **   Auto-resize enabled                      = No     
    -- **   Total number of pages                    = 2621440
    -- **   Number of usable pages                   = 2621408
    -- **   High water mark (pages)                  = 274176
    -- *****************************************************************************
    SET TABLESPACE CONTAINERS FOR 8
    -- IGNORE ROLLFORWARD CONTAINER OPERATIONS
    USING (
    FILE   '/db2/eFinanTS28/eFinance/TBS_IDX01'                                  2621440
    );
    -- *****************************************************************************
    -- ** Tablespace name                            = DMS_TMP_32K
    -- **   Tablespace ID                            = 9
    -- **   Tablespace Type                          = Database managed space                     
    -- **   Tablespace Content Type                  = System Temporary data                      
    -- **   Tablespace Page size (bytes)             = 32768
    -- **   Tablespace Extent size (pages)           = 32
    -- **   Using automatic storage                  = No     
    -- **   Auto-resize enabled                      = No     
    -- **   Total number of pages                    = 327680
    -- **   Number of usable pages                   = 327648
    -- **   High water mark (pages)                  = 64
    -- *****************************************************************************
    SET TABLESPACE CONTAINERS FOR 9
    -- IGNORE ROLLFORWARD CONTAINER OPERATIONS
    USING (
    FILE   '/db2/eFinanTS28/eFinance/DMS_TMP_32K'                                 327680
    );
    -- *****************************************************************************
    -- ** Tablespace name                            = SYSTOOLSPACE
    -- **   Tablespace ID                            = 10
    -- **   Tablespace Type                          = Database managed space                     
    -- **   Tablespace Content Type                  = All permanent data. Large table space.     
    -- **   Tablespace Page size (bytes)             = 4096
    -- **   Tablespace Extent size (pages)           = 4
    -- **   Using automatic storage                  = Yes    
    -- **   Auto-resize enabled                      = Yes    
    -- **   Total number of pages                    = 8192
    -- **   Number of usable pages                   = 8188
    -- **   High water mark (pages)                  = 1512
    -- *****************************************************************************
    -- *****************************************************************************
    -- ** Tablespace name                            = SYSTOOLSTMPSPACE
    -- **   Tablespace ID                            = 11
    -- **   Tablespace Type                          = System managed space                       
    -- **   Tablespace Content Type                  = User Temporary data                        
    -- **   Tablespace Page size (bytes)             = 4096
    -- **   Tablespace Extent size (pages)           = 4
    -- **   Using automatic storage                  = Yes    
    -- **   Total number of pages                    = 1
    -- *****************************************************************************
    -- *****************************************************************************
    -- ** Tablespace name                            = EF_ENGINE_16K
    -- **   Tablespace ID                            = 12
    -- **   Tablespace Type                          = Database managed space                     
    -- **   Tablespace Content Type                  = All permanent data. Large table space.     
    -- **   Tablespace Page size (bytes)             = 16384
    -- **   Tablespace Extent size (pages)           = 32
    -- **   Using automatic storage                  = No     
    -- **   Auto-resize enabled                      = No     
    -- **   Total number of pages                    = 655360
    -- **   Number of usable pages                   = 655328
    -- **   High water mark (pages)                  = 96
    -- *****************************************************************************
    SET TABLESPACE CONTAINERS FOR 12
    -- IGNORE ROLLFORWARD CONTAINER OPERATIONS
    USING (
    FILE   '/db2/eFinanTS28/eFinance/EF_ENGINE_16K'                               655360
    );
    -- *****************************************************************************
    -- ** Tablespace name                            = TEMPSPACE16k
    -- **   Tablespace ID                            = 13
    -- **   Tablespace Type                          = System managed space                       
    -- **   Tablespace Content Type                  = System Temporary data                      
    -- **   Tablespace Page size (bytes)             = 16384
    -- **   Tablespace Extent size (pages)           = 32
    -- **   Using automatic storage                  = No     
    -- **   Total number of pages                    = 1
    -- *****************************************************************************
    SET TABLESPACE CONTAINERS FOR 13
    -- IGNORE ROLLFORWARD CONTAINER OPERATIONS
    USING (
    PATH   '/db2/eFinanTS28/eFinance/C0000016k.TMP'
    );
    -- *****************************************************************************
    -- ** start redirected restore
    -- *****************************************************************************
    RESTORE DATABASE EFINANCE CONTINUE;
    -- *****************************************************************************
    -- ** end of file
    -- *****************************************************************************



    (3)db2 rollforward database EFINAN28 to end of logs and complete  overflow log path '(/db2/eFinanceWJ28)'
    說明:EFINAN28 為還原的數(shù)據(jù)庫名稱 /db2/eFinanceWJ28為日志存放路徑 注意 日志一定要全 即要包括回復的當天的全部log文件。

    posted @ 2010-01-29 14:05 飛舞的幻想 閱讀(1677) | 評論 (0)編輯 收藏

    DB2學習的好地方 推薦

    http://www.db2china.net/club/?fromuid=328

    posted @ 2009-05-13 00:21 飛舞的幻想 閱讀(172) | 評論 (0)編輯 收藏

    xp系統(tǒng)局域網(wǎng)在運行里訪問不了的問題(轉)

    這個問題一直沒弄明白,今天終于調出來了,其實調一下安全就可以了,如下:
    依次打開
    控制面板--管理工具--本地安全策略--本地策略--安全選項  在里面找到一個叫:本地帳戶的共享和安全模式的選項,把它改成經(jīng)典-本地用戶以自己的身份驗證 就可以了

    posted @ 2009-03-27 14:29 飛舞的幻想 閱讀(161) | 評論 (0)編輯 收藏

    通過Iframe實現(xiàn)帶橫向滾動條的多選下拉框并且?guī)崾究?/a>

    主要思路:
    通過Iframe添加滾動條,在調用頁面使用Iframe實現(xiàn)滾動條,在iframe頁面里面實現(xiàn)多選select。通過主頁面將動態(tài)option傳遞給iframe的select實現(xiàn)下拉框。通過popup窗口的方式實現(xiàn)提示框。
    說明:調用頁面代碼里面還加了一個隱藏多選下拉框的目的是為了將值方便的傳遞以及保持相對較少的代碼改動(主要是修改實現(xiàn))。
    調用頁面代碼:

    1. <select name=TMPFIELD size=9  style='width:160px;display:none;' multiple>  
    2. <%  
    3.    for(int opt5 =0;opt5<cols.size();opt5++){  
    4.      RepColsVo colVo =(RepColsVo) cols.get(opt5);  
    5. %>  
    6. <option title="<%=colVo.getRepColdis()%>" value="<%=colVo.getReportColid()%>"><%=colVo.getRepColdis()%></option>  
    7. <%}%>  
    8. </select>  
    9. <iframe name="iframeShowFields" src="<%=request.getContextPath()%>/jsp/include/iframeSelectReports.jsp"  id="iframeshow" allowTransparency="true"    style="z-index:0;height:150px;width:140px;" scrolling="auto">  
    10. </iframe>  

    Iframe頁面內(nèi)容:
    1. <html>  
    2. <head>  
    3. <script language="javascript">  
    4.   var oP=window.createPopup();  
    5.   var globalobject;  
    6.   var oPopBody;  
    7.   function   showTip(_obj){  
    8.   globalobject=_obj;  
    9.   oPopBody= oP.document.body;  
    10.   line=parseInt(event.offsetY/15);  
    11.   if(globalobject.options.length>0){  
    12.   if(line>globalobject.options.length-1)  
    13.   {    
    14.       line=globalobject.options.length-1;   
    15.   }   
    16.   oPopBody.style.background="#fdfce9";   
    17.   oPopBody.style.border="solid black 1px";  
    18.   oPopBody.innerHTML="";  
    19.   var sText =globalobject.options[line].text;      
    20.   oPopBody.innerHTML='<div style="font-family:Arial;font-size:12px;">'+sText+'</div>';   
    21.   len=globalobject.options[line].text.length*10;  
    22.   oP.show(event.clientX+10,event.clientY+10,len, 20,document.body);  
    23.   }   
    24.  }  
    25.  function   hideTip(_obj){    
    26.   if(oP.isOpen){   
    27.     oP.hide();    
    28.    }  
    29.  }  
    30. function   addOption(){   
    31.     var   s=parent.document.frmdefine.TMPFIELD;  
    32.     var len=s.length;  
    33.     for(var i=0;i<len;i++)  
    34.     {  
    35.         var opt=document.createElement("OPTION");        
    36.         opt.text=s.options[i].text;    
    37.         opt.value=s.options[i].value;  
    38.         TMPFIELD.add(opt);  
    39.     }  
    40.        
    41.    
    42.  }  
    43.  </script>  
    44. </head>  
    45. <body bgcolor="#efefef" onload="addOption()">  
    46. <select  id="idtmpfield" onclick="showTip(this);" onmouseout="hideTip(this);" name="TMPFIELD" size=9   style="background-color:#efefef;width:auto;height:auto;border-width:0px;border-style:none;position:absolute;z-index:0;line-height:14px;border:none;clip:rect(0 95% 97% 0);margin-left:-13;margin-right:-50;margin-top:-19;margin-bottom:-40" multiple >  
    47. </select>  
    48. </body>  
    49. </html> 
    效果圖如下:



    posted @ 2008-06-30 09:39 飛舞的幻想 閱讀(1836) | 評論 (0)編輯 收藏

    主站蜘蛛池模板: 在线人成免费视频69国产| 污视频网站免费在线观看| 久久精品免费电影| 亚洲高清国产拍精品26U| 国产精品偷伦视频免费观看了| 亚洲av片一区二区三区| 免费一级毛suv好看的国产网站| 亚洲第一区精品日韩在线播放| 无遮挡a级毛片免费看| 亚洲精品成人在线| 中文字幕在线免费视频| 亚洲AV无码成人精品区在线观看 | 日日摸夜夜添夜夜免费视频| 亚洲午夜激情视频| 国内精品免费在线观看| 久久久久亚洲av无码专区| 免免费国产AAAAA片| 亚洲国产成人久久精品大牛影视| 无码不卡亚洲成?人片| 国产一级在线免费观看| 337p日本欧洲亚洲大胆色噜噜| 国产麻豆视频免费观看| 亚洲AV噜噜一区二区三区| 亚洲综合日韩久久成人AV| 95免费观看体验区视频| 亚洲精华国产精华精华液好用| 久久精品国产亚洲一区二区三区| 久久精品免费观看| 亚洲娇小性色xxxx| 亚洲自偷自偷在线制服| 2021久久精品免费观看| 曰批免费视频播放免费| 亚洲综合区图片小说区| 国产麻豆剧传媒精品国产免费| 伊人免费在线观看高清版| 亚洲视频在线不卡| 亚洲精品国产高清嫩草影院| 99re免费在线视频| 日韩一级片免费观看| 亚洲国产日韩在线成人蜜芽| 亚洲人成网站在线观看青青|