11g usage tracking

I have installed 11g r5 and I need to configure Usage Tracking
but I cannot find ddl-file to create S_NQ_ACCT table.
...bifoundation\OracleBIServerComponent\coreapplication_obis1\schema\SAACCT.Oracle.sql
where I can find this ddl-file?

You can use this,
CREATE TABLE S_NQ_ACCT
USER_NAME VARCHAR2(128 CHAR),
REPOSITORY_NAME VARCHAR2(128 CHAR),
SUBJECT_AREA_NAME VARCHAR2(128 CHAR),
NODE_ID VARCHAR2(15 CHAR),
START_TS DATE,
START_DT DATE,
START_HOUR_MIN CHAR(5 CHAR),
END_TS DATE,
END_DT DATE,
END_HOUR_MIN CHAR(5 CHAR),
QUERY_TEXT VARCHAR2(1024 CHAR),
QUERY_BLOB CLOB,
QUERY_KEY VARCHAR2(128 CHAR),
SUCCESS_FLG NUMBER(10),
ROW_COUNT NUMBER(10),
TOTAL_TIME_SEC NUMBER(10),
COMPILE_TIME_SEC NUMBER(10),
NUM_DB_QUERY NUMBER(10),
***DBTIME_SEC NUMBER(10),
***NUMDB_ROW NUMBER(10),
CACHE_IND_FLG CHAR(1 CHAR) DEFAULT 'N' NOT NULL,
QUERY_SRC_CD VARCHAR2(30 CHAR) DEFAULT '',
SAW_SRC_PATH VARCHAR2(250 CHAR) DEFAULT '',
SAW_DASHBOARD VARCHAR2(150 CHAR) DEFAULT '',
SAW_DASHBOARD_PG VARCHAR2(150 CHAR) DEFAULT '',
PRESENTATION_NAME VARCHAR2(128 CHAR) DEFAULT '',
IMPERSONATOR_USER_NAME VARCHAR2(128 CHAR) DEFAULT '',
NUM_CACHE_INSERTED NUMBER(10) DEFAULT null,
NUM_CACHE_HITS NUMBER(10) DEFAULT null
)

