Sprepsql operation column

my output for sprepsql Operation column is over-flowing.
I checked the script and cannot figure out how to modify the sql to make more room for it.
this is statspack 9i. How can I format this better?
| Operation                      | PHV/Object Name     |  Rows | Bytes|   Cost |
|SELECT STATEMENT                |----- 2979533373 ----|       |      | 705250 |
|VIEW                            |                     |   200K|  551M| 705250 |
| SORT UNIQUE                    |                     |   200K|  303M| 705250 |
|  UNION-ALL                     |                     |       |      |        |
|   HASH JOIN OUTER              |                     |   128K|  241M| 495641 |
|    HASH JOIN OUTER             |                     |   117K|  217M| 491965 |
|     HASH JOIN OUTER            |                     |   107K|  196M| 488633 |
|      HASH JOIN OUTER           |                     |    98K|  177M| 485611 |
|       HASH JOIN OUTER          |                     |    89K|  159M| 482869 |
|        HASH JOIN OUTER         |                     |    81K|  143M| 480380 |
|         HASH JOIN OUTER        |                     |    74K|  129M| 478119 |
|          HASH JOIN OUTER       |                     |    68K|  116M| 476064 |
|           HASH JOIN OUTER      |                     |    62K|  105M| 474195 |
|            HASH JOIN OUTER     |                     |    57K|   94M| 472494 |
|             HASH JOIN OUTER    |                     |    52K|   85M| 470945 |
|              HASH JOIN OUTER   |                     |    47K|   76M| 469532 |
|               HASH JOIN OUTER  |                     |    43K|   68M| 468243 |
|                HASH JOIN OUTER |                     |    43K|   67M| 466956 |
|                 HASH JOIN OUTER|                     |    43K|   67M| 465821 |
|                  HASH JOIN OUTE|                     |    43K|   66M| 464591 |
|                   HASH JOIN OUT|                     |    43K|   66M| 463375 |
|                    HASH JOIN OU|                     |    43K|   65M| 462127 |select '--------------------------------------------------------------------------------' from dual
union all
select '| Operation | PHV/Object Name | Rows | Bytes| Cost |' as "Optimizer Plan:" from dual
union all
select '--------------------------------------------------------------------------------' from dual
union all
select *
from (select
rpad('|'||substr(lpad(' ',1*(depth-1))||operation||
decode(options, null,'',' '||options), 1, 32), 33, ' ')||'|'||
rpad(decode(id, 0, '----- '||to_char(plan_hash_value)||' -----'
, substr(decode(substr(object_name, 1, 7), 'SYS_LE_', null, object_name)
||' ',1, 20)), 21, ' ')||'|'||
lpad(decode(cardinality,null,' ',
decode(sign(cardinality-1000), -1, cardinality||' ',
decode(sign(cardinality-1000000), -1, trunc(cardinality/1000)||'K',
decode(sign(cardinality-1000000000), -1, trunc(cardinality/1000000)||'M',
trunc(cardinality/1000000000)||'G')))), 7, ' ') || '|' ||
lpad(decode(bytes,null,' ',
decode(sign(bytes-1024), -1, bytes||' ',
decode(sign(bytes-1048576), -1, trunc(bytes/1024)||'K',
decode(sign(bytes-1073741824), -1, trunc(bytes/1048576)||'M',
trunc(bytes/1073741824)||'G')))), 6, ' ') || '|' ||
lpad(decode(cost,null,' ',
decode(sign(cost-10000000), -1, cost||' ',
decode(sign(cost-1000000000), -1, trunc(cost/1000000)||'M',
Edited by: user8875620 on May 2, 2011 7:05 AM

If you're asking about information on what each step does, there is a section on access methods and one on joins in the Introduction to the Optimizer chapter of the Oracle Performance Tuning Guide http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96533/optimops.htm#721
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC

Similar Messages

  • Map CdC op transform SEQUENCE and ROW oper column properties

    I am using Map_cdc_op transform, for sequence column and row operation column properties, what fields should i choose?
    My source table has the following columns:
    RMID - primary key int
    RMName - varchar
    created_date datetime
    Last_updated datetime
    target table also has above 4 columns plus one rmLogID column with int data type. which is key column in target.
    does map_cdc_op transform also take care of the surrogate key column id in target? which is "rmlogid".
    thank you very much for the helpful info.

    Suneer I am using SQL serverdatabase, this table is dragged to workspace as source:
    RMID - primary key int
    RMName - varchar
    created_date datetime
    Last_updated datetime
    My task is to capture data changes from this table to target table, for that i a using Map_op_CDC transform, now under the properties SEQUENCE and ROW oper column what fields should i pic.I never used this transform before.
    RMid is the primary key in source, rest teh of teh fields are changeable. i track created_dt and last_updated dates for that row.
    Thanks a lot for the helpful info.

  • Explain plan window, "operation" column is very narrow in 2.1 EA2

    When widened, it becomes narrow in next attempt to get an explain plan.

    Hi Raghu,
    SQL Dev 2.1 Prod.
    A simple way to replicate this issue is :
    - Invoke an execution plan for query against partitioned table
    The execution plan gets narrowed every time partition start and partition stop column appear.
    And execution plan against non-partitioned table will re-adjust the column width to its preserved size.
    Regards,
    Buntoro

  • Report for Production order operation

    Hi
    Is there any standard  report which will give the list of production orders which are confirmed upto a particular operation.
    For Ex: Lets say routing has  operations 0010,0020 and 0030. I want to know which production orders are  confirmed upto operation 0020 and not beyond that.
    Thanks in advance.
    Maruthi Ram

    Hi,
    Options:
    1. Use COOIS.
    In the drop down LIST options select Operations. In the Select at Operation Level specify the Syst. Status as CNF & CRTD, click exclude check box, specify the Plant at Select at Header Level & execute the report.
    The output will display all operations which are not confirmed or created, now you can set filter on the operation column & get the info you're looking for.
    2. Use MCP1 - Check if this report helps.
    Hope the above answers your query.
    Regards,
    Vivek

  • Phases/operation in process order does not exist

    phases/operation in process order does not exist  this error coming when cor6n is using.why?

    HI
    After creating Master recipe in C201, under the operations tab you need to define the operations involved in recipe . along with the operation column  there is phase indicator column is there which is to be selected whether this operation is phase or not...
    Check and revert
    Regards
    Anupam Sharma

  • Flashback_Transaction_Query - how to get OPERATION if UNKNOWN?

    Hi,
    In Fl a s h b a c k T r a n s a c t i o n Q u e r y sometimes I am getting a value of UNKNOWN under the OPERATION column, if the transaction didn’t have enough undo information to correctly identify its operation type. For example it happens often when I am updating a CLOB column or always when I am deleting rows that contain at least one CLOB column type, or when I am deleting another row without CLOB column type.
    Do you know how I can get operation information in this case? Is there any way to get it?
    I am trying to retreive the information using flashback versions query that join some information with Flashback_Transaction_Query table.
    Cheers,
    Benny

    hi,
    The value of the UNDO_RETENTION parameter determines the length of time your users can flashback their queries. try increasing it , so u dont face the same issue
    in future.you’ll notice a value of UNKNOWN under the OPERATION column, if the transaction didn’t have enough undo information to correctly identify its operation
    type.
    You may want to turn on minimal supplemental logging in order to support operations involving chained rows and special storage structures such as clustered tables.
    ALTER DATABASE ADD SUPPLEMENT LOG DATA;

  • Using alias in where statement

    simple sql:
    SELECT EMPLOYEE_ID,
    FIRST_NAME,
    LAST_NAME,
    EMAIL,
    PHONE_NUMBER,
    HIRE_DATE,
    JOB_ID,
    SALARY,
    COMMISSION_PCT,
    MANAGER_ID,
    DEPARTMENT_ID
    FROM EMPLOYEES
    WHERE EMPLOYEE_ID > 1000;
    is it somehow possible to use alias in where statement like
    SELECT EMPLOYEE_ID "ID",
    FIRST_NAME,
    LAST_NAME,
    EMAIL,
    PHONE_NUMBER,
    HIRE_DATE,
    JOB_ID,
    SALARY,
    COMMISSION_PCT,
    MANAGER_ID,
    DEPARTMENT_ID
    FROM EMPLOYEES
    WHERE "ID" > 1000;

    Hi,
    is it somehow possible to use alias in where statement likeWhy do you need it?
    To answer your question "Not directly"
    SQL> select empno eno, sal
      2  from emp
      3  where eno = 7900;
    where eno = 7900
    ERROR at line 3:
    ORA-00904: "ENO": invalid identifierColumn Alias are names given to give meaningful names to columns or the arithmetic operations' column.
    Twinkle

  • DML Error logging for Update statement

    Hello,
    I am facing a problem with regard to DML Error logging with Update statement .
    oracle : 10.2
    I am executing following DML update:
    BEGIN
    UPDATE
    table_1  a
    SET a.Exp_DATE =a.EFF_DATE
    WHERE  a.col_a1 != (SELECT b.colb1
                         FROM table_2  b
                         WHERE  a.msisdn =b.msisdn )
    LOG ERRORS INTO table_1_ERR REJECT LIMIT UNLIMITED;                        
    END ;    I was expecting that "ORA-01427: single-row subquery returns more than one row" would be captured in LOG error table "table_1_err"
    but instead I got run time error and whole dml was rolled back.
    Please let me know whether this exception is not captured by DML error logging.
    Thanks,
    Abhishek

    *Oracle logs the following errors during DML operations:** Column values that are too large.
    * Constraint violations (NOT NULL, unique, referential, and check constraints).
    * Errors raised during trigger execution.
    * Errors resulting from type conversion between a column in a subquery and the corresponding column of the table.
    * Partition mapping errors.
    >
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14223/transform.htm#sthref777

  • Change in Advanced Search

    Hi Experts,
    In CRM 2007, for any search, three columns appear.
    1. For Search Criteria
    2. For the Operator (Is, isnot, contains)   &
    3. For the Search Value
    The requirement is to hide the middle column- the relation calumn.
    Through configuration, I could set the default operator but am not able to hide it.
    How can I hide the operator column?
    regards,
    Ravindra Valy

    Hi Experts,
    The requirement has come up as only because the search is made with operator "is", "Contains" or "Starts with". No other operator is required in the client scenario.
    Now operator "Contains" & "Start with" can be avoided with wild card characters. For example If I have to search for Name starting with K, I can use Name "is" K*.
    Hence eventually, if I make the default operator as "is", I need not have to show it as it works for "is", "Contains" and "Start with" . Hence is the requirement to hide the middle operator column.
    If any one find a way out to hide the middle operator column, kindly help me.
    regards,
    Ravindra Valy

  • How to connect OLAP in OWB.

    Hi,
    Can any one help me regarding the connection of Measures in OLAP schema.
    Thanks in advance...

    Hi
    You will see that in the view created (ORDER_CHG_VIEW for example in Mark's post) there is an operation column exposed with the op that was done on the source I for example indicating insert, D - delete, U - update. This operation column can be used and in OWB you can have a complex mapping graph with many targets and process the operation in a splitter and have a splitgroup for inserts, updates and deletes for example. The target table has a Loading Type property in mapping, by default it is INSERT, but you can INSERT/UPDATE (MERGE), DELETE, UPDATE, etc.
    For example you can have SourceTable -> Splitter -> Multiple Target Tables, each group in the splitter could process inserts, updates, deletes for example or whatever you desire.
    In OWB 11gR2 you can use the code template framework and get ootb support for CDC using log miner (or a basic trigger based alternative useful for demos or getting started).
    Mark has another post for this release highlighting this:
    http://www.rittmanmead.com/2009/10/10/changed-data-capture-and-owb11gr2/
    Cheers
    David

  • How to retreive value from my table..

    hi,
    I have developed a GUI which consists of table..of three columns and 16 rows..
    the table consists of propety and value and operator column..property column when user clicks on that cell it shows a combobox of 16 values like empno and empname and emporg,date etc..if user selects any of these value then in operator column it shows corresponding values ..like if selects empno it shows acombo box of less than,greater than,equals..if selects empname then equal,like ,not like with a combo box for selection..like that there r upto 16 rows//user can select any no of rows..after selection if he clicks on find then the selected values should be submitted to a query and passed to maethod..
    my doubt is how to retrieve the values and generate query..bcos iam not sure how many rows he is going to select..and in operator column it is string form and i have convert it to >=,< etc form..and submitt to query..
    can any body give me some tips for this with sample code..
    regards,
    sam

    Put your logo in a subreport, then you can suppress if no data etc.
    CR is a Relational Database reporting tool, it requires the tables to be linked otherwise there are 2 SELECT statements generated and unknown results...
    Don

  • Running Calculations

    Hi All,
    Can anybody help me out how to over come the following scenario..
    I have created a request which consists of ROW_SEQ, OPERATOR and YTD columns. I need to perform the operation(+/-/*) depends upon OPERATOR column on YTD.
    My requirement is like RSUM functionality but need to perform all operations based on OPERATOR column rather than only SUM. How to implement this functionality?
    ROW_SEQ OPERATOR YTD GROSS_YTD(I need to include this col)
    10 + 10000 10000
    20 + 20000 30000
    25 - 15000 15000
    How to implement GROSS_YTD calculation?
    Thanks in Advance,
    -Vency

    One of the main problems with this kind of a report is that we do not have aggregation functions for / and *. Generally aggregation is defined for functions like average, sum etc. Also, i am not sure whether this would return uniform results for multiple reports. Do you have an uniform order by clause in your report? If the order of the *,- etc varies your entire report output would be wrong. If you only have +, - the order does not matter since they are in the same level in BODMAS. But we are dealing multiple levels of the BODMAS here. One way i can think of is to have a database function and call that function using EVALUATE.
    Thanks,
    Venkat
    http://oraclebizint.wordpress.com

  • How to delete Hyperion Planning member using ODI

    Hi All,
    Anyone know how to delete Hyperion Planning member using ODI? And how to update account type on Hyperion Planning Using ODI?
    e.g.:
    I have a member with account type Saved Assumption, and I need to change to Revenue, but it cannot change. But if I change to Expense, it can. So what's wrong with the mapping?
    This is my csv file for update a member on Hyperion Planning.
    Parent,Account,Default Alias,Operation,Data Storage,Two Pass Calculation,Account Type,Time Balance,Skip Value,Data Type,Exchange Rate Type,Use 445,Variance Reporting,Source Plan Type,Aggregation,Member Formula
    Account,Statistics,,Update,,,,,,,,,,,,
    Account,Meal,,Update,Store,,Expense,,,,,,,,,
    Account,Test1,,Update,Never Share,,Saved Assumption,Average,None,Non-currency,none,,,Consol,~,
    Account,Test2,,Update,Never Share,,Revenue,Average,None,Non-currency,none,,,Consol,~,
    Account,Test3,,Update,Never Share,,Saved Assumption,Average,None,Non-currency,none,,,Consol,~,
    Thanks in advance.
    Regards,
    Sumardi
    Edited by: Sumardi Wijaya on Mar 31, 2009 10:57 PM

    Hi,
    To delete a member you use the Operation column, the following values can be used.
    Update – This is the default and is used if not populated, it Add, updates, moves the member being loaded.
    Delete Level 0 - Deletes the member being loaded if it has no children
    Delete Idescendants –Deletes the member being loaded and all of its descendants.
    Delete Descendants –Deletes the descendants of the member being loaded, but does not delete the member itself.
    Does the member you trying to change to Revenue have a variance reporting set to "Expense" as it will need to be set to "Non Expense"
    Also in your interface you can add logging options in the IKM, this maybe will give a clearer indication where your problem lies.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Infotype records not saving when action is performed.

    Hello all-
    We have an action named: personnel information changes which is having Infotype 0002, 0006, 0105 to show up one after the other.
    When we perform the action and click on save, its saving the data and moving to next infotype, but after the action is completed, the infotype records in PA20 or the table pa0002, pa0006 etc does not contain any data.
    Please advice!
    The employee is having a reference personnel number.
    Thanks,
    Chakri.

    Hi Chakri,
    Go to SPRO> Personnel Management>Personnel Administration--> Customizing Procedure -->Actions --> Define Infogroups and then click the Infogroup.
    Give your action number "same used for Personnel Information Changes"
    Check the following items,
    1. check the Reference User Group... is it similar to your required one?
    2. Check the "operation" column....it should be COP, INS or MOD.
    Please check it ...hopefully it will work...Award points if you think so....
    Regards
    Rao

  • How to use Sql Tracer

    Hi ,
    How to use SQL Tracer..(ST05).
    Thanks,
    Subbu

    Hi,
    ST05: SQL trace
    1.create a small ABAP/4 program that contains only the select statement. Before proceeding, test it to ensure that it works.
    2.Open that program in the editor so that it is ready and waiting to execute.
    3.Open a new session using the menu path System->Create session.
    4.Run transaction ST05 (enter /nst05-zero-five, not oh-five-in the Command field, or choose the menu path System->Utilities->SQL Trace). The Trace SQL Database Requests screen is displayed.
    5.If the Trace SQL Status Information box reads Trace SQL is switched off, go to step 7.
    6.At this point, the Trace SQL Status Information box contains Trace SQL switched on by, followed by the user id who turned on the trace and the date and time it was started. You must switch it off before you can proceed. If the trace was started within the past hour, it is possible that it is still being used. Contact the indicated user or try again later. If the trace was started hours or days ago, the user probably left it on by mistake and it can be safely turned off. To turn off the trace, press the Trace Off pushbutton. The message in the Trace SQL Status Information box should now read Trace SQL is switched off.
    7.Press the Trace On pushbutton. The Trace SQL Database Requests dialog box is displayed. The DB-Trace for User field should contain your user ID. If your user ID is not in this field, enter it now.
    8.Press the OK button. You are returned to the Trace SQL Database Requests screen and the status information reads Trace SQL switched on by, indicating that you turned on the trace.
    9.Switch back to the window containing your editor session (the one with your program waiting to execute).
    10.Press F8 to run your program. (Only press F8, do not do anything else, do not even press the Back button.)
    11.When your program has run and the hourglass is no longer displayed, switch back to the trace window.
    12.Press the Trace Off pushbutton. The status information reads Trace SQL is switched off.
    13.Press the List Trace pushbutton. The Trace SQL Database Requests dialog box is displayed. The fields on this screen will already contain values.
    14.Press the OK button. You might need to wait a little while, at most a couple of minutes. The Trace SQL: List Database Requests screen is displayed.
    15.Type %sc in the Command field and press the Enter key. The Find dialog box is displayed.
    16.Type the name of the table you are tracing in the Search For field. (This is the table named in the select statement in your ABAP/4 program.)
    17.Press the Find button. A search results list should be displayed with your table name highlighted.
    18.Click on the first highlighted table name. You are returned to the Trace SQL: List Database Requests screen. Your cursor is positioned on the first line containing your table name. To the right of it, in the Operation column, should be the word PREPARE, OPEN, or REOPEN.
    19.Press the Explain SQL button on the Application toolbar. The Show Execution Plan for SQL Statement screen is displayed.
    20.Scroll down to the execution plan. The index used will be displayed in blue.
    Jogdand M B

Maybe you are looking for

  • How to generate an xml file from a soapbody

    i'm trying to use SOAPMESSAGE from a webservice as a Datasource for my JasperReport, I'm thinking of doing it as getting the SOAPBody and saving it as xml file and setting that xml file as datasource to my JasperReport. My problem is how will a get t

  • SAP BPC 10.0 Netweaver : Workstatus email notification sender is the User how to change it ?

    Hi Gurus, I've just set up email notification for Workstatus. I works fine but I've noticed something that won't be accepted by my customer : I Had created a BPC Service User SMAIL to send email notification. But it is useless since the email notific

  • Exported quicktime out of synch

    My project looks and sounds fine in the canvas in FCP 5. I export it using "Quicktime Conversion" to MP4 and the resulting movie goes suddenly several seconds out of synch at a point about 3/4 of the way through the movie. It was fine up to that poin

  • Ipod makes weird sounds when the hard drive runs

    my ipod video is making weird click clak sound when the hard drive starts running. Is this normal?? HAs this happen to anyone before?

  • Appleid on 2 phones

    Can I only push music from device to device with 1 apple id and not push apps. I have an ipad for work and dont want those apps to push to my wifes phone but we only want to use the one apple id.