Message from VMARKET.SRV-SMP.24563282691422002 15.09.15 06:28:00 -- Invalids in database : AUCTIONS 15.09.15 06:28:48 -- ALERT! Bad blocks in database: 15.09.15 06:44:25 -- INDEX:SUPERMAG.SACDISCREASON_PK 15.09.15 06:44:25 -- INDEX:SUPERMAG.SMCPOSTFAILOUTVP_PK 15.09.15 06:44:25 -- INDEX:SUPERMAG.SMCPOSTRULESEX_PK 15.09.15 06:44:25 -- INDEX:SUPERMAG.SACSCALES_PK 15.09.15 06:44:25 -- INDEX:SUPERMAG.SMCREVALCLASS_PK 15.09.15 06:44:25 -- INDEX:SUPERMAG.SMCGOODSSCALE_LOC 15.09.15 06:44:25 -- INDEX:SUPERMAG.SMCCREDPREF_PK 15.09.15 06:44:25 -- INDEX:SUPERMAG.SMCTAXIDENTITY_TAXID 15.09.15 06:44:25 -- INDEX:SUPERMAG.SMCPOSTTRUSTEDRULES_PK 15.09.15 06:44:25 -- INDEX:SUPERMAG.SMCPOSTCLIENTRULES_PK 15.09.15 06:44:25 -- INDEX:SUPERMAG.SMCPOSTTABLE_PK 15.09.15 06:44:25 -- INDEX:SUPERMAG.SMCPOSTQUEUELINK_PK 15.09.15 06:44:25 -- INDEX:SUPERMAG.SACCARDCLASSIMAGE_PK 15.09.15 06:44:25 -- INDEX:SUPERMAG.SACSCALES_NAME 15.09.15 06:44:25 -- INDEX:SUPERMAG.SMSTOREORDERSTASKLOCS_SHOP 15.09.15 06:44:25 -- INDEX:SUPERMAG.SMCTAXIDENTITY_PK
select * from v$database_block_corruption;
SPOOL compile.sql SELECT 'alter ' || DECODE ( o.object_type, 'VIEW', 'VIEW', 'PACKAGE', 'PACKAGE', 'PACKAGE BODY', 'PACKAGE', 'PROCEDURE', 'PROCEDURE', 'TRIGGER', 'TRIGGER', 'FUNCTION', 'FUNCTION' ) || ' ' || o.owner || '.' || o.object_name || ' compile ' || DECODE ( o.object_type, 'VIEW', '', 'PACKAGE', 'PACKAGE', 'PACKAGE BODY', 'BODY', 'PROCEDURE', '', 'TRIGGER', '', 'FUNCTION', '' ) || ';' FROM all_objects o WHERE o.owner = USER AND o.object_type IN ('VIEW', 'PACKAGE', 'PACKAGE BODY', 'PROCEDURE', 'TRIGGER', 'FUNCTION' ) AND o.status = 'INVALID' ORDER BY o.owner, o.object_type, o.object_name; SPOOL off --------------------------------------------------- @compile
SPOOL compile.sql SELECT 'alter ' || DECODE ( o.object_type, 'VIEW', 'VIEW', 'PACKAGE', 'PACKAGE', 'PACKAGE BODY', 'PACKAGE', 'PROCEDURE', 'PROCEDURE', 'TRIGGER', 'TRIGGER', 'FUNCTION', 'FUNCTION' ) || ' ' || o.owner || '.' || o.object_name || ' compile ' || DECODE ( o.object_type, 'VIEW', '', 'PACKAGE', 'PACKAGE', 'PACKAGE BODY', 'BODY', 'PROCEDURE', '', 'TRIGGER', '', 'FUNCTION', '' ) || ';' FROM all_objects o WHERE o.owner = USER AND o.object_type IN ('VIEW', 'PACKAGE', 'PACKAGE BODY', 'PROCEDURE', 'TRIGGER', 'FUNCTION' ) AND o.status = 'INVALID' ORDER BY o.owner, o.object_type, o.object_name; SPOOL off --------------------------------------------------- @compile
WHERE o.owner = USER