{"id":549,"date":"2012-01-12T03:02:30","date_gmt":"2012-01-12T10:02:30","guid":{"rendered":"https:\/\/gonzalo.aro.cl\/blog\/?p=549"},"modified":"2012-01-12T03:02:53","modified_gmt":"2012-01-12T10:02:53","slug":"creacion-de-script-para-compilacion-de-objetos-invalidos-en-oracle","status":"publish","type":"post","link":"https:\/\/gonzalo.aro.cl\/blog\/2012\/01\/12\/creacion-de-script-para-compilacion-de-objetos-invalidos-en-oracle\/","title":{"rendered":"Creaci\u00f3n de script para compilaci\u00f3n de objetos inv\u00e1lidos en Oracle"},"content":{"rendered":"<p>Para generar sentencias de compilaci\u00f3n para los objetos que se encuentran en estado inv\u00e1lido en Oracle ser\u00eda \u00fatil el siguiente script:<\/p>\n<pre class=\"brush: sql\">\r\nselect\r\n   'ALTER ' || OBJECT_TYPE || ' ' ||\r\n   OWNER || '.' || OBJECT_NAME || ' COMPILE;'\r\nfrom\r\n   dba_objects\r\nwhere\r\n   status = 'INVALID' and owner = 'nombre_del_schema'\r\nand\r\n   object_type in ('PACKAGE','FUNCTION','PROCEDURE','PACKAGE BODY')\r\n;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Para generar sentencias de compilaci\u00f3n para los objetos que se encuentran en estado inv\u00e1lido en Oracle ser\u00eda \u00fatil el siguiente script: select &#8216;ALTER &#8216; || OBJECT_TYPE || &#8216; &#8216; || OWNER || &#8216;.&#8217; || OBJECT_NAME || &#8216; COMPILE;&#8217; from dba_objects where status = &#8216;INVALID&#8217; and owner = &#8216;nombre_del_schema&#8217; and object_type in (&#8216;PACKAGE&#8217;,&#8217;FUNCTION&#8217;,&#8217;PROCEDURE&#8217;,&#8217;PACKAGE BODY&#8217;) ;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,4,9],"tags":[],"class_list":["post-549","post","type-post","status-publish","format-standard","hentry","category-base-de-datos","category-desarrollo","category-oracle"],"_links":{"self":[{"href":"https:\/\/gonzalo.aro.cl\/blog\/wp-json\/wp\/v2\/posts\/549"}],"collection":[{"href":"https:\/\/gonzalo.aro.cl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gonzalo.aro.cl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gonzalo.aro.cl\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gonzalo.aro.cl\/blog\/wp-json\/wp\/v2\/comments?post=549"}],"version-history":[{"count":2,"href":"https:\/\/gonzalo.aro.cl\/blog\/wp-json\/wp\/v2\/posts\/549\/revisions"}],"predecessor-version":[{"id":551,"href":"https:\/\/gonzalo.aro.cl\/blog\/wp-json\/wp\/v2\/posts\/549\/revisions\/551"}],"wp:attachment":[{"href":"https:\/\/gonzalo.aro.cl\/blog\/wp-json\/wp\/v2\/media?parent=549"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gonzalo.aro.cl\/blog\/wp-json\/wp\/v2\/categories?post=549"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gonzalo.aro.cl\/blog\/wp-json\/wp\/v2\/tags?post=549"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}