First_rows without hints OR all_rows with hints?

Hello,
I have about 6 tables which are related like a hierarchy, so the most upper table has few rows (< 1k) and the bottom table has many rows (1000k). An application is using those tables for viewing filtered data per table. There are different views per table which has its own filter (sql-statement). When the user click on a view the data must presented < 3s. The number of rows from the resultset of the views can variate from 0 to 1000k depending on the filter that is used for the view.
The data in each table is skewed so I collected histograms. However, the CBO is in some cases predicting more rows than it should (see link below). As a workaround I used cardinality hints but for some views the number of rows is not constant. In that case an optimizer_mode change from ALL_ROWS to FIRST_ROWS works great but not for other views.
I want to know which optimizer_mode I should choose. The user needs all the data so it seems that FIRST_ROWS is not a good choice but if I do that I need (dynamic?) hints.
Another question, is it possible that 3s can't be done for all those views? How can I determin that I need a somewhat "aggresive" solution like materialized views?
Thanks in advance.
Message was edited by:
RZ
Forgot the link, Tuning sql

Unfortunately the data in some columns is very skewed and without cursor sharing the performance is very bad. Objected-oriented programming against oracle caused thousends of repeating statements with just another variable in each statement. The good news I think is that the collumns that are skewed almost never binded as variables.
Is there a way how I can check if the 2 statements below are both cached in the shared pool when I execute them or shall the execution step of the first statement will be re-used for the second?
select *
from dept
where dept_id = :id
select *
from dept
where dept_id = :id
and status in ('V','P')  -- <- histogram on status                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • ITUNES APP STORE WITHOUT A CREDIT CARD WITH EXISTING APPLE ID

    Hey,
    I've been trying to create a free itunes app store account. First I read the instructions in this link : http://support.apple.com/kb/ht2534, but the link shows how to create a new account, the problem is that I already have a Apple ID.
    On the other hand when I try to sign in in the app store with my existing Apple ID, I get the message "This Apple ID has not yet been used with the iTunes Store please review your account information" with two options "cancel" and "review".
    Clicking in review, I go to the page with the terms of service, continuing I go to a page where I have to type my email, my password, question and answer for the password and my birth date. The email field has the email that is being used with my current Apple ID, and the password field has the password of my existing Apple ID. The other fields are blank. Completing them, and clicking in next I go to the payment options page, but there's no "none" option, so I can't make a account withou using a credit card.
    Is there a way to create a itunes app store without a credit card with my existing apple ID, or a I have to create a new one ?

    few days already..
    it seems like a bug..
    actually i can use another email to log on..
    but i want my all things to be consistent

  • How to protect against a pdf printing without protecting the file with a password ?

    I want to know if it's possible to protect a PDF against printing without protecting the file with a password ?
    It's possible to make it with Acrobat Reader or another version ?
    Thank You
    Best regards.

    Hi,
    Yes, you can restrict editing and printing of the document; although you have setup a permission password (To restrict the users from changing the document permissions).
    Please follow the steps mentioned below:-
    Open the file in Adobe Acrobat- Document properties- Security- Change security method to password security- Select Restrict editing and printing of the document
    Regards,
    Nakul

  • I am planning on purchasing an Apple 13in MacBook Pro through AAFES online (Army and Airforce Exchange).  Do all MacBook Pro computers without retina display come with a SuperDrive?

    Do all MacBook Pro computers (without retina display) come with a CD/DVD drive?

    Up to the Mid-2012 models, yes.

  • So without warning while surfing with Safari, it will just close? I haven't been able to pin it to a certain action, but it does it regularly . It...

    So without warning while surfing with Safari, it will just close? I haven't been able to pin it to a certain action, but it does it regularly .
    10 times in last 20 mins Grrrr. updates all up to date.

    "...updates all up to date"
    Well there you go. There's your mistake. The iOS 8 updates have seriously hosed Safari. Here are your options: (a) you can jump through all kinds of hoops resetting, restoring, reloading, etc. for hours/days, or (b) you can save yourself a lot of aggravation and wait for an update that really "just works".

  • I have duplicate pictures in "my catalog" that I believe come from two Adobe folders found under "my pictures/adobe/ one is Revel and the other is Photoshop express which preceded revel. Can I delete those two folder without causing a problem with my cata

    I have duplicate pictures in "my catalog" that I believe come from two Adobe folders found under "my pictures/adobe/ one is Revel and the other is Photoshop express which preceded revel. Can I delete those two folder without causing a problem with my catalog?

    Thanks for the links, Limnos.
    If you are willing to continue helping, here's what I found.
    Just to clarify the two iTunes folders I am refering to are:
    username-->Music-->iTunes
    HD-->iTunes
    I am presuming each location has a full set of files as outlined in the above links?
    Not all the files are in both locations. Most are.
    - The Itunes folder in my home folder does not have itunes library.xml.
    - The Itunes folder in my home folder has a subfolder called Mobile Applications (username-->Music-->iTunes--> Mobile application). The Itunes folder at the HD level also has a Mobile Application folder but it is a subfolder of Itunes Media folder (HD-->iTunes--> iTunes Media-->Mobile applications) and has no files in it.
    - I do not have an iTunes Media in the iTunes folder in my home folder.
    - also the Itunes media folder (HD-->iTunes--> iTunes Media) has subfolders by type (books, movies, itunes u, music etc...) but the iTunes Media-->Music also has some of the same subfolders ( iTunes Media-->Music-->books, iTunes Media-->Music-->Movies, iTunes Media-->Music-->iTunes U). Is this normal repetition?
    You say:
    /itunes/itunes media/ music
    but it is important to note what comes before all that.
    There is nothing as far as I can tell before that first forward slash. Since the only iTunes Media folder I have is in the iTunes folder that resides at the HD level (HD-->iTunes--> iTunes Media folder) not the iTunes folder in my home folder (username-->Music-->iTunes) , I assume that's the one that holds the music.
    Keep iTunes media folder organized and Copy files to iTunes Media folder when adding to library are both checked on
    Does that give more clarity into my problem?

  • HT2731 Can't using apple id Without credit card?  With notification "Security id is valid" please answer my problem

    I can not using app store for download game and apps at my i-phone. Can't using apple id Without credit card?  With notification "Security id is valid" please answer my question.

    Create an iTunes App Store account without a credit card
    http://support.apple.com/kb/HT2534

  • HT201304 I need to restrict access to Settings on an iPad so settings like VoiceOver cannot be activated while letting them access multiple apps on the device. Is their any way to restrict access to settings without locking the device with a PIN?

    I need to restrict access to Settings on an iPad so settings like VoiceOver cannot be activated while letting them access multiple apps on the device. Is their any way to restrict access to settings without locking the device with a PIN?
    This is so our guests cannot tamper or disable the device. We are already using Apple Configurator but their does not seem to be a way to lock down settings without a PIN.

    There's a lot of restrictions information in Chapter 19 of the 4.2 User Guide.
    http://support.apple.com/manuals/#ipad
    By the way, a more extensive version of the User Manual is available at no charge through iBooks.

  • Plz help.How to restore stolen iphone4 without Connecting my phone with PC ?

    my iphone4 was stolen from me and it has lock on it but i want to delete all the photos and applicationsand everything from it
    how can i don that without Connecting my phone with PC ?? plz help

    What To Do If Your iDevice or Computer Is Lost Or Stolen
    iPhone, iPod Touch, and iPad
    If you activated Find My Phone before it was lost or stolen, you can track it only if it is connected to the Internet by Wi-Fi or cellular. What you cannot do is track your device using a serial number or other identifying number. You cannot expect Apple or anyone else to find your device for you. You cannot recover your loss unless you insure your device for such loss. It is not covered by your warranty.
    If your iPhone, iPod, iPod Touch, or iPad is lost or stolen what do you do? There are things you should have done in advance - before you lost it or it was stolen - and some things to do after the fact. Here are some suggestions:
    This link, Re: Help! I misplaced / lost my iPhone 5 today morning in delta Chelsea hotel downtown an I am not able to track it. Please help!, has some good advice regarding your options when your iDevice is lost or stolen.
      1. Reporting a lost or stolen Apple product
      2. Find my lost iPod Touch
      3. AT&T. Sprint, and Verizon can block stolen phones/tablets
      4. What-To-Do-When-Iphone-Is-Stolen
      5. iCloud- Use Lost Mode
      6. What to do if your iOS device is lost or stolen
      7. 6 Ways to Track and Recover Your Lost/Stolen iPhone
      8. Find My iPhone
      9. Report Stolen iPad | Stolen Lost Found Online
    It pays to be proactive by following the advice on using Find My Phone before you lose your device:
      1. Find My iPhone
      2. Setup your iDevice on iCloud
      3. OS X Lion/Mountain Lion- About Find My Mac
      4. How To Set Up Free Find Your iPhone (Even on Unsupported Devices)
    Mac Computer
           Find My Mac can be used from Find My Phone at iCloud.com and via Find
           My Phone on your iDevice.
          The following is third-party anti-theft software:
               1.  STEM 2.1
               2.  MacPhoneHome 3.5
               3.  MacTrack 7.5.0
               4.  VUWER 1.7
               5.  Sneaky Bastar* 0.2.0
               6.  Undercover 5.1.1
               7.  LoJack for Laptops
               8. Hidden 2.0
               9. Prey 0.6.2

  • HT1473 I have a large external collection and would like to import a select folder to itunes to create a playlist.  Is there a way to import the folder without mixing the contents with my large itunes library?

    I have a large external collection and would like to import a select folder to itunes to create a playlist.  Is there a way to import the folder without mixing the contents with my large itunes library?
    I'm trying to avoid having to fish through the thousands of songs already in my itunes library to create a playlist from the songs in the windows file that I've already selected.

    You're welcome.
    tt2

  • Why the imsg doesn't work without a sim card with iOS 7???

    Why the imsg doesn't work without a sim card with iOS 7???

    If it worked for you using iOS 6, then it appears iOS 7 has made some changes.  Was it working before?

  • Can i send my music from mac to iphone without connect my iphone with usb ?

    can i send my music from mac to my iphone without connect my iphone with usb ?

    iOS: How to transfer or sync content to your computer - http://support.apple.com/kb/HT1296 > Wi-Fi syncing
    How to Use Wireless Sync in iOS 5 - http://www.pcworld.com/article/242242/how_to_use_wireless_sync_in_ios_5.html
    iTunes 10.5 and later: Troubleshooting iTunes Wi-Fi Syncing - http://support.apple.com/kb/TS4062

  • How long does the IPhone5c battery last for without hardly any usage with about 2/3 to 3/4 left?

    How long does the IPhone5c battery last for without hardly any usage with about 2/3 to 3/4 left?
    Has the side affect of charging, where the battery's life gradually decreases overall with each charge, been fixed ?

    Eric,
    They did say 12-14 hours, but as is always the case with such estimates, they invariably quote the 'best possible scenario' and almost never mirror 'real world' conditions.
    If, from a fully charged position, you simply switch on your nano, and set it to continuously play through a long set of songs, with EQ off, backlight off, modest volume (50%) don't touch it during playback, then you might just get somewhere near this figure - and if you don't then it's either not been conditioned properly or it's faulty.
    If you use it like me, daily for a couple of hours, with 2 secs backlight and switch songs regularly, using fairly high volumes then 6-8 hours is more likely. It'll even drain when it's not in use, even in sleep mode, albeit very slowly. They also tend to drain more quickly before they've been through their first few charge cycles (the conditioning period).
    Personally I haven't got a problem with this though I can understand why some people have. It's not very impressive in this respect. Apple should be able to come up with something much better - maybe they should talk to Sony

  • Allow a windows non-administrator user to run cmd.exe as administrator without sharing administrator password with the user

    I have standalone Windows 2003 and 2008 Oracle database servers (they are not in a Windows domain environment ). The Oracle DBAs can perform all their routine activities from command line with administrator privileges. For this i've to either share administrator
    user password with the Oracle DBAs or add their windows login user to Administrators group. If i can give the DBA user permission to run windows command prompt without sharing administrator password, i can give them non-administrator login access to Windows
    2003/2008 server. Normally when a non administrator user would try to run a program as administrator on Windows 2008, the user is prompted to input administrator username/password. Is it possible to give non-admin user access to run a program/application (cmd.exe
    in this case) on Windows 2003/2008 without sharing administrator credentials with them?

    With the OTORISER application I developed, normal users can run applications with admin privilege …  
    Otoriser is totally free ! Applications, mmc consoles, control panel cpl files can be run under admin and system context with Otoriser. Let’s say you donot want your users to be admin in their machines, but want them to run some applications with admin rights.
    If this is the case then you are on the right blog.
    There are two components for Otoriser. Management and client components. There are no complex implementation and no frustrating steps to be performed. Within 10 minutes you can start testing the results
    After you download the setup files, install client components in the client by running it directly (or any deployment method you have), it will take about 5 seconds to install it. Then, let’s say you want your user to change system properties of the machine.
    With the tool provided in Admin package produce the hash of system.cpl file and enter that hash into the group policy (details are provided in documentation). When policies are applied for that user then he or she can run that control panel applet under admin
    context but donot forget that the user is still an ordinary user.
    download link :
    http://burakuysaler.wordpress.com/2013/02/21/with-the-otoriser-application-that-i-developed-normal-users-can-run-applications-with-admin-priviledges

  • How do i delete photos on my ipad without my ipad being with me

    how do i delete photos on my ipad without my ipad being with me?

    Your computer's iTunes can only be used to remove photos that were synced from a computer (or to sync different folders), it won't show camera kit photos or photos taken with the iPad.
    You should be able to delete them either via Image Capture, Aperture or iPhoto on your Mac (they should let you import and delete them ; in Image Capture you should be able to select and delete them via the 'no entry' bottom left without importing them).
    In the Photos app in thumbnail view you should be able to select the photos that you want to delete via the Select button top right of the screen and then tap the trashcan icon top left ; if viewing a photo fullscreen then tap the trashcan icon bottom right to delete it.

