Professional Documents
Culture Documents
left join (select * FRom DSSMDOBJINFO where PROJECT_ID = 'DEVELOPMENT PROJECT GUID') d
on p.OBJECT_ID = d.OBJECT_ID
where p.PROJECT_ID = 'PRODUCTION PROJECT GUID'
and d.OBJECT_ID is null
The first 2 sections of the script are used to build a list of folders
under Public Objects and Schema Objects. The reason youll want to
do this is because youll surely get lots of Orphan hits for users
objects in My Reports, so this is the best way Ive found to isolate
Public/Schema Objects only.
Once we have that, we can join it to the list of objects in Production,
and then compare that to the list of objects in Development. The
resulting list is our culprits!
Unfortunately, the Metadata does not provide a lookup table for
Object Types, and you may want to adjust some of the things youre
considering Orphaned (for example, exclude Shortcut objects). It
may also make the report easier to take action on if it told you an
orphan was a Report instead of 3. To implement this, simply
create your own lookup table for Object Type in your metadata, and
add it to the 3rd part of the query. You can obtain a list of Object
Types from this Tech Note.
UPDATE: Object IDs are handled differently in 9.2+, so be sure to
check out Changes to Object IDs in 9.2