Need steps to capture a particular explain plan using the store outlines
Hi,
I have got the needed explain plan using hints in my query. I need to capture it using stored outlines.
I am using Oracle 10.2.0.3.
Can someone provide me the steps to capture this plan using an Stored Outline?I dont want to use any other method.
Thanks,
Sach
I have got the needed explain plan using hints in my query. I need to capture it using stored outlines.Do you mean creating outline?
Can someone provide me the steps to capture this plan using an Stored Outline?I dont want to use any other method?[http://www.oracle-base.com/articles/misc/Outlines.php]
[http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_6005.htm]
Edited by: Anantha on Apr 2, 2009 9:07 AM
Similar Messages
-
hi i have an iphone 4 that needs to be updated but my phone is using the cellular company simple mobile via gsm chip and my phone isnt jailbroken will this mess up my phone.
If your iPhone is truly unlocked - purchased as unlocked through Apple
or through wireless provider that sells unlocked iPhones or unlocked
by a wireless provider, then the update should not mess up your iPhone.
If your iPhone was jailbroken or hacked to change wireless providers,
then the update will relock it to the original wireless provider if you are lucky
or turn it into a useless brick if unlucky.
Back up first to protect against glitches or other problems. -
PI needs to obtain a zip file via FTP using the File adapter
I have a scenario where PI needs to obtain a zip file via FTP using the File adapter, this zip file contains a number of txt files that I need to process, and the content of one of them send it to an ECC, now I'm using the PayloadZipBean Module in the Sender FIle Adapter, and I have two things if I use the Message Protocol as File, I get a Payload for each txt file in the zip file, but this payload has no structure, and if I use the File Content Conversion I get an XML strcuture with only one field and a strange string in it, and somewhere in this string the names of the files I assume all the content of the zip file, can anyone help on how could I achieve what I need that is to pull the zip file via SAP PI, then unzip it, and with the content of one of the txt files send it to an ECC via ABAP Proxy, thanks in advance for your answers.
Regards,
Raul AlvaradoHello Raul,
you can do it in futher way ...
pickup zip file and simply extract and dump it in another temp folder (can use scripts on OS level).
@ then Use another sender communication channel to pickup all these text file .
for further clarification you can use these links also. -
Process txt files in zip file
Accessing File using FTP from Java Mapping
File Sender Adapter with FTP protocol
BR
Raj -
Order types, why do we need to create our order types and not use the stand
HI
Order types, why do we need to create our order types and not use the standard ones during implementation.Hi Raj,
Well there is no hard and fast rule that you have to copy nad create a new order type. Its just to meet our own requirements that we copy the standard and make the changes if required to meet our business needs.
And by this way we keep unchanged the standard order type for further use.
If you are sure that the standard order type satisfies your need you can directly use that only.
I hope this clarifies the issue.
Do reward if find useful
Regards,
Abhi -
Using the retouch tool, how do you make it change color? The old iPhoto one did, this one seems to be flesh-tone only, which is not how I need it to be. In old iPhoto, used the local color to blend, it was great.
I don't know which old version you're referring to but iPhoto 6's, 7's and 8's retouch tool works exactly the same as iPhoto 9's. The color of the enhance tool's area while applying is a light brown color but the retouch works on any color using the surrounding colors as a basis.
During retouching:
After retouching:
OT -
Those steps don't work. I'm using the lastest version of itunes (11.0.1.12) on Windows. This article was last updated in 2009 and lists itunes 7.7. Anyone have any ideas, or is there a new article that accounts for the changes to itunes?
Try This
http://support.apple.com/kb/PH12359 -
Explain plan using v$sql_plan
Hi can I get explain plan by using v$sql_plan. I was trying to do:
select e.first_name, e.last_name, d.department_name from employees e
left join departments d on e.department_id=d.department_id;
select * from(select sql_id, hash_value from v$sql where sql_text = 'select e.first_name, e.last_name, d.department_name from employees e
left join departments d on e.department_id=d.department_id' order by last_load_time desc)where rownum=1
this select return me 0 records :(
so i cant do this :(
select operation, object_owner, object_name, object_type,options, cost, cardinality, bytes, cpu_cost, io_cost, depth from v$sql_plan where SQL_ID='value1' and HASH_VALUE='value2'
I dont know what am I doing wrongbcm@bcm-laptop:~$ sqlplus hr/hr
SQL*Plus: Release 11.2.0.1.0 Production on Tue Jul 31 11:02:04 2012
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
11:02:05 SQL> set autotrace trace explain
11:02:23 SQL> select e.first_name, e.last_name, d.department_name from employees e
left join departments d on e.department_id=d.department_id;
11:02:38 2
Execution Plan
Plan hash value: 2296652067
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time
|
| 0 | SELECT STATEMENT | | 107 | 3638 | 7 (15)| 00:00:01
|
|* 1 | HASH JOIN OUTER | | 107 | 3638 | 7 (15)| 00:00:01
|
| 2 | TABLE ACCESS FULL| EMPLOYEES | 107 | 1926 | 3 (0)| 00:00:01
|
| 3 | TABLE ACCESS FULL| DEPARTMENTS | 27 | 432 | 3 (0)| 00:00:01
|
Predicate Information (identified by operation id):
1 - access("E"."DEPARTMENT_ID"="D"."DEPARTMENT_ID"(+))
11:02:39 SQL> -
Unable to Execute Explain Plan for the selected SQL
When working with several SQL statements in one SQL Worksheet you execute the specific statement by selecting it and pressing F9.
The same is not possible for the explain plan though.
If you select the first SQL statement and press F6, the explain plan is executed correctly. If you try the same for any other statement, all you get is 'No SQL statement entered.' on the status bar.
MaciejIt is available.
Type this in.
create table xx (yy number(10));
create table zz (aa number(10));
select * from xx;
select * from zz;Run all these statements by pressing f5.
Place the cursor on 'select * from xx;'.
Press f6 gives you a plan.
Place the cursor on 'select * from zz;'
press f6 gives you a different plan.
The problem seems to be that F6 is still suffering from a statement selection bug which is already fixed for f9. That is selecting a whole statement results in failure to recognise a statement and the 'No statement entered' message. -
Explain plan left the building
Hello guys, i have interesting problem, at least it seemed to me like that.
I am on 10.2.0.4.0 and for every statement i do explain plan i get the same plan ???.
Propably very known issue to some, but i didn't exeperienced that till now, so if somene have some advice, please share.
E.g.
SQL> explain plan for select user from dual;
Explained.
SQL> select * from table(dbms_xplan.display);
Plan hash value: 3995103059
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | Inst |
| 0 | SELECT STATEMENT REMOTE | | 1 | 96 | 97591 (5)| 00:05:07 | |
| 1 | SORT ORDER BY | | 1 | 96 | 97591 (5)| 00:05:07 | |
|* 2 | TABLE ACCESS BY INDEX ROWID| CCONTACT_ALL | 1 | 54 | 3 (0)| 00:00:01 | VIPBS~ |
| 3 | NESTED LOOPS | | 1 | 96 | 97590 (5)| 00:05:07 | |
|* 4 | TABLE ACCESS FULL | CUSTOMER_ALL | 1 | 42 | 97587 (5)| 00:05:07 | VIPBS~ |
|* 5 | INDEX RANGE SCAN | PKCCONTACT_ALL | 1 | | 2 (0)| 00:00:01 | VIPBS~ |
Predicate Information (identified by operation id):
2 - filter("A1"."CCCONTRACT"='X')
4 - filter((TO_NUMBER("A2"."CSCOMPTAXNO")=3007943362918 OR
TO_NUMBER("A2"."PASSPORTNO")=0109965330447) AND (TO_NUMBER("A2"."CSLEVEL")=10 OR
TO_NUMBER("A2"."CSLEVEL")=20 AND "A2"."TMCODE"<>59 AND "A2"."TMCODE"<>42 AND "A2"."TMCODE"<>61
AND "A2"."TMCODE"<>11 AND "A2"."TMCODE"<>19) AND "A2"."CSTYPE"='a' AND "A2"."PAYMNTRESP"='X')
5 - access("A1"."CUSTOMER_ID"="A2"."CUSTOMER_ID")
filter("A1"."CUSTOMER_ID"<>0)
Note
- 'PLAN_TABLE' is old version
- fully remote statement
28 rows selected....so, it looks like i am doing all that just with select user from dual .... : ) ... ok
SQL> explain plan for
2 SELECT param_value
3 FROM ncis.cis_case_script_vars
4 WHERE case_id = 296645706 AND seq = 1 AND param_name = 'OHOPNAMT';
Explained.
SQL> select * from table(dbms_xplan.display);
Plan hash value: 3995103059
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | Inst |
| 0 | SELECT STATEMENT REMOTE | | 1 | 96 | 97591 (5)| 00:05:07 | |
| 1 | SORT ORDER BY | | 1 | 96 | 97591 (5)| 00:05:07 | |
|* 2 | TABLE ACCESS BY INDEX ROWID| CCONTACT_ALL | 1 | 54 | 3 (0)| 00:00:01 | VIPBS~ |
| 3 | NESTED LOOPS | | 1 | 96 | 97590 (5)| 00:05:07 | |
|* 4 | TABLE ACCESS FULL | CUSTOMER_ALL | 1 | 42 | 97587 (5)| 00:05:07 | VIPBS~ |
|* 5 | INDEX RANGE SCAN | PKCCONTACT_ALL | 1 | | 2 (0)| 00:00:01 | VIPBS~ |
Predicate Information (identified by operation id):
2 - filter("A1"."CCCONTRACT"='X')
4 - filter((TO_NUMBER("A2"."CSCOMPTAXNO")=3007943362918 OR
TO_NUMBER("A2"."PASSPORTNO")=0109965330447) AND (TO_NUMBER("A2"."CSLEVEL")=10 OR
TO_NUMBER("A2"."CSLEVEL")=20 AND "A2"."TMCODE"<>59 AND "A2"."TMCODE"<>42 AND "A2"."TMCODE"<>61
AND "A2"."TMCODE"<>11 AND "A2"."TMCODE"<>19) AND "A2"."CSTYPE"='a' AND "A2"."PAYMNTRESP"='X')
5 - access("A1"."CUSTOMER_ID"="A2"."CUSTOMER_ID")
filter("A1"."CUSTOMER_ID"<>0)
Note
- 'PLAN_TABLE' is old version
- fully remote statement
28 rows selected.
SQL>..same plan for different sql...
..and now, i am trying to explain plan for several easy sqls but look...
SQL> explain plan for select * from all_objects where rownum < 2;
explain plan for select * from all_objects where rownum < 2
ERROR at line 1:
ORA-01039: insufficient privileges on underlying objects of the view
SQL> explain plan for select * from user_tables ;
explain plan for select * from user_tables
ERROR at line 1:
ORA-01039: insufficient privileges on underlying objects of the view
SQL> desc all_objects
Name Null? Type
OWNER NOT NULL VARCHAR2(30)
OBJECT_NAME NOT NULL VARCHAR2(30)
SUBOBJECT_NAME VARCHAR2(30)
OBJECT_ID NOT NULL NUMBER
DATA_OBJECT_ID NUMBER
OBJECT_TYPE VARCHAR2(19)
CREATED NOT NULL DATE
LAST_DDL_TIME NOT NULL DATE
TIMESTAMP VARCHAR2(19)
STATUS VARCHAR2(7)
TEMPORARY VARCHAR2(1)
GENERATED VARCHAR2(1)
SECONDARY VARCHAR2(1)...i can't figure this out... maybe i have to flush 'explain plan' ? it's ok if it sounds funny,im off with ideas..
then i tried to explain this sql:
SQL> explain plan for
2 SELECT param_value
3 FROM ncis.cis_case_script_vars
4 WHERE case_id = 296645706 AND seq = 1 AND param_name = 'OHOPNAMT';
Explained.
SQL> select * from table(dbms_xplan.display);
Plan hash value: 3995103059
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | Inst |
| 0 | SELECT STATEMENT REMOTE | | 1 | 96 | 97591 (5)| 00:05:07 | |
| 1 | SORT ORDER BY | | 1 | 96 | 97591 (5)| 00:05:07 | |
|* 2 | TABLE ACCESS BY INDEX ROWID| CCONTACT_ALL | 1 | 54 | 3 (0)| 00:00:01 | VIPBS~ |
| 3 | NESTED LOOPS | | 1 | 96 | 97590 (5)| 00:05:07 | |
|* 4 | TABLE ACCESS FULL | CUSTOMER_ALL | 1 | 42 | 97587 (5)| 00:05:07 | VIPBS~ |
|* 5 | INDEX RANGE SCAN | PKCCONTACT_ALL | 1 | | 2 (0)| 00:00:01 | VIPBS~ |
Predicate Information (identified by operation id):
2 - filter("A1"."CCCONTRACT"='X')
4 - filter((TO_NUMBER("A2"."CSCOMPTAXNO")=3007943362918 OR
TO_NUMBER("A2"."PASSPORTNO")=0109965330447) AND (TO_NUMBER("A2"."CSLEVEL")=10 OR
TO_NUMBER("A2"."CSLEVEL")=20 AND "A2"."TMCODE"<>59 AND "A2"."TMCODE"<>42 AND "A2"."TMCODE"<>61
AND "A2"."TMCODE"<>11 AND "A2"."TMCODE"<>19) AND "A2"."CSTYPE"='a' AND "A2"."PAYMNTRESP"='X')
5 - access("A1"."CUSTOMER_ID"="A2"."CUSTOMER_ID")
filter("A1"."CUSTOMER_ID"<>0)
Note
- 'PLAN_TABLE' is old version
- fully remote statement
28 rows selected.
SQL>..and got the same plan again....
anyone with suggestons, anyone encountered this behaviour ?Vili Dialis wrote:
Is there some way to force usage of one of them explicitly, how can i know which one is currently used ?
So what happend here ?
I am using what plan table of the above, and why that table generates always the same plan ?
*/To bypass the problem (probably), and to see how it happened (possibly) see http://jonathanlewis.wordpress.com/2010/01/25/old-plan_table/
Not sure why you keep getting the same plan, but dbms_xplan does a 'select where plan_id = (select max(plan_id) ..) so perhaps the plan_table(s) you keep using have an artificially high plan_id which is always getting selected. (You could try doing: delete from plan_table ; commit; )
Regards
Jonathan Lewis
http://jonathanlewis.wordpress.com
http://www.jlcomp.demon.co.uk
A general reminder about "Forum Etiquette / Reward Points": http://forums.oracle.com/forums/ann.jspa?annID=718
If you never mark your questions as answered people will eventually decide that it's not worth trying to answer you because they will never know whether or not their answer has been of any use, or whether you even bothered to read it.
It is also important to mark answers that you thought helpful - again it lets other people know that you appreciate their help, but it also acts as a pointer for other people when they are researching the same question, moreover it means that when you mark a bad or wrong answer as helpful someone may be prompted to tell you (and the rest of the forum) what's so bad or wrong about the answer you found helpful. -
Hi ,
We have no.of packages to check for explain plan.
Is there any tool to which we can feed the packages and get the expalin plan result of all the queries.
Please advice
thanks
MaanasaHi Maanasa
Two things…
1) I’m not aware of any tool that does what you are looking for.
2) Do you use bind variables in your SQL statements. If yes, there is no way to accurately get the execution plans without executing them. In fact the query optimizer requires the bind variable values to produce an execution plan…
Hence, the advice of enabling SQL trace (either through the SQL_TRACE parameter or the DBMS_MONITOR package) is the best one.
HTH
Chris Antognini
Troubleshooting Oracle Performance, Apress 2008
http://top.antognini.ch -
How Explain Plan Calculates the Bytes
Hi All,
I am using Oracle 10g edition 10.2.0.3.0.
Here I have a table and an explain plan. Explain plan shows Bytes = 50, Cost = 1 and %CPU = 0. I would like to know,
1) How bytes are calculcated?
2) What "Cost = 1" means?
3) What "%CPU = 0 means?
SQL> desc t_pdur_insulin_prof
Name
SAK_RECIP NOT NULL NUMBER(9)
SAK_CLAIM NOT NULL NUMBER(9)
SAK_DRUG NOT NULL NUMBER(9)
DTE_DISPENSE NOT NULL NUMBER(8)
CDE_PROF_TYPE NOT NULL CHAR(1)
SQL> explain plan for
2 select * from t_pdur_insulin_prof
3 where sak_recip = 10013819;
Explained.
SQL> select * from table(dbms_xplan.display);
PLAN_TABLE_OUTPUT
Plan hash value: 438947110
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 2 | 50 | 1 (0)| 00:00:01 |
|* 1 | INDEX RANGE SCAN| I_PDUR_INSULIN_PROF | 2 | 50 | 1 (0)| 00:00:01 |
Predicate Information (identified by operation id):
1 - access("SAK_RECIP"=10013819)
13 rows selected.
Thanks!user2081225 wrote:
Hi All,
I am using Oracle 10g edition 10.2.0.3.0.
Here I have a table and an explain plan. Explain plan shows Bytes = 50, Cost = 1 and %CPU = 0. I would like to know,
1) How bytes are calculcated?
2) What "Cost = 1" means?
3) What "%CPU = 0 means?
SQL> desc t_pdur_insulin_prof
Name
SAK_RECIP NOT NULL NUMBER(9)
SAK_CLAIM NOT NULL NUMBER(9)
SAK_DRUG NOT NULL NUMBER(9)
DTE_DISPENSE NOT NULL NUMBER(8)
CDE_PROF_TYPE NOT NULL CHAR(1)
SQL> explain plan for
2 select * from t_pdur_insulin_prof
3 where sak_recip = 10013819;
Explained.
SQL> select * from table(dbms_xplan.display);
PLAN_TABLE_OUTPUT
Plan hash value: 438947110
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 2 | 50 | 1 (0)| 00:00:01 |
|* 1 | INDEX RANGE SCAN| I_PDUR_INSULIN_PROF | 2 | 50 | 1 (0)| 00:00:01 |
Predicate Information (identified by operation id):
1 - access("SAK_RECIP"=10013819)
13 rows selected.
Thanks!consider Reading The Fine Manual
http://docs.oracle.com/cd/E11882_01/server.112/e16638/optimops.htm#sthref981 -
I need your help how to create service plan using programm
Hello everybody
I met some difficulities when writing a programm which is used to create service plan.
I used the function module 'crm_order_maintain'.
Can you tell me how to set the parameters:
IT_SERVICEPLAN_I
IT_SERVICEPLAN_IE
The two parameters is used as cycle data.
I'm waiting for your help.
If you have any idea,please apply to my message .Thank you very much. ^ ^Hi,
I think there is standard way of creating service plans using actions..
The standard method used is CREATE_ORDER_SRVPLAN.
Regards,
PePe -
I have a problem with the headset of my ipod nano 4th gen. the right side don't have a sound. It comes in and out. what do I need to do.. I am using the original headset eversince. I tool it to a Apple Mac Cennter and Taked with a Service Center Rep. And he told me that they can't do anything because they don't repair the ipod they didn;t even look at it. I was told instead to buy a new one. I was very disappointed.. This is already my 5th ipod though i am planning to buy a new one.. I still want it fixed so I can give it to my little sister
From the OP: "My old computer got a virus and when that happened all my music was lost. "
They don't have the music on their computer so they cannot transfer the iTunes folder, from the computer to their iPod and then to the new computer. And if they try to enable disk use on the iPod it will erase all the music that is on it. The method you cited is moving the files in a data format using the iPod as a flash drive. It doesn't work if they are in music format. That is why I suggested Yamipod. -
Planning using the Non-Cumulative Key figures
HI,
In my reporting requirement for IP, I need to get some actual values from the cube 0IC_C03. The key figues which I required are 0VALSTCKVAL and 0TOTALSTCK, but these 2 are non-culative key figures. When I selected these 2 key figures in my aggregation level, it is throwing an error message as "InfoObject 0VALSTCKVAL(Version A) is not compounded and Aggregation level is inconsitent".
I read in some document that, it is not possible to use non-cumulative keyfigures in ALVL.
I searched in SDN and SERVICE also, but some documents are saying that, in new path level (19) it is possible. Now I using the path level 18 only. In this case how we have to use these non-cumulative keyfigues,, please sugguest me...
Thanks in advance...
Regards
RajeshHi
Non-cummulative keyfigures are not supported fro planning and teh error thrown is correct.Please find the help link which gives what are supported and not supported as part of aggregation levels.
http://help.sap.com/saphelp_nw70/helpdata/EN/43/1c3c7031b70701e10000000a422035/content.htm
Regards, Hyma -
why the store on line remind me that my safari need update? but it is newly when I checking.
Open System Preferences > Software
(You can open System Preferences by clicking the Apple menu icon top left in your screen. From the drop down menu click System Preferences)
Select the Scheduled Check tab.
Click Check now
Click the lock icon bottom left corner of the window. Enter your admin password when prompted.
Now click the pop up menu next to: Check for Updates
You can choose Daily, Weekly, or Monthly.
And if you want the updates downloaded automatically, check that box.
You can see which version of Safari is currently installed. From the Safari menu bar click Safari. From the drop down menu click About Safari. You'll see the version number there. The most recent version of Safari is 5.1.2 running on Lion v10.7.2
Maybe you are looking for
-
I have several itunes libraries after moving them and losing them, and recreating new ones. How do I get them all back together? I have a Macboook Pro OSX 10.6. My newest library is currently being directed to an external drive. I have files that
-
Java Applet fails to start, but Java is installed correctly
Hello, I have tried everything to get Java functioning in our IT rooms, different versions, permissions, etc. But to no avail, we are behind a DMZ and a Proxy Server. This only occours when logged in as a student (differnt proxy server, with filterin
-
Urgent : Oracle 8 Export Error
Dear Sir, I have Oracle 8.0.4.0.0 server edition running on Windows NT Server Platform. From one week before i can't export the database.When i write the following command 'EXP80 username/password File=<filename.dmp> buffer=80000 log=<a.log> then fol
-
I have the iPhone5S and my photo's are not syncing.
When I sync with my desktop, many of my photo's are not syncing. Instead of displaying the photo, a gray square is displayed with a ".jpg" in the middle of the graphic. Is anyone having this issue?
-
This is Socks 5 server. I have enabled all of them with and without ssl encryption. I am trying to authenticate to the socks gateway by using the fetch ftp progam for Mac. I have been successfull on a pc only when I use SSO, but that doesn't help wit