Performance of query poor, cardinality wrong for view

I'm having a real problem with a view that consists of two large-ish tables - on with 80,000,000 rows and the other 2,000,000
I have had this problem before and it was caused by use of the FIRST_ROWS_100 hint. Now I'm using ALL_ROWS and I'm still getting it.
Basically the view V_SALES_ALL is always being scanned fully (usually using an index it has to be said) even when , as in this case, there are probably fewer than a couple of thousand rows. Doe anybody know how to avoid full scans for views, or what config issue I might not have paid attention to ?
I am using 11.2.0.2
johnnie
call     count       cpu    elapsed       disk      query    current        rows
Parse        1      0.01       0.02          0          0          0           0
Execute      1      0.00       0.00          0          0          0           0
Fetch        1    229.71     229.98     436485     411704          0           2
total        3    229.73     230.01     436485     411704          0           2
Misses in library cache during parse: 1
Optimizer mode: ALL_ROWS
Parsing user id: 121  (BI_SOURCES)
Rows     Row Source Operation
      2  SORT GROUP BY (cr=411704 pr=436485 pw=436485 time=1 us cost=527112 size=132 card=2)
  15385   HASH JOIN  (cr=411704 pr=436485 pw=436485 time=19325 us cost=527111 size=198 card=3)
  17468    HASH JOIN  (cr=411678 pr=436485 pw=436485 time=72545 us cost=527101 size=1311 card=23)
      9     MERGE JOIN CARTESIAN (cr=67 pr=0 pw=0 time=40 us cost=58 size=172 card=4)
      1      TABLE ACCESS FULL PUBLISHERS (cr=53 pr=0 pw=0 time=0 us cost=51 size=18 card=1)
      9      BUFFER SORT (cr=14 pr=0 pw=0 time=16 us cost=7 size=100 card=4)
      9       INLIST ITERATOR  (cr=14 pr=0 pw=0 time=128 us)
      9        TABLE ACCESS BY INDEX ROWID PRODUCTS (cr=14 pr=0 pw=0 time=91 us cost=7 size=100 card=4)
      9         INDEX RANGE SCAN TITLE_IDX (cr=4 pr=0 pw=0 time=14 us cost=2 size=0 card=4)(object id 164098)
80220670     VIEW  V_SALES_ALL (cr=411611 pr=436485 pw=436485 time=874777920 us cost=524197 size=1123089380 card=*80220670*)
80220670      UNION-ALL  (cr=411611 pr=436485 pw=436485 time=700830592 us)
78464460       VIEW  index$_join$_005 (cr=397454 pr=436485 pw=436485 time=355407648 us cost=509700 size=1098502440 card=*78464460*)
78464460        HASH JOIN  (cr=397454 pr=436485 pw=436485 time=185474304 us)
78464460         INDEX FAST FULL SCAN DATES_IDX (cr=164771 pr=0 pw=0 time=88905792 us cost=206302 size=1098502440 card=*78464460*)(object id 259536)
78464460         INDEX FAST FULL SCAN IDX_PUBLISHER_PRODUCT_IDX (cr=232683 pr=0 pw=0 time=89456320 us cost=283170 size=1098502440 card=*78464460*)(object id 259576)
1756210       TABLE ACCESS FULL SALES_HARD (cr=14157 pr=0 pw=0 time=2050595 us cost=14498 size=24586940 card=*1756210*)
    104    VIEW  index$_join$_001 (cr=26 pr=0 pw=0 time=2060 us cost=10 size=936 card=104)
    104     HASH JOIN  (cr=26 pr=0 pw=0 time=1442 us)
    843      INDEX FAST FULL SCAN DATES_PK (cr=8 pr=0 pw=0 time=1323 us cost=4 size=936 card=104)(object id 151306)
    104      INDEX FAST FULL SCAN P (cr=18 pr=0 pw=0 time=618 us cost=8 size=936 card=104)(object id 174143)
Rows     Execution Plan
      0  SELECT STATEMENT   MODE: ALL_ROWS
      2   SORT (GROUP BY)
  15385    HASH JOIN
  17468     HASH JOIN
      9      MERGE JOIN (CARTESIAN)
      1       TABLE ACCESS   MODE: ANALYZED (FULL) OF 'PUBLISHERS'
                  (TABLE)
      9       BUFFER (SORT)
      9        INLIST ITERATOR
      9         TABLE ACCESS   MODE: ANALYZED (BY INDEX ROWID) OF
                    'PRODUCTS' (TABLE)
      9          INDEX   MODE: ANALYZED (RANGE SCAN) OF 'TITLE_IDX'
                     (INDEX)
