optimizer use same regime without help, advice or contours stored?

Hi all

I'm on 10.2.0.3, here's my question. lets say I have the query below... and it takes about 5 minutes to run... altought it is not not... lets just "assume" she does...
Select scott.emp e, scott.dept d, e.ename, e.job, e.sal, d.loc
where e.deptno = d.deptno;
                                                                                                                                                      
----------------------------------------------------------------------------------------                                                              
| Id  | Operation                    | Name    | Rows  | Bytes | Cost (%CPU)| Time     |                                                              
----------------------------------------------------------------------------------------                                                              
|   0 | SELECT STATEMENT             |         |    14 |   448 |     6  (17)| 00:00:01 |                                                              
|   1 |  MERGE JOIN                  |         |    14 |   448 |     6  (17)| 00:00:01 |                                                              
|   2 |   TABLE ACCESS BY INDEX ROWID| DEPT    |     4 |    44 |     2   (0)| 00:00:01 |                                                              
|   3 |    INDEX FULL SCAN           | PK_DEPT |     4 |       |     1   (0)| 00:00:01 |                                                              
|*  4 |   SORT JOIN                  |         |    14 |   294 |     4  (25)| 00:00:01 |                                                              
|   5 |    TABLE ACCESS FULL         | EMP     |    14 |   294 |     3   (0)| 00:00:01 |                                                              
----------------------------------------------------------------------------------------         
But the same query with a (below) hint of nestloop takes less than 5 seconds to run scared again... that assume that it takes 5 seconds to run...
Select / * + USE_NL (E, D) * / e.ename, e.job, e.sal, d.loc e scott.emp, scott.dept d
where e.deptno = d.deptno;
---------------------------------------------------------------------------                                                                           
| Id  | Operation          | Name | Rows  | Bytes | Cost (%CPU)| Time     |                                                                           
---------------------------------------------------------------------------                                                                           
|   0 | SELECT STATEMENT   |      |    14 |   448 |     9   (0)| 00:00:01 |                                                                           
|   1 |  NESTED LOOPS      |      |    14 |   448 |     9   (0)| 00:00:01 |                                                                           
|   2 |   TABLE ACCESS FULL| DEPT |     4 |    44 |     3   (0)| 00:00:01 |                                                                           
|*  3 |   TABLE ACCESS FULL| EMP  |     4 |    84 |     2   (0)| 00:00:01 |                                                                           
---------------------------------------------------------------------------   
And statistics are computed every night... my question is how would implement oracle to use loops nested without use of indicators, then oracle can choose the right plan with loop nested by himself without the help of clues or without using stored outlines...

so wat I say is... can the first statement sql (with no options) use loop nested by itself without suspicion...

I think it would work and pick up the public synonym.

If you are concerned about security using the public synonym, I don't think it would be a problem too long any other user wouldn't have different access to the actual data of those who now have access to the view.

Do not forget that the public synonym gives only a resolution of an object name, no access to the object itself.

I hope this helps. Have a great weekend...

Tags: Database

