Need to create another index ?

Hi,
Using Oracle 9.2 I have a table STATS and an index STATS_IDX on the following columns in the order : Objectid, Stat_Hour, Parent.
I now want to optimize queries that filter or sort on Stat_Hour. Do i have to create another index having just Stat_Hour or will Oracle use the existing index to optimize my queries that filter or sort on Stat_Hour ?
Thanks
Christian

Christian,
Since stat_hour is not the leading column of STATS_IDX, you might want to create another index where stat_hour is the leading key in case you want the query to center around stat_hour column.
Please post the query plans with and without indexes if you try the recommendation.
Shakti
http://www.impact-sol.com
Developers of Guggi Oracle - Tool for DBAs and Developers

Similar Messages

  • Privilege need to create functional index

    Greeting gurus?
    What privilege I needed for create functional index
    I am writing a definer righted procedure to create index however when creating functional index, it gives me ora-0131 insufficent but unique, bitmap and reverse index works
    and I granted create any index and create any indextype already. what else is missing ?

    CREATE INDEX
    To create a function-based index, in addition to the prerequisites for creating a conventional index, if the index is based on user-defined functions, then those functions must be marked DETERMINISTIC. Also, you must have the EXECUTE object privilege on any user-defined function(s) used in the function-based index if those functions are owned by another user.

  • I am new to IPAD and I want o use facetime, how can I use it to communicate with my mac at home, do I need to create another account with a different email account

    I am new to IPAD and I want o use facetime, how can I use it to communicate with my mac at home, do I need to create another account with a different email account

    do I need to create another account with a different email account
    Yes, the email addresses need to be unique to each device. You may use the same Apple ID on each device, but the email address used by each device needs to be different.

  • I need to create another site in dreamweaver and Publish it to

    I make a dreamweaver site with mx 2004, well now I need to
    create another site in dreamweaver and Publish it to the same site
    as prior but in a NEW Directory , what to do ?

    > Yes,what to insert at manage site > edit >
    advanced > remote info > Host
    > directory ?
    Try nothing at first. Connect to the remote site. Tell us
    what folder
    names you see there.
    > I try upload [with: ftp host:ftp://www.polis-land.com
    & Host
    > directory:/dialup/ =thenewfolder]but shows error [when
    press test at
    > advanced >
    > remote info] :
    That's wrong. Try this -
    Remote Host - www.polis-land.com
    Host directory - <blank>
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "123polis123" <[email protected]> wrote in
    message
    news:fl0uco$qpb$[email protected]..
    > Yes,what to insert at manage site > edit >
    advanced > remote info > Host
    > directory ?
    > to manage site > edit > advanced > remote info
    > ftp host ?
    >
    > I try upload [with: ftp host:ftp://www.polis-land.com
    & Host
    > directory:/dialup/ =thenewfolder]but shows error [when
    press test at
    > advanced >
    > remote info] :
    >
    > An FTP error occured - cannot make connection to host .
    The remote host
    > cannot
    > be found.
    > ???
    >

  • Space needed to create an index

    I have a table with about 30 million records. I needed to create an index for one of the fields in this table. How can I determine how much space I will need in the tablespace where I need to create the index for the index to be created ?
    Thanks

    There's a nice discussion regarding this on asktom:
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:1295520444744
    Hope this helps.
    Kailash.

  • HT1752 I have forgotten my admin password and need to create another user

    I have forgotten my admin password and need to create another user. Have no disks to boot from!!

    You need an installer disc in order to reset an admin password. I don't know if the following will work on your system, but give it a try:
    You can also reset the password by printing out (or writing down) and carefully following these steps.
    First, find the short name of the admin user on the machine. The easiest way of doing this is by looking at what their directory is called in the Users folder.
    Now, start up the computer while holding down Cmd-S. It should boot into a command line. (If it doesn't, you may need to reset the firmware password, which is detailed elsewhere.)
    Type these exact lines:
    mount -uw /
    ifconfig lo0 up
    cd /var/db/netinfo
    netinfod -s local
    Now you'll need that short name. (You did write it down, didn't you?) Type "passwd", a space, and the short name of the admin. For example, if the admin was - rather prosaically - called "admin", you'd type "passwd admin".
    The computer will now prompt you to change the password for "admin" (or whatever the short name was). Go ahead and type a new password.
    Now, type:
    sync
    reboot
    and the machine will reboot. The admin password should now be changed.

  • Temp Tablespace space needed to create an index of 52GB - preventing 01652

    Hi,
    I've seen quiet a few threads on the subject, but could not find a clear (to me) answer on the subject.
    We have a huge table made by 30/40 partitions of roughly 20M records each (each record being about 1k of size), overall 800GB.
    The index we already have shows:
      1* select sum(bytes/1024/1024)  from dba_segments where segment_name like 'CALL_LOG_I0'
    SQL> /
    SUM(BYTES/1024/1024)
                   52088
    so that I assume it's 52GB in size. Since we have to create another very similar one I would assume the size would be similar.
    Command would be:
    create index call_log_i0_new on call_log (msisdn, generation_timestamp, cdr_reference_number, Multiple_AMA_Sequence_Number) NOLOGGING online;
    Tried the NOSORT option but it's not compatible with the online option.
    After a while the TEMP tablespace got filled up (we have about 20GB space in there).
    My question is if I need to have a temp tablespace at least as big as the index size (52GB) to let the index be built online.
    Thanks in advance !
    Cheers,
    Mike

    Thanks to all, found useful information in Metalink following your suggestions:
    You need to add more space to the tablespace where the index is created.
    A possible option to reduce sort space usage is to use the NOSORT option.
    Your table contains 66 million rows. The average row length is
    50-60 bytes and you are indexing 4 of 5 columns in the table.
    Example space calculation:
    66 million rows * 50 (avg row length) = 3.3 gig of data
    Rule of thumb:
    upper bound for sort (not guaranteed) is 3 times data_
    = about 10 gig of sort space needed
    These numbers are scaring since assume that I may need much more space than the index size (about 3x) which is something we cannot afford. Will go with the NOSORT option once the system is brought down and we could skip the online option.
    Thanks to all !
    Mike

  • Do we need to create seconady Index in BI 7.0

    Hi,
    I need some Information. I came to know that in BI 7.0. The Index are created automatically by BI Accelarator.
    Please let me know wheather we can create secondary Index.
    regards
    Bijevemula

    Hello Raghav
    In ODS Primary and secondary indexes are created manually 010 and 020
    Secondary index must differ from primary index     
    Maximum 16 secondary indexes
    in cube primary index in created automatically no secondary index is there
    Indexes created on ODS?
    010
    production year zpryr
    countrykey 0country
    divisioncode zdvcr
    020
    production year zpryr
    countrykey 0country
    divisioncode zdvcr
    product code zprcd
    brand 0Matl_grp1
    030
    production year zpryr
    countrykey 0country
    divisioncode zdvcr
    failure date zfdte
    prdnquarter zprnd
    By default there will be index on the key fields. So you are not required to create any index on those fields.
    http://www.websitedatabases.com/database-index.html
    if you enter in your selection criteria production year, country key, division code then it will use first index.. But if you give product code also in addition to 3 fields then it will use second (020) index.
    But if enter only product code, brand, failure date,prdnquarter then it will not use any of the index....
    Note: Before creating any index please confirm with your basis admin...
    Thanks
    Tripple k

  • Need to create multiple indexes - will this work?

    For a catalog of about 350 pages, I need both a manufacturer index and a product index. I have read some of the creative solutions already posted here and in other web discussions, and I have an idea.
    Why not create two Book files? one could be "Catalog-Product.indb" and the other could be "Catalog-Manufacturer.indb". Basically two separate contexts for the series of layouts. When in the Product book, do all the indexing for that context, update the Product index and close the set of files (saving the Catalog-Product.indb as well and then closing it). Then open the Catalog-Manufacturer book and do the indexing for the Manufacturer index, generate it, save and close.
    The question is: will each of the two book files be able to ignore the invisible index metadata that belongs to the other book when generating the index? will there be trash index entries in the Index palette - representing those of the other book file? Or, can these two sets of metadata be properly kept separate?
    One consequence that I predict is that the Hyperlinks option during PDF Export from InDesign will be compromised - I would expect whichever book was inactive during the PDF export from the Book file would be the one whose index links would be non-functional.
    Can anyone tell me though whether this strategy could generate two proper indexes at least for a print document?

    Bill Planey wrote:
    For a catalog of about 350 pages, I need both a manufacturer index and a product index. I have read some of the creative solutions already posted here and in other web discussions, and I have an idea.
    Why not create two Book files? one could be "Catalog-Product.indb" and the other could be "Catalog-Manufacturer.indb". Basically two separate contexts for the series of layouts. When in the Product book, do all the indexing for that context, update the Product index and close the set of files (saving the Catalog-Product.indb as well and then closing it). Then open the Catalog-Manufacturer book and do the indexing for the Manufacturer index, generate it, save and close.
    The question is: will each of the two book files be able to ignore the invisible index metadata that belongs to the other book when generating the index? will there be trash index entries in the Index palette - representing those of the other book file? Or, can these two sets of metadata be properly kept separate?
    One consequence that I predict is that the Hyperlinks option during PDF Export from InDesign will be compromised - I would expect whichever book was inactive during the PDF export from the Book file would be the one whose index links would be non-functional.
    Can anyone tell me though whether this strategy could generate two proper indexes at least for a print document?
    Hi, Bill:
    Search Google for terms like "InDesign multiple index" without quotes. There are some good links for this; admittedly they're workarounds. If you take the time to file a formal request for this feature at https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform, there's a chance the developers will eventually run out of excuses or higher-priority tasks, and include it in a future release.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • HT2731 can I add another account to my I tunes libary or do I need to create another i tunes libary

    I have an i tunes account i want to create another account for my wife using the same libary how can i do this?

    exactly, or 30 or 40, depending on how many texts u want. be sure to get a plan that u wont go over on texts, thats what drives up the bill quickly. if your not sure on how many texts u have left, call 611 on your phone or call *DATA# and a text message will be sent to your phone.
    Message was edited by: bg23

  • Need to create aditional index in DAC

    We are trying to create an aditional index in DAC. It has been defined in the Design with a couple of columns. The Generate Index Script (right click) generates a blank file...
    Pls. what am I missing here..?
    Txs for your help.
    Antonio

    Did you check at file createAllIndices from
    C:\orahome\10gR3_1\bifoundation\dac\log\scripts

  • I currently have and Iphone and Ipad on one Itunes account. My work is providing me with another work Ipad to link with my Iphone.  Do I need to create another account to keep things seperate?

    I currently have a personal iPad and an iPhone linked to one iTune account. My employeer is providing me with a work iPad to use and this will be linked to my iPhone, should I create a second account for the work iPad?

    Existing apps and content would not be automatically downloaded. You'd have to download apps and music manually, or sync them from a computer.  New purchases would be automatically downloaded if you set the iPad to do that. Otherwise, again, you'd have to manually download or sync from iTunes.
    Regards.

  • Do we need to create another account?

    We have multiple ipod owners in our family. We keep out music together and up until now we have had one account which we used to purchase music. Now a couple of family members have received gift cards and we would like to make sure they get to use their own cards and the cards don't get spent by others.
    So do we have to create a 2nd account or separate accounts for every family member or is there a way to switch back to a credit card before using up a gift card?
    If we do create separate accounts can we still share a library and sync our ipods from the same library?

    Create a free AIM account.
    (54205)

  • If I were to set up Parental Controls for the only user on a MacBook, would I need to create another, separate account?

    Parental controls

    Welcome to Apple Support Communities
    It is not possible to set parental control on the administrator account, so you have two choices: create a new user account to apply parental control or use the Guest user for that. You can set parental control in System Preferences -> Parental Control

  • New iPad. Looks like we need to create another rendition?

    True or false?

    Your going to have to handle folio's for the iPad Mini, the same way you would for a 7 inch Android, resize text and images to make it be readable. The pixel dimensions may be the same as the iPad 1&2 (1024x768) but your dealing with a smaller screen size. A dircet port from an existing build will more than likely be not very readable. My wife has a Kindle Fire and her biggest complaint is that almost every magazine on it has not been reformatted to the screen size and hence makes it not an enjoyable reading experience. The iPad Mini will be the same, unless you sized your text extra large in the first place for the full size iPad(s).

