Execution Plan Not available
Dear All,
One of my databases not able to view the explain plan. pl help me to resolve this....
Databaes Version 9.2.0.8 windows
13:49:53 SYS@devdb>set autot trace exp stat;
13:19:28 SYS@devdb>select sid from v$session where sid=(select sid from v$mystat where rownum =1);
1 row selected.
Elapsed: 00:00:00.01
Execution Plan
Statistics
0 recursive calls
0 db block gets
0 consistent gets
0 physical reads
0 redo size
374 bytes sent via SQL*Net to client
368 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
1 rows processed
13:50:29 SYS@devdb>
Edited by: Abk on Nov 10, 2010 1:53 PM
Edited by: Abk on Nov 10, 2010 2:01 PM
Thanks Mustafa for your reply,
14:16:27 SYS@devdb>explain plan for select sid from v$session where sid=(select sid from v$mystat where rownum =1);
Explained.
Elapsed: 00:00:00.00
14:18:08 SYS@devdb>
14:18:08 SYS@devdb>
14:18:08 SYS@devdb>select * from Table(dbms_xplan.display);
PLAN_TABLE_OUTPUT
| Id | Operation | Name | Rows | Bytes | Cost |
| 0 | SELECT STATEMENT | | | | |
|* 1 | FILTER | | | | |
|* 2 | FIXED TABLE FULL | X$KSUSE | | | |
|* 3 | COUNT STOPKEY | | | | |
|* 4 | FILTER | | | | |
|* 5 | FIXED TABLE FULL | X$KSUMYSTA | | | |
| 6 | FIXED TABLE FULL | X$KSUSGIF | | | |
PLAN_TABLE_OUTPUT
Predicate Information (identified by operation id):
1 - filter("X$KSUSE"."INDX"= (SELECT /*+ */
"X$KSUMYSTA"."KSUSENUM" FROM "X$KSUMYSTA" "X$KSUMYSTA" WHERE
"X$KSUMYSTA"."KSUSESTN"< (SELECT "X$KSUSGIF"."KSUSGSTL" FROM
"X$KSUSGIF" "X$KSUSGIF") AND ROWNUM=1 AND
BITAND("X$KSUMYSTA"."KSUSEFLG",1)<>0 AND
BITAND("X$KSUMYSTA"."KSSPAFLG",1)<>0 AND
PLAN_TABLE_OUTPUT
"X$KSUMYSTA"."INST_ID"=:B1))
2 - filter(BITAND("X$KSUSE"."KSUSEFLG",1)<>0 AND
BITAND("X$KSUSE"."KSSPAFLG",1)<>0 AND "X$KSUSE"."INST_ID"=:B1)
3 - filter(ROWNUM=1)
4 - filter("X$KSUMYSTA"."KSUSESTN"< (SELECT
"X$KSUSGIF"."KSUSGSTL" FROM "X$KSUSGIF" "X$KSUSGIF"))
5 - filter(BITAND("X$KSUMYSTA"."KSUSEFLG",1)<>0 AND
BITAND("X$KSUMYSTA"."KSSPAFLG",1)<>0 AND "X$KSUMYSTA"."INST_ID"=:B1)
Note: rule based optimization
32 rows selected.
Similar Messages
-
Explain plan not available in dba studio
Hi, guys,
Why the explain plan not available in my dba studio with a message like this "explain plan not available for this sql statement. ora-02195: attempt to create permanent object in a temporary tablespace"
Another question: I can use "set autotrace on" to trace sql statement in sql*plus window. But the final execution plan come up without those thing like cost, cardinality but only the steps
Thanks for your help
jimWas this a trace started on an already running task? Was the trace stopped before the task completed? Did the trace file reach its set size limit before the task compled?
In all three cases above you would have cursors that were not closed and stats information not written to the trace file resulting in incomplete data for some SQL.
HTH -- Mark D Powell -- -
Family Plan not available in Canada?
Well, today is the Apple Music launch day and Spotify is still ripping off Canadians, though they promised many months ago to allow us to get a family account, like the rest of the world. Say goodbye to my family's accounts, Spotify.
Hi Everyone,
I have been using Spotify for a very long time and just switched my account over from a US account to the Canada account.
Wanted to get my kids off my personal account and had read back in November 2014 that the family plan was coming.
When I click https://www.spotify.com/ca-en/family/ it tells me
Spotify Family is coming soon!
Save 50% per additional member on up to 4 additional Premium accounts.
I am confused as I see that people have been able to add this and get family members on their accounts. Is it just not available in Canada?
Any help would be greatly appreciated.
Whit -
Ipad won't back up storage plan not available
Storage plan not available
None of these solves my problem! My iPad3 has not successfully backed up to the cloud since 10/11/2012. I have restarted the iPad, several times; i have reset it (simultaneously held down the home and on/off button); I have tried to manually do the backup (ie, 'Back Up Now'); i have deleted all apps' backup and turned them off for iCloud backup (in case one of the apps was hanging it up); i have, finally, deleted the previous iCloud backup, in case the last (10/11/12) backup was somehow compromised. When I try to do a manual backup I get very little in the way of status and no explanation or error message or code as to why the backup failed. This is really useless. I have screen shots of all this in case anyone (anyone at all) from Apple is paying attention here.
-
Shared data plans not available when upgrading to iphone5
Last night I upgraded two 3G smartphone and a basic phone to iphone5's for all three of us. Currently on shared unlimited data/text and 1400 min. shared voice. The ordering process would not allow me to select the new tiered shared data plans. It only made individual data plans available and these were combined with aspects of the old plan ($10/month access fee, 1400 shared minutes, etc.). My chat with customer rep "Sunny" was inconclusive as he/she only stated that I couldn't order new phones and the new shared data plan all at once, but would have to order the phones and then switch the data plan after phones are activated (shipping 10/26).
Anybody else gone through this frustrating process? Should I just wait until the iphone5's show up and try to switch plans then? Or should I sit through the 30-45 minutes customer service hold time and try to resolve this now?
Thanks.
KenOrdering online usually doesn't allow for more than one change to the account at a time. You have to complete the upgrade in one step. Then once that is finalized in the account, then you can change to the Share Everything plans.
You might be able to complete both changes at same time if you ordered through customer service via phone. -
Hi,
I am implementing Compensation Workbench for Salary Increment, for this I have completed all the setup steps but unable to see the plans on the Tasks in CWB Self Service Home. The steps which I have done are:
1. Define plan years for the Compensation Workbench plan.
2. Define one life event reason for each plan.
3. Define a derived compensation factor if compensation awards are based on a stored or system calcuated value, such as eligible or stated salary.
4. Define participant eligibility profiles to limit the employees who are eligible for a Compensation Workbench plan.
5. Define a plan type, selecting a compensation category.
6. Define the Compensation Workbench plan.
7. Define plan enrollment requirements.
8. Define elements if you want to transfer activity rates to Oracle Payroll or to third party applications.
9. Link the elements.
10. Optionally, define variable rate profiles if an activity rate can vary according to one or more factors.
11. Define standard activity rates.
After run the participation process: compensation workbench by selecting the plan, I am not getting anything in the Task Area of HR Professional v4 responsibility under function
"Compensation Workbench for Administrator"
Regards,
JeevesDear Gaurav,
Thanks for your response. Actually that's not my problem. I don't get any error while running Participation Process. It says
Number of participants successfully processed : 194
I am not able to view the tasks from the HR Professional responsibility.
Regards,
Jeeva -
Okay. So I have built a 3D text object in PS CS5. I've pretty much got it where I want it and it seems to be snapping to the "ground". The only issue is that I cannot view the ground plane because my button is greyed out.
Now, before I go too much further, I will explain what I have:
Windows Vista Home Premium 64-bit
Core i7 920
12GB RAM (EVo GeiL)
ATi Radeon 4850 Dual DVi
OpenGL is running and selected in Performance
RAM is set to almost 8GB in Performance settings
Now, from what I read, this was initially an issue with OpenGL not either running or being the wrong version. That's not the case here. I have looked for the answer but have still found nothing that will assist in the cloud. So I am hoping someone here knows how I can get the Ground Plane to show up, or at least have the button un-greyed.
Thanks for your help.Actually, I never noticed that. But it's not the one I am looking for, since it's not drawing shadows on the plane.
Here is where I am talking about, in the 3D window:
Perhaps I am missing something else, since you were able to show me that which I never saw before. Thank you. -
Too many nested loops in execution plan?
Hi,
i wonder about execution plan not indicating that access to some tables (for join) is in parallel.
Please see this example:
------------------------ snip ------------------------------------
drop table test_a1;
drop table test_a2;
drop table test_b;
drop table test_c;
drop table test_d;
create table test_a1 (
x number,
y number,
z number);
create unique index testa1_pk on test_a1 (x);
create table test_a2 (
x number,
y number,
z number);
create unique index testa2_pk on test_a2 (x);
create table test_b (
x number,
y number,
z number);
create unique index testb_pk on test_b (y);
create table test_c (
x number,
y number,
z number);
create unique index testc_pk on test_b (z);
create table test_d (
x number,
y number,
z number);
create unique index testd_pk on test_d (y);
select
a1.x a1_x,
a1.y a1_y,
a1.z a1_z,
a2.x a2_x,
a2.y a2_y,
a2.z a2_z,
b.x b_x,
b.y b_y,
b.z b_z,
c.x c_x,
c.y c_y,
c.z c_z,
d.x d_x,
d.y d_y,
d.z d_z
from test_a1 a1, test_a2 a2, test_b b, test_c c, test_d d
where a1.x = 100
and a2.x = 200
and b.y = a1.y
and c.z = b.z
and d.y = a1.y;
------------------------ snap ------------------------------------
The execution plan goes like this:
Select Stmt
nested loops
nested loops
nested loops
nested loops
table access
index
access predicate
a2.x = 200
table access
index
access predicate
a1.x = 100
table access
index
access predicate
d.y = a1.y
table access
index
access predicate
b.y = a1.y
table acess
index
acess predicate
c.z = b.z
Access to tables a1 and a2 is on the same level (in parallel - i guess).
However, why isn't access to table d and b on the same level?
Both depend on a1. So no need to execute one after the other (no inter-dependency).
Maybe i have just wrong expectation to the output of the execution plan(?!)
- many thanks!
best regards,
FrankPreservation of identation and spacing is invaluable when it comes to reading an explain plan.
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 195 | 2 (0)| 00:00:01 |
| 1 | NESTED LOOPS | | 1 | 195 | 2 (0)| 00:00:01 |
| 2 | NESTED LOOPS | | 1 | 156 | 0 (0)| 00:00:01 |
| 3 | NESTED LOOPS | | 1 | 117 | 0 (0)| 00:00:01 |
| 4 | NESTED LOOPS | | 1 | 78 | 0 (0)| 00:00:01 |
| 5 | TABLE ACCESS BY INDEX ROWID| TEST_A2 | 1 | 39 | 0 (0)| 00:00:01 |
|* 6 | INDEX UNIQUE SCAN | TESTA2_PK | 1 | | 0 (0)| 00:00:01 |
| 7 | TABLE ACCESS BY INDEX ROWID| TEST_A1 | 1 | 39 | 0 (0)| 00:00:01 |
|* 8 | INDEX UNIQUE SCAN | TESTA1_PK | 1 | | 0 (0)| 00:00:01 |
| 9 | TABLE ACCESS BY INDEX ROWID | TEST_D | 82 | 3198 | 0 (0)| 00:00:01 |
|* 10 | INDEX UNIQUE SCAN | TESTD_PK | 1 | | 0 (0)| 00:00:01 |
| 11 | TABLE ACCESS BY INDEX ROWID | TEST_B | 82 | 3198 | 0 (0)| 00:00:01 |
|* 12 | INDEX UNIQUE SCAN | TESTB_PK | 1 | | 0 (0)| 00:00:01 |
|* 13 | TABLE ACCESS FULL | TEST_C | 1 | 39 | 2 (0)| 00:00:01 |
Predicate Information (identified by operation id):
6 - access("A2"."X"=200)
8 - access("A1"."X"=100)
10 - access("D"."Y"="A1"."Y")
12 - access("B"."Y"="A1"."Y")
13 - filter("C"."Z"="B"."Z")
Access to tables a1 and a2 is on the same level (in parallel - i guess).
Maybe i have just wrong expectation to the output of the execution plan(?!)You guess wrong, there's nothing parallel going on here.
Execution plan is a tree of parent-child operations.
For example, the NESTED LOOP at operation 4 has two children @ 5 and 7.
Both of these operations- 5 & 7 - have a single child operation.
The execution tree starts with operation 6, using the TESTA2_PK index to identify rows where A2.X=100.
From this list of rowids, we go to the table TEST_A2 operation 5.
The rows from operation five feed into the NESTED LOOP - operation 4.
For each of these rows, we go to TEST_A1 via the index TEST_A1_PK for rows where A1.X=100.
This is really a cartesian join because there's no join condition between the two tables.
etc, etc, etc
Three things in particular to point out.
Firstly, that nothing joins to A2. So there will be a cartesian product - i.e. for every row in the result set between the joined tables A1, B, C and D, these will be multiplied by the number of rows returned by the the A2 rowsource.
Secondly, when everything has got one or zero rows (or the optimizer thinks that it's one or zero rows), you can get very different plans from when there are known/thought to be more rows.
Both depend on a1. So no need to execute one after the other (no inter-dependency).Thirdly, in terms of isolated join operations (ignoring A2 and C for the moment), A1 cannot join to B and D at the same time, you can either join A1 to B and then join the result of that to D, or join A1 to D then B, which is what you've got in your plan (well, actually we have A2 joined to A1 then the result of that joined to D and then the result of that to B).
Edited by: Dom Brooks on Jul 6, 2011 4:07 PM
Corrected typo -
I want to delete my old account: [email protected] and start over with my correct email-account: [email protected], but every time, I try to by a plan or get a new membership, the site tells me, that Creative sui is not available in my country, the democratic republic of Congo!!!!, but I live ind Denmark. Hoew can I buy, and how doo I change my Adobe Id in my CC desktop. Ive tried for several days, but no matter which membership, I ask for, the answer (congo is the same. What to do???
Change/Verify Account https://forums.adobe.com/thread/1465499 may help
-http://helpx.adobe.com/x-productkb/policy-pricing/change-country-associated-with-adobe-id. html -
CBO not picking the right execution plan
Database: Oracle 9.2.0.6 EE
OS:Solaris 9
I am trying to tune a query that is generated via Siebel Analytics. I am seeing a behaviour which is puzzling me but hopefully would be 'elementary' for someone like JPL.
The query is based on a total of 7 tables. If I comment out any 2 dimension tables, the query picks up the right index on the fact table. However, the moment I add another table to the query, the plan goes awry.
The query with 5 tables is as below:
select count(distinct decode( T30256.HEADER_FLG , 'N' , T30256.ROW_WID ) ) as c1,
T352305.DAY_DT as c2,
case when T44643.PRODUCT_CLASS_NAME = 'MobileSubscription' then T40081.ATTR15_CHAR_VAL else 'Unspecified' end as c3,
T352305.ROW_WID as c5
from
W_PRODUCT_D T30955,
W_PRDATTRNM_D T44643,
W_DAY_D T352305,
W_ORDERITEM_F T30256,
W_PRDATTR_D T40081
where ( T30955.ROW_WID = T44643.ROW_WID
and T30256.LAST_UPD_DT_WID = T352305.ROW_WID
and T30256.PROD_ATTRIB_WID = T40081.ROW_WID
and T30256.PROD_WID = T30955.ROW_WID
and T30955.PROD_NAME = 'Mobile Subscription'
and (case when T44643.PRODUCT_CLASS_NAME = 'MobileSubscription' then T40081.ATTR15_CHAR_VAL else 'Unspecified' end in ('BT150BB-18M', 'BT250BB-18M', 'BT50BB-18M', 'BT600BB-18M'))
and T352305.DAY_DT between TO_DATE('2008-09-27' , 'YYYY-MM-DD') - 7 and TO_DATE('2008-09-27' , 'YYYY-MM-DD') - 1
group by
T352305.ROW_WID, T352305.DAY_DT,
case when T44643.PRODUCT_CLASS_NAME = 'MobileSubscription' then T40081.ATTR15_CHAR_VAL else 'Unspecified' end
;And the execution plan is as below:
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)|
| 0 | SELECT STATEMENT | | 269 | 25824 | 18660 (3)|
| 1 | SORT GROUP BY | | 269 | 25824 | 18660 (3)|
| 2 | NESTED LOOPS | | 269 | 25824 | 18658 (3)|
| 3 | NESTED LOOPS | | 6826 | 579K| 4734 (3)|
| 4 | MERGE JOIN CARTESIAN | | 8 | 544 | 6 (17)|
| 5 | NESTED LOOPS | | 1 | 54 | 4 (25)|
| 6 | TABLE ACCESS BY INDEX ROWID| W_PRODUCT_D | 1 | 37 | 3 (34)|
|* 7 | INDEX RANGE SCAN | W_PRODUCT_D_M2 | 1 | | 2 (50)|
| 8 | TABLE ACCESS BY INDEX ROWID| W_PRDATTRNM_D | 1 | 17 | 2 (50)|
|* 9 | INDEX UNIQUE SCAN | W_PRDATTRNM_D_P1 | 1 | | |
| 10 | BUFFER SORT | | 8 | 112 | 4 (0)|
| 11 | TABLE ACCESS BY INDEX ROWID| W_DAY_D | 8 | 112 | 3 (34)|
|* 12 | INDEX RANGE SCAN | W_DAY_D_M39 | 8 | | 2 (50)|
| 13 | TABLE ACCESS BY INDEX ROWID | W_ORDERITEM_F | 849 | 16131 | 592 (3)|
|* 14 | INDEX RANGE SCAN | W_ORDERITEM_F_INDX9 | 852 | | 4 (25)|
|* 15 | INDEX RANGE SCAN | W_PRDATTR_D_M29_T1 | 1 | 9 | 3 (34)|
----------------------------------------------------------------------------------------------Note how the dimension tables W_PRODUCT_D & W_DAY_D are joined using cartesian join before joining to the fact table W_ORDERITEM_F using the composite index 'W_ORDERITEM_F_INDX9'. This index consists of LAST_UPD_DT_WID, PROD_WID and ACTION_TYPE_WID, which are foreign keys to the dimension tables.
Now if I add one more table to the query:
select count(distinct decode( T30256.HEADER_FLG , 'N' , T30256.ROW_WID ) ) as c1,
T352305.DAY_DT as c2,
case when T44643.PRODUCT_CLASS_NAME = 'MobileSubscription' then T40081.ATTR15_CHAR_VAL else 'Unspecified' end as c3,
T30371.X_BT_DLR_GROUP as c4,
T352305.ROW_WID as c5
from W_PRODUCT_D T30955,
W_PRDATTRNM_D T44643,
W_DAY_D T352305,
W_ORDERITEM_F T30256,
W_ORDER_D T30371,
W_PRDATTR_D T40081
where ( T30955.ROW_WID = T44643.ROW_WID
and T30256.LAST_UPD_DT_WID = T352305.ROW_WID
and T30256.PROD_ATTRIB_WID = T40081.ROW_WID
and T30256.PROD_WID = T30955.ROW_WID
and T30256.ORDER_WID = T30371.ROW_WID
and T30955.PROD_NAME = 'Mobile Subscription'
and T30371.STATUS_CD = 'Complete'
and T30371.ORDER_TYPE = 'Sales Order'
and (case when T44643.PRODUCT_CLASS_NAME = 'MobileSubscription' then T40081.ATTR15_CHAR_VAL else 'Unspecified' end in ('BT150BB-18M', 'BT250BB-18M', 'BT50BB-18M', 'BT600BB-18M'))
and T352305.DAY_DT between TO_DATE('2008-09-27' , 'YYYY-MM-DD') - 7 and TO_DATE('2008-09-27' , 'YYYY-MM-DD') - 1
group by T30371.X_BT_DLR_GROUP, T352305.ROW_WID, T352305.DAY_DT,
case when T44643.PRODUCT_CLASS_NAME = 'MobileSubscription' then T40081.ATTR15_CHAR_VAL else 'Unspecified' end;I have added a single table W_ORDER_D to the query, and the execution plan is:
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)|
| 0 | SELECT STATEMENT | | 44 | 6336 | 78695 (3)|
| 1 | SORT GROUP BY | | 44 | 6336 | 78695 (3)|
| 2 | NESTED LOOPS | | 44 | 6336 | 78694 (3)|
| 3 | NESTED LOOPS | | 269 | 27707 | 78145 (3)|
|* 4 | HASH JOIN | | 6826 | 626K| 64221 (3)|
| 5 | TABLE ACCESS BY INDEX ROWID | W_DAY_D | 8 | 112 | 4 (25)|
|* 6 | INDEX RANGE SCAN | W_DAY_D_M39 | 1 | | 3 (34)|
| 7 | TABLE ACCESS BY INDEX ROWID | W_ORDERITEM_F | 86886 | 2206K| 64197 (3)|
| 8 | NESTED LOOPS | | 87004 | 6797K| 64200 (3)|
| 9 | NESTED LOOPS | | 1 | 54 | 4 (25)|
| 10 | TABLE ACCESS BY INDEX ROWID| W_PRODUCT_D | 1 | 37 | 3 (34)|
|* 11 | INDEX RANGE SCAN | W_PRODUCT_D_M2 | 1 | | 2 (50)|
| 12 | TABLE ACCESS BY INDEX ROWID| W_PRDATTRNM_D | 1 | 17 | 2 (50)|
|* 13 | INDEX UNIQUE SCAN | W_PRDATTRNM_D_P1 | 1 | | |
|* 14 | INDEX RANGE SCAN | W_ORDERITEM_F_N6 | 86886 | | 212 (18)|
|* 15 | INDEX RANGE SCAN | W_PRDATTR_D_M29_T1 | 1 | 9 | 3 (34)|
|* 16 | INDEX RANGE SCAN | W_ORDER_D_N6 | 1 | 41 | 3 (34)|
-----------------------------------------------------------------------------------------------Now CBO doesn't choose the composite index and the cost also has increased to 78695. But if I simply add an /*+ORDERED*/ hint to the above query, so that it should join the dimension tables before joining to fact table, then the cost drops to 20913. This means that CBO is not choosing the plan with the lowest cost. I tried increasing the optimizer_max_permutations to 80000, setting session level optimizer_dynamic_sampling to 8 (just to see if it works), but no success.
Could you please advise how to overcome this problem?
Many thanks.joshic wrote:
Database: Oracle 9.2.0.6 EE
OS:Solaris 9
I am trying to tune a query that is generated via Siebel Analytics. I am seeing a behaviour which is puzzling me but hopefully would be 'elementary' for someone like JPL.
The query is based on a total of 7 tables. If I comment out any 2 dimension tables, the query picks up the right index on the fact table. However, the moment I add another table to the query, the plan goes awry.
I have added a single table W_ORDER_D to the query, and the execution plan is:
Now CBO doesn't choose the composite index and the cost also has increased to 78695. But if I simply add an /*+ORDERED*/ hint to the above query, so that it should join the dimension tables before joining to fact table, then the cost drops to 20913. This means that CBO is not choosing the plan with the lowest cost. I tried increasing the optimizer_max_permutations to 80000, setting session level optimizer_dynamic_sampling to 8 (just to see if it works), but no success.Back to the original question:
* Can you force the index usage of the composite index on W_ORDERITEM_F in the second query using an INDEX hint (instead of the ORDERED hint)? If yes, what does the plan look like, particularly what cost is reported?
* Could you post the plans including the "Predicate Information" section below the plan output?
* What is the definition of the index W_ORDERITEM_F_N6 on W_ORDERITEM_F?
* Are the cardinalities reported in the execution plans close to reality or way off? The best way to verify this would be to run your query with SQL tracing enabled and generate a tkprof output. If you do so please post the tkprof output here as well.
Regards,
Randolf
Oracle related stuff blog:
http://oracle-randolf.blogspot.com/
SQLTools++ for Oracle (Open source Oracle GUI for Windows):
http://www.sqltools-plusplus.org:7676/
http://sourceforge.net/projects/sqlt-pp/ -
Execution Plan Run is not visible in Current Run tab
Hi,
I have created the EP and I have build the EP successfully. After that I am clicking on the Run tab. It says the task has been submitted succesfully to the DAC server.
But, when I am seeing the status in the Current Run tab and also in the Informatica Monitor, My EP run was not visible. There is no record created for this run in the Current Run tab.
Anyone has faced this kind of issue earlier. Please advice me how to resolve this issue.
Regards,
SaleemSaleem its strange. I did not came across this any time. Is it happening for all the Execution Plan's. By restarting the DAC server is it working. Sometimes we may face these kind of problems with DAC and with restart most of them will be resolved. If it gives problem always then there is somthg wrong i believe.
-
Tkprof not showing the Execution Plan for Statement
Hi all
using oracle 9i release 2
I have issued the following statements
alter session set sql_trace
alter session set events '10046 trace name context forever, level 12';
--then executed a pl-sql procedure
after reading the traceout outfile it shows the Execution plan for statements directly wirtten under begin and end block and doesnot displays the plan for the statements written like this
procedure a is
cursor b is
select ename,dname from dept a,emp b
where a.deptno=b.deptno;
begin
for x in a loop --plan not found but stats are written
select ename into v_ename from emp where empno=300; --does show the plan+stats
end;
what I am missing to get the actual plan in trace output file
thanks in advanceYou have to exit sql*plus after running the procedure, example tkprof is below:
declare
cursor c is
select ename, dname
from emp, dept
where emp.deptno = dept.deptno;
begin
for v_x in c
loop
dbms_output.put_line(v_x.ename || ' ' ||v_x.dname);
end loop;
end;
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.06 0 0 0 1
Fetch 0 0.00 0.00 0 0 0 0
total 2 0.00 0.06 0 0 0 1
Misses in library cache during parse: 0
Optimizer goal: CHOOSE
Parsing user id: 68
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
SQL*Net message to client 1 0.00 0.00
SQL*Net message from client 1 0.00 0.00
SELECT ENAME, DNAME
FROM
EMP, DEPT WHERE EMP.DEPTNO = DEPT.DEPTNO
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 15 0.01 0.00 0 44 0 14
total 17 0.01 0.00 0 44 0 14
Misses in library cache during parse: 0
Optimizer goal: CHOOSE
Parsing user id: 68 (recursive depth: 1)
Rows Row Source Operation
14 NESTED LOOPS
14 TABLE ACCESS FULL EMP
14 TABLE ACCESS BY INDEX ROWID DEPT
14 INDEX UNIQUE SCAN DEPT_PK (object id 40350)
Best Regards
Krystian Zieja / mob -
Va42 item billing plan, incompletion log,T185-requested func FEBA not avail
Va42 item billing plan, incompletion log,T185- error "requested func FEBA not available here"
We have created new entries in the T185 table to enable the imcompletion log to go to the billing plan tab in the sales contract. However, when I click on the green back arrow, I get the above error.
Can someone give me an idea of the cause of the error and if there is a how-to manual on creating new screens, new flow control, and debugging methods for the incompletion log?
I am creating incompletion log entries for the billing plan in the sales contract at the item level. We have modified the special rules table RV45A_UV to add the additional check fields.
Can I add additional check tables to the TVUVF table?
Here are the entries I created in T185:
SAPMV45B,PFPL,FL,,,*,P0,PFPL,ENT1,T,0
SAPMV45B,PFPL,K0,,,*,P0,PFPL,ENT1,T,0
SAPMV45B,PFPL,P0,,,*,P0,PFPL,ENT1,T,0
SAPMV45B,PFPL,PX,,,*,P0,PFPL,ENT1,T,0
SAPMV45B,PFPL,U0,,,*,P0,PFPL,ENT1,T,1
Thanks
Paulsorry. tis may not be correct forum.
-
Planning Availability Times tab not available
Dear All,
Greetings!
We have a SAP NW 04s system with PI 7.0 SP 11, we are trying to do some actions in the Planning Availability Times tab at the Communication Channel Monitoring in Runtime Workbench.
But the Planning Availability Times tab is not available when I choose any of the Communication Channels, I am able to view only the Cluster Node and Administration Tabs in the browser screen.
Kindly let me know whether any configurations needs to be activated for the tab
(or)
Any special authorizations to the user
(or)
Is the feature available only from SP12, as I searched few OSS notes for Planning Availability Times and found that the corrections or changes refering to SP 12 and above for WAS 7.00.
Currently we are on the below mentioned SP's,
SAP_ABA 700 0011
SAP_BASIS 700 0011
PI_BASIS 2005_1_700 0011
SAP_BW 700 0010
Kindly help me in solving the issue.
Thank you
Regards,
Vineeth
SAP BASISHello Vineet
I am not sure exactly when this functionality was released (SP11 or SP12). I think it may be available in the latest SP11 patches (XIAFC, XIAF and XITOOLS). You would need to be on the latest patches to ensure you can use the functionality. If you still don't see the button then it will be necessary to go to SP12.
Regarding configuration etc, see the link below.
Planning Availability Times
http://help.sap.com/saphelp_nw70/helpdata/EN/45/e3c488f87c6f74e10000000a1553f6/frameset.htm
Regards
Mark -
Optimizer not using correct execution plan
Hi ,
DB version : 11.2.0.3
My sql query ran last month 1 hour. But the same sql query today running for four hours. Looks like optimizer is not using correct execution plan. I have used tuning advisor and applied recommended sql profile and query execution is back to normal. I can see statistics are upto date for the tables. Any other factors why the optimizer is not choosing correct execution plan ?
Thanks.What is the correct plan according to you? Multiple factors cause optimizer to chose a different plan. As a rudimentry example - A binary index column having low cardinality than expected, after new data has been inserted. Never ever expect your query to have same execution plan till the entire lifetime, until the underlying data does not change or nobody changes database settings.
You have to give a lot of information if you are looking for performance tuning. Pls see following thread
https://forums.oracle.com/message/9362003#9362003
Maybe you are looking for
-
Attempting to install CC on my Mac IOSX Mavericks. keep getting this message and have not been successful following the 'roundabout' install directions. not worth the effort Photoshop: how to install You are running an operating system that Photosh
-
Blackberry Curve 9320 - App Store Problems
Heyo! I have a problem with my new BB. When I want to connect App World / My account i get this msg: BBID token is expired (Error ID: 40631) I registered first time my phone, so the problem's reason is not this. I also used the store at home, when i
-
I am trying to restore my Ipad 2 from iCloud but at a certain point I am asked for the password for ******** even though the account I am trying to restore is ********. I have checked all my account setting and cant see where that email address come
-
Jdeveloper problem with the dataBase view
Hi all hope your fine i have toad database and jdeveloper 10g installed on our machine. i connect our database in jdeveloper by using new database connection wizard.and the test connection give success .. the problem is i can see all the tables and v
-
Album Art. Can i fix this?
Hi, I just have a question which has been on my mind for a while it's not a big thing but was wondering if somebody would have the solution. When I play music from my iTunes Library and the first song that I play is highlighted in blue and so the alb