This chapter explains how to enable the Usage Tracking feature for Oracle Healthcare Foundation in OBIEE. This allows you to run the reports in the Audit Trail and Usage Tracking Dashboard.
Make sure the Repository Creation Utility (RCU) has been successfully run while installing OBIEE. You should have the <prefix>_BIPLATFORM
schema installed with the following tables in it:
S_NQ_ACCT
S_NQ_DB_ACCT
S_NQ_INITBLOCK
Go to <OBIEE_HOME>/bi/bifoundation/samples/usagetracking
.
Extract the UsageTracking-datafiles.zip
archive.
Connect to the <prefix>_BIPLATFORM
schema and execute the following SQL scripts in order:
Oracle_create_nQ_Calendar.sql
Oracle_create_nQ_Clock.sql
Oracle_nQ_Calendar.sql
Oracle_nQ_Clock.sql
Create a view in the <prefix>_BIPLATFORM
schema:
CREATE OR REPLACE VIEW nq_login_group AS SELECT DISTINCT user_name AS login FROM s_nq_acct;
Go to <OBIEE_HOME>/user_projects/domains/bi_domain/config/fmwconfig/biconfig/OBIS/
.
Open the NQSConfig.INI
file in a text editor.
In the [Usage Tracking] section set the ENABLE
parameter to YES
.
Set the DIRECT_INSERT
parameter to YES
.
Set the PHYSICAL_TABLE_NAME
parameter to point to the S_NQ_ACCT table in the <prefix>_BIPLATFORM schema in the following format: "<Database>"."<Catalog>"."<Schema>"."<Table>";
Use the database, catalog, schema, and table names predefined in the OHF SSA RPD file:
Database: "OHF Usage Tracking"
Catalog: "Catalog"
Schema: "dbo"
Table Name: "S_NQ_ACCT"
Set the CONNECTION_POOL
parameter in the following format "<Database>"."<Connection Pool>";
Use the database and connection pool values predefined in the OHF SSA RPD file:
Database: "OHF Usage Tracking"
Connection Pool: "OHF Usage Tracking Connection Pool"
Uncomment the INIT_BLOCK_TABLE_NAME
parameter and set it to point to the S_NQ_INITBLOCK table in the <prefix>_BIPLATFORM schema in the following format: "<Database>"."<Catalog>"."<Schema>"."<Table>";
Use the following values:
Database: "OHF Usage Tracking"
Catalog: "Catalog"
Schema: "dbo"
Table Name: "S_NQ_INITBLOCK"
Uncomment the INIT_BLOCK_CONNECTION_POOL
parameter and set it to refer to the connection pool for writing statuses to the S_NQ_INITBLOCK table in the <prefix>_BIPLATFORM schema in the following format: "<Database>"."<Connection Pool>";
Use the database and connection pool values predefined in the OHF SSA RPD file:
Database: "OHF Usage Tracking"
Connection Pool: "OHF Usage Tracking Connection Pool"
The above parameters should be set as below:
===============================================================================
# Parameters used for inserting data into the table (i.e. DIRECT_INSERT = YES).
#
# Init-Block Tracking Options are commented out and as a result disabled.
# To enable Init-Block Tracking Feature, define the two parameters for
# Init-Block, INIT_BLOCK_TABLE_NAME and INIT_BLOCK_CONNECTION_POOL.
#
PHYSICAL_TABLE_NAME = "OHF Usage Tracking"."Catalog"."dbo"."S_NQ_ACCT"; # Or "<Database>"."<Schema>"."<Table>" ;
CONNECTION_POOL = "OHF Usage Tracking"."OHF Usage Tracking Connection Pool";
INIT_BLOCK_TABLE_NAME = "OHF Usage Tracking"."Catalog"."dbo"."S_NQ_INITBLOCK" ; # Or "<Database>"."<Schema>"."<Table>" ;
INIT_BLOCK_CONNECTION_POOL = "OHF Usage Tracking"."OHF Usage Tracking Connection Pool";
Stop and restart the OBIEE Services using the stop and start scripts available in <OBIEE_HOME>/user_projects/domains/bi_domain/bitools/bin
.
Update the OHF Usage Tracking Connection Pool in the OHF SSA RPD file to point to the <prefix>_BIPLATFORM schema:
In the Oracle BI Administration Tool, navigate to the selfserviceanalytics\hcd_rpd
folder.
Open the ohf_ssa_hcd.rpd
file.
In the RPD Physical layer, expand OHF Usage Tracking and double-click OHF Usage Tracking Connection Pool.
Update the data source name with the database host name, port number, and service name of the <prefix>_BIPLATFORM
schema.
Update the username as the <prefix>_BIPLATFORM
schema name.
Enter the schema password and confirm.
Save the ohf_ssa_hcd.rpd
file and choose No when prompted for Consistency Check.
Use the datamodel.sh
utility to upload the RPD file to the OBIEE server:
Go to [OBIEE_HOME]/user_projects/domains/bi/bitools/bin/
.
Run the datamodel.sh
utility using the following syntax:
datamodel.sh uploadrpd -I <location of rpd file to be uploaded> -W <RPDpwd> -SI <Service Instance Name> -U <weblogic user> -P <weblogic password>
To find the Service Instance Name, look in the <OBIEE Home>/user_projects/domains/bi/bidata/service_instances
directory. For example:
After usage tracking is enabled, OBIEE starts to log usage information and statistics and display this information in the Audit Trail and Usage Tracking Dashboard.