Can PQO been used in DML statements to speed up multi-dimension query ?

We have
limit dim1 to var1 ne na
where dim1 is a dimension.
var1 is a variable dimensioned by dim1.
This is pretty much like SQL table scan to find the records. Is there a PQO (parallel query option)-like option in DML to speed up multi-dimension query ?

This is one of the beauties of the OLAP Option, all the query optimisation is managed by the engine itself. It resolves the best way to get you the result set. If you have partitioned your cube the query engine will perform the same way as the relational query engine and employ partition elimination.
Where things can slow down is where you used compression, since to answer a question such as "is this cell NA?" all rows in the cube need to be uncompressed before the query can be answered and result set generated. Compression technology works best (i.e. is least intrusive in terms of affecting query performance) where you have a very fast CPU. However, the overall benefits of compression (smaller cubes) nearly always outweigh the impact of having to uncompress data to answer a specific question. Usually the impact is minimal if you partition your cube, since the un-compress function only needs to work on a specific partition.
In summary, the answer to your question is "No", because the OLAP engine automatically optimises the allocation of resources to return the result-set as fast as possible.
Is there a specific problem you are experiencing with this query?
Keith Laker
Oracle EMEA Consulting
OLAP Blog: http://oracleOLAP.blogspot.com/
OLAP Wiki: http://wiki.oracle.com/page/Oracle+OLAP+Option
DM Blog: http://oracledmt.blogspot.com/
OWB Blog : http://blogs.oracle.com/warehousebuilder/
OWB Wiki : http://wiki.oracle.com/page/Oracle+Warehouse+Builder
DW on OTN : http://www.oracle.com/technology/products/bi/db/11g/index.html

