This section describes the pre-configuration steps for required for enabling Advanced Authentication reports tasks.
Configure the Database for Advanced Authentication Reporting
<username>DB User name</username> <password>DB Password</password> <datasource>Oracle SID, the DSN name used by the Oracle client in the report server</datasource> <server>DB Host name</server>
create or replace FUNCTION IM_Audit_Start_Date (rangeVal int, multiplier int, startdatetime DATE) RETURN DATE is tempid1 DATE; BEGIN if rangeVal = -1 then tempid1 := startdatetime; else case rangeVal when 1 then tempid1 := sysdate - multiplier; --Last N days when 2 then tempid1 := trunc(sysdate, 'DAY') - (7 * multiplier); --weekly when 3 then tempid1 := add_months(trunc(sysdate, 'month'), -multiplier); -- first day of the month when 4 then tempid1 := add_months(trunc(sysdate, 'month'), -(3 * multiplier)); -- quarter of the month when 5 then tempid1 := add_months(trunc(sysdate,'y'), -(12 * multiplier)); --Yearly else tempid1 := sysdate; end case; end if; return tempid1; END; create or replace FUNCTION IM_Audit_End_Date (rangeVal int, enddatetime DATE) RETURN DATE is tempid1 DATE; BEGIN if rangeVal = -1 then tempid1 := enddatetime; else case rangeVal when 1 then tempid1 := sysdate; --Last N days when 2 then tempid1 := trunc(sysdate, 'day') -1 + (1439/1440); --weekly when 3 then tempid1 := trunc(sysdate, 'month') - 1 + (1439/1440); -- last day of the month when 4 then tempid1 := trunc(sysdate, 'month') - 1 + (1439/1440); -- quarter of the month when 5 then tempid1 := trunc(sysdate,'y')-1 + (1439/1440); --Yearly else tempid1 := sysdate; end case; end if; return tempid1; END;
Note: The previous commands are also found in the datefunctions.sql script. If you have access to this script, simply run the datefunctions.sql script file.
Enable the Advanced Authentication Roles
The system enables the Advanced Authentication Manager and the Advanced Authentication Reports User roles.
Now the tenant administrator can request advanced authentication reports in the User Console.
|
Copyright © 2013 CA.
All rights reserved.
|
|