ORA-30926: unable to get a stable set of rows in the source tables
今天在做etl載入歷史資料,處理到8月份的時候,報錯 ORA-30926: unable to get a stable set of rows in the source tables,該etl過程中有用merge語句,google該錯誤的解釋:
Oracle Error :: ORA-30926
Cause
A stable set of rows could not be got because of large dml activity or a non-deterministic where clause.
Action
Remove any non-deterministic where clauses and reissue the dml.
non-deterministic 非確定性的到底指的是什麼呢?再搜
ORA-30926: unable to get a stable set of rows in the source tables" error if there is either a many-to-one or many-to-many relationship between the source and target tables. This is not as serious as it sounds because you would normally have to MERGE a one-to-one or one-to-zero relationship as your join condition would be protected by the target's primary key.
When performing a merge statement, the table to be merged had multiplerecords with the same key used for matching. While this is ok forrecords to be inserted into the target table, Oracle doesn't like thison the update portion of the statement. The solution is to remove the
duplicate or pick a matching key that is truely unique.
此處說明了,merge在做update子句的時候,違反target的主鍵約束可能會導致ora-30926 錯誤。
找出procedure,檢視source,和target,結果看到source的確有重複記錄,而且在清洗的時候沒能發現這個bug。
好了,可以手工把重複記錄刪除,至少不影響歷史資料的載入了。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10159839/viewspace-364685/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Listing Chained Rows of Tables and ClustersAI
- lombok get/set 與 JavaBean get/setLombokJavaBean
- unable to get oracle owner forOracle
- unable to get file lock, will retry ...
- C# Get SetC#
- 淺說 get set
- PHP memcached,(set,get)PHP
- python:get和setPython
- 快速生成get、set方法
- error:unable to get logical block size for spfileErrorBloC
- 初學 PHP __set ( ) 和 __ get ( )PHP
- cassandra get set同步問題
- git SSL certificate problem: unable to get local issuer certificateGit
- javascript get和set訪問器JavaScript
- python set和get實現Python
- How to get and set the system socket buffer in AIXAI
- JavaScript get set 訪問器屬性JavaScript
- 私有屬性的Get Set 與 Public
- Get Set Up to Help With Python Core DevelopmentPythondev
- Swift 成員變數的get/setSwift變數
- set,env,export,source,exec傻傻分不清楚?Export
- PHP 分散式memcached伺服器 set,getPHP分散式伺服器
- 分類不能自動建立 get set 方法
- Objective-C中get/set方法初探(1)Object
- Objective-C中get/set方法初探(2)Object
- [GuzzleHttp\Exception\RequestException] cURL error 60: SSL certificate problem: unable to get localHTTPExceptionError
- GIT clone報錯: SSL certificate problem: unable to get local issuer certificateGit
- weblogic - <BEA-141281> <unable to get file lock, will retry ...>Web
- python的__get__、__set__、__delete__(1)Pythondelete
- Lombok生成get/set異常問題(Lombok缺陷)Lombok
- java反射呼叫set和get方法的通用類Java反射
- 解除get/set束縛的神器,Lombok的使用Lombok
- 修改自動生成get/set方法模板程式碼
- Unable to set localhost. This prevents creation of a GUID. Cause was: bogon: boglocalhostGUIGo
- 【rac故障】root.sh報錯Unable to get VIP info for new node
- MySQL 5.7.17 安裝報錯SSL error: Unable to get private key fromMySqlError
- on commit delete rows and on commit preserve rowsMITdelete
- 封裝中的get、set方法-學習筆記封裝筆記