Similar Messages

  • OBIEE 11g - Usage Tracking Not Working

    Dear All,
    I have enabled the usage Tracking in OBIEE 11g by using Setting up Usage Tracking in Oracle BI 11g guide.
    Still i am getting the following error
    Usage Tracking not started due to non-existent Usage Tracking table "12-Usage Tracking"."Usage Tracking Schema"."S_NQ_ACCT".
    In my RPD,
    Database Name : "12-Usage Tracking"
    Physical Schema Name : "Usage Tracking Schema"
    Physical Table Name : "S_NQ_ACCT"
    This table reside under BIPLATFORM Schema in Oracle.
    I have followed the steps mentioned in the Document, still unable to find why getting such error. Please point out if any mistake exists.
    Please advice.

    Hi,
    Good for you.
    Maybe you can post the solution and how you solved your issue to help other users having the same problem and then close the thread (currently it's still This question is Not Answered.)

  • OBIEE 11g - Usage Tracking - All details are not captured

    Hi
    We have implemented USAGE TRACKING in our RPD on OBIEE 11.1.1.5. It is working fine, only in few cases it is failing... failing to update with appropriate information...
    For the field SUCCESS_FLG the value is populated as 3 - which means "The query failed due to some other reason" as per documentation. When checked the logs, there is no much information in that to conclude what went wrong. Log level is set to 3.
    My question is, What are the possible reasons to have this success flag as 3? To capture all the details in the table S_NQ_ACCT, what need to be done? Any settings change?
    Please share your thoughts...
    Thanks,

    Hi,
    Good for you.
    Maybe you can post the solution and how you solved your issue to help other users having the same problem and then close the thread (currently it's still This question is Not Answered.)

  • OBIEE 11g Usage Tracking -

    Hello,
    I'm looking for a better way than Administration/ Manage Sessions to keep an eye on long-running queries.
    Is there a way to get OBI to place information about currently running (started but not ended) queries into usage tracking so that I can see long-running reports though an analysis in the Usage Tracking subject area?
    As far as I can see, I can only query completed reports/dashboards from the usage Tracking Subject area. The "status" column in the Manage Session display is not availalble in the Usage Tracking subject area and a filter on End Time = null yields no results. Any ideas/strategies welcome! Thanks.

    You could use the nqquery.log to look for queries that have started but not finished. You'd need to parse it for relevant start/finish and match up the IDs.
    There is an nqquery.log parser on MOS somewhere, that might be a good starting point.

  • OBIEE 11g Usage Tracking - Physical SQL

    Hi All,
    The Query Text column gives me only the logical SQL. The Log Level is set at 2. How can I get the physical SQL via Usage tracking?
    Thanks for your time and help.

    Hi,
    Good for you.
    Maybe you can post the solution and how you solved your issue to help other users having the same problem and then close the thread (currently it's still This question is Not Answered.)

  • OBIEE 11G - Usage Tracking - Table S_NQ_DB_ACCT

    Hi
    I successfully set up usage tracking in Obiee 11 and the table S_NQ_ACCT gets a lot of new records. Basically it's working.
    In the nqserver.log I get some errors concerning a new table S_NQ_DB_ACCT:
    [nQSError: 17001] Oracle Error code: 942, message: ORA-00942: table or view does not exist
    at OCI call OCIStmtExecute: INSERT INTO S_NQ_DB_ACCT (ID,LOGICAL_QUERY_ID,QUERY_TEXT,QUERY_BLOB,TIME_SEC,ROW_COUNT,START_TS,START_DT,START_HOUR_MIN,END_TS,END_DT,END_HOUR_MIN) VALUES (:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,:12).
    This is an additional Usage Tracking Table which didn't exist in OBIEE 10G.
    I configured the table as S_NQ_ACCT in the same place in the repositry/connection pool. Writing to this table should be possible.
    Does anybody has an idea what could be wrong? Does another user fill data to this table than the user which fills data to S_NQ_ACCT?
    Thank you

    Hi
    Thank you.
    I use the table within the default RCU created schema. What I don't understand ist why the table S_NQ_ACCT gets a lot of records (because I set the loglevel) but S_NQ_DB_ACCT keeps empty with the error in the nqserver.log. I mean if one table works then the other should be working too? I checked also the permissions which are the same for both tables.
    [2012-06-04T15:14:39.000+00:00] [OracleBIServerComponent] [ERROR:1] [] [] [ecid: 7d4f9e9d968c0bfe:-39c197c9:13773b9d89f:-8000-000000000005c768] [tid: 18e0] [nQSError: 17011] SQL statement execution failed. [[
    [nQSError: 17001] Oracle Error code: 942, message: ORA-00942: table or view does not exist
    at OCI call OCIStmtExecute: INSERT INTO S_NQ_DB_ACCT (ID,LOGICAL_QUERY_ID,QUERY_TEXT,QUERY_BLOB,TIME_SEC,ROW_COUNT,START_TS,START_DT,START_HOUR_MIN,END_TS,END_DT,END_HOUR_MIN) VALUES (:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,:12).
    ]]

  • While doing usage tracking

    Hi everyone,
    when i am doing usage tracking i am getting below error
    [2012-12-11T15:39:11.000+00:00] [OracleBIServerComponent] [ERROR:1] [] [] [ecid: 919a4c7b38fb3847:-5476f916:13b8a33ecad:-8000-0000000000000b78] [tid: e9c] [nQSError: 17011] SQL statement execution failed. [[
    [nQSError: 17001] Oracle Error code: 984, message: ORA-00984: column not allowed here
    at OCI call OCIStmtExecute: INSERT INTO "S_NQ_ACCT" (USER_NAME, REPOSITORY_NAME, SUBJECT_AREA_NAME, NODE_ID, START_TS, START_DT, START_HOUR_MIN, END_TS, END_DT, END_HOUR_MIN, QUERY_TEXT, QUERY_BLOB, QUERY_KEY, SUCCESS_FLG, ROW_COUNT, TOTAL_TIME_SEC, COMPILE_TIME_SEC, NUM_DB_QUERY, CUM_DB_TIME_SEC, CUM_NUM_DB_ROW, CACHE_IND_FLG, QUERY_SRC_CD, SAW_SRC_PATH, SAW_DASHBOARD, SAW_DASHBOARD_PG, PRESENTATION_NAME, IMPERSONATOR_USER_NAME, NUM_CACHE_INSERTED, NUM_CACHE_HITS) VALUES('weblogic','Star','AGG','instance1:corea',convert(datetime, '2012-12-11 21:09:11', 120),convert(datetime, '2012-12-11 00:00:00', 120),'21:09',convert(datetime, '2012-12-11 21:09:11', 120),convert(datetime, '2012-12-11 00:00:00', 120),'21:09','SET VARIABLE PREFERRED_CURRENCY=''AUD'';SELECT 0 s_0, "AGG"."AGG_ST_DATES_OBIEE"."DAT" s_1, "AGG"."AGG_ST_DATES_OBIEE"."DAY" s_2, "AGG"."AGG_ST_DATES_OBIEE"."MONTH" s_3 FROM "AGG" ORDER BY 1, 4 ASC NULLS LAST, 3 ASC NULLS LAST, 2 ASC NULLS LAST','SET VARIABLE PREFERRED_CURRENCY=''AUD'';SELECT 0 s_0, "AGG"."AGG_ST_DATES_OBIEE"."DAT" s_1, "AGG"."AGG_ST_DATES_OBIEE"."DAY" s_2, "AGG"."AGG_ST_DATES_OBIEE"."MONTH" s_3 FROM "AGG" ORDER BY 1, 4 ASC NULLS LAST, 3 ASC NULLS LAST, 2 ASC NULLS LAST','92FBACEDD4F4F5F3C26F1B31C93C97CD',0,2,0,0,1,0,2,'Y','Report','/shared/CCD/WRITE BACK','','','AGG','',0,1).
    And i think it is happening due to these values
    ,convert(datetime, '2012-12-11 21:09:11', 120),convert(datetime, '2012-12-11 00:00:00', 120),'21:09',convert(datetime, '2012-12-11 21:09:11', 120),convert(datetime, '2012-12-11 00:00:00', 120)
    so plz suggest how to resolve this.
    thanks in advance
    Ashish Kumar

    Ok, when you say you merged the Usage Tracking rpd, where did you get it from? Also, which tables did you create in the database for Usage Tracking? Please try to use the rpd here since the one that comes with the installation had issues: http://total-bi.com/2011/09/obiee-11g-usage-tracking-rpd/

  • OBIEE 11g (11.1.1.6) usage tracking migration

    Hi Team,
    I am facing issue in setting up the usage tracking in 11g (11.1.1.6).
    All the tables and views are available in DEV_BIPLATFORM schema. Migration of the the RPD and the Catalog (available under 'sample' folder) is failing.
    Error: Wrong Password.
    I have used the default password of Usage Tracking rpd (Admin123 as well as Administrator) during migration. Even though the migration fails.
    Is there any bug associated with this as i have also tried to open the RPD with 10g (10.1.3.4) and also with 11g (11.1.1.6). In both case, they failed to open.
    Error in 10g:
    [nQSError: 36010] Server version 184 cannot read the newer version 266 of the repository.
    Error in 11g:
    [nQSError: 36015] Please run the upgrade utility obieerpdmigrateutil to upgrade the repository.

    This is a bug.
    Raised SR with Oracle to resolve it. Oracle has provided a new RPD.

  • Usage Tracking in OBIEE 11g - S_NQ_DB_ACCT and S_NQ_ACCT

    Hi Experts,
    How to fetch the physical query using usage tracking in OBIEE 11g, i hope in OBIEE 11g there is a feature to capture the physical query using S_NQ_DB_ACCT.
    I have imported the table S_NQ_ACCT and S_NQ_DB_ACCT in to RPD.
    Please let me know how to join these two tables(Using which Key).
    Thanks.

    Hi,
    Which version are you using it?
    If you in obiee11.1.1.6.0 and above version refer,
    CREATE TABLE [dbo].[S_NQ_ACCT](
         [USER_NAME] [varchar](128) NULL,
         [REPOSITORY_NAME] [varchar](128) NULL,
         [SUBJECT_AREA_NAME] [varchar](128) NULL,
         [NODE_ID] [varchar](15) NULL,
         [START_TS] [datetime] NULL,
         [START_DT] [datetime] NULL,
         [START_HOUR_MIN] [char](5) NULL,
         [END_TS] [datetime] NULL,
         [END_DT] [datetime] NULL,
         [END_HOUR_MIN] [char](5) NULL,
         [QUERY_TEXT] [varchar](4000) NULL,
         [QUERY_BLOB] [ntext] NULL,
         [QUERY_KEY] [varchar](128) NULL,
         [SUCCESS_FLG] [numeric](10, 0) NULL,
         [ROW_COUNT] [numeric](10, 0) NULL,
         [TOTAL_TIME_SEC] [numeric](10, 0) NULL,
         [COMPILE_TIME_SEC] [numeric](10, 0) NULL,
         [NUM_DB_QUERY] [numeric](10, 0) NULL,
         [CUM_DB_TIME_SEC] [numeric](10, 0) NULL,
         [CUM_NUM_DB_ROW] [numeric](10, 0) NULL,
         [CACHE_IND_FLG] [char](1) NOT NULL,
         [QUERY_SRC_CD] [varchar](30) NOT NULL,
         [SAW_SRC_PATH] [varchar](250) NOT NULL,
         [SAW_DASHBOARD] [varchar](150) NOT NULL,
         [SAW_DASHBOARD_PG] [varchar](150) NOT NULL,
         [PRESENTATION_NAME] [varchar](128) NOT NULL,
         [ERROR_TEXT] [varchar](250) NOT NULL,
         [IMPERSONATOR_USER_NAME] [varchar](128) NOT NULL,
         [NUM_CACHE_INSERTED] [numeric](10, 0) NULL,
         [NUM_CACHE_HITS] [numeric](10, 0) NULL
    ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
    this one is working fine and no issue.
    Thanks
    Deva

  • Usage Tracking not displaying in Data in 11g

    Hi Gurus,
    One of my collegues complained that the Usage Tracking(UT) which is OOTB functionality in 11g does not show any data expect the Time table.
    Is this a bug, as UT is pre-configured in 11g, do we need to do any customization for this to make it work.
    Can please anyone help with the steps to troubleshoot.
    Regards,
    Amit

    Hi A,
    The steps are all done they can see the data in the View Data Section in the Physical Layer, but no data is appearing when they create the Reports in Answers, thats kind of weird was my first expression. I asked them to check the Business Model Diagram but they are of the opinion that as it is OOTB functionaly they did not meddle with the BMM.
    Really critical and need to bring the data in the Answer in 11g, any quick help will be appreciated.
    Rgds,
    Amit

  • Usage Tracking Catalog Problem

    I am trying to setup usage tracking in OBIEE running on Windows 2008. Every time I try to open the sample catalog I receive the following error: Error initializing/loading existing Catalog: D:\UsageStatistics\UsageTracking. I have tried the file from three different installs with the same error. I am using 7-Zip to unpack the zip file.
    Any ideas

    Sorry about that -- this is 11g. I haven't gotten far. I have been using blogs like: http://obieeelegant.blogspot.com/2011/08/obiee11g-setting-up-usage-tracking.html to guide me. While looking at the sample files provided I just wanted to take a look at the catalog provided in OBIEEHOME\instances\instance1\bifoundation\OracleBIServerComponent\coreapplication_obis1\sample\usagetracking\usagetracking.zip. When I unzip and then try and open it in offline mode I am getting the error.

  • Usage Tracking Subject Area in OBIEE 11 not visible in Answers

    Hi All,
    I implemented Usage tracking in OBIEE 11G, set the permissions to every one in presentation layer of the rpd. Re started the server, I am able to see Usage Tracking dashboard but not able to see Usage Tracking Subject area in the Answers.
    Please help me..
    Thanks,
    LonaD

    Hi,
    I tried to set privileges under Administration->Manage Privileges->Add respective role to that SA,
    here the respective role is not showing up to add in search. However i have already Created Application Roles and Assigned User Groups to Roles.
    Please help.
    Thanks,
    LonaD

  • ORA-09100 specified length too long for its datatype with Usage Tracking.

    Hello Everyone,
    I'm getting an (ORA-09100 specified length too long for its datatype) (a sample error is provided below) when viewing the "Long-Running Queries" from the default Usage Tracking Dashboard. I've isolated the problem to the logical column "Logical SQL" corresponding to the physical column "QUERY_TEXT" in the table S_NQ_ACCT. Everything else is working correctly. The logical column "Logical SQL" is configured as a VARCHAR of length 1024 and the physical column "QUERY_TEXT" is configured as a VARCHAR2 of length 1024 bytes in an Oracle 11g database. Both are the default configurations and were not changed.
    In the the table S_NQ_ACCT we do have record entries in the field "QUERY_TEXT" that are of length 1024 characters. I've tried various configuration such as increasing the the number of bytes or removing any special character but without any sucess. Currently, my only possible workaround is reducing the "Query_Text" data entries to roughly 700 characters. This makes the error go away. Additional point my character set to WE8ISO8859P15.
    - Any suggestions?
    - Has anyone else ever had this problem?
    - Is this potentially an issue with the ODBC drive? If so, why would ODBC not truncate the field length?
    - What is the maximum length supported by BI, ODBC?
    Thanks in advance for everyones help.
    Regards,
    FBELL
    *******************************Error Message**************************************************
    View Display Error
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 910, message: ORA-00910: specified length too long for its datatype at OCI call OCIStmtExecute: select distinct T38187.QUERY_TEXT as c1 from S_NQ_ACCT T38187 order by c1. [nQSError: 17011] SQL statement execution failed. (HY000)
    SQL Issued: SELECT Topic."Logical SQL" saw_0 FROM "Usage Tracking" ORDER BY saw_0
    *******************************************************************************************

    I beleieve I have found the issue for at least one report.
    We have views in our production environment that call materialized views on another database via db link. They are generated nightly to reduce load for day-old reporting purposes on the Production server.
    I have found that the report in question uses a view with PRODUCT_DESCRIPTION. In the remote database, this is a VARCHAR2(1995 Bytes) column. However, when we create a view in our Production environment that simply calls this materialized view, it moves the length to VARCHAR2(4000).
    The oddest thing is that the longest string stored in the MV for that column is 71 characters long.
    I may be missing something here.... But the view that Discoverer created on the APPS side also has a column length for the PRODUCT_DESCRIPTION column of VARCHAR2(4000) and running the report manually returns results less than that - is this a possible bug?

  • OBIEE usage tracking questions

    Hi,
    I am using OBIEE 11g and we enabled usage tracking.
    Recently, i have observed that some inserts to S_NQ_ACCT table is failing due to "String literal too long" error.
    We have configured VARCHAR(4000)  for QUERY_TEXT column in physical layer which is causing issues since the executing query has more than 4k characters, I would like to configure in such a way that the insert should not fail and  it should exceed with first 4k chars inserted.
    The one way i can think of is, in physical layer importing as a view(with subtr() applied on query_text)  in lieu of physical table.
    Is there any other way i can achieve this?
    Thanks,
    Pandeeswaran

    HI,
    May I know obiee version?
    Can you refer below thread, it sees similar error.
    https://forums.oracle.com/message/9866218
    https://forums.oracle.com/message/10091143
    Thanks,
    Satya

  • OBI 11.1.1.6 Usage Tracking

    Hi,
    I want to enable Usage Tracking in OBI and I'm wondering if I can use table S_NQ_ACCT which was created by RCU and can I create S_ETL_DAY time table in DEV_BIPLATFORM schema created by RCU?

    Yep, that's the right way to do it. Note that the 11.1.1.6 release notes say the bug about having a 10g version of the usage tracking RPD fixed to be 11g doesn't seem right - I still get errors that the version is incompatible.
    Thx,
    Scott

Maybe you are looking for