Monitoring Invalid objects in Oracle EBS R12.2
ADZDUTLRECMP.sql : Compiling Invalid Objects during adop patching.
In R12.2, unlike earlier releases, stub objects are not displayed in the dba_objects
table. Therefore, querying this table will not show all the invalid objects.
STUB: Stub objects are related to the editioning capabilities of the database.
The following query can be used to display the invalid objects:
select * from(selecteusr.user_name owner, count(decode(obj.type#,88,NULL,decode(obj.status,1,NULL,1))) Actual, count(decode(obj.type#,88,decode(obj.status,1,NULL,1),NULL)) Stub, count(decode(obj.type#,88,decode(obj.status,1,NULL,1),decode(obj.status,1,NULL,1))) Totalfromsys.obj$ obj, sys.obj$ bobj, (selectxusr.user#, xusr.ext_username user_name, ed.name edition_namefrom(select * from sys.user$ where type# = 2) xusr, (select * from sys.obj$ where owner# = 0 and type# = 57) edwhere xusr.spare2 = ed.obj#unionselectbusr.user#, busr.name user_name, ed.name edition_namefrom(select * from sys.user$ where type# = 1 or user# = 1) busr, (select * from sys.obj$ where owner# = 0 and type# = 57) edwhere ed.name = 'ORA$BASE') eusrwhere obj.owner# = eusr.user#and bobj.obj#(+) = obj.dataobj#and obj.type# not in (0, 10)and ( obj.type# <> 88 or (obj.type# = 88 and bobj.type# <> 10) )and obj.remoteowner is nullgroup by eusr.user_name) xwhere total > 0order by 1/
The patch will proceed only when the number of invalids displayed is close to zero.
Post a Comment
Post a Comment