91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

GoldenGate OGG-01004 ORA-01400 Cannot insert null into ...

發布時間:2020-08-08 12:22:25 來源:ITPUB博客 閱讀:328 作者:abstractcyj 欄目:關系型數據庫

OGG出現故障, ORA-01400, cannot insert null into “TEST“.“TEST“
目標端復制進程使用了配置HANDLECOLLISIONS, 此配置在目標端更新時,如果更新不到數據,會將UPDATE轉換成insert
但是因為源端并沒有配置所有列的附加日志,所以,沒有被更新的列并不會包含在insert中,從而導致錯誤

做了以下步驟, 這里是臨時解決方案:
1. 將列修改成null: alter table test modify col1 null;
2. 啟動復制進程
3. 檢查數據:select count(*) from test where col1 is null (發現有八條)
4. 處理并手工同步這八條數據
5. 將字段改成not null : alter table test modify col1 not null;

最終解決: 需要加入表的所有列的附加日志: alter table test add supplemental log data (ALL) columns;
DDL操作在生產環境較為危險, 暫緩動作


MOS文檔ID: Replicat Abends With Errror ORA-01400: Cannot Insert NULL Into Table for Not Null Columns When Specifying INSERTALLRECORDS (文檔 ID 1994869.1)

                      REPLICAT Reports ORA-01400: Cannot Insert NULL When Using HANDLECOLLISIONS (文檔 ID 1576900.1)

REPLICAT tried to UPDATE an existing row, but none was found, so due to parameter HANDLECOLLISIONS, the failed UPDATE was converted into an INSERT.
That INSERT then failed because the Trail file did not have all the columns, because the record was for an UPDATE for 5 out of 15 columns, where the table on the Oracle database had the NOT NULL constraint set for all columns.

The cause of the problem has been determined from the following points;

  • The REPLICAT report shows the message "... inserting a row into USER1.TABLE1 due to missing target row for a key update operation. " 
    where the key words are " missing target row for a key update ". 
    This means there was no row to UPDATE, for the change record found in the Trail file.
  • The REPLICAT had the HANDLECOLLISIONS parameter set.
  • The GoldenGate Reference Guide shows that when HANDLECOLLISIONS is used, failed UPDATE's will be converted into INSERT's 
    "If the row with the old key is not found in the target, the change record in the trail is converted to an insert".
  • The REPLICAT report finally shows that after the failed UPDATE was reported, the INSERT also failed.  
    The INSERT failed because the Trail file record only had 5 out of 15 columns, where the table is defined with NOT NULL on all the columns.  
    This then caused the Oracle database error: ORA-01400: cannot insert NULL...



向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

万源市| 江津市| 乌拉特前旗| 长寿区| 天峨县| 辽阳市| 融水| 武穴市| 乳源| 仙游县| 南阳市| 陆良县| 酒泉市| 黑山县| 景洪市| 永平县| 黄大仙区| 太仆寺旗| 湄潭县| 冕宁县| 临洮县| 皮山县| 区。| 武冈市| 治县。| 洞头县| 满洲里市| 盐池县| 石城县| 古浪县| 台山市| 乌什县| 固镇县| 渝中区| 饶河县| 岑溪市| 石柱| 抚州市| 得荣县| 本溪| 克什克腾旗|