Set autotrace on sample set of data of 410 million rows

The dev env and the prod env is very different from our shop.
So if I do a sample on the prod data and then use the same query logic and do a real run and with autotrace on
Can I trust the plan and execution time of this sampling test and do an estimate on how it is gonna run in prod?
I guess I can use this to do a rough estimate of my prod run?
Any of you guys have done similar exercise?
I have the data size of 410 millions on my prod to process.
-Thx so much

I am talking about doing a perf exercise in the production environment but I am using only a sample cause and take 0.01 percent
idea of what I am doing. It is not linearly scale up of course but perhaps it gives me a rough idea?
insert into pipetest_result1
17:39:27   2  with pipetest1_smp001 as (
17:39:27   3  select * from pipetest1 sample(1) --can this give me a rough idea                                                  of how long it is gonna run?
17:39:27   4  ),
17:39:27   5   j1 as (
17:39:27   6  select id,value1,value2,pipetest1_YN(NVL(value1,1),NVL(value2,1))                                                  result from pipetest1_smp001
17:39:27   7  )
17:39:27   8  select id,result from j1 where j1.result='Y'
17:39:27   9
spool off
@pipetest1
set autotrace on
spool &1
Enter value for 1: pipetest_perf_feb15x1
insert into pipetest_result1
17:40:14   2  with pipetest1_smp001 as (
17:40:14   3  select * from pipetest1 sample(1) --can this give me a rough idea                                                  of how long it is gonna run?
17:40:14   4  ),
17:40:14   5   j1 as (
17:40:14   6  select id,value1,value2,pipetest1_YN(NVL(value1,1),NVL(value2,1))                                                  result from pipetest1_smp001
17:40:14   7  )
17:40:14   8  select id,result from j1 where j1.result='Y';
1231 rows created.
Elapsed: 00:00:02.13
Execution Plan
| Id  | Operation           | Name      | Rows  | Bytes | Cost (%CPU)|
|   0 | INSERT STATEMENT    |           |     1 |    51 |   399   (2)|
|   1 |  TABLE ACCESS SAMPLE| PIPETEST1 |     1 |    51 |   399   (2)|
Note
   - 'PLAN_TABLE' is old version
Statistics
        129  recursive calls
         47  db block gets
       2343  consistent gets
       2211  physical reads
      23536  redo size
        819  bytes sent via SQL*Net to client
       1003  bytes received via SQL*Net from client
          3  SQL*Net roundtrips to/from client
          2  sorts (memory)
          0  sorts (disk)
       1231  rows processed
spool off
@"pipetest1.sql"
set autotrace on
spool &1
Enter value for 1: pipetest1_feb15_all
insert into pipetest_result1
17:40:56   2  with pipetest1_smp001 as (
17:40:56   3  select * from pipetest1 --sample(1) --can this give me a rough ide                                                 a of how long it is gonna run?
17:40:56   4  ),
17:40:56   5   j1 as (
17:40:56   6  select id,value1,value2,pipetest1_YN(NVL(value1,1),NVL(value2,1))                                                  result from pipetest1_smp001
17:40:56   7  )
17:40:56   8  select id,result from j1 where j1.result='Y';
123924 rows created.
Elapsed: 00:00:47.60
Execution Plan
| Id  | Operation         | Name      | Rows  | Bytes | Cost (%CPU)|
|   0 | INSERT STATEMENT  |           | 11180 |   425K|   900  (57)|
|   1 |  TABLE ACCESS FULL| PIPETEST1 | 11180 |   425K|   900  (57)|
Note
   - 'PLAN_TABLE' is old version
Statistics
        719  recursive calls
       2901  db block gets
       3227  consistent gets
          0  physical reads
    2261104  redo size
        825  bytes sent via SQL*Net to client
       1005  bytes received via SQL*Net from client
          3  SQL*Net roundtrips to/from client
          1  sorts (memory)
          0  sorts (disk)
     123924  rows processed