Similar Messages

  • Why DECODE can only be used in sql statement

    Hi,
    Why the sql1 works but sql2 doesn't.
    sql 1 ) Select decode(1,0,0,1) into var from dual;
    sql 2 ) var = decode(1,0,0,1);
    Kindly clarify.
    Regards,
    Kishore

    Hi Purvesh,
    2nd works fine for 11g onwards.
    Really?
    Got the same error when executed the below (on Oracle 11.2.0.3.0)
    SQL> DECLARE
      2    var_x NUMBER := 1;
      3    var_y VARCHAR2(10);
      4  BEGIN
      5    var_y := Decode(var_x, 1, 'Yes', 'No');
      6    Dbms_Output.PUT_LINE('var_x: '||var_x);
      7    Dbms_Output.PUT_LINE('var_y: '||var_y);
      8  END;
      9  /
      var_y := Decode(var_x, 1, 'Yes', 'No');
    ERROR at line 5:
    ORA-06550: line 5, column 12:
    PLS-00204: function or pseudo-column 'DECODE' may be used inside a SQL
    statement only
    ORA-06550: line 5, column 3:
    PL/SQL: Statement ignored
    Please explain me the same.

  • How to Split ddl or dml statement

    Hi guys,
    i'm using oracle 11.2
    i've the following question.
    i've a string that can contains multiple ddl or dml statement and i need to split them in more statement.
    i.e. i can have a string like the below and i need 2 string each one with a statement:
    insert into TEST_KIT_USER1.table1 values (1,'a');
    insert into TEST_KIT_USER1.table1 values (2,'b');
    otherwise i can have a string like the below and i need 2 string each one with a statement:
    create table TEST_KIT_USER1.table2
    name char(10),
    surname CHAR(10 BYTE)
    create table TEST_KIT_USER1.table3
    id number,
    description CHAR(10 BYTE)
    is there a simple way to do this?

    Have you tried using iMovie?
    I know that iMovie HD '06 can do this, I'm not sure if '08 can.
    If you have iLife '08, you can download iMovie HD '06 from apple's site here.
    Good luck!

  • Forall with multi dml statements

    hi
    I am trying to write a procedure for learning purpose, but it gives error message.
    Normally we use for loops, it is slow but for loop is a block and you can execute many select and dml statements inside for loop.
    I want to achieve this with bulk collect and for all but I can not. Can you help me?
    /* Formatted on 2009/07/28 07:34 (Formatter Plus v4.8.8) */
    CREATE OR REPLACE PROCEDURE bulk_collect_query
    IS
    TYPE employee_tt IS TABLE OF employees.employee_id%TYPE
    INDEX BY BINARY_INTEGER;
    TYPE salary_tt IS TABLE OF employees.salary%TYPE
    INDEX BY BINARY_INTEGER;
    TYPE hire_date_tt IS TABLE OF employees.hire_date%TYPE
    INDEX BY BINARY_INTEGER;
    hire_datet hire_date_tt;
    employeet employee_tt;
    salariet salary_tt;
    BEGIN
    DBMS_OUTPUT.put_line ('Before Bulk Collect: ' || SYSTIMESTAMP);
    SELECT employee_id, salary, hire_date
    BULK COLLECT INTO employeet, salariet, hire_datet
    FROM employees;
    DBMS_OUTPUT.put_line ('After Bulk Collect: ' || SYSTIMESTAMP);
    FORALL indx IN employeet.FIRST .. employeet.LAST
    begin
    INSERT INTO t_emp_history
    (employee_id, salary, hire_date
    VALUES (employeet (indx), salariet (indx), hire_datet (indx)
    INSERT INTO t_emp_history
    (employee_id, salary, hire_date
    VALUES (employeet (indx), salariet (indx), hire_datet (indx)
    end;
    DBMS_OUTPUT.put_line ('After FORALL: ' || SYSTIMESTAMP);
    COMMIT;
    END;
    /

    /* Formatted on 2009/07/28 07:34 (Formatter Plus v4.8.8) */
    CREATE OR REPLACE PROCEDURE bulk_collect_query
    IS
    type v_datareturn IS record(
    employee_id employees.employee_id%TYPE,
    salary employees.salary%TYPE,
    hire_date employees.hire_date%TYPE
    TYPE employee_tt IS TABLE OF v_datareturn
    INDEX BY BINARY_INTEGER;
    employeet employee_tt;
    CURSOR c IS
    SELECT employee_id, salary, hire_date
    FROM employees;
    BEGIN
    DBMS_OUTPUT.put_line ('Before Bulk Collect: ' || SYSTIMESTAMP);
    OPEN c;
    FETCH c BULK COLLECT INTO employeet;
        FORALL i IN 1..employeet.COUNT
        INSERT INTO t_emp_history VALUES employeet(i);
        CLOSE c;
    DBMS_OUTPUT.put_line ('After Bulk Collect: ' || SYSTIMESTAMP);
    COMMIT;
    END;
    /Untested one.....
    Ravi Kumar

  • Trying to use multiple if statements to set a variable in my script

    I am importing a csv file to create user accounts.. i have it working.. but now i want to have the script look at a variable, and based on that variable set other variables, like the ou or home directory path etc..
    here's what i have so far.. it seems to select the 2nd option ASH unless i # it out then it selects the first option..i am clearly missing something simple here.... i can't just use an else statement as i will need many lines of logic to support the many
    different ou's, home dir shares etc.. globally...
    import-csv $csv | foreach-object {
     $site=$_.site
                       $HomeDArl= "\\teleflex\global\home\medical\na\arl"
                       $HomeDASH= "\\ashfs01.arrowintl.com\user"
                            if ($site='ARL'){
                                $homed = $HomeDArl
                            if ($site='ASH'){
                                $homed =$HomeDASH 

    Thanks for the push in the right direction..
    Import-CSV $filepath | ForEach-Object {
                                  $site=$_.site
                                   switch ($site) {
                                    Arl {$homed = "\\teleflex\global\home\medical\na\arl"}
                                    Ash {$homed ="\\ashfs01.arrowintl.com\user"}

  • An index can not being used and still afect a query performance?

    Hi i have a query with a high cost so i created two indexes, A and B, to improve its performance.
    After the creation of the indexes when i reviewed the execution plan of the query the cost had been reduced, but i noticed that the index B is not being used,
    and if i try to force the query to use index B with a HINT the cost increases, so i decided to drop the index B.
    Once i droped the index B i checked the execution plan again and then i noticed that the cost of the query increased, if i recreate the index B the explain plan
    shows a lower cost even though its not being used by the execution plan.
    Does anyone know why is this happening?
    An index can, not being used by the execution plan and still affect a query performance?

    user11173393 wrote:
    Hi i have a query with a high cost so i created two indexes, A and B, to improve its performance.
    After the creation of the indexes when i reviewed the execution plan of the query the cost had been reduced, but i noticed that the index B is not being used,
    and if i try to force the query to use index B with a HINT the cost increases, so i decided to drop the index B.
    Once i droped the index B i checked the execution plan again and then i noticed that the cost of the query increased, if i recreate the index B the explain plan
    shows a lower cost even though its not being used by the execution plan.
    Does anyone know why is this happening?
    An index can, not being used by the execution plan and still affect a query performance?You said that is what is happening, & I believe you.

  • Can't i use temp tables in regions?

    Hi,
    I'm trying to population 3 years fiscal year data in a single row, one for full time and other one for part time employees. So my output should look like this
    Population Fy1_Tot Fy1% Fy2_Tot Fy1% Fy3_Tot Fy3%
    FT 500 50.0 700 70.0 9000 90.0
    PT 500 50.0 300 30.0 1000 10.0
    Each fy1 data represents different month, based on the month I have to populate corresponding Fiscal year and I have take care this.
    I could do this using TEMP table and works well in Toad but not in HTML DB? Can’t I use temp tables in regions?
    Please see the query below
    WITH TEMP AS(
    SELECT INITCAP(FIELD_VALUE) as Population,
    (CASE WHEN D_S_REP.SMC = :P14_MC_FY1 THEN TO_NUMBER(FYT3) END) as Total1,
    (CASE WHEN D_S_REP.SMC = :P14_MC_FY1 THEN FYP3 END) as FY1P,
    (CASE WHEN D_S_REP.SMC = :P14_MC_FY2 THEN TO_NUMBER(FYT2) END) as Total2,
    (CASE WHEN D_S_REP.SMC = :P14_MC_FY2 THEN FYP2 END) as FY2P,
    (CASE WHEN D_S_REP.SMC = :P14_MC_FY3 THEN TO_NUMBER(FYT1) END) as Total3,
    (CASE WHEN D_S_REP.SMC = :P14_MC_FY3 THEN FYP1 END) as FY3P
    FROM D_S_REP
    WHERE FIELD_NAME='POPULATION'
    AND RS_YR LIKE '%'||TRIM(:P14_S_YR) || '%'
    AND D_S_REP.SMC IN (TRIM(:P14_MC_FY1),TRIM(:P14_MC_FY2),TRIM(:P14_MC_FY3))
    AND WP_NAME = TRIM(:P14_WP_NAME)
    AND RDL_NAME LIKE '%'||TRIM(:P14_EMPLOYEES)||'%'
    GROUP BY FIELD_VALUE,D_S_REP.SMC, FYT3,FYP3,FYT2,FYP2,
    FYT1,FYP1)
    SELECT Population, SUM(Total1), SUM(FY1P), SUM(Total2), SUM(FY2P),SUM(Total3), SUM(FY3P) FROM TEMP
    GROUP BY Population
    Any thoughts!!
    Thanks
    CK

    Actually the same query works well, in HTML DB too. it was my fault i placed the query in a wrong region so i was getting error..
    Thanks

  • How to identify the sales group object is been used in how many queries?

    Hi all,
    I happened to check the where used list for the info object sales group and it shows me the cube and ods, multi provider etc.
    Is there other way in which i can see the list of queires which are using this info objects in the query ?
    Thanks

    HI,
    You can try where used list for the object. it will provide the query element for the object. so can get the queries.
    Regards,
    SKDDON

  • If we use DML statement in function then that function can be used inside s

    if we use DML statement in function then that function can be used inside select query or any DML query?

    select f from t2;I think you meant to query t1.
    It works if the function is an autonomous transaction:
    create or replace function f return number
    is
    PRAGMA AUTONOMOUS_TRANSACTION;
    begin
        update t1 set c=2;
        commit;
        return 1;
    end;
    select f from t1But as Billy said why would you want to do DML this way. And this is not the way autonomous procedures should be used either.
    An an answer to an interview question though nothing wrong with it.

  • How can I reset my IPAD 2 to resolve the fact that Apple will not let me use the APPLE  ID and passwords that I want to use becasue they may have been used in the past year. I am very close to donating this contraption to the Good Will.

    I have been an Apple User for almost two decades and have had no problems with my G4 Powerbook, my Intel MacMini, nor several other Macs as well as Windows 7 machines. However, the IPAD2 poses a problem of unfathomable disgust with the concept and implementation of the Apple ID. There is one for the computer, there is one for support, and there is one for itunes, and possibly another one for apps. There are different passwords for each. I am continually faced with notification that my Apple ID is incorrect or the password is incorrect. I have to keep an Excel spreadsheet with all of this unnecessary NANNY State protection matched only in pervasiveness by the Federal government.
    I am told that an Apple ID can never be destroyed and replaced. Who dreamed that one up? I am told I cannot use a password that has been used in the past year. Why? By whose authority? I am not a walking encyclopedia that remembers every telephone number he ever dialed. Thankfully my cheap LG clamshell telephone keeps numbers and talks to Ford Sync successfully.
    Bottom line is that the IPAD has become almost totally useless since I cannot change the several necessary passwords to anything I can remember because they are not novel enough. I also never seem to be able to keep the Apple IDs straight as they are too numerous to remember and I don't want to remember them anyway. Why? Even if you enventually get the ID right you have the wrong password and have to go through a merry-go-round of emails to change the password to something you have already used in the past year which is not permitted.
    Has anyone out there used a competitive device with less cumberson overhead? Surely this is not the best American technology can produce.
    Thanks for your comments.
    Ray Zachary

    Thanks to all who responded. You are all absolutely correct. However, this Ipad was a gift to my wife who was dying of cancer in the hospital and wanted some entertainment. So I started it out with her Apple ID. After she passed away I moved from Sacramento to Austin and eventually proceeded to get the Apple ID changed from my wife's to mine. Meanwhile when she was in the hospital I opened an Itunes account in my name to buy movies for her. That was the first mistake.
    Then during the move to Austin I lost track of the IPAD and later found it and tried to use support but could not remember the proper ID. Later the folks at the Apple store helped me create a new and novel Apple ID that was unfortunately unlike any other.
    The botom line is that I am stuck with three Apple IDs and three passwords. I am told by Apple there is nothing they can do about this as IDs cannot be changed or destroyed. I can quit using them or start a new account but when I try to do that the system keeps remembering too many things from the past and resists.
    Even if I sold this Ipad and bought a new one, the system memory is still there.
    I think the real problem is that destop and laptop computers are totally owned by an individual and that individual can control logins and passwords to his liking. IPADs and similar Apple products are different in that the corporation has built in their own intrusion detection schemes because of the relation to Itunes.
    One thing I thought about is to open a new Itunes account pretendding to be a new customer with my regular Apple ID. Perhaps I could do the same with Apple Support.
    Thanks for your comments.
    RAZ

  • Can I use a solid state drive (SSD) with a G4 1 GHz powerbook? If so, how do I do it?

    Hi:
    Can I use a solid state drive (SSD) with a G4 1 GHz powerbook? If so, how do I do it? Thanks.
    fromx001

    fromx001 I believe you can use a SSD as internal drive, of course make sure to buy an ide/ata. There are all sorts of sizes up to 480 GB also in the ide/ata standard. You should however research carefully your purchase, as the performances of your SSD are going to have to rely on firmware "garbage collection", as the older operating systems haven't been written with SSD in mind.
    Mac Man JW: some people depend on Classic as a brody said, other people need a phone modem from time to time, other people use the laptop in harsh environments, and at -15C and below, LCD screens easily crack and break; NOT the powerbook which has hot air towards the screen (and it's a machine that heats quite a lot). My alu Powerbook 12", which was *not* treated with velvet gloves, only once had a cracked screen: a cleaning lady had stepped over it (!!!!) no joke. And in normal / light use today, it is still pretty decent and usable. 

  • I cannot open a book on my Kobo it states that the document cannot be opened because it is protected by DRM yet I have been using it for over a year now

    It states that i cannot open a book because it is protected by DRM yet I have been using it for over a year now, What do I do?

    same problem for me. I am using abe edition 3 as I don't think 4 can be used with kobo. Book has been downloaded to kobo but it can't be read as it is not authorised.Help please

  • Can we do Dml statements on materialize views

    I want to know can we do Dml statements on materialize views .If yes, how

    Can you? Maybe. Depends on how you created the materialized view. Should you? Maybe. Are you running a multi-master environment? Or are you using materialized views for one-way replication? If you are doing one-way replication, do you want your DML changes to be retained beyond the next refresh of the materialized view?
    Justin

  • Error: "Variable State has been used outside the reusable components"

    When I open a query in the ad hoc query designer I get several error messages like "Variable State has been used outside the reusable components."  I don't what this means or how to fix it.
    "State" is one of the variables used.  And there is a error for every variable that is used.
    All the variables are in the free characteristics.
    When I open the query in Query Designer, it is ok.
    Any ideas?

    Hi Fong,
    PLease check the following link:
    http://help.sap.com/saphelp_nw04/helpdata/en/1f/03223c5f00612be10000000a11402f/content.htm
    It states that:
    You cannot integrate variables into the query directly.
    However, you can use variables in reusable structures, or restricted or calculate key figures, which are used in the Ad-hoc Query Designer
    Hope this helps...

  • Can anyone suggest me any other fax services that you have been used?

    I have used Popfax Internet Fax Service for few years, I know that Popfax is currently available in 23 countries, including France, Belgium, Italy, Spain, Germany, Czech Republic, Slovak Republic, Denmark, Norway, Finland, Sweden, Austria, Poland, Portugal, Romania, Switzerland, Moldova, Croatia, Ireland, Netherlands, United Kingdom, United States of America and Georgia.
    I also know that Popfax -allows free receiption of faxes, and WorldWide sending for only 0.07 USD / page. As well as subscribing to the package "Send and Receive" for one year, is only 68.99 USD with 50 pages included with this Fax Service
    More than that recently was launched SMS service, by using it you can send a SMS to any direction of the world, directly from the Provider's web site or email. It offers a Free Trial without the necessity of including the details from your credit card number.
    My question is can anyone suggest me any other fax services that you have been used, and you think has more advantages from different points of view than the  Internet Fax Service Provider I've mentioned above?

    RingCentral is one of those internet fax service providers that deals with a lot of features, easy accessibility and wide range of services add-ons when it comes to online faxing.

Maybe you are looking for