<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Comparing OBIEE Usage Tracking with NQSQUERY.LOG</title>
	<atom:link href="http://www.rittmanmead.com/2008/10/11/comparing-obiee-usage-tracking-with-nqsquerylog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rittmanmead.com/2008/10/11/comparing-obiee-usage-tracking-with-nqsquerylog/</link>
	<description>Delivered Intelligence</description>
	<lastBuildDate>Wed, 17 Mar 2010 13:47:41 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Marina</title>
		<link>http://www.rittmanmead.com/2008/10/11/comparing-obiee-usage-tracking-with-nqsquerylog/comment-page-1/#comment-12247</link>
		<dc:creator>Marina</dc:creator>
		<pubDate>Thu, 04 Mar 2010 11:39:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.rittmanmead.com/2008/10/11/comparing-obiee-usage-tracking-with-nqsquerylog/#comment-12247</guid>
		<description>Very nice post. I did everything you write, but when i try to see data in table s_nq_acct is no data, and in log file (nqServer.log) give an error like ‘ora-00984: column not allowed here’. Could you help me? 
thanks a lot</description>
		<content:encoded><![CDATA[<p>Very nice post. I did everything you write, but when i try to see data in table s_nq_acct is no data, and in log file (nqServer.log) give an error like ‘ora-00984: column not allowed here’. Could you help me?<br />
thanks a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Naveen Sheik</title>
		<link>http://www.rittmanmead.com/2008/10/11/comparing-obiee-usage-tracking-with-nqsquerylog/comment-page-1/#comment-11955</link>
		<dc:creator>Naveen Sheik</dc:creator>
		<pubDate>Fri, 05 Feb 2010 12:41:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.rittmanmead.com/2008/10/11/comparing-obiee-usage-tracking-with-nqsquerylog/#comment-11955</guid>
		<description>Hi Lief,

I had been facing the same problem as you were. Please check the following observations as you set up your usage tracking -

1.S_NQ_ACCT - We may be using a view of this table. Make sure we give the path to where the table haas been created in the NQSCONFIG.INI file.
2.In your connection pool settings the user you define should have write access to the database where you have created your table.
3.Make sure you specify correct Database -&gt; Schema -&gt; Catalog -&gt; Table names in NQSCONFIG.INI file. Best way is to import S_NQ_ACCT table into your RPD. Dont rename any database or schema.(we tend to rename as in above example). These names should go into the NQSCONFIG.INI as they appear in the RPD Physical layer after the import. 
4.Please refer the server log file (NQServer) in D:\OracleBI\server\Log to get any tips as to why the Usage tracking fails.</description>
		<content:encoded><![CDATA[<p>Hi Lief,</p>
<p>I had been facing the same problem as you were. Please check the following observations as you set up your usage tracking -</p>
<p>1.S_NQ_ACCT &#8211; We may be using a view of this table. Make sure we give the path to where the table haas been created in the NQSCONFIG.INI file.<br />
2.In your connection pool settings the user you define should have write access to the database where you have created your table.<br />
3.Make sure you specify correct Database -&gt; Schema -&gt; Catalog -&gt; Table names in NQSCONFIG.INI file. Best way is to import S_NQ_ACCT table into your RPD. Dont rename any database or schema.(we tend to rename as in above example). These names should go into the NQSCONFIG.INI as they appear in the RPD Physical layer after the import.<br />
4.Please refer the server log file (NQServer) in D:\OracleBI\server\Log to get any tips as to why the Usage tracking fails.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kumar</title>
		<link>http://www.rittmanmead.com/2008/10/11/comparing-obiee-usage-tracking-with-nqsquerylog/comment-page-1/#comment-11954</link>
		<dc:creator>Kumar</dc:creator>
		<pubDate>Fri, 05 Feb 2010 08:44:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.rittmanmead.com/2008/10/11/comparing-obiee-usage-tracking-with-nqsquerylog/#comment-11954</guid>
		<description>Hai Leif,
I am too getting the same &quot;No result&quot; as output. Can you tell me how you sorted it out.</description>
		<content:encoded><![CDATA[<p>Hai Leif,<br />
I am too getting the same &#8220;No result&#8221; as output. Can you tell me how you sorted it out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rama</title>
		<link>http://www.rittmanmead.com/2008/10/11/comparing-obiee-usage-tracking-with-nqsquerylog/comment-page-1/#comment-10985</link>
		<dc:creator>Rama</dc:creator>
		<pubDate>Mon, 12 Oct 2009 17:34:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.rittmanmead.com/2008/10/11/comparing-obiee-usage-tracking-with-nqsquerylog/#comment-10985</guid>
		<description>Hi Mark,

Nice article! 
I question on Usage statistics.  
At what point does OBIEE insert records into the s_nq_acct table?
 1) At the time user logs in and runs a report 
       OR
 2) When the report execution is complete?

What happens during server crash or core?
Does anything go into Usage at all?

Thanks in advance,
Rama</description>
		<content:encoded><![CDATA[<p>Hi Mark,</p>
<p>Nice article!<br />
I question on Usage statistics.<br />
At what point does OBIEE insert records into the s_nq_acct table?<br />
 1) At the time user logs in and runs a report<br />
       OR<br />
 2) When the report execution is complete?</p>
<p>What happens during server crash or core?<br />
Does anything go into Usage at all?</p>
<p>Thanks in advance,<br />
Rama</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ahmed</title>
		<link>http://www.rittmanmead.com/2008/10/11/comparing-obiee-usage-tracking-with-nqsquerylog/comment-page-1/#comment-10614</link>
		<dc:creator>Ahmed</dc:creator>
		<pubDate>Wed, 26 Aug 2009 13:38:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.rittmanmead.com/2008/10/11/comparing-obiee-usage-tracking-with-nqsquerylog/#comment-10614</guid>
		<description>Hello Mark,

Newbie here,

I have to create some usage statistics reports like user login count, modules accessed etc.

Can you kindly give some idea as to how can i create this?

Regards</description>
		<content:encoded><![CDATA[<p>Hello Mark,</p>
<p>Newbie here,</p>
<p>I have to create some usage statistics reports like user login count, modules accessed etc.</p>
<p>Can you kindly give some idea as to how can i create this?</p>
<p>Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mahesh</title>
		<link>http://www.rittmanmead.com/2008/10/11/comparing-obiee-usage-tracking-with-nqsquerylog/comment-page-1/#comment-10455</link>
		<dc:creator>Mahesh</dc:creator>
		<pubDate>Tue, 04 Aug 2009 02:20:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.rittmanmead.com/2008/10/11/comparing-obiee-usage-tracking-with-nqsquerylog/#comment-10455</guid>
		<description>Nice article Mark! One thing we have been struggling with is linking physical SQL to the usage tracking details. I know that we can get the physical SQL from the session logs, so that&#039;s got to be stored somewhere in the DB...

This will enable end to end reporting on performance of the system as well as linking it to DB queries so that we can take action against the problem queries. Appreciate any pointers in this direction.</description>
		<content:encoded><![CDATA[<p>Nice article Mark! One thing we have been struggling with is linking physical SQL to the usage tracking details. I know that we can get the physical SQL from the session logs, so that&#8217;s got to be stored somewhere in the DB&#8230;</p>
<p>This will enable end to end reporting on performance of the system as well as linking it to DB queries so that we can take action against the problem queries. Appreciate any pointers in this direction.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leif</title>
		<link>http://www.rittmanmead.com/2008/10/11/comparing-obiee-usage-tracking-with-nqsquerylog/comment-page-1/#comment-10429</link>
		<dc:creator>Leif</dc:creator>
		<pubDate>Thu, 30 Jul 2009 13:52:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.rittmanmead.com/2008/10/11/comparing-obiee-usage-tracking-with-nqsquerylog/#comment-10429</guid>
		<description>Sorted.</description>
		<content:encoded><![CDATA[<p>Sorted.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leif</title>
		<link>http://www.rittmanmead.com/2008/10/11/comparing-obiee-usage-tracking-with-nqsquerylog/comment-page-1/#comment-10427</link>
		<dc:creator>Leif</dc:creator>
		<pubDate>Thu, 30 Jul 2009 08:41:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.rittmanmead.com/2008/10/11/comparing-obiee-usage-tracking-with-nqsquerylog/#comment-10427</guid>
		<description>Hey and thanks for this, its very nice. Anyhow, i got a little issue - i got every thing set up, connection pools and tables are created, i see it in answers but when i try to run any of the request its like it doesnt log anything. I just get the result : &quot;no result&quot; Ive also configurated NQSconfig file and started the services again without any issues. Its like it wont write to the table.. any ideas ? im new to this so any help would be much appreciated. Regards Leif</description>
		<content:encoded><![CDATA[<p>Hey and thanks for this, its very nice. Anyhow, i got a little issue &#8211; i got every thing set up, connection pools and tables are created, i see it in answers but when i try to run any of the request its like it doesnt log anything. I just get the result : &#8220;no result&#8221; Ive also configurated NQSconfig file and started the services again without any issues. Its like it wont write to the table.. any ideas ? im new to this so any help would be much appreciated. Regards Leif</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Domonic</title>
		<link>http://www.rittmanmead.com/2008/10/11/comparing-obiee-usage-tracking-with-nqsquerylog/comment-page-1/#comment-8871</link>
		<dc:creator>Domonic</dc:creator>
		<pubDate>Sat, 14 Feb 2009 07:14:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.rittmanmead.com/2008/10/11/comparing-obiee-usage-tracking-with-nqsquerylog/#comment-8871</guid>
		<description>For any newbies,like me:

1. Import rather then merge
---------------------------
I&#039;d suggest you use the Import function rather than merge (which I couldn&#039;t for the life of me get to work). Ignore the warning about it being deprecated when you fire it up, it works just fine. 
You need to
a) Copy in the usage repository from the ..\server\sample\usagetracking folder to ..\server\Repository (since it doesn&#039;t use a windows common dialog control, but only lists the repositories in this folder, or is it those in the same folder as your open repository... whatever...)
b) Open up your repository offline (I seem to recall that the import option is disabled whatever you do if you open it online, so don&#039;t get stuck down that path).
c) Select Tools&#124;Options, then the General tab and check &quot;Allow import from the repository&quot; d) Select File&#124;Import&#124;From Repository
e) Select UsageTracking.rpd, the password is blank.
f) Select the Catalogs drop down
g) Select the &quot;Usage Tracking&quot; catalog and press &quot;Add with Children&quot;
h) Press Next and then finish

2. Set up the connections
-------------------------
I know it&#039;s obvious, but I thought I might as well mention it while I&#039;m about it, especially since if you are lazy like me (and you saw all those extra projects that you get faced with, thought there was maybe a whole load of stuff that the developers hadn&#039;t bothered to take out) and only thought you need set it for the &quot;Usage Tracking Writer Connection Pool&quot; referenced in the config file. Well, that connection pool&#039;s just for the write. The read uses the plain old &quot;Connection Pool&quot;. So set them both up, specifying your Data Source Name, User Name and Password. 

Then, all that&#039;s left to do is press save and you&#039;re off - Log in, run some reports and then check your usage stats in answers. Marvellous, heartening stuff.</description>
		<content:encoded><![CDATA[<p>For any newbies,like me:</p>
<p>1. Import rather then merge<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
I&#8217;d suggest you use the Import function rather than merge (which I couldn&#8217;t for the life of me get to work). Ignore the warning about it being deprecated when you fire it up, it works just fine.<br />
You need to<br />
a) Copy in the usage repository from the ..\server\sample\usagetracking folder to ..\server\Repository (since it doesn&#8217;t use a windows common dialog control, but only lists the repositories in this folder, or is it those in the same folder as your open repository&#8230; whatever&#8230;)<br />
b) Open up your repository offline (I seem to recall that the import option is disabled whatever you do if you open it online, so don&#8217;t get stuck down that path).<br />
c) Select Tools|Options, then the General tab and check &#8220;Allow import from the repository&#8221; d) Select File|Import|From Repository<br />
e) Select UsageTracking.rpd, the password is blank.<br />
f) Select the Catalogs drop down<br />
g) Select the &#8220;Usage Tracking&#8221; catalog and press &#8220;Add with Children&#8221;<br />
h) Press Next and then finish</p>
<p>2. Set up the connections<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
I know it&#8217;s obvious, but I thought I might as well mention it while I&#8217;m about it, especially since if you are lazy like me (and you saw all those extra projects that you get faced with, thought there was maybe a whole load of stuff that the developers hadn&#8217;t bothered to take out) and only thought you need set it for the &#8220;Usage Tracking Writer Connection Pool&#8221; referenced in the config file. Well, that connection pool&#8217;s just for the write. The read uses the plain old &#8220;Connection Pool&#8221;. So set them both up, specifying your Data Source Name, User Name and Password. </p>
<p>Then, all that&#8217;s left to do is press save and you&#8217;re off &#8211; Log in, run some reports and then check your usage stats in answers. Marvellous, heartening stuff.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Qinghe</title>
		<link>http://www.rittmanmead.com/2008/10/11/comparing-obiee-usage-tracking-with-nqsquerylog/comment-page-1/#comment-6614</link>
		<dc:creator>Qinghe</dc:creator>
		<pubDate>Thu, 06 Nov 2008 14:40:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.rittmanmead.com/2008/10/11/comparing-obiee-usage-tracking-with-nqsquerylog/#comment-6614</guid>
		<description>1. First we run the script:

C:\OracleBI\server\Schema\SAACCT.MSSQL.sql

DROP TABLE S_NQ_ACCT;

create table S_NQ_ACCT
(
	USER_NAME		varchar(128),
	REPOSITORY_NAME		varchar(128),
	SUBJECT_AREA_NAME	varchar(128),
	NODE_ID			varchar(15),
	START_TS		datetime,
	START_DT		datetime,
	START_HOUR_MIN		char(5),
	END_TS			datetime,
	END_DT			datetime,
	END_HOUR_MIN		char(5),
	QUERY_TEXT		varchar(1024),
	SUCCESS_FLG		NUMERIC(10,0),
	ROW_COUNT		NUMERIC(10,0),
	TOTAL_TIME_SEC		NUMERIC(10,0),
	COMPILE_TIME_SEC	NUMERIC(10,0),
	NUM_DB_QUERY		NUMERIC(10,0),
	CUM_DB_TIME_SEC		NUMERIC(10,0),
	CUM_NUM_DB_ROW		NUMERIC(10,0),
	CACHE_IND_FLG		char(1) default &#039;N&#039; not null,
	QUERY_SRC_CD		varchar(30) default &#039;&#039; not null,
	SAW_SRC_PATH		varchar(250) default &#039;&#039; not null,
	SAW_DASHBOARD		varchar(150) default &#039;&#039; not null,
	SAW_DASHBOARD_PG	varchar(150) default &#039;&#039; not null,
	PRESENTATION_NAME	varchar(128) default &#039;&#039; not null,
	ERROR_TEXT		varchar(250) default &#039;&#039; not null,
	RUNAS_USER_NAME		varchar(128) default &#039;&#039; not null,
	NUM_CACHE_INSERTED	NUMERIC(10,0) default null,
	NUM_CACHE_HITS		NUMERIC(10,0) default null
);

CREATE CLUSTERED INDEX S_NQ_ACCT_M1 ON S_NQ_ACCT 
(START_DT, START_HOUR_MIN, USER_NAME);

CREATE INDEX S_NQ_ACCT_M2 ON S_NQ_ACCT
(START_HOUR_MIN, USER_NAME);

create index S_NQ_ACCT_M3 on S_NQ_ACCT
(USER_NAME);


2. Secondly we run the scripts located in C:\OracleBI\server\Sample\usagetracking\SQL_Server_Time
to create the tables S_ETL_DAY and S_ETL_TIME_DAY


--
-- Target DBMS : SQL_Server
--


-- 
-- TABLE: S_ETL_DAY
--

DROP TABLE S_ETL_DAY 
;

CREATE TABLE S_ETL_DAY(
    DAY_DT	                    datetime       null,
    CAL_MONTH			int            null,
    DAY_OF_MONTH              int            null,
    DAY_NAME                      char(12)       null,
    DAY_OF_YEAR                int            null,
    DAY_OF_WEEK               int            null,
    CAL_WEEK	 	        int            null,
    MONTH_NAME                 char(15)       null,
    CAL_YEAR                       int            null,
    PER_NAME_MONTH        varchar(50)   null,
    PER_NAME_QTR	        varchar(20)    null,
    FSCL_YEAR                     int            null,
    FSCL_QTR                       char(5)        null,
    DAY_AGO_DT                  datetime       null,
    WEEK_AGO_DT               datetime       null,
    MONTH_AGO_DT             datetime       null,
    QUARTER_AGO_DT         datetime       null,
    YEAR_AGO_DT                datetime       null,
    ROW_WID		        int                null
)
;


--
-- Target DBMS : MS SQL Server
--


-- 
-- TABLE: S_ETL_TIME_DAY
--

DROP TABLE S_ETL_TIME_DAY;

CREATE TABLE S_ETL_TIME_DAY(
    TIME_SLICE	          datetime       NULL,
    HOURS                           int            NULL,
    MINUTES                        int            NULL,
    HAGO                             datetime       NULL,
    MIN_SEQ                        smallint       NULL,
    HOUR_MIN                     varchar(5)     NULL
)
;



create view NQ_LOGIN_GROUP as
select distinct USER_NAME as LOGIN, USER_NAME as RESP
from S_NQ_ACCT;



3. Populate data into the tables S_ETL_DAY and S_ETL_TIME_DAY
using the scripts 

C:\OracleBI\server\Sample\usagetracking\SQL_Server_Time\SQLServer_create_nQ_Clock.sql
C:\OracleBI\server\Sample\usagetracking\SQL_Server_Time\SQLServer_create_nQ_Calendar.sql


4. Changing the configuration file C:\OracleBI\server\Config\NQSConfig.INI
related to the section [ USAGE_TRACKING ]:

[ USAGE_TRACKING ]

ENABLE                         = YES;

//==============================================================================
//  Parameters used for writing data to a flat file (i.e. DIRECT_INSERT = NO).
//
STORAGE_DIRECTORY              = &quot;&quot;;
CHECKPOINT_INTERVAL_MINUTES    = 5;
FILE_ROLLOVER_INTERVAL_MINUTES = 30;
CODE_PAGE                      = &quot;ANSI&quot;;  // ANSI, UTF8, 1252, etc.
//
//==============================================================================

DIRECT_INSERT                  = YES;

//==============================================================================
//  Parameters used for inserting data into a table (i.e. DIRECT_INSERT = YES).
//
PHYSICAL_TABLE_NAME            = &quot;OBI Usage Tracking&quot;.&quot;Catalog&quot;.&quot;dbo&quot;.&quot;S_NQ_ACCT&quot; ;  // Or &quot;&quot;.&quot;&quot;.&quot;&quot; ;
CONNECTION_POOL                = &quot;OBI Usage Tracking&quot;.&quot;Usage Tracking Writer Connection Pool&quot; ;
BUFFER_SIZE                    = 10 MB ;
BUFFER_TIME_LIMIT_SECONDS      = 5 ;
NUM_INSERT_THREADS             = 5 ;
MAX_INSERTS_PER_TRANSACTION    = 1 ;

5. Merge the existing UsageTracking RPD into your RPD

6. Merge the existing UsageTracking web catalog

7. Others as mentioned in this article


Cheers,
Qinghe</description>
		<content:encoded><![CDATA[<p>1. First we run the script:</p>
<p>C:\OracleBI\server\Schema\SAACCT.MSSQL.sql</p>
<p>DROP TABLE S_NQ_ACCT;</p>
<p>create table S_NQ_ACCT<br />
(<br />
	USER_NAME		varchar(128),<br />
	REPOSITORY_NAME		varchar(128),<br />
	SUBJECT_AREA_NAME	varchar(128),<br />
	NODE_ID			varchar(15),<br />
	START_TS		datetime,<br />
	START_DT		datetime,<br />
	START_HOUR_MIN		char(5),<br />
	END_TS			datetime,<br />
	END_DT			datetime,<br />
	END_HOUR_MIN		char(5),<br />
	QUERY_TEXT		varchar(1024),<br />
	SUCCESS_FLG		NUMERIC(10,0),<br />
	ROW_COUNT		NUMERIC(10,0),<br />
	TOTAL_TIME_SEC		NUMERIC(10,0),<br />
	COMPILE_TIME_SEC	NUMERIC(10,0),<br />
	NUM_DB_QUERY		NUMERIC(10,0),<br />
	CUM_DB_TIME_SEC		NUMERIC(10,0),<br />
	CUM_NUM_DB_ROW		NUMERIC(10,0),<br />
	CACHE_IND_FLG		char(1) default &#8216;N&#8217; not null,<br />
	QUERY_SRC_CD		varchar(30) default &#8221; not null,<br />
	SAW_SRC_PATH		varchar(250) default &#8221; not null,<br />
	SAW_DASHBOARD		varchar(150) default &#8221; not null,<br />
	SAW_DASHBOARD_PG	varchar(150) default &#8221; not null,<br />
	PRESENTATION_NAME	varchar(128) default &#8221; not null,<br />
	ERROR_TEXT		varchar(250) default &#8221; not null,<br />
	RUNAS_USER_NAME		varchar(128) default &#8221; not null,<br />
	NUM_CACHE_INSERTED	NUMERIC(10,0) default null,<br />
	NUM_CACHE_HITS		NUMERIC(10,0) default null<br />
);</p>
<p>CREATE CLUSTERED INDEX S_NQ_ACCT_M1 ON S_NQ_ACCT<br />
(START_DT, START_HOUR_MIN, USER_NAME);</p>
<p>CREATE INDEX S_NQ_ACCT_M2 ON S_NQ_ACCT<br />
(START_HOUR_MIN, USER_NAME);</p>
<p>create index S_NQ_ACCT_M3 on S_NQ_ACCT<br />
(USER_NAME);</p>
<p>2. Secondly we run the scripts located in C:\OracleBI\server\Sample\usagetracking\SQL_Server_Time<br />
to create the tables S_ETL_DAY and S_ETL_TIME_DAY</p>
<p>&#8211;<br />
&#8211; Target DBMS : SQL_Server<br />
&#8211;</p>
<p>&#8211;<br />
&#8211; TABLE: S_ETL_DAY<br />
&#8211;</p>
<p>DROP TABLE S_ETL_DAY<br />
;</p>
<p>CREATE TABLE S_ETL_DAY(<br />
    DAY_DT	                    datetime       null,<br />
    CAL_MONTH			int            null,<br />
    DAY_OF_MONTH              int            null,<br />
    DAY_NAME                      char(12)       null,<br />
    DAY_OF_YEAR                int            null,<br />
    DAY_OF_WEEK               int            null,<br />
    CAL_WEEK	 	        int            null,<br />
    MONTH_NAME                 char(15)       null,<br />
    CAL_YEAR                       int            null,<br />
    PER_NAME_MONTH        varchar(50)   null,<br />
    PER_NAME_QTR	        varchar(20)    null,<br />
    FSCL_YEAR                     int            null,<br />
    FSCL_QTR                       char(5)        null,<br />
    DAY_AGO_DT                  datetime       null,<br />
    WEEK_AGO_DT               datetime       null,<br />
    MONTH_AGO_DT             datetime       null,<br />
    QUARTER_AGO_DT         datetime       null,<br />
    YEAR_AGO_DT                datetime       null,<br />
    ROW_WID		        int                null<br />
)<br />
;</p>
<p>&#8211;<br />
&#8211; Target DBMS : MS SQL Server<br />
&#8211;</p>
<p>&#8211;<br />
&#8211; TABLE: S_ETL_TIME_DAY<br />
&#8211;</p>
<p>DROP TABLE S_ETL_TIME_DAY;</p>
<p>CREATE TABLE S_ETL_TIME_DAY(<br />
    TIME_SLICE	          datetime       NULL,<br />
    HOURS                           int            NULL,<br />
    MINUTES                        int            NULL,<br />
    HAGO                             datetime       NULL,<br />
    MIN_SEQ                        smallint       NULL,<br />
    HOUR_MIN                     varchar(5)     NULL<br />
)<br />
;</p>
<p>create view NQ_LOGIN_GROUP as<br />
select distinct USER_NAME as LOGIN, USER_NAME as RESP<br />
from S_NQ_ACCT;</p>
<p>3. Populate data into the tables S_ETL_DAY and S_ETL_TIME_DAY<br />
using the scripts </p>
<p>C:\OracleBI\server\Sample\usagetracking\SQL_Server_Time\SQLServer_create_nQ_Clock.sql<br />
C:\OracleBI\server\Sample\usagetracking\SQL_Server_Time\SQLServer_create_nQ_Calendar.sql</p>
<p>4. Changing the configuration file C:\OracleBI\server\Config\NQSConfig.INI<br />
related to the section [ USAGE_TRACKING ]:</p>
<p>[ USAGE_TRACKING ]</p>
<p>ENABLE                         = YES;</p>
<p>//==============================================================================<br />
//  Parameters used for writing data to a flat file (i.e. DIRECT_INSERT = NO).<br />
//<br />
STORAGE_DIRECTORY              = &#8220;&#8221;;<br />
CHECKPOINT_INTERVAL_MINUTES    = 5;<br />
FILE_ROLLOVER_INTERVAL_MINUTES = 30;<br />
CODE_PAGE                      = &#8220;ANSI&#8221;;  // ANSI, UTF8, 1252, etc.<br />
//<br />
//==============================================================================</p>
<p>DIRECT_INSERT                  = YES;</p>
<p>//==============================================================================<br />
//  Parameters used for inserting data into a table (i.e. DIRECT_INSERT = YES).<br />
//<br />
PHYSICAL_TABLE_NAME            = &#8220;OBI Usage Tracking&#8221;.&#8221;Catalog&#8221;.&#8221;dbo&#8221;.&#8221;S_NQ_ACCT&#8221; ;  // Or &#8220;&#8221;.&#8221;".&#8221;" ;<br />
CONNECTION_POOL                = &#8220;OBI Usage Tracking&#8221;.&#8221;Usage Tracking Writer Connection Pool&#8221; ;<br />
BUFFER_SIZE                    = 10 MB ;<br />
BUFFER_TIME_LIMIT_SECONDS      = 5 ;<br />
NUM_INSERT_THREADS             = 5 ;<br />
MAX_INSERTS_PER_TRANSACTION    = 1 ;</p>
<p>5. Merge the existing UsageTracking RPD into your RPD</p>
<p>6. Merge the existing UsageTracking web catalog</p>
<p>7. Others as mentioned in this article</p>
<p>Cheers,<br />
Qinghe</p>
]]></content:encoded>
	</item>
</channel>
</rss>