Maybe you are looking for

  • Authorization issue - help request

    Hi guys, One of the consultants is having an authorization issue ( He is not abele to run a t-code) I ask him to run a su53 report and i am not sure how to proceed with this. Please help. Here are the details from the SU53 report. DISPLAY AUTHORIZATI

  • Is it possible to access a word by it's index via GREP?

    I am trying to write a script that underlines a specific word in a document: e.g. "and". For that there are many "and"s in my text, I am looking for a way to access the "and" I want to underline (word number 12) by it's index via GREP. Any indeas? Th

  • How to share the entire hard drive with only one group

    We want to share our entire hard drive with our staff, plus share Web folders with our customers plus the staff. We'd like our customers to have no permissions at all for the share point at the root of the drive, so it won't even be presented as a vo

  • Macbook will not shutdown unless the power button is held

    Recently my macbook has been refusing to shutdown when I click shutdown from the apple icon menu. When I press the power button, no menu pops up asking if I want to shutdown my macbook. It only shuts down when I hold the power button. Nothing changes

  • Disable Logging Of JVM Args in Weblogic Logs

    Hi, I am new to Weblogic. I am wondering if there is a way to disable logging of JVM arguments in weblogic. I did research a lot but couldn't find any pointers. I am using Weblogic 10 MP1. While starting the server, I need to pass a custom Keystore a