Informatica: Get deployment groups older than 30 days.

Posted: November 20, 2015 in Netezza

How to get the information of deployment groups older than 30 days. As part of cleanup process one needs to know this information.

The below query will give the required information. It query the meta-data tables of informatica.

select distinct rdg.dep_group_name
from rep_deploy_group rdg
where
(to_date(to_char(last_saved),‘mm/dd/yyyy hh24:mi:ss’) < (sysdate-30)
and upper(rdg.dep_group_name) not in
(
select max(upper(dep_group_name)) as dep_group_name
from rep_deploy_group
group by substr(dep_group_name,0, instr(dep_group_name,’_’,-1)-1))
)
or to_date(to_char(last_saved),‘mm/dd/yyyy hh24:mi:ss’) < (sysdate-180)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s