Similar Messages

  • How to set autotrace to explain plan ONLY

    Hi,
    I would like to see explain plan for a long running statement.
    Now if I do following:
    set autotrace on explain
    UPDATE ......-- my statement
    I get the plan, but the rows are updated also :-(
    Is there a way to tell ORACLE, please show me the explain plan but dio not execute the statement?
    Thanks

    ONLY FOR queries you can use
    set autotrace traceonly explain
    And actually query isn't executed. For other DML you cannot use that.
    The other way can be explaining the query and then selecting the plan_table output:
    SQL> explain plan for update t set code = 3;
    Explained.
    SQL> SELECT * FROM table(DBMS_XPLAN.DISPLAY);
    PLAN_TABLE_OUTPUT
    Plan hash value: 931696821
    | Id  | Operation          | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | UPDATE STATEMENT   |      |     3 |     9 |     3   (0)| 00:00:01 |
    |   1 |  UPDATE            | T    |       |       |            |          |
    |   2 |   TABLE ACCESS FULL| T    |     3 |     9 |     3   (0)| 00:00:01 |
    Note
    PLAN_TABLE_OUTPUT
       - dynamic sampling used for this statement
    13 rows selected.
    SQL> see http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_xplan.htm
    Gints Plivna
    http://www.gplivna.eu

  • TS3297 when I press the iTunes button on my ipod touch I get the message 'cannot connect to iTunes store' .  My wifi is working fine, I can connect to safari & you tube, no parental setting in place, and time and date are correct. Can anyone help please?

    When I press the iTunes button on my ipod touch I get the message 'cannot connect to iTunes store' .  My wifi is working fine, I can connect to safari & you tube, no parental setting in place, and time and date are correct. Can anyone help please? I have restored my ipod to factory settings and rest it.

    I also tried moving the date forward by a year and then moving it back to normal and it still doesn't work.  i can't find an automatic update of time zones on my itouch to turn this off.

  • Character set marker unknown error while importing data in 10g from 8i

    Hi All,
    I am trying to import the whole database schema wise (one by one) through oracle 10g database control page (which is browser based)
    But when i try to import the objects of a schema i get the error that
    "IMP-00037 : Character set marker unknown "
    Import terminated unsuccessfully
    Would anybody please tell me about the mentioned error ???
    Kindly provide the solution.
    Mentioned below are the character sets available in both the version.
    Character sets in oracle 8.1.7 :-
    Database Character Set :: WE8ISO8859P1
    National Character Set :: WE8ISO8859P1
    Character sets in oracle 10.2.0.1.0 :-
    Database Character Set :: WE8ISO8859P1
    National Character Set :: AL16UTF16
    Regards
    Milin...
    Message was edited by:
    user640001

    Hi,
    As you have asked, i have mentioned the export command below to get the full database export file.
    And I have copied this export file (dump) to another machine(Server) where i have to import that file to upgrade the database to 10g Rel 2.
    SET CC=%DATE:~4,2%-%DATE:~7,2%-%DATE:~10,4%
    exp username/password@db_name
    file=D:\PAY_BKP\EXP_FULL_PAY_%CC%.DMP log=D:\PAY_BKP\EXP_FULL_PAY.log
    indexes=yes
    full=yes
    Kindly provide guidance.
    Regards
    Milin

  • Dynamic Calc processor cannot lock more than [100] ESM blocks during the calculation, please increase CalcLockBlock setting and then retry(a small data cache setting could also cause this problem, please check the data cache size setting).

    Hi,
    Our Environment is Essbase 11.1.2.2 and working on Essbase EAS and Shared Services components.One of our user tried to run the Cal Script of one Application and faced this error.
    Dynamic Calc processor cannot lock more than [100] ESM blocks during the calculation, please increase CalcLockBlock setting and then retry(a small data cache setting could also cause this problem, please check the data cache size setting).
    I have done some Google and found that we need to add something in Essbase.cfg file like below.
    1012704 Dynamic Calc processor cannot lock more than number ESM blocks during the calculation, please increase CalcLockBlock setting and then retry (a small data cache setting could also cause this problem, please check the data cache size setting).
    Possible Problems
    Analytic Services could not lock enough blocks to perform the calculation.
    Possible Solutions
    Increase the number of blocks that Analytic Services can allocate for a calculation:
    Set the maximum number of blocks that Analytic Services can allocate to at least 500. 
    If you do not have an $ARBORPATH/bin/essbase.cfg file on the server computer, create one using a text editor.
    In the essbase.cfg file on the server computer, set CALCLOCKBLOCKHIGH to 500.
    Stop and restart Analytic Server.
    Add the SET LOCKBLOCK HIGH command to the beginning of the calculation script.
    Set the data cache large enough to hold all the blocks specified in the CALCLOCKBLOCKHIGH setting. 
    Determine the block size.
    Set the data catche size.
    Actually in our Server Config file(essbase.cfg) we dont have below data  added.
    CalcLockBlockHigh 2000
    CalcLockBlockDefault 200
    CalcLockBlocklow 50
    So my doubt is if we edit the Essbase.cfg file and add the above settings and restart the services will it work?  and if so why should we change the Server config file if the problem is with one application Cal Script. Please guide me how to proceed.
    Regards,
    Naveen

    Your calculation needs to hold more blocks in memory than your current set up allows.
    From the docs (quoting so I don't have to write it, not to be a smarta***:
    CALCLOCKBLOCK specifies the number of blocks that can be fixed at each level of the SET LOCKBLOCK HIGH | DEFAULT | LOW calculation script command.
    When a block is calculated, Essbase fixes (gets addressability to) the block along with the blocks containing its children. Essbase calculates the block and then releases it along with the blocks containing its children. By default, Essbase allows up to 100 blocks to be fixed concurrently when calculating a block. This is sufficient for most database calculations. However, you may want to set a number higher than 100 if you are consolidating very large numbers of children in a formula calculation. This ensures that Essbase can fix all the required blocks when calculating a data block and that performance will not be impaired.
    Example
    If the essbase.cfg file contains the following settings:
    CALCLOCKBLOCKHIGH 500  CALCLOCKBLOCKDEFAULT 200  CALCLOCKBLOCKLOW 50 
    then you can use the following SET LOCKBLOCK setting commands in a calculation script:
    SET LOCKBLOCK HIGH; 
    means that Essbase can fix up to 500 data blocks when calculating one block.
    Support doc is saying to change your config file so those settings can be made available for any calc script to use.
    On a side note, if this was working previously and now isn't then it is worth investigating if this is simply due to standard growth or a recent change that has made an unexpected significant impact.

  • Setting up csv files as a data source for Hyperion intelligence explorer on Windows 7

    Hi. wondering anyone can point me to a resource or supply me with step son how to Set up csv files as a data source for Hyperion intelligence explorer on Windows 7?
    I used to be able to do it in WXP, but it seems thing shave really changed with W7..... Absolutely desperate... All and any help welcome.....

    Hi
    Can you please try setting up full persmission in the security properties for everyone on the wsconfig folder C:\ColdFusion10\config\wsconfig  and restart ColdFusion Server.
    Swaraj

  • Dump in user exist CC01 to set default value to valid from date

    Dear friends,
    Task is to set default value to valid from date field in Transaction "CC01".
    In INCLUDE ZXCCAU01 of Function 'EXIT_SAPMC29C_001' in Enhancement 'PCCD0001' I written the code like this
    DATA var LIKE sy-datum.
    var = var + 1.
    which is not related to program by creating project and activated the project.
    When I run cc01 it is giving dump.
    Error is :
    Program "SAPLXCCA" tried to use screen 1000.
    The screen does not exist.
    Can some one guide me What is the problem and How to resolve this.
    If not, Is there any other method this can be done.
    Regards,
    Venkat

    Hi venkat,
    DATA var LIKE sy-datum.
    var = var + 1.
    the code u written i guess not ok.The code used by kishan is correct. i.e
    DATA var LIKE sy-datum.
    sy-datum = sy-datum + 1.
    var =  sy-datum.
    write var.
    use the above code.
    SAPLXCCA is a functionpool not a program.please check the same.
    regards,
    Nagaraj

  • SET AUTOTRACE ON..problems

    Hi everyone!
    I tried to set autotrace on with the following command. I got some errors .
    SQL> SET AUTOTRACE ON EXPLAIN STATISTICS
    SP2-0613: Unable to verify PLAN_TABLE format or existence
    SP2-0611: Error enabling EXPLAIN report
    SP2-0618: Cannot find the Session Identifier. Check PLUSTRACE role is enabled
    SP2-0611: Error enabling STATISTICS report
    Can you please help me out with this problem?
    Can you please explain what each of the errors meant?
    Thank you all.

    kishore
    run this script UTLXPLAN.SQL to create the plan_table IN YOUR SCHEMA
    and then SET AUTOTRACE ON will work
    prakash

  • On my mini ipad, I cleared the cookies/histories in the safari setting.  But what does the advance-setting of the clearing the website data does?  What's that used for? Thank you!

    On my mini ipad, when I'm on the internet -- a few times I will see a blue small pop-up boxes telling me to allow down/load or add something like the bubble-splash game or something similar.  I jusr click ignore and it goes away.. I'm not sure why it's showing up lately.. I'm not sure if it's a virus or hacked in or a web brower matter..
    Should I go to the cookies/histories in the safari setting and have it cleared out?  Will that help resolve that?? 
    And what does the advance-setting of the clearing the website data does?  Sorry, I'm not familiar.. what's is that used for? Should I use that feature as well?? Thank you!

    This indicates corrupt files.
    A restore should resolve.

  • Tables listed in Result set field selction tab against Standard Data Objects in MDO configuration

    On what basis are the tables gettting filled in the Result set field selction tab against Standard Data Objects in MDO configuration.
    Only the handler class is specified before it gets filled.
    Vivek.
    Tags edited by: Michael Appleby

    Hi Vivek,
    I would also recommend providing the version of the product either in the body of your discussion or in the tags (or both, preferred).  If you are installing it on SMP 2.3 or some other platform, please add that as well.  I have updated your tags and assigned the correct Category.  Since there are so many different technologies in SAP for Mobile, tags and Categories help the helpers find your post and help you find a solution.
    Thanks, Mike

  • How to set background of jtable in no data?

    How to set background of jtable in no data?
    I use table.setBackground(Color.black) but no successful
    Please help me. thanks very much

    maybe, you don't understand me.
    I have below jtable:
    ============================
    I column1 name l column2 name I
    ============================
    l data l data l
    ============================
    l data l data l
    ============================
    XXX
    ============================
    I wrote:
    table.setBackground(Color.black) then only data area has black colour, but XXX area hasn't black colour.
    How to XXX area also has black colour?
    help me, thanks very much.

  • How can I set my Messages to view by date ?

    How can I set my Messages to view by date ?
    I don't like them to organize by thread.
    Are there any software to help me?

    You can't. By design and intention messages are provided/organized in conversation/threaded format by each contact you exchange messages with and the messages within each conversation are sorted by date.
    There is no 3rd party software/apps available that can change this with the included Messages application.

  • Set autotrace on exp 권한 부족 에러

    안녕하세요.
    오라클 버젼은 9203 이며, set autotrace on exp 하였을때 아래와 같이
    ORA-01039: insufficient privileges on underlying objects of the view
    메시지가 나옵니다.
    새로운 유저로 utlplan.sql 실행시킨후 dba 유저로 plustrace.sql 실행시킨후 plustrace role의 권한을 새로운 유저에제 grant 하였으나,
    여전히 에러를 발생시키며,
    새로운 유저에게 DBA권한을 부여하면 plan이 잘나옵니다.
    plustrace role 제외하고 다른 권한을 부여해야 하는지 알고 싶습니다.

    그러면..그 문제가 아닌것 같은데요..
    ORA-01039: insufficient privileges on underlying objects of the view
    이라면..
    조회하고나 하는 쿼리에 view가 있고..
    그 view에 있는 object를 조회할 수 있는 권한이 없는건
    아닐까요? 테이블뿐만 아니라 유저 function까지요..
    auto trace를 하는데.. from절에 a, b 테이블이 있다면..
    select table_name from user_tables
    where table_name in ('A','B');
    이렇게 했더니 A가 안나왔다..
    select view_name from user_views
    where view_name='A';
    아래도 안나오네?
    그러면 synonym이 걸려있을 수도 있겠죠..
    select * from user_synonyms where synonym_name='A';
    이렇게 해봐서.. A의 정체가 어떤 것인지를 봅니다.
    테이블인지 view인지..... synonym으로 가장한 것이 아닌지..
    쿼리에서 점검이 필요하겠네요.
    일반 쿼리도 모두 안되나요?
    set autot on
    select * from dual;
    이렇게 해도 에러가 난다면 쿼리의 object권한 문제겠죠.
    from 절에 들어가는 object에 대해서 조회를 해보세요..
    글 수정:
    minyh0124 (민연홍)
    또는 이렇게도 생길 수 있겠죠..
    테이블에 trigger가 걸려있는데.. trigger가 테이블이 select되면
    유저가 만든 audit테이블에 insert가 된다..
    그런데 audit 테이블에 권한이 없어서 insert가 안된다..
    모 그래도 권한문제게겠죠..
    추가로 trigger가 있는지 보셔요..
    토드로 쿼리의 object를 모두 보세요.

  • Cannot set autotrace

    Hi all,
    I want to set autotrace on.
    So first I set following parameters in parameter file;
    sql_trace=true
    timed_statistices=true
    then I run the plustrce.sql in sys schema, and grant the role to rbi user.
    Later I Created the explain_table in rbi schema.
    And file the set autotrace on
    but I received the message cannot st autotrace.
    please Guide me.

    hi Prathmesh
    sql>sql_trace =true --> this statement sets the trace future on for every sql statement submitted to the database engine
    sql>timed_statistics = true -- tells oracle to gather the wait times between events. this is needed for performance monitoring.
    It's advisable to set sql_trace =false as by settting it to true you are degrading query performance
    Also regarding the autotrace stuff it would be helpful if you specify explicitly the version of Oracle you are using and also the complete error message

  • How to set field to blank if the data is # or unassigned

    hi experts,
    how to set field to blank if the data is # or unassigned?
    thx

    Hi
    add the following macro to your workbook (template workbook):
    Sub SAPBexonrefresh(qstring As String, resultArea As Range)
        For Each c In resultArea
            If LCase(c.Value) = "not assigned" Then c.Value = ""
           Next
    End Sub

Maybe you are looking for

  • Workflow issue in SC (WS10000276) - Value limit 1 step approval

    Dear Experts, We are configuring 1 step value limit approval in SRM 7.0 for SC. We have maintained the attribute SLAPPROVAL for the employee who raises the shopping cart with the manager. For the roles assigned to Manager and employee we have specifi

  • How to Validate Email field & Other..

    Hi, 1. I have a requirement in which I have to check that the texinput field i.e EMail field should have @ in it. If not then I need to throw exception. Can anybody tell me how to check @ from VO attribute. 2. There is another text input field in whi

  • Analytics 2.5 Issue on WCI

    Hi, Installing Analytics 2.5 on top of WCI results in XPException: Fatal error loading lib file analyticstag which breaks Weblogic Server startup. The Release notes indicates that this issue should be considered as warning only though it breaks the W

  • How do I restore my iPod?

    I have locked myself out of my ipod by forgetting my passcode, how do i restore this ipod from a new computer

  • Hi   report

    hi i want to send report to spool directly and at the same time output should display on the screen. how is this possible? thanx rocky