The same query but different plan?
Hi all
I don't understand why the same query but Oracle use different plan
explain plan for select far.id,fab.id
from agent_body fab
INNER JOIN agent_ref far ON (far.bodyid = fab.id)
WHERE fab.id=72449;
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | Pstart| Pstop |
| 0 | SELECT STATEMENT | | 1 | 18 | 2 (0)| 00:00:01 | | |
| 1 | NESTED LOOPS | | 1 | 18 | 2 (0)| 00:00:01 | | |
| 2 | PARTITION HASH SINGLE | | 1 | 6 | 1 (0)| 00:00:01 | 4 | 4 |
|* 3 | INDEX UNIQUE SCAN | PK_AGENT_BODY | 1 | 6 | 1 (0)| 00:00:01 | 4 | 4 |
| 4 | PARTITION HASH ALL | | 1 | 12 | 1 (0)| 00:00:01 | 1 | 4 |
| 5 | TABLE ACCESS BY LOCAL INDEX ROWID| AGENT_REF | 1 | 12 | 1 (0)| 00:00:01 | 1 | 4 |
|* 6 | INDEX RANGE SCAN | IXAGRAD | 1 | | 1 (0)| 00:00:01 | 1 | 4 |
Predicate Information (identified by operation id):
3 - access("FAB"."ID"=72449)
6 - access("FAR"."BODYID"=72449)
AND
explain plan for select far.id,fab.id
from agent_ref far,agent_body fab
where fab.id=far.bodyid and far.id=2219306;
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | Pstart| Pstop |
| 0 | SELECT STATEMENT | | 1 | 18 | 2 (0)| 00:00:01 | | |
| 1 | NESTED LOOPS | | 1 | 18 | 2 (0)| 00:00:01 | | |
| 2 | PARTITION HASH SINGLE | | 1 | 12 | 1 (0)| 00:00:01 | 3 | 3 |
| 3 | TABLE ACCESS BY LOCAL INDEX ROWID| AGENT_REF | 1 | 12 | 1 (0)| 00:00:01 | 3 | 3 |
|* 4 | INDEX UNIQUE SCAN | PK_AGENT_REF | 1 | | 1 (0)| 00:00:01 | 3 | 3 |
| 5 | PARTITION HASH ITERATOR | | 3348K| 19M| 1 (0)| 00:00:01 | KEY | KEY |
|* 6 | INDEX UNIQUE SCAN | PK_AGENT_BODY | 3348K| 19M| 1 (0)| 00:00:01 | KEY | KEY |
Predicate Information (identified by operation id):
4 - access("FAR"."ID"=2219306)
6 - access("FAB"."ID"="FAR"."BODYID")
Can anyone explain to me?
Thanks
user554265 wrote:
Hi all
I don't understand why the same query but Oracle use different plan
explain plan for select far.id,fab.id
from agent_body fab
INNER JOIN agent_ref far ON (far.bodyid = fab.id)
WHERE fab.id=72449;
AND
explain plan for select far.id,fab.id
from agent_ref far,agent_body fab
where fab.id=far.bodyid and far.id=2219306;
Can anyone explain to me?Perhaps this makes a difference...
WHERE fab.id=72449; and
and far.id=2219306; Essentially the two queries ARE different.
Similar Messages
-
on a particular website that has sub domains I have multiple accounts with the same name but different password. Firefox seems only able to save one of them, because they are on the same site.
"Things"? What things? Apps for keeping track of when to change cat litter? 30 different versions of "twinkle, twinkle little star" played by everything from punk rockers to Gregorian chant? Videos on the best way to make Christmas cake?
-
How do I share my itunes library with my mother on the same computer, but different accounts?
My mother and I share a desktop computer (apple) and we have seperate itunes accounts. How do we share accounts?iTunes Home Sharing now works between users on same computer - https://discussions.apple.com/thread/3865597
You could set up two completely separate libraries and share music via Home Sharing.
iTunes: How to share music between different accounts on a single computer - http://support.apple.com/kb/HT1203 - relocating iTunes' media folder to a shared area but leaving separate library files - extra tip at https://discussions.apple.com/message/17331189
Chris CA's instructions on sharing one iTunes music library between multiple user accounts - https://discussions.apple.com/message/8974074 - Multiple users using a single library file - similar post at: https://discussions.apple.com/thread/3753008
Suggestion by Turingtest for multiple users and one library - http://discussions.apple.com/message/9117622 - use smart playlists and tags to isolate groupings.
Discussions on using purchases from multiple AppleIDs in one iTunes library - https://discussions.apple.com/message/19543804 -
How can i share photos on the same mac but different users?
how can i share photos on the same mac but different users? we have different iphoto acounts and just want to be able to look under users in the finder and view another users iphoto.
You may try moving ur librarie to the folder /Users/shared if and link it to iphoto from there
You may locate and link libraries from arkiv-->change library in iphoto -
I would like to transfer music from my account to my wife`s on the same Mac but different 2 users (hers and mine), i want her to have her own i tunes account but now that she has downloaded all of her stuff in my account , she has to "erase and sync" all of her stuff when she opens her account which has nothing in it!, how can i send stuff from my i tunes account to hers? same computer different users, how can i trouble shoot please help!!??
how do i share then? can she upload music if we share it somehow?
If so how??
i am also having the same problems now with IPhoto, she has all of her/our pics in my IPhoto library.
I have told her that now i have bought her the Ipad she would have to log into her user, the only thing is there is no music in her itunes account nor photos in her I Photo library, i have spent all day trying to find a way to "share" but no luck,
Please help i`m going mad!
Surely we could just share these...?
I need step by step instructions please someone send me a link on "how to share pics and music!" -
Two database with the same sid but different ORACLE_HOME on one host
two database with the same sid but different
ORACLE_HOME on one host,and if configure them with
two differnt lisnter staticaclly,this abosultely work
because in the lisnter.ora we must provice
ORACLE_HOME variable,with this ORACLE_HOME the client
can differentiate which database to connect,but if
use dynamically register feature,how can the client
tell which database to connect?Also note that this type of configurtion may not be supported.
Just because a given configuration works in certain given conditions does not mean that it would be supported.
If this setup is for a configuration that has any value, please also Contact Oracle Support to get their inputs on what you are trying to accomplish. -
Two AM's with the same name but different forms causes Deployment problems
Two Masters forms, DOC & PM are cloned except for the "where clause" in the View's query and the titles in their JSP's.
DOC workspace has a BC project and a BC4JSP Project. The BC project comprises of the EO and VO named ComVsStaticValue. In the Edit prop-> query for the VO I have specified the "where clause" as VSSV_VS_CODE='DOCTOR'.
In Java Webserver :-
The JSP's are located in C:\source\Doctor\ .. and the *.xml and *.class files generated by the BC proj is in C:\source\Doctor\pol_ValueSet\..
If I execute Doctor in JWS the records are getting filtered properly.
PM workspace has a BC project and a BC4JSP Project. Again The BC project comprises of the EO and VO named ComVsStaticValue. In the Edit prop-> query for the VO I have specified the "where clause" as VSSV_VS_CODE='PAY_MODE'.
In Java Webserver :-
The JSP's are located in C:\source\PMode\ .. and the *.xml and *.class files generated by the BC proj is in C:\source\PMode\pol_ValueSet\..
If I execute PM in JWS, the PM's JSP comes (the title is correct) but the records pertaining to DOC appears. I checked the View's xml file in C:\source\PMode\pol_ValueSet\ the "where clause" is correct. The xml & classes have the same name but their contents are different.
I want to know whether this problem is because both have the same name for the AM and the BC4JSP's property file.
Please clarify.Deploying two app modules with the same name will definitely cause problems.
The JSPs use the information in the properties file to connect to the application module and get the data they need from the appropriate View Objects in those app modules. If you have two app modules with the same name, when a JSP tries to connect, it has no way of knowing which one of the app modules to connect to if they both have the same name.
You could:
1. Just use one application module that contains all the View Objects you need to access.
or
2. Rename one of the application modules or the package it is located in so the names are distinct. If you choose this method, you will also need to update the JSPs (specifically the 'registerApplicationFrompPopertyFile' method call), and your JSP project's appmodule property file. -
Need to run the same query on different databases with the same argument
Hi folks,
I've a script: obj, which has simple stuff, when I execute @obj
this asked me for the object_name
and in return gives me object/s if it exists in this (connected) db.
Now to check in 2 other dbs, I've to disconnect from here and then connect to those dbs and run the same @obj there and give the same argument, e.g., EMP and it'll return the answer.
What is desired ... if not very hard on you :-(
Some thing like @objAll
asked only once object_name ... e.g., I gave EMP
now go to all the 3 dbs and give me the result in ONE spool file only.
What do you think, is this tough, I did something, but it was not involved connecting to different dbs, within the same script, but here we cannot create db links and have to disconnect and connect to the db to get some information.
Please do reply, if my question is not understandable or any ...
Thanks in advance.
Best regards.
Edited by: user8604530 on Jun 27, 2012 1:51 PMAs far as i understand from your question : you cannot create db links ? right..
well another option is to create a shell script , something like this :
vi check.sh
export ORACLE_SID=db1
sqlplus / as sysdba <<EOF
select query comes here;
exit;
EOF
export ORACLE_SID=db2
sqlplus / as sysdba <<EOF
select query comes here;
exit;
EOFchmod 777 check.sh
This does the job for you.. I am unsure how to pass the parameters in sql while running through a sheel script.. but if thats possible you will be able to achieve what you want.
Regards
Kk
Edited by: Kk on Jun 27, 2012 2:44 PM -
I have an older ipod with a large itunes library. I have a new ipad2. Both have the same email address but different passwords. Can I merge both itunes libraries?
Not sure if this helps:-
The music files, were they bought from your iTunes account or did someone gift them to you after buying from the iTunes account? If they are yours you can download them again if you clear or de-authorise the ipod, it has to be done by whoever gave you the ipod to do this (the registered owner). If they were bought for you on another itunes account I don't think Apple let you use them as they are copyrighted and they don't belong to you, they belong to the person who bought them. If the music files where ripped from music cd's then click and drag them to a new folder on your desktop and have the person who gave you the ipod to de-authorise and unregister it. Then you re register it and put your files back from your desktop folder in your iTunes folder and synch. Hopefully that would work. Any files which you did not buy, I would not know how get around this, best bet is to take it to you nearest Apple Store and explain that they were gifted to you and ask how you can use them. The best way to gift music files is to buy the gift tokens and give these. Hope above helps. -
How can I share user in the same workspace but different applications
I recently created a new application (new) in the same workspace as my old application (old).
I have about 35 application express users. They are stored in uppercase.
The new appl (old) , login page will only accept the DB user login and Not the application users. When I type it in uppercase, it revert it to lower case.
I have no authentication schemes, uses all defaults. I created a DB user and 35 application users.
It give me " Invalid Login Credentials'.
I am due to upgrade tomorrow, but now have run into this problem!!
DesperateAngela,
That is not clear.
I recently created a new application (new) in the same workspace as my old application (old).Now you have exactly two applications in that workspace.
I have about 35 application express users. They are stored in uppercase.Okay.
The new appl (old) , ...What?
...login page will only accept the DB user login and Not the application users.What DB user did you create and why did you create it? Your application must be using a different authentication scheme that the one you intended. Check the current authentication scheme and set it to the Application Express scheme (make it current) or whichever scheme matches that used by the working application.
When I type it in uppercase, it revert it to lower case.I can't explain that unless you created a database user account using double quotes around the lower-case name.
I have no authentication schemes, uses all defaults. I created a DB user and 35 application users.Again, why did you create a DB user?
I am due to upgrade tomorrow, ...What is an upgrade?
What is your current database version and Application Express version?
Scott -
Is it possible to have 2 trans with the same tcode but different langs
Dear forum members,
I would like to know if it is possible to have in the TSTCT table u2013 two entries with the same TCODE value but different SPRAS value (the language field)
Thanks for your help,
RoyHi Roy,
It is possible. Just go to TSTCT table and check for the entries. On the selection screen give some Tcode (say OKEU) and execute. You can see different languages in which it is maintained.
Regards,
Swapna. -
Hi everybody!
I have in a little trouble ....
*** Scenario.
Oracle Enterprise Edition 11gr2 over Oracle Solaris 11
3 instances: PROD, QA, DEV
1 ASM instance
Listener ports: 1520, 1530 & 1540
Those are production system
*** The problem:
Customer can't pay Oracle EE, they want to change to Oracle Std One
Limitations:
I cant have a similar system to test.
*** My idea:
Install Oracle Std One, in the same path:
/u01/app/oracle/product/11.2.0/db <-- EE
/u01/app/oracle/product/11.2.0/db_one <-- Std Ed One
ASM:
/u01/app/11.2.0/grid <-- EE +ASM
/u01/app/11.2.0/grid_one <-- Std Ed One +ASM1
Create databases:
Asign similar disks to +ASM1
Create DGs on +ASM1
Create databases: PROD, QA, DEV for Std Ed one
- is it posible that they have same instance name?
- if not, i suppose create as: PROD1, QA1, DEV1
Configure Listener port : 1521, 1531 & 1541
Migration technique:
Create Tablespaces, schemas
Lock users in EE
down listener: 1520, 1530 & 1540
Import data of final users in a window maintanance
configure and up listener: 1521, 1531 & 1541
Customer should test access and apps in new
Please tell me if my Idea is reallistic, all comments are going to be very apreciated.sol.beach
I suppose end customer use a port per database in order to separate in a logical way the access to the databases,
i mean PROD, QA & DEV has the same users.
Hemant K Chitale
1. I've seen physical servers with 3 ASM instances: +ASM1, +ASM2, +ASM3
on Solaris & Oracle 10g, I suppose is posible on 11g
2. The sever has occupied 2 sockets (2 physical CPU), so I can use Oracle Standard Ed One.
JohnWatson2
Thanks for your comments.
WadhahDaouehi
1. - You cannot run two ASM instance simultaneously on one Server, but you can run many Oracle database simultaneously
on the same server which they use the ASM as storage type.
As a mentioned to Hemant K Chitale, I've seen a system with several instances running
About
"you can run many Oracle database simultaneously on the same server which they use the ASM as storage type."
I'm not sure if i can use the same ASM which is part of a current Enterprise Ed over the new installation with Oracle Std Ed One.
2. - Why you want the same instance name?
If it is about the service name, which has by default the same instance name, just you can create a different instance name
and create the service name with the name that you wish.
SQL> alter system set service_names='instance_name';
Is a similar name, not the same
PROD, QA & DEV
PROD1, QA1 & DEV1
I consider add "1" at the end to refer "Oracle Standar Ed One"
But I agree with you, i can customize throught service_name.
Regards,
Abraham Mtz. -
I have 2 iPads but just one ID. I use the iPad 2 and my daughter uses the mini. Both have different contents, as her mini contains a lot of videos that she's taken. Niw, I just bought an iPad Air and want to essentially transfer my iPad 2 contents there and also transfer my daughter's mini contents to that iPad 2. If I back up both to the same computer, will I have access to both sets of content and transfer the data to whichever device as I see fit? I just want to make sure so I don't lose any of her content (especially).
Thanks!Using iTunes on a computer, be sure to set the backup(s) to be stored locally and not the iCloud for efficiency's sake. If all devices belong to the same AppleID, each one will store its backup on a separate file, and if appropriate, you can choose any for a restore as needed. As shown in Diavonex pic, the backups are listed in Preferences / Devices. Hover the cursor over each and a popup will appear detailing which device it belongs to. And you can keep, if needed, more than one backup of a device: control-click on the backup to preserve and choose Archive from the menu (Older backups get overwritten otherwise).
-
How to plot 2 signal in the same graph but different frequency?
Hi!!
I have 2 sensor, motion and EMG.. I want to plot both of the signal (after processing) in the graph (real-time)..
The frequency of motion sensor is 128 Hz and for EMG sensor 800 Hz..
When I'm trying to plot (motion and emg) in the same graph, the signal from EMG (red line) not smoothly and very different with motion sensor..
I'm trying to resample that signla but, it's not working..
Can you help me?
thank youu
Attachments:
graph.png 11 KBAkardo14
Yes, I trying to use merge signal before... but signal from emg signal didn't appear in the graph (using merge signal figure)..
I'm showing motion and emg signal in different graph, it's work..
But I need to show both of signal in one graph to compare between motion and emg signals (fig1)
Attachments:
using merge signal.png 19 KB
fig1.png 9 KB -
When i open a website, i get two tabs with the same address but different icons?
when i open a webiste, i use google, another tab for the same website appears but with a different logo. macafee says it's not a virus, and to contact firefox.
i am not a computer person and i don't know how to get rid of the second tab
appreciate any help! :-)Can you attach a screenshot?
*http://en.wikipedia.org/wiki/Screenshot
*https://support.mozilla.org/kb/how-do-i-create-screenshot-my-problem
Use a compressed image type like PNG or JPG to save the screenshot.
Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
*Do not click the Reset button on the Safe mode start window or otherwise make changes.
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
Maybe you are looking for
-
I've seen a few older posts regarding CS4's bug with applying a clipping mask to any image that is somewhat complex, but have yet to find an answer. The problem is, any time a clipping mask is applied to a semi-complex shape, Illustrator CS4 slows al
-
Is there an easy way to generate a 'summary' page?
Once the form is completely filled out - I want to condense a 14 page form to 2 pages - buy generating a summary and signature page. Any chance that there is an easy way to generate a summary page built from the objects in the existing form? So, it w
-
How to Print the Batch no in the AR Invoice , AR Credit memo
hi Dear experts my client using SAP Business One 2007 B Patch 15 and i want to print the batch no in the AR Invoice print. How can i do this? Please help me I have already done setting in the Administration>>system intialization >>print Preference bu
-
Serial Number CS5 help Menu?
Hello- Trying to locate my serial number, and no I don't have it on Adobe.com. But I found a serial number located in CS5 under the Help Drop down, under System Information. Is this the actual Serial Number? Just trying to find it because I'm gett
-
How to make joins using different tables depending on inputs? Dynamic Query
Hi, I have this situation: - A form with a few input messages; - Each input corresponds to a table on a DB; - A user can search for information filling any input, one or more; - With the inputs filled I have to dynamic create the query, execute it an