Normally, Usage Tracking tables and views are in the same database schema as Reporting and Analysis repository tables. However, Usage Tracking tables can also be configured in a different location. Create base Usage Tracking tables for new schema and views using CreateUT.sql, CreateUTViews.sql, and populateUsageEventData.sql scripts from the installation package.
To create a Usage Tracking table in a new database schema in a different location:
Install base tables for new schema using CreateUT.sql, CreateUTViews.sql, and populateUsageEventData.sql scripts from the installation package.
For base schema table, assign access rights for new user.
Note: | This is required for next step. |
Provide additional data view required for usage tracking mechanism using the following example:
Note: | This example is one possible solution for providing data access for a source schema user. A database administrator may want to use their own solution for example, creating alias for tables. |
CREATE view V8_RESOURCE_BUNDLE AS SELECT * from source_schema.V8_RESOURCE_BUNDLE.
CREATE view V8_PROP_TYPE AS SELECT * from source_schema.V8_PROP_TYPE
CREATE view V8_PROP_VALIDATOR AS SELECT * from source_schema.V8_PROP_VALIDATOR
CREATE view V8_PROP_ENUM_VALUE AS SELECT * from source_schema.V8_PROP_ENUM_VALUE
CREATE view V8_PROP_DEFN AS SELECT * from source_schema.V8_PROP_DEFN
CREATE view V8_PROP_DEFN_CHILD AS SELECT * from source_schema.V8_PROP_DEFN_CHILD
CREATE view V8_PROP_DEFN_ATTR AS SELECT * from source_schema.V8_PROP_DEFN_ATTR
CREATE view V8_PROP_INTERNAL AS SELECT * from source_schema. V8_PROP_INTERNAL
CREATE view V8_PROP_VALUE AS SELECT * from source_schema.V8_PROP_VALUE
CREATE view V8_AUTHEN_CONFIG AS SELECT * from source_schema.V8_AUTHEN_CONFIG
CREATE view V8_CSS_USER AS SELECT * from source_schema.V8_CSS_USER
where Source_schema is schema used by installed application.
This script is only one example of many possible ways to provide access for a base schema table's data. Usage Tracking mechanism connects to V8_RESOURCE_BUNDLE table data using "V8_RESOURCE_BUNDLE" alias and new connection.
Select Navigate , then Administer , then Reporting and Analysis, and then Usage Tracking to setup new schema connection in Administration module.