PK
y$Aoa, mimetypeapplication/epub+zipPK y$A iTunesMetadata.plistc
When you install replication capabilities at a site, Oracle installs the replication catalog, which consists of tables and views, at that site.
This chapter contains this topic:
Caution: Do not modify the replication catalog tables directly. Instead, use the procedures provided in theDBMS_REPCAT package. |
Many data dictionary tables have three corresponding views:
An ALL_
view displays all the information accessible to the current user, including information from the current user's schema as well as information from objects in other schemas, if the current user has access to those objects by way of grants of privileges or roles.
A DBA_
view displays all relevant information in the entire database. DBA_
views are intended only for administrators. They can be accessed only by users with the SELECT
ANY
TABLE
privilege. This privilege is assigned to the DBA role when Oracle is initially installed.
A USER_
view displays all the information from the schema of the current user. No special privileges are required to query these views.
The columns of the ALL_
, DBA_
, and USER_
views corresponding to a single data dictionary table are usually nearly identical. Therefore, these views are described in full only once in this chapter (for the ALL_
view). The views are listed without the full description for DBA_
and USER_
views, but differences are noted.
As shown in Figure 23-1, the replication catalog views are used by master sites and materialized view sites to determine such information as what objects are being replicated, where they are being replicated, and if any errors have occurred during replication. Table 23-1 lists all of the replication catalog views.
Figure 23-1 Replication Catalog Views and Replicated Objects
Table 23-1 Replication Catalog Views
ALL_ Views | DBA_ Views | USER_ Views |
---|---|---|
N/A |
|
N/A |
|
|
|
|
|
|
|
|
|
|
|
|
ALL_REPCAT_USER_AUTHORIZATIONS |
DBA_REPCAT_USER_AUTHORIZATIONS |
USER_REPCAT_USER_AUTHORIZATION |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
N/A |
|
N/A |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
N/A |
|
N/A |
DBA_REGISTERED_MVIEW_GROUPS
lists all the registered materialized view groups at the master site or master materialized view site.
Column | Data Type | NULL | Description |
---|---|---|---|
NAME | VARCHAR2(30) | - | Name of the materialized view replication group |
MVIEW_SITE | VARCHAR2(128) | - | Site of the materialized view replication group |
GROUP_COMMENT | VARCHAR2(80) | - | Description of the materialized view replication group |
VERSION | VARCHAR2(8) | - | Oracle version of the materialized view replication group
Note: Oracle9i Database or later materialized view groups show Oracle8. |
FNAME | VARCHAR2(30) | - | Name of the flavor of the materialized view group |
OWNER | VARCHAR2(30) | - | Owner of the materialized view replication group |
Contains global information about each deployment template accessible to the current user, such as the template name, template owner, what refresh group the template objects belong to, and the type of template (private or public).
When the DBA adds materialized view definitions to the template container, the DBA references the appropriate REFRESH_TEMPLATE_NAME
. Any materialized views added to a specific template are added to the refresh group specified in REFRESH_GROUP_NAME
.
Furthermore, deployment templates created as public are available to all users who can connect to the master site. Deployment templates created as private are limited to those users listed in the ALL_REPCAT_USER_AUTHORIZATIONS
view.
Related Views:
DBA_REPCAT_REFRESH_TEMPLATES
describes all deployment templates in the database.
USER_REPCAT_REFRESH_TEMPLATES
describes all deployment templates owned by the current user.
Column | Data Type | NULL | Description |
---|---|---|---|
REFRESH_TEMPLATE_NAME | VARCHAR2(30) | - | Name of the deployment template. |
OWNER | VARCHAR2(30) | - | Owner of the deployment template. |
REFRESH_GROUP_NAME | VARCHAR2(30) | - | Name of the refresh group to which the template objects are added during the instantiation process. |
TEMPLATE_COMMENT | VARCHAR2(2000) | - | User supplied comment. |
PUBLIC_TEMPLATE | VARCHAR2(1) | - | If Y then the deployment template is public.
If N then the deployment template is private. |
Contains the individual object definitions that are contained in each deployment template accessible to the current user. Individual objects are added to a template by specifying the target template in REFRESH_TEMPLATE_NAME
.
DDL_TEXT
can contain variables to create parameterized templates. Variables are created by placing a colon (:) at the beginning of the variable name (for example, :region
). Templates that use parameters allow for greater flexibility during the template instantiation process (that is, in defining data sets specific for a materialized view site).
When the object is added to the template, the specified DDL is examined and if any parameters have been defined, Oracle automatically adds the parameter to the ALL_REPCAT_TEMPLATE_PARMS
view.
Related Views:
DBA_REPCAT_TEMPLATE_OBJECTS
describes the object definitions for all deployment templates in the database.
USER_REPCAT_TEMPLATE_OBJECTS
describes the object definitions for each deployment template owned by the current user.
Column | Data Type | NULL | Description |
---|---|---|---|
REFRESH_TEMPLATE_NAME | VARCHAR2(30) | NOT NULL | The name of the deployment template. |
OBJECT_NAME | VARCHAR2(30) | NOT NULL | The name of the deployment template object. |
OBJECT_TYPE | VARCHAR2(17) | - | The object type of the deployment template object:
|
DDL_NUM | NUMBER | NOT NULL | Indicates the order in which to execute the DDL statements stored in the DDL_TEXT column when multiple DDL statements are used to create the object. |
DDL_TEXT | CLOB(4000) | - | The DDL that is executed to create the deployment template object. |
MASTER_ROLLBACK_SEGMENT | VARCHAR2(30) | - | The name of the rollback segment that is used during the instantiation of the deployment template object. |
DERIVED_FROM_SNAME | VARCHAR2(30) | - | If applicable, displays the schema that contains the object from which the template object was created. |
DERIVED_FROM_ONAME | VARCHAR2(30) | - | If applicable, displays the name of the object from which the template object was created. |