Similar Questions

  • Adobe CS5 uninstall - reinstall on the same computer without using the last instructions of activation code?

    I'm on a MacBook Pro with OS X Yosemite.  Computer has been completely cleaned, stored, updated, no problem other than my Adobe CS5 software will not work.  Photoshop, if I'm lucky that it will download, but a few minutes of the crash using.  InDesign won't open at all.  Illustrator, does not open.  Flash, none open - help from Adobe will not update because it says a file is corrupted etc etc etc etc.  I have my original disks with serial numbers to reinstall the software.  All I want to know is how to properly uninstall all the software on my computer and reinstall on the same computer without using my second activation code.  I can't seem to find clear, concise, simple instructions for this process.  "Disable" something before I have uninstall?  Where should I go for it?  What should I do once I have disabled everything I'm supposed to deactivate and uninstall the software, then reinstall?  I must return to some site to reactivate whatever it is I'm reactive?  I don't want to use my second activation code.  That's all.  Why customer comes from say the quick simple solution by phone beggars belief.  Yes.  I am quite aware that it is old software.  But it's your Adobe software.  Support me.  Because when you do not have, I have to post negative passive-aggressive messages like that on a forum online so that everyone can see.  I'm sure that you have all of the embarrassment of opportunity as you read this.  But I just want to assure that I do what I'm supposed to do without screwing anything other than it already is.  Any help is greatly appreciated!

    Uninstall using the own uninstaller from adobe by the use of the Adobe Creative Cloud cleaning tool to solve installation problems, restart your computer and reinstall.

    p.s. I'm not an adobe employee and these forums are user forums.

  • On March 28, my ipad 2 use osi 9.2.1 air would not allow internet browsing so I updated to 9.3... I always have the same question. Any advice?

    On March 28, my ipad 2 use osi 9.2.1 air would not allow internet browsing so I updated to 9.3... I always have the same question. Any advice?

    Unfortunately, this is a common problem.

    Try turning off JavaScript under settings - Safari - Advanced.

    You can find more information at the link:

    For those having issues with the iOS 9.3 update please read...

    New construction of iOS with the latest bugfixes 9.3 is now available for download

  • Can two people use Cloud applications simultaneously with the same subscription without problem? [was: Hello, my question is...]

    Buy the package "all applications" can two people use aplicacioes at the same time without problems?

    NO.

    The OWNER can activate on 2 computers but use only on one at a time

    Cloud license allows 2 activations http://www.adobe.com/legal/licenses-terms.html

    -Install on a 2nd computer http://forums.adobe.com/thread/1452292?tstart=0

    -Windows or Mac has no importance... 2 on the same operating system or 1 on each

    -Two activations may NOT be used at the same time (noted in the link above of the license)

  • I allowedI have exceeded my GB account. They refuse to pay for the excess. How can I delete and forbid them to use my WiFi? Help the pse. John (Turkey).

    I allowed a neighbor to 'Piggy Back', my access to the internet, giving them my password. They took advantage of this facility, and I crossed my

    GB account. They refuse to pay for the excess. How can I delete and forbid them to use my WiFi? Help please. John in Didim, Turkey...

    [Moved from comments]

    Hi John,.

    Unfortunately, it seems that your neighbors have taken advantage of your kindness.
    As well as the suggestion of Sanwin2 to change the wireless password, you must also change the password to your console to access router (usually accessed via the IP address in the address bar of the browser). Just do it if the Access console password was the same as your Wi - Fi connection, or by default. Please note that this is ONLY if you have a router to access the internet.
    You can contact your router manufacturer and ask how you can prevent access. Usually, you can set your router it allows only the connection from certain IP addresses that you specify. In this way the neighbors won't be able to connect at all. It would be almost impossible unless experts pirate networks.
    You can also contact your nearest branch. As they are piggybacking without your permission, she (I assume) may be classified as theft. Although I'm not 100% sure and the laws may be different in your area, you can call the non-emergency number and report your neighbor.
    Of course, have you tried to go above and asking them to stop using your connection?
    -Jet
  • Is there a way I can share files between users on the same Mac without an internet connection?

    Hello world!

    Quick question here: is there a way I can share files between users on the same Mac without an internet connection?

    I have two users say that A and B. If I go the long way via the 'Go' menu > 'Computer', I ended up being told to contact my computer or the network administrator for assistance. Both users are admin one and file sharing is allowed in system preferences... I have to admit that I use 10.9.5 because my MacBook Pro would not work with OS Xs national parks.

    Any ideas would be cool because I'm sure that it used to work fine with "Snow Leopard" without being connected to the internet - or should I just send an email to myself and recover the files on the other user :-) to recover my USB is

    Choose go to folder from the Finder Go menu, provide/Users/Shared/as the path and place the files.

    (142147)

  • HP deskjet 2540: stop page print quality and 'use printer wireless without router' printing

    After installing the hp deskjet printer 2540, all operating systems (vista, windows, mac os, windows 8) correctly printed.

    I would like to prevent the printing of print quality page whenever the printer is on and to prevent print also the page "use printer wireless without router" (it would be better not to waste the ink).

    Thanks for any help you can provide

    Hi there @lesart55.

    Welcome to the HP community!

    I have seen your post on how your Deskjet 2540 prints a page of print quality every time that the printer is on, and also the page "use printer wireless without router" is printing.

    I'll start with the PQ page that prints at the start of the printer, as it is normally a sign of a hardware problem with the printer.

    Try to update the firmware on the printer. Here is the link to download and run the update using a USB connection to your Vista system: HP Deskjet 2540 series Firmware update

    Try a reset of the power to the printer and make sure the printer is plugged directly into the wall, avoiding bars power and surge protectors. This ensures that the printer is full on and can help greatly.

    Press the power button to turn the product on.
    With the product, unplug the power cord from the back of the product.
    Unplug the power cord from the wall outlet.
    Wait at least 15 seconds.
    Plug the power cord into the wall outlet.
    Reconnect the power cord to the back of the product.
    If the product does not light by itself, press the Power button to turn it on.

    If the PQ page always print after you are done troubleshooting, try the steps outlined in this guide below. I looked at the steps that I see would take place in the tent for your specific problem and chose the steps following, Please do not take account of the actual title.

    An "Incompatible cartridge or"Missing cartridge"Error Message is displayed for HP Deskjet 1510, 2540 Deskjet, HP Deskjet Ink Advantage 1510 and Deskjet Ink Advantage 2540 all-in-One Series Printer"

    I hope that the problem has been cleared up for you at this stage. If this isn't the case, please call us directly to discuss your options of the printer!

    Please contact our technical support at the 800-474-6836. If you do not live in the United States / Canada region, please click the link below to get help from your region number. http://WWW8.HP.com/us/en/contact-HP/WW-phone-assist.html

  • After 4 years of use my computer without any problems at all, I get a message saying that my copy of Windows Vista is NOT activated.

    Original title: Vista Activation issue

    After 4 years of use my computer without any problems at all, I get a message saying that my copy of Windows Vista is NOT activated.

    Of course, he was and has been deleted now tile view! I made no changes to anything on the computer, so I did a little research

    and found that it could be a virus trying to get 'paid' for a new activation code. I did a complete reinstall of Vista to remove

    such viruses or errors and it still say my copy of Vista is not activated. When I try to follow the steps to activate Vista,

    I got nowhere! Everything I've read say s do the activation of the phone, but my computer doesn't give me the option of phone!

    It gives me only 3 options - "Buy a new online product key", "Enter a different product key", "Contact Hewllet Packard to help solve this problem."

    I called HP and of course my warranty has expired and they even want to talk to me about $100! I'm going crazy trying to figure this out! Help someone?

    Thanks for the reply, but I tried ALL the links you've posted over and over again until I've already posted my question here! The links you suggested sent me round in circles! They say all "choose the Activate by phone option" but I was not getting the phone option on my computer for some reason any.

    I have corrected the problem and HERE IS HOW - 1-800-Microsoft

    It was as simple as that! Now, if only they post this number somewhere here on the site it might save people hours or days of research! After calling the number, work your way through the automated system until you get a man! The guys at Microsoft that answered the phone was great and had activated me and up and running in minutes!

  • Hello, please help me. I use a power keyboard for my laptop. I see in the new keyboard is equipped with a num lock key is turned on. I can't use on it please help me disable it. I do not use a NumLock on. Thank you

    Hello, please help me. I use a power keyboard for my laptop. I see in the new keyboard is equipped with a num lock key is turned on. I can't use on it please help me disable it. I do not use a NumLock on. Thank you

    You say that when you press the NUM LOCK key, the Numlock State does not change (if enabled to disabled and vice versa)?  Have you tried to unplug the keyboard and by ensuring that the keyboard of the laptop does not have enabled Numlock?  If so, turn it off on the laptop keyboard and reinsert the another keyboard and see if the problem is resolved.

    If you do not need the Numlock key, it can be disabled at startup with the following procedure:http://www.technipages.com/enabledisable-numlock-at-login-or-startup.html. Once this is done, I don't think he's going to turn on or off and that they the keyboard will start in the off position.  You will not be able to use the key yourself or another, but maybe the problem she is on (which is worse than it to be impossible to be turned on) will be resolved and I hope it will be enough for you.

    If the key does not work and you want to be able to use it, the keyboard may be defective.  Try the keyboard on another computer and see if you have the same problem.  If so, the keyboard is defective and must be replaced.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • 0 x 80070422 windows firewall does not use recommended settings to help protect your computer

    Hello, I kepp getting this firewall of windows message 0 x 80070422 does not use recommended settings to help protect your computer,.

    Whenever I click on the recommended use of the parameters, it gives me this code. I ran virus and malware scans and I foud more but now they have been removed. But still, I'm afraid that I don't have a wall of fire and that anthing can pass through.

    If anyone can give me some advice it would be greatly appreciated.

    Marko7

    Hello

    Run an online scan to check any virus or any other malicious software:
    http://OneCare.live.com/site/en-us/default.htm

    and see here

    Error code 0 x 80070422 cannot activate the firewall

    I would like to know if this helps
    Elvis

  • using a laptop without battery

    Good evening

    I want to use my laptop without the battery as it is very old.

    I have it out and turned on my laptop, but it turns off after 15 minutes.

    what I need to change the power management? (if if I need some help) or do something else?

    Pavilion dv9750ej vista

    Thank you

    drfsix

    Yes, you should be able to work with power supply adapter only (if you have the battery removed).  It may be close for another reason.

  • How can I dynamically load swc files using as3? (without relying on the Flash IDE).

    How can I dynamically load swc files using as3? (without relying on the Flash IDE).

    The SWF file can be used in the same way as the CFC, which means that you don't need to "visually show" anything when it is loaded. Your code can use the classes and assets incorporated into the SWF, just as a SWC file. So if someone just to load the SWF file to see what was in it that they see nothing. They could however access programmatically to what anyone on the inside just like you, if they went to that level. But it is not as easy as just racing as SWF to see what is inside.

    I hope that all packaging several separate sovereigns will allow you to load and unload only what you need to keep the RAM usage as low as possible with a minimum load SWF.

    If you are ready, please mark all useful/correct so we can filter without response. You're welcome and good luck!

  • How do I open the PSD file received via email on iPad using Photoshop Touch without creative cloud?

    Hi, how do I open PSD file received via email on iPad using Photoshop Touch without the need to use creative cloud? Thank you.

    Hi Super Nemo

    Currently, the only way to open psd files in Photoshop touch is the creative cloud. In addition, the layers you created from Photoshop on your desktop will be be flattened when opened with Photoshop touch on your iPad. But you can keep the touch app layers when you open the psdx file on your desktop photoshop.

    This link might help you: http://forums.adobe.com/docs/DOC-1336

    -Sharon

  • Get the same results without line of sight

    Hi gurus,

    My version of the database is 10.2.0.4.0.

    I have a couple of tables as follows:

    CREATE TABLE xxgroups(group_number NUMBER, description VARCHAR2(30));
    
    INSERT INTO xxgroups VALUES(1,'Group 1'); 
    INSERT INTO xxgroups VALUES(2,'Group 2');
    INSERT INTO xxgroups VALUES(3,'Group 3');
    INSERT INTO xxgroups VALUES(4,'Group 4');
    INSERT INTO xxgroups VALUES(5,'Group 5');
    
    CREATE TABLE xxgroup_persons(group_number NUMBER, person_number NUMBER, first_name VARCHAR2(30), last_name VARCHAR2(30));
    
    INSERT INTO xxgroup_persons VALUES(1, 1, 'John', 'Smith');
    INSERT INTO xxgroup_persons VALUES(1, 2, 'James', 'Smith');
    INSERT INTO xxgroup_persons VALUES(1, 3, 'Joe', 'William');
    INSERT INTO xxgroup_persons VALUES(2, 4, 'Julien', 'Ford');
    INSERT INTO xxgroup_persons VALUES(2, 5, 'James', 'Kelly');
    INSERT INTO xxgroup_persons VALUES(3, 6, 'Francis', 'Smith');
    INSERT INTO xxgroup_persons VALUES(5, 7, 'Jerry', 'Ford');
    INSERT INTO xxgroup_persons VALUES(5, 8, 'Alfred', 'Willis');
    INSERT INTO xxgroup_persons VALUES(5, 9, 'Jon', 'Preston');
    
    COMMIT;
    I would like to get a query to return for each group, the person with less person_number (if no one assigned to the group, then the query must return again with an empty person group). I know I can do this by using for example:
    SELECT group_number, person_number, first_name, last_name 
    FROM (SELECT a.group_number, b.person_number, b.first_name, b.last_name
               , RANK() OVER (PARTITION BY a.group_number ORDER BY person_number) person_order
          FROM xxgroups a, xxgroup_persons b
          WHERE a.group_number = b.group_number (+)
         ) 
    WHERE person_order = 1
    ORDER BY group_number;
    
    GROUP_NUMBER PERSON_NUMBER FIRST_NAME                     LAST_NAME
    ------------ ------------- ------------------------------ ------------------------------
               1             1 John                           Smith
               2             4 Julien                         Ford
               3             6 Francis                        Smith
               4
               5             7 Jerry                          Ford
    but it would be possible to achieve the same results without inline mode?

    Thank you.

    You can try this function KEEP:

    scott@orapdt>  SELECT a.group_number,
      2         min(b.person_number) as person_number,
      3         min(b.first_name) keep (dense_rank first order by person_number) as first_name,
      4         min(b.last_name) keep (dense_rank first order by person_number) as last_name
      5  FROM xxgroups a, xxgroup_persons b
      6  WHERE a.group_number = b.group_number (+)
      7  group by a.group_number;
    
    GROUP_NUMBER PERSON_NUMBER FIRST_NAME                     LAST_NAME
    ------------ ------------- ------------------------------ ------------------------------
               1             1 John                           Smith
               2             4 Julien                         Ford
               3             6 Francis                        Smith
               4
               5             7 Jerry                          Ford
    
    5 rows selected.
    
  • I have a lg 4 k tv (40 "40UH630V TV LG ULTRA HD 4 K) with HDMI 2. 0 and if I buy apple tv 4 can be used with HDMI 2. 0 port or do I HDMI 3 port to use this? Please help me

    I have a lg 4 k tv (40 "40UH630V TV LG ULTRA HD 4 K) with HDMI 2. 0 and if I buy apple tv 4 can be used with HDMI 2. 0 port or do I HDMI 3 port to use this? Please help me

    You can use it with your TV.

Maybe you are looking for

  • Two questions on Qosmio G20 - 165

    2 issues of a whole new user in the United Kingdom (1) how can I configure the Qosmio Player for TV in the manual tuning mode for BBC1's channel 1, BBC's channel 2, ITV's channel 3 etc. [I can set up channels with the help of autotune, but of course,

  • Recovery is required for my Satellite C70D-A-114 files

    I have a Satellite C70D-A-114... I rarely used because it was slow then I wanted to sell first I wanted to get back to factory settings Thus, in this process seems to have removed all the files so now I only get the message no bootable disk, etc. All

  • Intermittent network connection fall

    Original title: Internet access Once in a while (maybe once in 10 days) when I connect my desktop PC, running Vista Premium, I can't access the Internet through any browser: IE, Safari, Chrome. If I open a cmd prompt I can ping sites ok. That never h

  • I need assistance with halo 2 cd key serial

    I just bought a used version of halo 2 for windows vista and I can not play because my serial cd key does not work, can I get help here please?

  • Sony xperia z3 ringtone does not change

    I tried to change the ringtone in the MP3 of my choice, but it does not work. It shows that this ringtone is unknown file, but still rings as a default value. I tried to copy the file in the notifications, not resault. Help, please.Thank you.