80220670      VIEW OF 'V_SALES_ALL' (VIEW)
80220670       UNION-ALL
78464460        VIEW OF 'index$_join$_005' (VIEW)
78464460         HASH JOIN
78464460          INDEX   MODE: ANALYZED (FAST FULL SCAN) OF
                     'DATES_IDX' (INDEX)
78464460          INDEX   MODE: ANALYZED (FAST FULL SCAN) OF
                     'IDX_PUBLISHER_PRODUCT_IDX' (INDEX)
1756210        TABLE ACCESS   MODE: ANALYZED (FULL) OF 'SALES_HARD'
                   (TABLE)Edited by: johnnie d on 15-Mar-2012 12:24
Edited by: johnnie d on 15-Mar-2012 14:17

OK - here is the code.
The E-rows and A-rows estimate/actual at step 10 are way out - 80M.
If I'm interpreting this correctly, the actual cardinality should be about 15,000 .
select  /*+gather_plan_statistics*/ "DATES"."YEAR" as "c0",
"PRODUCTS"."TITLE" as "c1", "PUBLISHERS"."NAME" as "c2" from
"BI_SOURCES"."DATES" "DATES", "BI_SOURCES"."V_SALES_ALL" "V_SALES_ALL",
"BI_SOURCES"."PRODUCTS" "PRODUCTS", "BI_SOURCES"."PUBLISHERS"
"PUBLISHERS" where "V_SALES_ALL"."PERIOD_ID" = "DATES"."PERIOD_ID" and
"V_SALES_ALL"."PRODUCT_ID" = "PRODUCTS"."PRODUCT_ID" and
"V_SALES_ALL"."COMPANY_ID" = "PUBLISHERS"."COMPANY_ID" and
("DATES"."YEAR" in ('2010', '2011')) and ("PRODUCTS"."TITLE" in
('TEST2','TEST2')) and ("PUBLISHERS"."NAME" =
'TEST') group by "DATES"."YEAR", "PRODUCTS"."TITLE",
"PUBLISHERS"."NAME" order BY 1 ASC, 2 ASC, 3 ASC
Plan hash value: 4098842497
| Id  | Operation                         | Name                      | Starts | E-Rows | A-Rows |   A-Time   | Buffers | Reads  |  OMem |  1Mem | Used-Mem |
|   0 | SELECT STATEMENT                  |                           |      1 |        |      2 |00:00:55.51 |     287K|  80566 |       |       |          |
|   1 |  SORT GROUP BY                    |                           |      1 |      2 |      2 |00:00:55.51 |     287K|  80566 |  2048 |  2048 | 2048  (0)|
|*  2 |   HASH JOIN                       |                           |      1 |      3 |  15385 |00:00:55.52 |     287K|  80566 |  1858K|  1144K| 2994K (0)|
|*  3 |    HASH JOIN                      |                           |      1 |     23 |  17468 |00:00:49.53 |     287K|  80566 |   851K|   851K| 1121K (0)|
|   4 |     MERGE JOIN CARTESIAN          |                           |      1 |      4 |      9 |00:00:00.01 |      66 |      0 |       |       |          |
|*  5 |      TABLE ACCESS FULL            | PUBLISHERS                |      1 |      1 |      1 |00:00:00.01 |      53 |      0 |       |       |          |
|   6 |      BUFFER SORT                  |                           |      1 |      4 |      9 |00:00:00.01 |      13 |      0 |  2048 |  2048 | 2048  (0)|
|   7 |       INLIST ITERATOR             |                           |      1 |        |      9 |00:00:00.01 |      13 |      0 |       |       |          |
|   8 |        TABLE ACCESS BY INDEX ROWID| PRODUCTS                  |      2 |      4 |      9 |00:00:00.01 |      13 |      0 |       |       |          |
|*  9 |         INDEX RANGE SCAN          | TITLE_IDX                 |      2 |      4 |      9 |00:00:00.01 |       4 |      0 |       |       |          |
|  10 |     VIEW                          | V_SALES_ALL               |      1 |     80M|     80M|00:09:47.54 |     287K|  80566 |       |       |          |
|  11 |      UNION-ALL                    |                           |      1 |        |     80M|00:07:00.27 |     287K|  80566 |       |       |          |
|  12 |       INDEX FAST FULL SCAN        | IDX_PUBLISHER_PRODUCT_IDX |      1 |     78M|     78M|00:01:29.91 |     273K|  80504 |       |       |          |
|  13 |       TABLE ACCESS FULL           | SALES_HARD                |      1 |   1756K|   1756K|00:00:02.06 |   14159 |     62 |       |       |          |
|* 14 |    VIEW                           | index$_join$_001          |      1 |    104 |    104 |00:00:00.01 |      26 |      0 |       |       |          |
|* 15 |     HASH JOIN                     |                           |      1 |        |    104 |00:00:00.01 |      26 |      0 |  1096K|  1096K| 1509K (0)|
|  16 |      INDEX FAST FULL SCAN         | DATES_PK                  |      1 |    104 |    843 |00:00:00.01 |       8 |      0 |       |       |          |
|* 17 |      INDEX FAST FULL SCAN         | P                         |      1 |    104 |    104 |00:00:00.01 |      18 |      0 |       |       |          |
Predicate Information (identified by operation id):
   2 - access("V_SALES_ALL"."PERIOD_ID"="DATES"."PERIOD_ID")
   3 - access("V_SALES_ALL"."PRODUCT_ID"="PRODUCTS"."PRODUCT_ID" AND "V_SALES_ALL"."COMPANY_ID"="PUBLISHERS"."COMPANY_ID")
   5 - filter("PUBLISHERS"."NAME"='TEST')
   9 - access(("PRODUCTS"."TITLE"='TEST1' OR "PRODUCTS"."TITLE"='TEST2'))
  14 - filter(("DATES"."YEAR"='2010' OR "DATES"."YEAR"='2011'))
  15 - access(ROWID=ROWID)
  17 - filter(("DATES"."YEAR"='2010' OR "DATES"."YEAR"='2011'))Edited by: johnnie d on 15-Mar-2012 14:30
