ercole-io / ercole-agent

Proactive Software Asset Management. Agent component
https://ercole.io
Other
24 stars 10 forks source link

Update the license_pluggable.sql script #583

Closed anbrenna closed 4 months ago

anbrenna commented 4 months ago

change the following line when LTRIM(product,'.') like 'Advanced Compression' and usage is NULL and ((select count() from &&DFUS.tables where owner not in('SYS','SYSMAN','SYSTEM','APEX%') and compress_for not in ('NULL','BASIC'))>0 or (select count() from &&DFUS.tab_partitions where table_owner not in('SYS','SYSMAN','SYSTEM','APEX%') and compress_for not in ('NULL','BASIC'))>0 or (select count() from &&DFUS.tab_subpartitions where table_owner not in('SYS','SYSMAN','SYSTEM','APEX%') and compress_for not in ('NULL','BASIC'))>0) with when LTRIM(product,'.') like 'Advanced Compression' and usage is NULL and ((select count() from &&DFUS.tables where owner not in('SYS','SYSMAN','SYSTEM','APEX%') and compress_for not in ('NULL','BASIC'))>0 or (select count() from &&DFUS.tab_partitions where table_owner not in('SYS','SYSMAN','SYSTEM','APEX%') and compress_for not in ('NULL','BASIC'))>0 or (select /+opt_param('_px_cdb_view_enabled', 'false') / count() from &&DFUS.tab_subpartitions where table_owner not in('SYS','SYSMAN','SYSTEM','APEX%') and compress_for not in ('NULL','BASIC'))>0