Maybe you are looking for

  • IPhone 5: Voice Memos not working in iOS 6.1.4

    I updated my iPhone 5 and suddenly my voice memos app doesn't work. When I click on it, it loads the microphone icon then closes and goes back to the main screen.  Can anyone help on this issue?

  • Installing OS/user folder on one drive, apps on another

    I have two Velociraptor drive that are RAID striped as my startup disk. It's caused some some problems. (like Boot Camp won't work on RAIDs, Each drive shows up separately when Option key booting, etc) So I'm thinking of splitting them up into two no

  • HT3275 What does "The backup disk image "/Volumes/Data/apple's iMac.sparsebundle" is already in use.

    My back up is no longer working.  The errors that come up are "The backup disk image "/Volumes/Data/apple's iMac.sparsebundle" is already in use."  Does anyone know what this means?

  • Upgrading OS

    I have an older MacBook Pro, running OS X  10.5.8. My local support shop tells me they can't help me upgrade any further and I need some basic info about how to proceed. Can my MAC be upgraded or is it too old? If it can be ugraded, where do I obtain

  • Final Cut Quits after launch unexpectantly

    I havent used final cut express since I did the last apple update. I open final cut express and I get an error message that unable to see firewire device and then i have an option to check again or continue to say devices connected are none. Nothing