{"id":1082,"date":"2020-01-14T23:00:05","date_gmt":"2020-01-15T02:00:05","guid":{"rendered":"http:\/\/soudba.com.br\/?p=1082"},"modified":"2020-01-14T23:00:05","modified_gmt":"2020-01-15T02:00:05","slug":"oem-database-generating-huge-number-of-errors","status":"publish","type":"post","link":"https:\/\/www.soudba.com.br\/?p=1082","title":{"rendered":"OEM database &#8211; generating huge number of errors"},"content":{"rendered":"\n<p>Hello !<\/p>\n\n\n<p>Got this issue when checking alert log:<\/p>\n\n\n<pre class=\"wp-block-preformatted\">BEGIN EM_LOADERJOB.unlock_target(hextoraw(:1 )); END;\nAdditional information: hd=0xfc429b90 phd=0x63888408 flg=0x100476 cisid=107 sid=107 ciuid=107 uid=107\n2020-01-14T16:36:37.705267-06:00\nWARNING: too many parse errors, count=148547900 SQL hash=0x7533e331\nPARSE ERROR: ospid=25178, error=6550 for statement:\n2020-01-14T16:36:37.705493-06:00<\/pre>\n\n\n<p>And this repeat each 5 seconds. Around 1 month my alert log reached 100M and got other error &#8211; <\/p>\n\n\n<pre class=\"wp-block-preformatted\">Alert log is 100.088027954102M, consider using rotate_generic.pl<\/pre>\n\n\n<p>Solution for this error:<\/p>\n\n\n<p>First &#8211; check if your package EM_LOADERJOB have the procedure UNLOCK_TARGET<\/p>\n\n\n<p>col owner for a25<br \/>col object_name for a25<br \/>col PROCEDURE_NAME for a35<br \/>col OBJECT_TYPE for a25<br \/>set lines 200<br \/>SELECT Owner,<br \/>Object_Name,<br \/>Procedure_Name,<br \/>Object_Type<br \/>FROM DBA_Procedures<br \/>WHERE Object_Name = &#8216;EM_LOADERJOB&#8217;<br \/>ORDER BY Procedure_Name<br \/>\/<\/p>\n\n\n<p>Sample Output:<\/p>\n\n\n<p>OWNER OBJECT_NAME PROCEDURE_NAME OBJECT_TYPE<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>SYSMAN EM_LOADERJOB DEQUEU_JOB PACKAGE<br \/>SYSMAN EM_LOADERJOB LOADERJOB_LOG PACKAGE<br \/>SYSMAN EM_LOADERJOB RELEASE_TARGET_LOCK PACKAGE<br \/>SYSMAN EM_LOADERJOB SUBMIT_JOB PACKAGE<br \/>SYSMAN EM_LOADERJOB UPDATE_DQ_TIME PACKAGE<br \/>SYSMAN EM_LOADERJOB UPDATE_END_TIME PACKAGE<br \/>SYSMAN EM_LOADERJOB UPDATE_JOB_STATUS PACKAGE<br \/>SYSMAN EM_LOADERJOB PACKAGE<\/p>\n\n\n<p>If not &#8211; Copy the procedure contents from another OEM database.<\/p>\n\n\n<p>Follow the steps below:<\/p>\n\n\n<p>Please ensure a full database backup is take prior to proceeding<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n\n\n<p>Login in to EM Console:<\/p>\n\n\n<p>1a. Navigate to Targets -&gt; Databases -&gt; click on Repository database -&gt; Schema -&gt; Programs -&gt; Package Bodies -&gt; Select schema name as SYSMAN and object name as &#8220;EM_LOADERJOB&#8221; &#8211;&gt; click Search<\/p>\n\n\n<p>2b. Here you will see the EM_LOADERJOB package, click Edit.<\/p>\n\n\n<p>Find the uploaded EM_LOADERJOB_packge_body attachment, copy it and past it in the &#8220;Source&#8221; Box and click apply.<\/p>\n\n\n<p>3c. On the right side of the page select object_type as &#8220;packages&#8221; &#8212; drop down button &#8211;&gt; Select schema name as SYSMAN and object name as &#8220;EM_LOADERJOB&#8221; &#8211;&gt; click Search<\/p>\n\n\n<p>3) We can see the EM_LOADERJOB package, click Edit.<\/p>\n\n\n<p>Find the uploaded EM_LOADERJOB_packge_definition attachment, copy it and past it in the &#8220;Source&#8221; Box and click apply.<\/p>\n\n\n<p>3. Connect to Repository as SYSMAN and run the below query again.<\/p>\n\n\n<p>col owner for a25<br \/>col object_name for a25<br \/>col PROCEDURE_NAME for a35<br \/>col OBJECT_TYPE for a25<br \/>set lines 200<br \/>SELECT Owner,<br \/>Object_Name,<br \/>Procedure_Name,<br \/>Object_Type<br \/>FROM DBA_Procedures<br \/>WHERE Object_Name = &#8216;EM_LOADERJOB&#8217;<br \/>ORDER BY Procedure_Name<br \/>\/<\/p>\n\n\n<p>Now we can see the unlock_target procedure in the output. If so, Monitor the alert.log and check if the issue remains.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello ! Got this issue when checking alert log: BEGIN EM_LOADERJOB.unlock_target(hextoraw(:1 )); END; Additional information: hd=0xfc429b90 phd=0x63888408 flg=0x100476 cisid=107 sid=107 ciuid=107 uid=107 2020-01-14T16:36:37.705267-06:00 WARNING: too many parse errors, count=148547900 SQL hash=0x7533e331 PARSE ERROR: ospid=25178, error=6550 for statement: 2020-01-14T16:36:37.705493-06:00 And this &hellip; <a href=\"https:\/\/www.soudba.com.br\/?p=1082\">Continue lendo <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,94],"tags":[368,369,378,380,401],"class_list":["post-1082","post","type-post","status-publish","format-standard","hentry","category-alert-log","category-enteprise-manager","tag-em_loaderjob","tag-em_loaderjob-unlock_target","tag-missing-unlock_target","tag-oem-alert-log-growing","tag-warning-too-many-parse-errors"],"_links":{"self":[{"href":"https:\/\/www.soudba.com.br\/index.php?rest_route=\/wp\/v2\/posts\/1082","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.soudba.com.br\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.soudba.com.br\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.soudba.com.br\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.soudba.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1082"}],"version-history":[{"count":0,"href":"https:\/\/www.soudba.com.br\/index.php?rest_route=\/wp\/v2\/posts\/1082\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.soudba.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1082"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.soudba.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1082"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.soudba.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1082"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}