亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 4634 | 回復(fù): 1
打印 上一主題 下一主題

informix 11 版 數(shù)據(jù)清理經(jīng)常報211、244等錯誤,尋求解決辦法。 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2012-12-04 13:12 |只看該作者 |倒序瀏覽

2012-11-26 04:00:06.051 [CSXML-APP-ThreadPool-15] ERROR com.csii.batch.job.dataClear.ibs.DailyJnlClearJobService - org.springframework.jdbc.UncategorizedSQLException: SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [IX000]; error code [-211];   --- The error occurred in META-INF/config/sql-mapping/sql.xml.  
--- The error occurred while executing update.  
--- Check the    insert into ibsjnlqueryloghist_201210     select * from IBSJNLQUERYLOG where TRANSDATE >= ? AND TRANSDATE < ?   .  
--- Check the SQL Statement (preparation failed).  
--- Cause: java.sql.SQ
.ibs.DailyJnlClearJobService - java.lang.RuntimeException: org.springframework.jdbc.UncategorizedSQLException: SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [IX000]; error code [-211];   
--- The error occurred in META-INF/config/sql-mapping/sql.xml.  
--- The error occurred while executing update.  
--- Check the    insert into ibsjnlqueryloghist_201210     select * from IBSJNLQUERYLOG where TRANSDATE >= ? AND TRANSDATE < ?   .  
--- Check the SQL Statement (preparation failed).  
--- Cause: java.sql.SQLException: Cannot read system catalog (sysfragments).;
mework.jdbc.UncategorizedSQLException: SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [IX000]; error code [-244];   
--- The error occurred in META-INF/config/sql-mapping/sql.xml.  
--- The error occurred while applying a parameter map.  
--- Check the batch.getLastTableCount-InlineParameterMap.  
--- Check the statement (query failed).  
--- Cause: java.sql.SQLException: Could not do a physical-order read to fetch next row.; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException:   
--- The error occurred in META-INF/config/sql-mapping/sql.xml.  
nested exception is com.ibatis.common.jdbc.exception.NestedSQLException:   
--- The error occurred in META-INF/config/sql-mapping/sql.xml.  
--- The error occurred while executing update.  
--- Check the    insert into ibsjnlqueryloghist_201210     select * from IBSJNLQUERYLOG where TRANSDATE >= ? AND TRANSDATE < ?   .  
--- Check the SQL Statement (preparation failed).  
--- Cause: java.sql.SQLException: Cannot read system catalog (sysfragments).
2012-11-26 04:00:06.054 [CSXML-APP-ThreadPool-4] ERROR com.csii.batch.job.dataClear.ibs.HistoryTableMonthDataClearJobService - org.springfra
-- The error occurred while applying a parameter map.  
--- Check the batch.getLastTableCount-InlineParameterMap.  
--- Check the statement (query failed).  
--- Cause: java.sql.SQLException: Could not do a physical-order read to fetch next row.
LException: Cannot read system catalog (sysfragments).; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException:   
--- The error occurred in META-INF/config/sql-mapping/sql.xml.  
--- The error occurred while executing update.  
--- Check the    insert into ibsjnlqueryloghist_201210     select * from IBSJNLQUERYLOG where TRANSDATE >= ? AND TRANSDATE < ?   .  
--- Check the SQL Statement (preparation failed).  
--- Cause: java.sql.SQLException: Cannot read system catalog (sysfragments).
2012-11-26 04:00:06.051 [CSXML-APP-ThreadPool-15] ERROR com.csii.batch.job.dataClear


--java代碼:
ibsTxTemplate.execute(new TransactionCallback() {                       
        public Object doInTransaction(TransactionStatus arg0) {                                                       
        logger.info("==="+tablename+"  bakup===");
        try{
             sqlMap.insert("batch.bakdata"+tablename, map);
             logger.info("==="+tablename+"  delete ===");
             sqlMap.delete("batch.delete"+tablename, map);
             logger.info("==="+tablename+"  delete end ===");
        }catch (Exception e) {

IBATIS查詢SQL                                                       
<insert id="bakdataIBSJNL" parameterClass="java.util.HashMap">
        insert into IBSJNLHIST_$lastMonth$
        select * from IBSJNL where TRANSDATE >= #BeginDate# AND TRANSDATE &lt; #EndDate#
</insert>



--211錯誤碼的解釋
-211        不能讀取系統(tǒng)目錄<目錄表>。

數(shù)據(jù)庫服務(wù)器在處理大多數(shù)語句時參照系統(tǒng)目錄表。當(dāng)不能讀取這些重要的表時就產(chǎn)
生了嚴重的錯誤。檢查伴隨的ISAM錯誤代碼以獲得更多的信息。錯誤的影響取決于正
在執(zhí)行的語句和特定的表,如下所示。

    *   CREATE TABLE語句,systabauth不能讀取;該表可以被建立,但不能象正常
        情況一樣授權(quán)給PUBLIC。

    *   DROP TABLE語句,systables不能讀;不做任何動作。

    *   DROP TABLE語句,sysviews不能讀;該表將被取消,但任何依賴于該表的
        視圖將不能被自動取消。

    *   DROP VIEW語句,sysviews不能讀。徊蛔鋈魏蝿幼。

    *   DROP INDEX語句,systables或sysindexs不能讀。徊蛔鋈魏蝿幼。

    *   DROP SYNONYM語句,systables或syssynonyms不能讀;不做任何動作。

    *   DROP DATABASE語句,systables不能讀;不做任何動作。

    *   START DATABASE語句,systables不能讀取;不做任何動作。

    *   DATABASE語句,systables或sysusers不能讀。辉摂(shù)據(jù)庫不被選中
        (沒有當(dāng)前數(shù)據(jù)庫,后來的操作見錯誤-349)。


現(xiàn)在數(shù)據(jù)在數(shù)據(jù)清理及備份到歷史表的數(shù)據(jù)時,informix庫經(jīng)常出錯。
尋求解決辦法,
謝謝。

論壇徽章:
11
金牛座
日期:2015-03-19 16:56:22數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2016-08-02 06:20:00數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2016-04-24 06:20:00數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2016-04-13 06:20:00IT運維版塊每日發(fā)帖之星
日期:2016-04-13 06:20:00數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2016-02-03 06:20:00數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2015-08-06 06:20:00季節(jié)之章:春
日期:2015-03-27 15:54:57羊年新春福章
日期:2015-03-27 15:54:37戌狗
日期:2015-03-19 16:56:41數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2016-08-18 06:20:00
2 [報告]
發(fā)表于 2012-12-04 13:41 |只看該作者
在SQL中增加臟讀或者鎖等,或者兩者都加上看下。。
--ADD HERE
set lock mode to wait 30;
--set isolation to dirty read;
        insert into IBSJNLHIST_$lastMonth$
        select * from IBSJNL where TRANSDATE >= #BeginDate# AND TRANSDATE &lt; #EndDate#
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP