OBIEE consistently producing very very bad SQL

Hi,
We need some advice, or would like to know if people have had similar experiences. Here is our issue.
Users running reports and filtering data in presentation layer of OBIEE are seeing the OBIEE generate the SQL and sends it to the database.
This SQL which is auto generated by the OBIEE server is extremely costly. We are not whu OBIEE produces such bad sql - anyone have same problem?
When we look at explains, we see that most costly operations are when HASH operations are used. This is consistent throughout all OBIEE generated SQL.
As the SQL is of ad hock nature we do not use SPB's etc.
We are puzzled and are not sure where to start w.r.t troubleshooting.
Please help.

Dear guru.
Let me know what's may be wrong ?
My post is closely related to bad SQL thread.
Shortly speaking, I'd like to discuss multiple star problem.
So, Oracle Business Intelligence 11.1.1.6.0
I have three fact table A,B,C joined to common link table D ( look as dimension in Administrator )
A and B have inner join with D, while C has left outer join to D ( actually outer join defined only in BMM cause don't see how set outer join on physical layer for C ).
The matter is in generated SQL query which is broken, i.e. can't be compiled in Oracle DB.
Let me give broken piece of generated SQL.
As you can see, the subquery has reference to table T69242 in WHERE, but no such table in FROM section:
SACOMMON821644 AS
(SELECT
/*+ MATERIALIZE */
DISTINCT T68993.NAME AS c1,
T69266.DISTRICT2 AS c2,
CASE
WHEN T68993.DEPARTMENTID IN
(SELECT D1.c1 AS c1 FROM SASUBWITH820608 D1
THEN 1
ELSE 0
END AS c3,
CASE
WHEN T69266.OKATO_KOD IN
(SELECT D1.c1 AS c1
FROM SASUBWITH820633 D1
THEN 1
ELSE 0
END AS c4,
T68993.DEPARTMENTID AS c5,
T69266.OKATO_KOD AS c6,
T68993.PARENT AS c7,
T69266.PARENT_OKATO_KOD AS c8
FROM BI_MSK_DISTRICTS_STAT_HIER T69233
MOS_DISTRICTS_STAT T69266
BI_DEPARTMENTS_MFC T68993
BI_MFC_HIER T69068
DEP_OPERATORS_CNT T69220
INCIDENTS T69648
MOS_DISTRICT_POPULATION T69410
WHERE ( T69233.MEMBER_KEY = T69410.OKATO_KOD
AND T68993.DEPARTMENTID = T69068.ANCESTOR_KEY
AND T69068.MEMBER_KEY = T69220.DEPARTMENTID
AND T69220.DEPARTMENTID = T69242.DEPARTMENTID*
AND T69233.ANCESTOR_KEY = T69266.OKATO_KOD
AND T69242.OKATO_KOD* = T69410.OKATO_KOD
AND T68993.DEPARTMENTID IN
(SELECT D1.c1 AS c1 FROM SASUBWITH820658 D1
AND T69266.OKATO_KOD IN
(SELECT D1.c1 AS c1 FROM SASUBWITH820683 D1
Meanwhile in aggregation subquery of that generated SQL we have requred table
SACOMMON821667 AS
(SELECT
/*+ MATERIALIZE */
TRUNC(SUM( DISTINCT T69220.OPER_TOTAL)) AS c9,
T68993.DEPARTMENTID AS c10,
T68993.PARENT AS c11,
T69266.OKATO_KOD AS c12,
T69266.PARENT_OKATO_KOD AS c13,
SUM( DISTINCT T69410.POPUL_SIZE) AS c14,
SUM(T69648.TOTAL / NULLIF( T69242.OKATO_COUNT, 0)) AS c15
FROM BI_MSK_DISTRICTS_STAT_HIER T69233
MOS_DISTRICTS_STAT T69266
BI_DEPARTMENTS_MFC T68993
BI_MFC_HIER T69068
DEP_OPERATORS_CNT T69220
MFC_ADDRESSOKATO T69242*
LEFT OUTER JOIN INCIDENTS T69648
ON T69242.DEPARTMENTID = T69648.DEPARTMENTIDFROM,
MOS_DISTRICT_POPULATION T69410
WHERE ( T69242.OKATO_KOD = T69410.OKATO_KOD
AND T69233.ANCESTOR_KEY = T69266.OKATO_KOD
AND T69233.MEMBER_KEY = T69410.OKATO_KOD
AND T69220.DEPARTMENTID = T69242.DEPARTMENTID
AND T68993.DEPARTMENTID = T69068.ANCESTOR_KEY
AND T69068.MEMBER_KEY = T69220.DEPARTMENTID
AND T68993.DEPARTMENTID IN
(SELECT D1.c1 AS c1 FROM SASUBWITH820658 D1
AND T69266.OKATO_KOD IN
(SELECT D1.c1 AS c1 FROM SASUBWITH820683 D1
GROUP BY T68993.DEPARTMENTID,
T68993.PARENT,
T69266.OKATO_KOD,
T69266.PARENT_OKATO_KOD
And it's time to show Consistency Check results in Administrator.
There is no errors, but
WARNINGS:
Business Model Сводная таблица:
[39008] Logical dimension table A_MFC_ADDRESSOKATO has a source A_MFC_ADDRESSOKATO that does not join to any fact source.
[39020] Logical table source "Сводная таблица"."FCT Incidents"."A_Incidents": No path has been found to link all tables. There is no link between the set ( 'A_DEP_OPERATORS_CNT', 'A_MFC_ADDRESSOKATO', 'A_MOS_DISTRICT_POPULATION' ) and the set ( 'A_Incidents' ).
[39020] Logical table source "Сводная таблица"."A_DEP_OPERATORS_CNT"."A_DEP_OPERATORS_CNT ": No path has been found to link all tables. There is no link between the set ( ) and the set ( ).
[39020] Logical table source "Сводная таблица"."A_MOS_DISTRICT_POPULATION"."A_MOS_DISTRICT_POPULATION": No path has been found to link all tables. There is no link between the set ( ) and the set ( ).
I wonder, how that link can be realized, when fact tables already have joins to common dim A_MFC_ADDRESSOKATO.
Should I create Logical Dimmension for A_MFC_ADDRESSOKATO while it is actually bridge table in terms of 10G ?
Besides, as we can see from query, A B and C have its own dims.
So, finally as a result in Answers we have
ORA-00904: "T69242"."OKATO_KOD": invalid identifier at OCI call OCIStmtExecute
It should be mentioned that error is appeared only when I put measure from A_Incidents (C alias) on analys in Answers, till that all worked correctly, i.e. A,B joined successfully to D
and SQL query gave desired result.
Any suggestion on issue are greately appreciated.
Sorry for unformatted SQL, still don't know how to do it.
Sorry for the post as reply cause I don't see how create new thread.
Hope, my explanation was clear.

Similar Messages

  • SQL Developer 1.1.0.23.64 on Mac OSX 10.4.8 - very very bad perfomance.

    Hello!
    I just downloaded SQL Developer 1.1.0.23.64 and I'm wondered by its inappropriately bad perfomance. "Tables" and "Views" node can't be opened, and simple (very simple) query "select * from dual" executes 15 to 30 seconds. Can it be worked around in any way? Oracle versions are 10g and 9i - looks like it works the same bad way on both of them.

    I have 1.25Gb operating memory, jdk 1.5.0_06 (latest Mac JDK). I do not have neither sql*plus nor oracle client installed (and there are no such requirements in the installation guide) - everything works fine and fast enough with JDBC drivers in SQL4X as well as in projects being under development. I'm using JDBC drivers from ojdbc14.jar. The only program that very slow in SQL execution is SQL Developer, unfortunately...

  • When I phone people can hear me without any problem, but I hear very very bad. The sounds is metallic and it is very difficult to understand. Have anyone idea of what is it about. I guess is not a software problem but I am not an expert. Thanks in advance

    When I phone people can hear me without any problem, but I hear very very bad. The sounds is metallic and it is very difficult to understand. Have anyone idea of what is it about. I guess is not a software problem but I am not an expert. Thanks in advance

    Make sure that you allow pages to choose their colors and that you haven't enabled High Contrast in the Accessibility settings.
    *Firefox > Preferences > Content : Fonts & Colors > Colors : [X] "Allow pages to choose their own colors, instead of my selections above"
    See also:
    *http://kb.mozillazine.org/Images_or_animations_do_not_load
    *https://support.mozilla.org/kb/Images+or+animations+do+not+show

  • 3.0.0RC2 MappingTool producing bad SQL

    It looks like <jdbc-field-map type="many-many" table="TestServiceKeyArray"
    element-column
    ..pk="keyArray" ref-column.pk="parent" order-column="seqno"/> is producing
    bad SQL through MappingTool. It gives the following exception when run as
    "kodo.jdbc.meta.MappingTool -action buildSchema ..."
    It looks like the "seqno" order-column is of type "OTHER", which is not
    correct.
    Exception in thread "main" kodo.util.FatalException:
    com.solarmetric.jdbc.ReportingSQLException: Syntax error or access
    violation, message from server: "You have an error in your SQL syntax.
    Check the manual that corresponds to your MySQL server version for the right
    syntax to use near 'OTHER)' at line 1" {stmnt 30301818: CREATE TABLE
    TestServiceKeyArray (keyArray BIGINT, parent VARCHAR(255), seqno OTHER)}
    [code=1064, state=42000]
    NestedThrowables:
    com.solarmetric.jdbc.ReportingSQLException: Syntax error or access
    violation, message from server: "You have an error in your SQL syntax.
    Check the manual that corresponds to your MySQL server version for the right
    syntax to use near 'OTHER)' at line 1" {stmnt 30301818: CREATE TABLE
    TestServiceKeyArray (keyArray BIGINT, parent VARCHAR(255), seqno OTHER)}
    [code=1064, state=42000]
    at kodo.jdbc.meta.MappingTool.record(MappingTool.java:431)
    at kodo.jdbc.meta.MappingTool.run(MappingTool.java:832)
    at kodo.jdbc.meta.MappingTool.main(MappingTool.java:729)
    Caused by: com.solarmetric.jdbc.ReportingSQLException: Syntax error or
    access violation, message from server: "You have an error in your SQL
    syntax. Check the manual that corresponds to your MySQL server version for
    the right syntax to use near 'OTHER)' at line 1" {stmnt 30301818: CREATE
    TABLE TestServiceKeyArray (keyArray BIGINT, parent VARCHAR(255), seqno
    OTHER)} [code=1064, state=42000]
    at
    com.solarmetric.jdbc.LoggingConnectionDecorator.wrap(LoggingConnectionDecora
    tor.java:67)
    at
    com.solarmetric.jdbc.LoggingConnectionDecorator.access$400(LoggingConnection
    Decorator.java:19)
    at
    com.solarmetric.jdbc.LoggingConnectionDecorator$LoggingConnection$LoggingSta
    tement.executeUpdate(LoggingConnectionDecorator.java:506)
    at kodo.jdbc.schema.SchemaTool.executeSQL(SchemaTool.java:1042)
    at kodo.jdbc.schema.SchemaTool.createTable(SchemaTool.java:803)
    at kodo.jdbc.schema.SchemaTool.add(SchemaTool.java:334)
    at kodo.jdbc.schema.SchemaTool.add(SchemaTool.java:186)
    at kodo.jdbc.meta.MappingTool.record(MappingTool.java:364)
    ... 2 more

    I'm using mysql 4.0.15 and mysql connector (jdbc driver) 3.0.9.
    Ben
    "Stephen Kim" <[email protected]> wrote in message
    news:[email protected]...
    What version of MySQL and driver are you using?
    Ben Eng wrote:
    It looks like <jdbc-field-map type="many-many"
    table="TestServiceKeyArray"
    element-column
    .pk="keyArray" ref-column.pk="parent" order-column="seqno"/> isproducing
    bad SQL through MappingTool. It gives the following exception when runas
    "kodo.jdbc.meta.MappingTool -action buildSchema ..."
    It looks like the "seqno" order-column is of type "OTHER", which is not
    correct.
    Exception in thread "main" kodo.util.FatalException:
    com.solarmetric.jdbc.ReportingSQLException: Syntax error or access
    violation, message from server: "You have an error in your SQL syntax.
    Check the manual that corresponds to your MySQL server version for theright
    syntax to use near 'OTHER)' at line 1" {stmnt 30301818: CREATE TABLE
    TestServiceKeyArray (keyArray BIGINT, parent VARCHAR(255), seqno OTHER)}
    [code=1064, state=42000]
    NestedThrowables:
    com.solarmetric.jdbc.ReportingSQLException: Syntax error or access
    violation, message from server: "You have an error in your SQL syntax.
    Check the manual that corresponds to your MySQL server version for theright
    syntax to use near 'OTHER)' at line 1" {stmnt 30301818: CREATE TABLE
    TestServiceKeyArray (keyArray BIGINT, parent VARCHAR(255), seqno OTHER)}
    [code=1064, state=42000]
    at kodo.jdbc.meta.MappingTool.record(MappingTool.java:431)
    at kodo.jdbc.meta.MappingTool.run(MappingTool.java:832)
    at kodo.jdbc.meta.MappingTool.main(MappingTool.java:729)
    Caused by: com.solarmetric.jdbc.ReportingSQLException: Syntax error or
    access violation, message from server: "You have an error in your SQL
    syntax. Check the manual that corresponds to your MySQL server versionfor
    the right syntax to use near 'OTHER)' at line 1" {stmnt 30301818: CREATE
    TABLE TestServiceKeyArray (keyArray BIGINT, parent VARCHAR(255), seqno
    OTHER)} [code=1064, state=42000]
    at
    com.solarmetric.jdbc.LoggingConnectionDecorator.wrap(LoggingConnectionDecora
    tor.java:67)
    at
    com.solarmetric.jdbc.LoggingConnectionDecorator.access$400(LoggingConnection
    Decorator.java:19)
    at
    com.solarmetric.jdbc.LoggingConnectionDecorator$LoggingConnection$LoggingSta
    tement.executeUpdate(LoggingConnectionDecorator.java:506)
    at kodo.jdbc.schema.SchemaTool.executeSQL(SchemaTool.java:1042)
    at kodo.jdbc.schema.SchemaTool.createTable(SchemaTool.java:803)
    at kodo.jdbc.schema.SchemaTool.add(SchemaTool.java:334)
    at kodo.jdbc.schema.SchemaTool.add(SchemaTool.java:186)
    at kodo.jdbc.meta.MappingTool.record(MappingTool.java:364)
    ... 2 more
    Steve Kim
    [email protected]
    SolarMetric Inc.
    http://www.solarmetric.com

  • Photoshop CS4 very very bad brushes sensitive for Wacom Cintiq!

    Brushes sensitivity Photoshop CS4 with wacom Cintiq very very bad,dont sensitive, all the same problems have my friends.Photoshop CS3 no such a problem very good performing for cintiq.What happens to Psd CS4 we are dont buy.And you doesn't say me alll the Update track,i do.

    Photoshop CS3 and CS4 is working fine with Cintiqs for Adobe, Wacom, and most of our users.
    Are you sure you've updated the Cintiq drivers?

  • Ram utilization very high for SQL Server

    Ram utilization very high for SQL Server

    Ram utilization very high for SQL Server
    Well did you searched before posting thhis question. And why do you post one line question ?
    So here is one line answer This is normal behavior, make sure you set optimum value for max server memroy setting.
    If you want to read about SQL Server memory
    http://social.technet.microsoft.com/wiki/contents/articles/22316.sql-server-memory-and-troubleshooting.aspx
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

  • Iphone 4 S 64 gb. Welcome screen problem! Could not open. Very often calls dropped down! Very often bad or no signal.

    Welcome screen was very big, buttons was hidden. Could not open. Also very often calls dropped down! Very often bad or no signal.

    so... my out of warranty iPhone 4 power button stopped functioning all of a sudden and it also no longer made that "click" when pressed.
    As I already said, it's already out of warranty. This is actually my 2nd iPhone 4. Apple replaced my previous because of a faulty home button. Now my "new" phone has a faulty power button. This phone is of course out of warranty because it's been over a year.

  • I have a 13in macbook pro 2006. Playing vedeos using  youtube or VLC produces a very choppy effect. This stop and start condition just appeared. Anything I can do to remedy the condition, or do I need to buy a new computer?

    I have a 13in macbook pro 2006. Playing videos using youtube or VLC(or the like) produces a very choppy effect. This start and stop condition just appeared. Anything I can do to remedy the condition or do I need to buy a new computer?                           

    Since most YouTube content requires the Flash plugin, uninstall then reinstall the plugin >  Troubleshoot Flash Player | Mac OS
    And try deleting Flash cookies >  Flush.app – Flash Cookie Removal Tool For OS X | MacHacks.TV

  • BADI(very very urgent)

    Hi all,
       i got the badi for post goods issue  but in which TRANSACTION, i have to use this badi.i am new to badi.plz tell me , how can i use the LE_SHP_GOODSMOVEMENT.
    plz tell me the procedure to follow?
    it is very very urgent.i will reward the point.
    Regards
    pabitra

    Hi gudia,
      Thanks very much.i am really sorry because i have not  replied u till now.i am very busy with other issue.so i forgot to open this mail.
      anyway, my mail id is [email protected]
    my gmail id is [email protected] will be always online in gmail messenger.plz give me some message to my gmail messenger so that i will give u instant reply if i will be in office.
    plz describe me clearly so that i can solve that issue using BADI.
    i have set some 20 break points in that program while pressing the post goods issue button in delivery(VL02n).but control is not going to that program.plz suggest me details.
    Thanks very much for ur help.waiting for ur reply.
    Regards
    pabitra

  • Please send me afree iphone cause i cant get it and im very very bad please give my any version 00201201905055 thx apple

    please send me afree iphone cause i cant get it and im very very bad please give my any version 00201201905055 thx apple

    ahmed haron wrote:
    But you know I asked this request, but I began to lose my mind because of the passion for this phone, which I can no longer its procurement of new...........
    This is an Apple products technical support forum. If you are having mental heath issues, please consult a medical professional.

  • Errors when Creating Aggregate Tables in OBIEE 11.1.1.6 within SQL server

    Hi All,
    I was trying to create an aggregate table in OBIEE 11.1.1.6 within SQL Server. The sql was generated successfully as below. But an error occurred when I use NQCMD to execute the sql and the following error showed:
    1. SQL for creating Aggregate Table:
    create aggregates
    "ag_Measure"
    for "ASOBI_DTT_Demo"."Measure"("ValidVIPCnt")
    at levels ("ASOBI_DTT_Demo"."日期"."月", "ASOBI_DTT_Demo"."門市品牌"."門市品牌", "ASOBI_DTT_Demo"."門市類別"."門市類別", "ASOBI_DTT_Demo"."內創門市"."內創門市", "ASOBI_DTT_Demo"."門市/倉庫"."門市/倉庫", "ASOBI_DTT_Demo"."門市群組"."門市群組", "ASOBI_DTT_Demo"."門市行政區課"."行政區", "ASOBI_DTT_Demo"."門市地區"."城市")
    using connection pool "ASOBI_DTT_Demo"."ASOBI_System10"
    in "ASOBI_DTT_Demo"."ASOBI"."dbo";
    2. Error Message:
    "ag_Measure"
    for "ASOBI_DTT_Demo"."Measure"("ValidVIPCnt")
    at levels ("ASOBI_DTT_Demo"."日期"."月", "ASOBI_DTT_Demo"."門市品牌"."門市品牌"
    , "ASOBI_DTT_Demo"."門市類別"."門市類別", "ASOBI_DTT_Demo"."內創門市"."內創門市"
    , "ASOBI_DTT_Demo"."門市/倉庫"."門市/倉庫", "ASOBI_DTT_Demo"."門市群組"."門市群
    組", "ASOBI_DTT_Demo"."門市行政區課"."行政區", "ASOBI_DTT_Demo"."門市地區"."城市
    using connection pool "ASOBI_DTT_Demo"."ASOBI_System10"
    in "ASOBI_DTT_Demo"."ASOBI"."dbo"
    [343][State: 37000] [Microsoft][SQL Server Native Client 10.0][SQL Server]CREATE
    、DROP or ALTER 陳述式中使用未知的物件類型 'aggregates'。
    Statement execute failed
    Which means "Using unknown object type 'aggregates' in CREATE. DROP or ALTER statements" in English.
    Can anyone give me a suggestion for this error?? Many thanks!!!

    Hi Martin,
    I guess, I was not clear enough. Let me try again
    How Aggregate Persistence works in OBIEE?
    Once you are done choosing options in the Aggregate Persistence wizard, it generates an intelligent Query.
    What query is it?
    If you happen to understand the query, it is not like any ANSI standard SQL (I would say DDL) query. As you might have noticed there are no SQL Server datatypes, lengths, keys, constraints etc. This query can only be understood by the BI Server.
    How do I issue this query?
    Since the logical query could only be understood by BI Server, it has to be issued only to BI Server Engine using some tool viz NQCMD in this case.
    What does issuing this query using NQCMD do?
    The execution steps are as follows, the moment the query is issue via NQCMD
    Aggregate Persistent Wiz Generate Query ----- Issued to ---> NQCMD ----- Passes the logical query to ---> BI Server ----- Parses the query ---> Builds the corresponding physical DDL statements Issued --->To the Database --- If successful ---> .RPD is automatically updated with the aggregated sources etc.
    How do I pass the query to BI Server using NQCMD?
    The format of issuing this logical query to BI Server using NQCMD is
    nqcmd -d <Data Source Name> -u <Analytics UserId> -p <Password> -s <command> > output.log
    where
    <Data Source Name> : Is the DSN name which OBIPS uses to talk to Oracle BI Server. Yes, it's the very same DSN that can be found in InstanceConfig.xml
    <Analytics UserID> : Any user in obiee with admin privileges.
    <Password> : Password of the obiee UserId
    <Command> : Logical SQL Command which you already have handy.
    Hope I was good this time..
    Dhar

  • TS1398 since i have updated the latest software i am facing problem using wifi which is very very slow most of the time or wont connect at all was that update supposed to be for better or worse

    is apple product going down hill it seems their updates are creating a lot of problem now the wifi connection is really ******* me off it doesnt connect or even if it does its very very slow i used to love using iphone but i think its time to move on to something else they have taken everyone for granted

    Welcome to Apple Discussions, Mark.
    I've never come across your first problem on any of the Apple notebooks I currently own (or have owned in the past). Then again, perhaps I'm not looking close enough.
    Have you compared it with any other 12" PowerBook? If not, perhaps you might be able to try that at a local store with units on display.
    Otherwise you might want to give AppleCare a call. Alternatively, if you have an Apple Store or Apple Authorised Service Provider near you (I don't know where you are located) then you can take it in to be checked.
    As for your second problem (uneven illumination), that has been known to afflict other notebooks. My own 15" PB has had its screen replaced on two occasions because of this. Depending on the severity, you might be able to get it replaced. Mine became so bad that the screen was effectively unusable.
    To be honest, here in the UK, I would actually try for a replacement PowerBook - if the problems were severe enough and also because your PB is still very new. However the consumer laws in your country (wherever that may be) might be very different to mine.

  • A very very strange issue on BlazeDS Deserializing

    Hi all,
    I run into a very very strange issue on BlazeDS Deserializing. Is there any hint or idea?  Thanks a lot!
    Scenario 1:
    Both the browser(firefox or IE) and the midtier (BlazeDS ,java) are on the same machine.
    Actual result:
    Everything works fine.  All the properties in the Flex Object could be mapped to the Java Class
    Scenario 2:
    The browser(firefox or IE) and the midtier (BlazeDS ,java) are on the different machine.
    Actual result:
    Sometimes it works fine.
    And most of the time it does not work fine. Only the data in List is mapped correctly. All the values of simple data type such as int are mapped to 0 .
    Let me simplify the problem.
    The objects of Class B is always stored in the ArrayCollection  assocItems of Class A
    Flex side:
    public class A {
    public var id: int;
    public var  name: String;
    public var assocItems: ArrayCollection=new ArrayCollection();
    public class B {
    public var id: int;
    public var  assocItems : ArrayCollection=new ArrayCollection();
    The id , name in Flex Class A and assocItems in Class B could be  deserialize to correct value .  But the id of Class B is always mapped to 0. This is not correct.
    The log level of BlazeDS is configured to Debug. From the log I can see that  each value is passed from Flex side to Java server side correctly.
    [BlazeDS][INFO] Channel endpoint my-amf received request.
    [BlazeDS][DEBUG] Deserializing AMF/HTTP request
    Version: 3
    (Message #0 targetURI=null, responseURI=/18)
    (Array #0)
    [0] = (Typed Object #0 'flex.messaging.messages.RemotingMessage')
    However, the Java object does not get the correct value of B.id.
    In conclusion,
    1. It’s an issue with only default types
    2. It does not occur every time
    3. It does not occur when the browser(firefox or IE) and the midtier (BlazeDS ,java) are on the same machine
    Have you ever run into the similar problems? And what’s your solution?

    I checked, when I hard-code the constant in linq, the generated sql is like this:
    SELECT "Extent1"."AA" AS "AA"
    FROM (SELECT "TBL"."AA" AS "AA"
    FROM "USERNAME"."TBL" "TBL") "Extent1"
    WHERE ('1062303212007000121' = "Extent1"."AA")
    if I pass a variable to the query with same value, the sql is like this:
    SELECT "Extent1"."AA" AS "AA"
    FROM (SELECT "TBL"."AA" AS "AA"
    FROM "USERNAME"."TBL" "TBL") "Extent1"
    WHERE ("Extent1"."AA" = '1062303212007000121' /* @p__linq__0 */) (@p__linq__0 is passed as parameter)
    The only difference is a paramter. I can't figure out why there is such a impact on performance.

  • The query is performing very very slow, can any one please help me tue this

    SELECT h.ROWID row_id, e.preparer_user_id
    FROM arsarc.ars_sv_reconciliation e,
    arsarc.ars_sv_reconciliation_accts a,
    arsarc.ars_sv_acct_status_history h
    WHERE e.rec_id = :b1
    AND e.rec_id = a.rec_id
    AND e.ledger_id = h.ledger_id
    AND a.ccid = h.ccid
    AND e.preparer_user_id <> h.preparer_user_id
    AND h.fiscal_year + h.fiscal_period >= e.fiscal_year + e.fiscal_period
    PLAN_TABLE_OUTPUT
    Plan hash value: 2851427911
    | Id  | Operation                     | Name                           | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT              |                                |    60 |  7740 |  6282  (11)| 00:00:08 |
    |*  1 |  HASH JOIN                    |                                |    60 |  7740 |  6282  (11)| 00:00:08 |
    |*  2 |   INDEX RANGE SCAN            | PK_RECONCILIATION_ACCTS        |   104 |  4160 |     3   (0)| 00:00:01 |
    |   3 |   NESTED LOOPS                |                                |   178K|    15M|  6243  (10)| 00:00:08 |
    |   4 |    TABLE ACCESS BY INDEX ROWID| ARS_SV_RECONCILIATION          |     1 |    23 |     2   (0)| 00:00:01 |
    |*  5 |     INDEX UNIQUE SCAN         | PK_ARS_SV_RECONCILIATION       |     1 |       |     1   (0)| 00:00:01 |
    PLAN_TABLE_OUTPUT
    |*  6 |    TABLE ACCESS BY INDEX ROWID| ARS_SV_ACCT_STATUS_HISTORY     |   178K|    11M|  6241  (10)| 00:00:08 |
    |*  7 |     INDEX RANGE SCAN          | ARS_SV_ACCT_STATUS_HISTORY$LPY | 62094 |       |  5243  (11)| 00:00:07 |
    Predicate Information (identified by operation id):
       1 - access("A"."CCID"="H"."CCID")
       2 - access("A"."REC_ID"=TO_NUMBER(:B1))
       5 - access("E"."REC_ID"=TO_NUMBER(:B1))
       6 - filter("E"."PREPARER_USER_ID"<>"H"."PREPARER_USER_ID")
    PLAN_TABLE_OUTPUT
       7 - access("E"."LEDGER_ID"="H"."LEDGER_ID")
           filter("H"."FISCAL_YEAR"+"H"."FISCAL_PERIOD">="E"."FISCAL_YEAR"+"E"."FISCAL_PERIOD")

    Hi,
    the plan isn't showing any problem (the cost isn't high) so it's not possible to use it to troublehshoot the query. Please provide more information: 4-digit Oracle version, and depending on the version, either SQL real-time monitor report or dbms_xplan output with rowsource stats (option "iostats last" after running your sql with ALTER SESSION SET STATISTICS_LEVEL = ALL).
    Also, when reporting a performance problem it would be wise to avoid expressions like "very, very slow" replacing them with something more useful like "my query is taking 2.5 hours to retrieve 30k rows".
    Best regards,
    Nikolay

  • To insert the xml data's generated dynamically it to orac very very urgent

    I AM WORKING IN A PROJECT WHICH RECEIVES THE DATA FROM FLAT FILES
    AND CONVERT IT TO XML FILE>
    I am in need to convert the xml file generated dynamically through out the year map it to correct datafield it the database and insert it in to oracle data base using java and jsp, servlets.
    i also need mechanism to be explained detailed and some sample codeings
    of converting the data from database to xml because
    and i also need to convert the data taken from sql server7.0 put it in xml file and once again read parse and insert in to oracle database.
    some sample codeings of the mechanisma and explaninations.
    I am in very very urgent-

    Hello sir,
    Thanks for the guidence.
    I need to insert data's into database columns where i should fetch data from xml file.
    please
    urgent.

Maybe you are looking for

  • How can I stream from my macbook to my apple tv?

    I haven't had Apple TV very long. I'm able to get my iPhone 4 to pair with my Apple TV. I haven't figured out the process to do the same on my                macbook(late2009). If this is possible I would appreciate a little help.

  • Validity period error while creating Service Entry Sheet.

    Hi SAP experts, Users are facing below two error messages while creating serivce entry sheet with respect to Standard PO (NB).The PO has RFQ refrence where Validity start and end date is blank. Also PO has Item category 'D' (Services) 1) "Runtime of

  • Automate the moutning of a network hard drive?

    Hello all, I recently purchased a LaCie Ethernet Disk Mini for backup purposes. I got the ethernet one because I run a powerbook and am generally on the wireless network. I had no trouble getting connected (I have an Airport Extreme Base Station and

  • Regarding creation of bom and material in cfolder

    dear gurus, i want help from all of u. can any one tell me , what is the benefit of creating BOM / material in cfolder instead of R3.??????? full reward points for useful answer thanks [email protected]

  • Unable to Supervise & Restore Backup. iOS 7-7.0.2 Configurator 1.4

    I have just finished a deployment of 530 iPad 4's in the school where I work. Everything went fine with 6.1.3 and configurator 1.3. Since then, configurator has automatically downloaded and installed iOS 7... Which would be fine, if it worked. I figu