{"id":2633,"date":"2021-12-08T10:02:11","date_gmt":"2021-12-08T13:02:11","guid":{"rendered":"https:\/\/zmsolution.laraclaud.com.br\/?p=2633"},"modified":"2021-12-08T10:02:14","modified_gmt":"2021-12-08T13:02:14","slug":"ora-00001-unique-constraint-sys-i_source1-violated","status":"publish","type":"post","link":"http:\/\/zmsolution.com\/ora-00001-unique-constraint-sys-i_source1-violated\/","title":{"rendered":"ORA-00001: unique constraint (SYS.I_SOURCE1) violated"},"content":{"rendered":"\n

Tive esse problema\u00a0 quando compilei uma package em um banco 11.2.0.4 “ORA-00001: unique constraint (SYS.I_SOURCE1) violated<\/strong> “<\/p>\n

Para resolu\u00e7\u00e3o do problema ,executei os passos abaixo:<\/p>\n

select * from sys.obj$ where name=’PACKAGE WITH HAVE PROBLEM’<\/strong><\/p>\n

ap\u00f3s peguei os obj# do objeto e executei o delete dos mesmos<\/p>\n

SQL> delete from sys.obj$ where obj# = 28507131;<\/strong>
SQL> delete from sys.obj$ where dataobj# = 26641112;<\/strong><\/p>\n

Para finalizar verifiquei se existia vest\u00edgios do objeto na\u00a0 SYS.SOURCE$<\/p>\n

select * from SYS.SOURCE$ where SOURCE like ‘PACKAGE WITH HAVE PROBLEM’;<\/strong><\/p>\n

no meu caso n\u00e3o existia ,mas se existir execute o delete nas tabelas abaixo:<\/p>\n

error : unique constraint (SYS.I_SOURCE1) violated<\/strong><\/p>\n

delete from SYS.SOURCE$ where OBJ#=28913887 and line=25;<\/strong>

error : unique constraint (SYS.I_IDL_SB41) violated<\/p>\n

delete from SYS.IDL_SB4$ where OBJ#=28913887;<\/strong>

error : unique constraint (SYS.I_IDL_UB11) violated

delete from SYS.IDL_UB1$ where OBJ#=28913887;<\/strong><\/p>\n

error : unique constraint (SYS.I_IDL_CHAR1) violated<\/p>\n

delete from SYS.IDL_CHAR$ where OBJ#=28913887;<\/strong><\/p>\n

error : unique constraint (SYS.I_IDL_UB21) violated<\/p>\n

delete from SYS.IDL_UB2$ where OBJ#=28913887;<\/strong><\/p>\n

Aconselho a n\u00e3o executar o procedimento direto em um banco de produ\u00e7\u00e3o, pode da uma caca grande.<\/strong><\/em><\/p>\n

\u00a0<\/p>\n

\u00a0<\/p>\n

\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"

Tive esse problema\u00a0 quando compilei uma package em um banco 11.2.0.4 “ORA-00001: unique constraint (SYS.I_SOURCE1) violated “ Para resolu\u00e7\u00e3o do problema ,executei os passos abaixo: select * from sys.obj$ where name=’PACKAGE WITH HAVE PROBLEM’ ap\u00f3s peguei os obj# do objeto e executei o delete dos mesmos SQL> delete from sys.obj$ where obj# = 28507131;SQL> delete from sys.obj$ where dataobj# = 26641112; Para finalizar verifiquei se existia vest\u00edgios do objeto na\u00a0 SYS.SOURCE$ select * from SYS.SOURCE$[…]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0},"categories":[1],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/zmsolution.com\/wp-json\/wp\/v2\/posts\/2633"}],"collection":[{"href":"http:\/\/zmsolution.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/zmsolution.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/zmsolution.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/zmsolution.com\/wp-json\/wp\/v2\/comments?post=2633"}],"version-history":[{"count":0,"href":"http:\/\/zmsolution.com\/wp-json\/wp\/v2\/posts\/2633\/revisions"}],"wp:attachment":[{"href":"http:\/\/zmsolution.com\/wp-json\/wp\/v2\/media?parent=2633"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/zmsolution.com\/wp-json\/wp\/v2\/categories?post=2633"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/zmsolution.com\/wp-json\/wp\/v2\/tags?post=2633"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}