I’m using something like
SELECT JOB FROM DBA_JOBS WHERE WHAT LIKE '%NAME_OF_MVIEW%'
to get the id of refresh job which refreshes the materialized view by the name of mv.
(the content of ‘WHAT’ is dbms_refresh.refresh('"SCHEMA_USER"."NAME_OF_MVIEW"'))
I wanna know if there is a table or view which holds both job id and mv name, so i can use
select JOB ... where WHATEVER = 'NAME_OF_MVIEW'.
Or any better way to get the refresh job id.
Thanks.
you can run this:
and add an applicalbe where clause filtering on the name of the mview.