DBA_REFRESH
describes all refresh groups in the database. Its columns are the same as those in "ALL_REFRESH".
· ALL_REFRESH
describes all the refresh groups accessible to the current user.
· USER_REFRESH
describes all refresh groups owned by the current user.
Column | Datatype | NULL | Description |
|
|
| Owner of the refresh group |
|
|
| Name of the refresh group |
|
| | Internal identifier of the refresh group |
|
| | Indicates whether the refresh group is destroyed when its last item is subtracted ( |
|
| | Indicates whether changes are pushed from the snapshot to the master before refresh ( |
|
| | Indicates whether to proceed with refresh despite errors when pushing deferred RPCs ( |
|
| | Name of the rollback segment to use while refreshing |
|
| | Identifier of the job used to refresh the group automatically |
|
| | Date that this job will next be refreshed automatically, if not broken |
|
| | A date function used to compute the next |
|
| | Indicates whether the job is broken and will never be run ( |
|
| | Method for purging the transaction queue after each push ( |
|
| | Level of parallelism for transaction propagation |
|
| | Size of the heap |
Note:
1. Check for refresh Jobs. A refresh job is associated with each refresh group at a materialized view site. Each refresh job refreshes the refresh group at the specified interval. This SQL query summarizes the status of each refresh job at the current materialized view site.
SELECT j.job, j.priv_user, r.rowner || '.' || r.rname "Refresh Group",
decode(j.broken, 'Y', 'Broken', 'Normal') "Status",
to_char(j.next_date, 'dd-Mon-yyyy HH:MI:SS AM') "Start",
j.interval "Interval"
FROM dba_refresh r, dba_jobs j
WHERE r.job = j.job
ORDER BY 1;
2. Summary: This SQL script lists general information about the current materialized view site.
SELECT a.mvGROUP "# of Materialized View Groups",
b.mv "# of Materialized Views",
c.rGROUP "# of Refresh Groups"
FROM
(SELECT count(s.gname) mvGROUP FROM sys.dba_repsites s
WHERE s.snapmaster = 'Y') a,
(SELECT count(*) mv FROM sys.dba_snapshots) b,
(SELECT count(*) rGROUP FROM sys.dba_refresh) c;
Oracle data dictionary views
Oracle dynamic performance views
No comments:
Post a Comment