Edited by: johnnie d on 15-Mar-2012 14:30
Edited by: johnnie d on 15-Mar-2012 14:32

Similar Messages

  • Improving performance of query with View

    Hi ,
    I'm working on a stored procedure where certain records have to be eleminated , unfortunately tables involved in this exception query are present in a different database which will lead to performance issue. Is there any way in SQL Server to store this query
    in a view and store it's execution plan and make it work like sp.While I beleive it's kinda crazy thought but is there any better way to improve performance of query when accessed across databases.
    Thanks,
    Vishal.

    Do not try to solve problems that you have not yet confirmed to exist.  There is no general reason why a query (regardless of whether it involves a view) that refers to a table in a different database (NB - DATABASE not INSTANCE) will perform poorly. 
    As a suggestion, write a working query using a duplicate of the table in the current database.  Once it is working, then worry about performance.  Once that is working as efficiently as it can , change the query to use the "remote" table rather
    than the duplicate. Then determine if you have an issue.  If you cannot get the level of performance you desire with a local table, then you most likely have a much larger issue to address.  In that case, perhaps you need to change your perspective
    and approach to accomplishing your goal. 

  • How to build sql query for view object at run time

    Hi,
    I have a LOV on my form that is created from a view object.
    View object is read-only and is created from a SQL query.
    SQL query consists of few input parameters and table joins.
    My scenario is such that if input parameters are passed, i have to join extra tables, otherwise, only one table can fetch the results I need.
    Can anyone please suggest, how I can solve this? I want to build the query for view object at run time based on the values passed to input parameters.
    Thanks
    Srikanth Addanki

    As I understand you want to change the query at run time.
    If this is what you want, you can use setQuery Method then use executeQuery.
    http://download.oracle.com/docs/cd/B14099_19/web.1012/b14022/oracle/jbo/server/ViewObjectImpl.html#setQuery_java_lang_String_

  • As a new user of apple TV, I need some advice. When I rent a movie from Itunes for viewing later, it seems to download for a second time, with a message saying ready to view in 30 mins, it proceeds to load up all over again. What am I doing wrong

    As a new user of Apple TV, I need some assistance.When I rent a movie on iTunes and download for viewing later, say a day or two later, It seems to load itself all over again with a msg saying ready to view in 25 mins ! So having waited the 25 mins movie starts and runs for maybe 1 hour and the pauses for maybe 5 mins while it seems to load again . any help appreciated

    Welcome to the Apple Community.
    If you use the Apple TV for something else or turn it off it will erase whatever is on it's drive. If you are going to download content for later viewing you might consider doing it on the computer, downloads don't disappear until they expire and you can watch them as many times as you want.

  • Difference in Query generated by OBIEE for same report

    Hi,
    I am using a a report(X) in a filter condition.
    I am seeing a peculiar issue with OBIEE server. When i am running a report(X) alone, the query generated is different. But when i am using the same report in filter condition of other report(Y), the same report is generating some other query. The first report(X) is running fine but the second(Y) is not running at all.
    Case 1(Report X) Query: The report is breaking into 3 parts for different fact tables and combining the data to give result.
    Case 2(Report Y): A single query is being formed and within it is fecthing the data from different fact tables using subqueries.
    Case2 is creating a lot of problem as the performance is totally poor.
    Any suggesstions??
    Thanks
    Tataji

    Hi, we haven't debugged the application or traced the query against the production server (it's in our customer's office) buy I think there's no difference since the query itself has been tested using sqldeveloper against both servers (XE 11.2 and Enterprise 11.1) and the behavior is consistent. By consistent I mean:
    - The query executed via sqldeveloper against Oracle XE 11.2 runs ok and so does the application.
    - The query executed via sqldeveloper against Oracle Enterprise 11.1 fails with an ORA-01790 error, and so does the application (exceptions are being logged in the Event Log).
    To sum up: the same query runs ok in Oracle XE 11.2 and fails in Oracle Enterprise 11.1.
    Additional information: we have tried explicit casting the NULL literals to the corresponding data types (in the UNION ALLs) and the query works fine in both versions. ¿Is there an option in ODAC to tell the query generator to write this explicit castings?
    Regarding the DB schema and the LINQ query, I'll be sending them asap.
    Regards,
    Ernesto.

  • Cannot query conditionals on column in view

    We are upgrading our oracle database from 9i to 11g. The upgrade is complete but we are running into one issue regarding a view. We are able to query the view without any problems, but when querying a specific column for a specific value, we are not getting a results back although we are able to when performing the same query on the 9i database. The view that is not working is:
    Select count(*) from v_test where statuscode like '%active%';
    The view has been dropped and recreated. If I do select * from v_test it works fine.
    Any help/suggestion is appreciated.

    CREATE OR REPLACE FORCE VIEW "JIFFY"."V_TEST" ("V_PROJECTID", "JIFFY", "TFIMS", "CSSR", "CFSR", "DD254", "DTICEXEMPT", "STATUSCODE", "LASTNONZEROMONTH", "BURNRATE", "LASTLMRDATE", "LASTLMRID", "TECHSTATUSDOCDATE", "TECHSTATUSDOCID", "REPORTFREQ", "FIRSTTECHRPTDUEDATE", "FACEVALUE", "RECEIVED", "TOTOBLIGATED", "CFYOBLIGATED", "TOTACCRUED", "FUNDSEXHAUSTIONDATE", "CONTTECHPOCID", "CONTTECHPOCNAME", "GOVTTECHPOCID", "GOVTTECHPOCNAME", "CONTRACTTYPE") AS
    SELECT      r."V_PROJECTID",r."JIFFY",r."TFIMS",r."CSSR",r."CFSR",r."DD254",r."DTICEXEMPT",
              s.statuscode,
              projectinfo.getLastNonZeroMonth(r.v_projectid) lastNonZeroMonth,
              projectinfo.getBurnRate(r.v_projectid) burnRate,
              projectinfo.getRecentLMRDate(r.v_projectid) lastLMRdate,
              projectinfo.getRecentLMRID(r.v_projectid) lastlmrid,
              projectinfo.getDCFTechStatusDocDate(r.v_projectid) techStatusDocDate,
              projectinfo.getDCFTechStatusDocID(r.v_projectid) techStatusDocID,
              projectinfo.getDueDateFreqRpt(r.v_projectid) reportFreq,
              projectinfo.getFirstTechRptDueDate(r.v_projectid) FirstTechRptDueDate,
              projectinfo.getFaceValue(r.v_projectid) FaceValue,
              projectinfo.getActualAllocationTot(r.v_projectid) received,
              projectinfo.getTotObligated(r.v_projectid) TotObligated,
              projectinfo.getCFYObligated(r.v_projectid) CFYObligated,
              projectinfo.getTotAccrued(r.v_projectid) TotAccrued,
              projectinfo.getFundsExhaustionDate(r.v_projectid) FundsExhaustionDate,
              projectinfo.getContTechPocId(r.v_projectid) ContTechPocId,
              SUBSTR(projectinfo.getContTechPocName (projectinfo.getContTechPocId(r.v_projectid)),1,50) ContTechPocName,
              projectinfo.getGovtTechPocId(r.v_projectid) GovtTechPocId,
              SUBSTR(projectinfo.getGovtTechPocName (projectinfo.getGovtTechPocId(r.v_projectid)),1,50) GovtTechPocName,
              SUBSTR(projectinfo.getContractType(r.v_projectid),1,50) ContractType
    FROM     v_projectspecialreqs r, v_projectstatus s
    WHERE     r.v_projectid = s.projectid (+);
    Since this view is a join of two other views, I thought I would provide the source for them as well...
    CREATE OR REPLACE FORCE VIEW "JIFFY"."V_PROJECTSPECIALREQS" ("V_PROJECTID", "JIFFY", "TFIMS", "CSSR", "CFSR", "DD254", "DTICEXEMPT") AS
    SELECT p.projectid v_projectid,
    DECODE(a.jiffy,'JIFFY','Y','N') jiffy,
    DECODE(b.tfims,'TFIMS','Y','N') tfims,
    DECODE(c.cssr, 'CSSR','Y','N') cssr,
    DECODE(d.cfsr, 'CFSR','Y','N') cfsr,
    DECODE(e.dd254,'DD254','Y','N') dd254,
    DECODE(f.dticx,'DTICX','Y','N') dticexempt
    FROM Project p,
    (SELECT tp.projectid, t.taxcode jiffy
    FROM tax_projects tp, taxonomy t
    WHERE tp.taxid = t.taxid
    AND t.taxcode in ('JIFFY')
    ) a,
    (SELECT tp.projectid, t.taxcode tfims
    FROM tax_projects tp, taxonomy t
    WHERE tp.taxid = t.taxid
    AND t.taxcode in ('TFIMS')
    ) b,
    (SELECT tp.projectid, t.taxcode cssr
    FROM tax_projects tp, taxonomy t
    WHERE tp.taxid = t.taxid
    AND t.taxcode in ('CSSR')
    ) c,
    (SELECT tp.projectid, t.taxcode cfsr
    FROM tax_projects tp, taxonomy t
    WHERE tp.taxid = t.taxid
    AND t.taxcode in ('CFSR')
    ) d,
    (SELECT tp.projectid, t.taxcode dd254
    FROM tax_projects tp, taxonomy t
    WHERE tp.taxid = t.taxid
    AND t.taxcode in ('DD254')
    ) e,
    (SELECT tp.projectid, t.taxcode dticx
    FROM tax_projects tp, taxonomy t
    WHERE tp.taxid = t.taxid
    AND t.taxcode in ('DTICX')
    ) f
    WHERE p.projectid = a.projectid (+)
    AND p.projectid = b.projectid (+)
    AND p.projectid = c.projectid (+)
    AND p.projectid = d.projectid (+)
    AND p.projectid = e.projectid (+)
    AND p.projectid = f.projectid (+);
    CREATE OR REPLACE FORCE VIEW "JIFFY"."V_PROJECTSTATUS" ("PROJECTID", "STATUSCODE") AS
    SELECT tp.projectid projectid, t.taxcode
    statuscode
    FROM tax_projects tp, taxonomy t
    WHERE tp.taxid = t.taxid
    AND t.taxcode in ('ACTV', 'INACTV', 'CMPLT', 'CNCL');

  • Query Regarding Fetching of Maintenance View

    Hi Experts
    I have one query regarding fetching of Maintenance View.
    My Maintenance View is consisting of only one table.
    so i am unable to fetch the data using inner join.i also found
    one FM VIEW_GET_DATA  which fetches entire table with out
    any condition it may lead to performance issue. kindly suggest
    how do i fetch the data from such Maintenance View.
    Thanks
    Nishita G

    Hi,
    You can Direct Use the DML operations on the Underlying Database Table.( example 'SELECT' Statement and use 'WHERE' Condition for required output ).
    Regards
    Pavan Kumar

  • Use evdre to query data from a SQL View

    Hi all
    I believe that it is possible to use evdre to query data from a SQL View. If this is possible then how does one go about setting it up in the evdre options (assuming that the view has already been created)?
    Regards,
    Byron

    Byron,  perhaps this is no longer supported, it might be worth opening up a case at service.sap.com on this.  However, I did find the following on Page 11 of the "Usages and Considerations of EVDRE" pdf file.  This doc is imbedded in the helpfile for BPC 7 SP5 (which was released in August of 2009, well after note 1315011 was last updated.
    It looks like you are limited to one custom view per application, since you have to name the view in a parameter at the APPLICATION level.  Go into BPC Administration, login to the application related to the custom view, choose "Set Application Parameters" and enter the name of the view to the Application Parameter called "EVDRE_QUERYVIEWNAME"  If it is not listed, go ahead and create it at the bottom of the Application parameter screen.
    Also:  I interpreted the following info from Page 10 of the same doc:
    In your EVDRE, set the following options:
    QueryEngine: MANUAL
    QueryType:  enter either NEXJ  OR TUPLE  see below:
    NEXJ  - Use two-dimensional queries using the nonemptycrossjoin function
    TUPLE  - Use two-dimensional queries using tuples"
    And I'm assuming you'd enter a Y for the following two parameters:
    QueryViewName
    "..to enforce the query engine to use a used-defined SQL view of the fact tables, when trying to read the values using SQL queries. This option is typically used in conjunction with the SQLOnly option (see below). "
    Option SQLOnly
    "..to enforce the query engine to only execute SQL queries, when reading data. This can be achieved using this option."

  • Create a mobile application for view BW reports.

    I want to create a mobile application with MDK for viewing BW reports. It is possible ?

    Hello,
    I have a similar kind of requirement here.
    I need to show BW data on wireless device...via Portal.
    This BW data is a query, which is created using WAD.
    In normal case, we just use the SAP BW Report iView, stick the Bex query in it and its all done. But in this case....how am to go about this...?
    Ive read about Mobile WebDynpro but want to know that....Mobile Web Dynpro is an oline approach, does it mean that user will be able to drill down from the Bex query??
    Awaiting Reply.
    Thanks and Warm Regards,
    Ritu

  • Different LOVs in af:query and af:form for the same VO attribute

    Hi,
    We need to display different LOVs in af:query and af:form for the same attribute in VO.
    Is it possible to use LOV Switcher for this ?
    What condition can we use in LOV Switcher attribute to check if it is View Critearia row or VO row ?

    We have a VO attribute "User" which needs to be displayed as LOV in a Search Panel ( af:query component created using View Critearia ) and in a af:form.
    When this VO attribute is displayed in search panel, in LOV, we need to show all users.
    When this VO attribute "User" is displayed in a form for editing, in LOV, we need to show only active users.
    For this, we created two LOVs "ActiveUsersLOV" ( which shows only active users ) and "AllUsersLOV" ( which shows all users ) on VO attribute "User".
    LOVSwitcher attribute should return "ActiveUsersLOV" if the LOV is displayed in form and "AllUsersLOV" if the LOV is displayed in search panel.

  • Tool for Viewing 3D data in Oracle 10g

    Hi,
    I had uploaded the 3D DGN format Data from FME Oracle Suite to Oracle 10g database.
    the following tables were created
    TESTASH_SDODIM TABLE
    TESTASH_SDOLAYER TABLE
    TESTASH_SDOGEOM TABLE
    TESTASH_SDOINDEX TABLE
    TESTASH TABLE
    When we are trying to browse the data using AutoCAD of any other viewer, we are unable to find this table in that particular user. Whereas if we run a sql command and run a sql query we are able to get the record count.
    Can you suggest something to view this data.
    Thanks and Regards
    Ashish Dhawan

    Ok.. I'd bet then that there are no entries in USER_SDO_GEOM_METADATA AKA MDSYS.SDO_GEOM_METADATA_TABLE. FME view needs to find an entry in there to show you it in the dialog so you can pick the table. The same holds true for views of tables, there needs to be an entry, although I find it somewhat ironic that it then goes on to not know what projection the data is in.
    Also, the viewer will pick the first SDO_GEOMETRY column it finds. So if you have more than one, you will then need to make a view for just that column.
    Anyway, add an entry into the table, and you should be good to go.
    Bryan

  • The requested operation could not be performed because OLE DB provider "MSOLAP" for linked server does not support the required transaction interface.

    I am getting the following error when attempting to INSERT the results of an "EXEC(@MDXQuery) at SSAS LinkedServer":
    The requested operation could not be performed because OLE DB provider "MSOLAP" for linked server does not support the required transaction interface.
    Here is code that illustrates what I am doing:
    DECLARE @MDX varchar(max);
    SET @MDX='
    SELECT
    [Measures].[Extended Service Count]
    } ON COLUMNS,
    NON EMPTY [Organization].[By Manufacturer].[Manufacturer]
    ON ROWS
    FROM (
    SELECT
    {[Organization].[Org Tree].&[2025],[Organization].[Org Tree].&[2040]} ON 0
    FROM [MyCube]
    /* Test 1 */
    EXECUTE(@MDX) at SSASLinkedServer;
    /* Test 2 */
    DECLARE @ResultsB TABLE (
    Manufacturer varchar(255)
    , ExtendedServiceCount float
    INSERT INTO @ResultsB (Manufacturer, ExtendedServiceCount) EXECUTE(@MDX) at SSASLinkedServer;
    Test 1 succeeds, returning expected results, and Test 2 fails returning the error mentioned above.
    Other articles I've found so far don't seem to apply to my case.  I am not creating any explicit transactions in my code.   When I use OPENQUERY, I am able to do the insert just fine, but not when I use EXEC @MDX at LinkedServer.
    Unfortunately in some variations of the query, I run into the 8800 character limit on OPENQUERY, so I need to use this other approach.
    Any ideas?
    -Tab Alleman

    Hi Tab,
    In this case, SQL Server Analysis Services doesn’t support Distributed Transactions by design. Here is a similar thread about this issue for your reference, please see:
    http://social.technet.microsoft.com/Forums/en-US/8b07be45-01b6-49d4-b773-9f441c0e44c9/olaplinked-server-error-msolap-for-linked-server-olaplinked-server-does-not-support-the?forum=sqlanalysisservices
    One workaround is that use SQLCMD to execute the EXEC AT command and saved the results to a file, then import using SSIS.
    If you have any feedback on our support, please click
    here.
    Regards,
    Elvis Long
    TechNet Community Support

  • When we go for view ,fm,infosetquery,and tables

    Hi Masters,
    1)when we go for view ,fm,infosetquery,and tables ?
    & how to create view ,fm,infosetquery,and tables ?
    2)what is user of numeric pointer?
    3)what is different between view ,fm,infosetquery,and tables ?
    4) what is user of view ,fm,infosetquery,and tables ?
    please help on this issue by give good understading answer

    Hi Kumar,
    1. Maintaining Generic DataSources.
    http://help.sap.com/saphelp_nw04/helpdata/en/3f/548c9ec754ee4d90188a4f108e0121/frameset.htm
    Create View:
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ecf9446011d189700000e8322d00/frameset.htm
    Create FM:
    http://help.sap.com/saphelp_nw04s/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/frameset.htm
    Create Table:
    http://help.sap.com/saphelp_nw04/helpdata/en/87/773a55f35a65409009e87261c84eb2/frameset.htm
    Create Infoset query:
    How to create infoset query
    what is an infoset and infoset query?
    Create Generic Delta:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/84bf4d68-0601-0010-13b5-b062adbb3e33
    2. Numeric pointer:
    Generic Delta with Numeric pointer.
    Generic Delta Extraction
    Delta specific fields
    You can have the differences and the uses of View, FM, Infoset query and table from above links itself.
    Hope these helps u...
    Regards,
    KK.

  • Perform a query on tree node click

    This is probably very easy and I'm just having brain freeze..
    I have an application that is using ColdFusion to provide
    data for various controls. One control is a tree showing two levels
    of data (main level shows the process/job number, then you open
    that to see all the event numbers for that job). This all works
    fine.
    Now what I want to do is when you select an even number, flex
    will use a coldfusion page I set up to perform a query on the
    database using the event number and job number to get all the rest
    of the data about htat particular job (description, run times, etc)
    I have the click event from the tree control working fine, I
    have the page in coldfusion working fine, it outputs an XML format
    file with all the relevant details based on the parameters you send
    it. Now the question is, how do I populate the fields on the form
    with the data returned from the query?
    I am using a HTTPService call to get the data to/from
    ColdFusion (I have version 6.1 of Coldfusion).
    Thanks for any help.

    Well, I answered my own question... Here is what I did in
    case anyone else wants to know. If there is a better way, please
    advise.
    I have a click event on the tree control. Since the tree will
    only be two levels deep (parent and child) I test for whether the
    item clicked has a parent. If it does, I know they clicked on a
    child node. I then fire off the HTTPService with the parameters
    from the child and parent nodes of the tree item that was clicked.
    In the result parameter of the HTTPService, I populate the
    various fields using the lastresult.root.fieldname syntax of the
    HTTPService.
    It works as expected, but perhaps there is a better
    way?

  • Which app is the best for viewing documents without sliding while zooming?

    I have many novels saved under *.htm, doc and pdf.
    I'm using Quick Office, but when I zoom in, I have to slide the screen from side to side just to watch the whole things, which make my eyes feel very tired.
    So I need your help about which app is the best for viewing documents without sliding while zooming, I mean, when you zoom in, you just have to slide vertically to see the whole documents, and don't have to slide horizontally.

    shazeal wrote:
    There is a big difference between Windows and Linux, the scheduler being the biggest. Here are 3 shots from oblivion, I tried to keep the Tri-passes around 400-450k, and the texture mem is ~ the same in all 3.
    The first two also have, Apache, Dovecott, Mysql, Samba, and SSHD running in the back ground, these were all stopped for the 3rd.
    Gnome Desktop 2.2.4 Full bloated install - All background services running, run from gnome terminal, Firefox open. Consonance Music player running.
    http://img525.imageshack.us/img525/1551 … tc5.th.jpg
    Xorg only no WM, with urxvt console open to launch the game, nothing else running except background services.
    http://img265.imageshack.us/img265/34/s … zu1.th.jpg
    Xorg only, all non essential services stopped.
    http://img225.imageshack.us/img225/7540 … zd7.th.jpg
    All running on Wine 1.1.7, Oblivion is running around 150 mods, and QTP3, Body mods, High res texture packs for the character skins, with HDR lighting. As you can see the FPS does not change, it fluctuated between 19-20 on all three runs.
    Especially with Dual cores, you will find that games do not loose FPS even with things like a lightweight music player running in the background. Windows scheduler simply was not made for that kind of thing, and benifits alot more from a lower number of background processes. I wont say linux does not benifit, but with Dual cores and CFS, it is not really noticable anymore.
    Wait, does that mean you have better performance while you are running more stuff? Does the desktop manager handle graphics better?
    This really did confuse me...

Maybe you are looking for

  • How to return more than one string?

    Hi,below is my code: @WebMethod(operationName = "CheckBooking") public String CheckBooking(@WebParam(name = "ID") String ID) { try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con = DriverManager.getConnection("jdbc:odbc:Flight"); // S

  • Mac OS 10.5.8 Can not run install disc

    I have Mac OS 10.5.8 on my laptop and i Can not run install disc supplied with my EA4500. How do I set up my router to work with my CableVision modem? I have named the route, and set up password. I see the router from my laptop but can't connect to I

  • Macbook problem please help!

    Hi there, My Brother is having an internet problem with his MB. He connects to the internet via the wireless router and up until now has had no problems. A couple of days ago Safari suddenly started displaying the 'not connected' message despite the

  • OCI - Array-Fetch vs. One-row-per-fetch

    Hello guys, i have a question about the OCI and the possibilities about fetches. Is it possible to get only one row per fetch without setting the array size to 1? I have a third party application that shows this behaviour which i have rebuild in sqlp

  • HT4623 How can I join 2 separate account one for my IPhone and one to my IPad to one account with the same ID and Password?

    How can I join 2 separate account one for my IPhone and one to my IPad to one account with the same ID and Password?