Can Oracle pick an index hint for an index that's inside of a sub query?

I have a query like the following:
Select /*INDEX(Table1 TABLE1_IDX) INDEX(Table3 Table3_IDX) */
from (select /*INDEX(Table1 TABLE1_IDX) */
T1.col1,t1.col2,...
from Table1 T1
Join Table2 T2
ON T1.col1 = T2.col1
T1.col2 = T2.col2) Tsub
Right Outer Join Table3 T3
ON T3.col1 = Tsub.col1
T3.col2 = Tsub.col2
Will Oracle pick up and use the index for Table1 in the join to Table3 even though it's being refernced from with in a sub-select statement? Will it know to use the index for the 'Tsub' alias to join it to Table3?

"Hints apply only to the optimization of the block of a statement in which they appear. A statement block is any one of the following statements or parts of statements:
A simple SELECT, UPDATE, or DELETE statement
A parent statement or subquery of a complex statement
A part of a compound query"
however, your outer query has NOTHING named "table1". hints must use the ALIAS (if one is given), so your outer hint for table1_idx should reference "TSUB".
but even more to the point, once the subquery is complete, you'll outer-join table3 to it, which doesn't need an index on tsub.

Similar Messages

  • How can i know which index will be used when executing the query ?

    1 ) I have query in which i have 3-4 tables but there multiple index on one column .
    so how can i know which index will be used when executing the query ?
    2) I have a query which ia taking too much time . how can i know which table is taking too much time ?
    3) Please Provide me some document of EXplain plan ?

    Hi Jimmy,
    Consider the below example
    /* Formatted on 2011/02/04 21:59 (Formatter Plus v4.8.8) */
    CREATE TABLE FIRST AS
    SELECT * FROM all_objects;
    UPDATE FIRST
    SET object_name = 'TEST'
    WHERE owner != 'SCOTT';
    CREATE INDEX idx_first ON FIRST(object_name);
    SELECT *
    FROM FIRST
    WHERE object_name = 'TEST';
    It has not used index
    Execution Plan
    Plan hash value: 2265626682
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 58678 | 7334K| 163 (4)| 00:00:02 |
    |* 1 | TABLE ACCESS FULL| FIRST | 58678 | 7334K| 163 (4)| 00:00:02 |
    /* Formatted on 2011/02/04 21:59 (Formatter Plus v4.8.8) */
    SELECT *
    FROM FIRST
    WHERE object_name = 'emp';
    This has used the index
    Execution Plan
    Plan hash value: 1184810458
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 1 | 128 | 1 (0)| 00:00:01 |
    | 1 | TABLE ACCESS BY INDEX ROWID| FIRST | 1 | 128 | 1 (0)| 00:00:01 |
    |* 2 | INDEX RANGE SCAN | IDX_FIRST | 1 | | 1 (0)| 00:00:01 |
    From this we can come to the conclusion that, whether to use one index or not by oracle
    would also depend on the data which is present in the table. This has to be this way as
    we see in the bind peeking, if oracle sticks to only one plan, say only use the full table
    scan, it would be a performance hit when it searches for the second query ie where object_name
    ='emp';
    2.
    If we have a query like below.
    select * from emp
    where upper(ename) = upper(:p_ename);
    Evenif we have the index on ename column, oracle wouldn't be able to use the index, as there is a function in the predicate column. If you need oracle to use the index, we need to create a function based index as below.
    Create index idx_ename on emp(upper(ename));
    Regards,
    Cool

  • How can I install and config Jolt for IIS so that I can call the services advertised by tuxedo?

    How can I install and config Jolt for IIS so that I can call the services advertised
    by tuxedo?

    It appears that you have apps that need updating that were pruchased from more than one account
    - Go to settings>Store and sign out and sign into your account.
    - Apps are locked to the account that purchased them.
    - To update apps you have to sign into the account that purchased the apps. If you have apps that need updating purchased from more than one account you have to update them one at a time until the remaining apps were purchased from one account.

  • HT5691 Why can't I purchase applecare support for my iphone5 that was bought from ATT?

    Why can't I purchase applecare support for my iphone5 that was bought from ATT?

    not online like I usually do.
    when I enter the serial number, it shows standard warranty with no option to purchase exended applecare+

  • I have a MacBook that is synced with my ipad.  My daughter has an Iphone4 and no computer.  How can we use the one computer for both devices that are unique?

    I have a MacBook that is synced with my ipad.  My daughter has an Iphone4 and no computer.  How can we use the one computer for both devices that are unique and keep them separate. thank you for your help!

    This should help:
    How to use multiple iPods, iPads, or iPhones with one computer
    Regards.

  • How can Oracle Portal 11g improve ROI for a utility company

    I want to prepare a presentation regarding Oracle Portal 11g for a group of senior management in my company which sells electricity for commercial building. So i need to know from where i can find related papers that gives some practical examples for how implementing an Oracle Portal 11g can reduce operational costs and can improve ROI over time. So that if the company buy Oracle Portal 11g which costs for example X dollars then the company can cover this cost from reducing the operational costs in few years.
    Appreciate a lot any help and support.
    Best Regards
    John.

    The supported way to install Oracle Portal is available in Note [url https://support.oracle.com/epmos/faces/DocContentDisplay?id=1436807.1]1436807.1, 'How to Perform a New Installation of Oracle Portal 11g With Oracle Access Management 11g as Single Sign-On Solution ?'.
    A few remarks about this note :
    <li>The note mentions FMW 11.1.1.6 - FMW 11.1.1.7 is out already and should be used instead
    <li> The note mentions OAM 11.1.1.5 - use OAM 11.1.2 instead as it will allow you to consume a future patch for DAS support
    Thanks,
    EJ

  • Can Oracle Express Edition be used for Internet Web Projects?

    Hi,
    If we have a simple WWW application accessible from internet via WEB server and Web server uses Oracle Express Edition as a "data storage", can Oracle XE be used without violating license (XE limitations)?
    Thank you!

    Don't see why not, although a quote from the Oracle Technology Network Developer License Terms for Oracle Database 11g Express Edition page at the License Rights section, "developing, prototyping and running your applications for your own internal data processing operation..." so that might be leaning into a bit of a grey area. A bit.
    But with something available on the web you'll want to be sure to stay up to date with security patches- and unfortunately XE can not be patched. Just because something can be done, and even works for its intended purpose, doesn't necessarily mean that it is a "good thing to do".
    Nothing wrong with trying something out for learning and figuring out how things work- apex is a nifty development platform, although I've not kept up with the details of the last couple of versions. Too many other things on the "got to learn this, got to do that" list(s).

  • Where can I find an instructional DVD for Photoshop CS6 that is Mac-compatible.  My textbook came with a DVD that's not Mac-compatible.  Thanks!  Michael

    I'm new to Photoshop, and my textbook came with an instructional DVD (for Photoshop CS6) that is not Mac-compatible.  Does anyone know where I can find one?  Thanks!  Michael R.

    You should ask in Photoshop General Discussion
    This forum is about the Cloud as a delivery process, not about using individual programs
    If you start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • Can we set User roles/permissions for a content that is stored in Contentspace at the end of Process

    Friends,
    I have a requirment where a set of approvers approve a form and at the end of the process i store the form as a pdf in the contentspace.
    My requirment is that, can we set roles/permission for the file that i store in the contentspace and allow only the people who have approved the form to view/edit the content the the contentspace.
    If possible what is the workbench activity should i use and how should i use it in the process?
    Thanks for your support
    -Ashok Deivasigamani

    There is  a read/write permissions service in the Content Services category in workbench that will allow you to control the access to the space or th efile that you write intp CS.
    Paul

  • When can oracle support full text search for Simplified Chinese?

    When I create index using the create index clause,the following errors appears
    "ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: interMedia Text error:
    DRG-11440: operation not supported for the SIMPLIFIED CHINESE language"
    Maybe I have to use like to query words...
    Did somebody encounter the same problem and have a good solutions?I am expecting your help!
    null

    Hi,
    Full-text search capabilities is not currently not supported and Unfortunately, we do not have a timeline as to when it will be available.
    You can post a feedback on the below link.
    http://feedback.azure.com/forums/217321-sql-database
    Regards,
    Mekh.

  • HT204053 Can I use one Apple ID for iMessage/Facetime that is not the same as my iCloud ID?

    I have one Apple ID for iCloud that is used on multiple devices. Each user has their own Apple ID for Store purchases.  Can I use my Apple ID that is NOT my iCloud ID as a way to get my iMessages/FaceTime on multiple devices?

    To clarify, we share an iPad (original iOS 5.1.1).
    When I use it, I would like to use my individual AppleID that I use for store purchases so I get MY iMessages on both my phone and the iPad.
    It seems to work when I use the iCloud Apple ID (meaning iMessages come through on both units) but when I try to set them both up using my store Apple ID, it doesn't work.
    Help?!?!

  • After complete reset of iPod after lockout,  I cannot retrieve old gamecenter ID.  how can I use my old account for gamecenter now that we have had to create a new username?

    We had to create a new username for gamecenter using the same apple ID.  We want to use the old gamecenter account....we have purchased in-app items for those games and now have no access to that account.  How can I fix this?  Or am I just out of luck and start over with the new username.....

    You are running into the Activation lock and you need to enter the Apple ID and password for the account last used on the iPod.
    iCloud: Find My iPhone Activation Lock in iOS 7
    To recovery use of that account:
    Why do I see the message "This Apple ID has been disabled for security reasons” when I enter my password?
    This message means that someone was unable to sign in to this account multiple times. The Apple ID system will disable the account to prevent unauthorized people from gaining access to your information. You'll need to follow the instructions on My Apple ID to reset your password.
    If not successful, contact iTunes
    Contact iTunes

  • HT204053 How can I create an Apple ID for my kids that are both under 13?

    My parents bought my kids iPad Minis and they do not have Apple ID's. Ideally, I would like to link them to my account so they can use the tons of apps I've bought for them on my devices while allowing them to make purchases using the gift cardsthey've received.

    Welcome to the community.
    Unfortunately, you cannot do that. The first hurdle that you are going to face, is that mobile devices, by virtue of being prone to loss, will always require that a password is entered before a purchase of any kind is made.
    If your concern about the password, is related to your privacy in regard to your mail, contacts and calendar information rather than their acces to make purchases, then the best solution would be for you to use another Apple ID for iCloud.
    Apple have called the whole cloud thing iCloud, there are a number of features under the iCloud umbrella, some of which require their own login. iTunes is one of these, another is what Apple have unfortunately also called iCloud too.
    You can use the same Apple ID (account) to login to both iCloud and iTunes, but you don't need to and often users will login to each service using a different ID.
    The part that you need to remember is that the services available when you log into iCloud are completely different and unrelated to those when you log in to iTunes. Your iCloud login enables mail, contacts, calendars, find my phone, Back to My Mac, Documents & Data sharing and photostream, it does not affect any of your iTunes services.

  • I have 2 iphones,a iphone5 and an iphone 4s,before upgrading to ios8,i used to receive i messges on both devices,however now i can't because it asks me for a code that i can't get.By the way my iphone 4s has no sim...can i fix this?never had a proble

    I have 2 iphones,one with a sim card installed and one without.Before I upgraded to ios 8 I received Imessages on both,however this is no longer possible because it asks me for a code for forward text messaging that I am unable to get.I HAVE THE SAME APPLE ID ON BOTH.Can this be fixed?

    Hi mopster555,
    Thanks for the question. If I understand correctly, you are not receiving messages on two iOS devices. I would recommend that you read this article, it may be able to help you isolate or resolve the issue.
    iOS: Troubleshooting Messages - Apple Support
    Thanks for using Apple Support Communities.
    Have a great day,
    Mario

  • Can i get my money back for an app that i do t want

    i just bought my first new mac pro 1 week ago, but i didnt know that the new version of OS X lion was already in this computer, so basically i purchased it for nothing.

    You can always ask.
    http://apple.com/support/itunes/contact/

Maybe you are looking for

  • File adapter PUT operation with header row.

    i have schema generated in the below format. <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"             xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"             xmlns:tns="http://TargetNamespace.com/InboundService"             targetNam

  • Firmware Issue after RAM upgrade?

    I have been able to reproduce a possible firmware issue: Upgrade to 4 x 2GB plus something else (another 2 x 512MB will do). Go to sleep mode and wake up again: fans will go mad, but they will slow down after 1-2 minutes again. Is anybody able to con

  • Setting up replication with client written in C++ and DB master in Java

    Hi I am trying to write C++ client that will join replicated environment created by a master written in java. For JAVA, I am using Berkley DB Java 4.0.103 API. So far, I have written Master in java which creates a replicated environment. I also have

  • Project/Albums show as having pictures, but won't display the pictures.

    I have a Project and it has two albums listed (indented) underneath it. I have moved them around a bit to put them in different folders, and now the pictures won't display.  By that I mean that if I mouse over the project, a popup (or flyover) says t

  • SetFocus dynamic with string

    Hi, in an adobe form the Focus can be set with xfa.host.setFocus("Formfield").  In this case 'Formfield' is a hardcoded form field. Is it also possible to set the focus dynamic with a string, which contains the fieldname? e.g. myField = myNode.value;