What type of partition should I use? Range or Hash or ..?

Hi,
I am on Oracle 8.1.7.4 .
I have a table with 10 million rows and looks like its a good candidate for partitioning.
There is a varchar2 column and the data is evenly distributed on the string value. If I want to partition the table on that string value what type of partitioning can I use. How can I give the range, if I use range partition, on the string value ?
Can/Should I use hash partitioning?
I know that there is a list partitioning in O9i, but I am on 8i.
Please help.
Regards

<quote>
I have a table with 10 million rows and looks like its a good candidate for partitioning.
</quote>
Table volume, in itself, is not enough to warrant partitioning … hope you have some other reasons.
<quote>
… but would like to partition the table on the mentioned varchar2 column, so that queries would be efficiant.
</quote>
Since you don’t mention the actual query or class of queries, maybe it is worth mentioning that partitioning could speed up some queries but also can slow down a lot more other queries.
<quote>
So, how can i re-create the table partitioned on a varchar2 column
</quote>
No different than numbers or dates?
create table tp
( str   varchar2(10)  not null
,fill  char(20)      not null
partition by range(str)
( partition p1 values less than ('F')
,partition p2 values less than ('L')
,partition p3 values less than ('R')
,partition p4 values less than (maxvalue)
insert into tp
select substr(object_name,1,10), lpad('x',20,'x')
from user_objects
flip@FLOP> select * from tp partition (p2);
STR        FILL
F1         xxxxxxxxxxxxxxxxxxxx
GENERATE_R xxxxxxxxxxxxxxxxxxxx
IPSDEV.US. xxxxxxxxxxxxxxxxxxxxThe link to Tom’s article is fine … it just happens to be one of the few threads he’s not mentioning that partitioning is not the magic fast=true mechanism … look for some other articles on partitioning and you’ll quickly discover his views on this subject.
There may be a case for partitioning … but you haven’t presented any reasonable justification for it … so, why bother?

Similar Messages

  • What type of repeater should I use with my new Airport Extreme?

    what type of repeater should I use with my new Airport Extreme? Thanks.

    If you want to repeat both bands of your dual band AirPort Extreme, another AirPort Extreme would meet these requirements.
    If you only need to extend one of the bands that the AriPort Extreme provides, then an Airport Express would do that nicely.

  • What type of restore should I use?

    My computer is properly backed up using Time Machine. I created a partition using Bootcamp so I could install Windows (I haven't actually installed Windows yet). However, after testing Parallels, which is an amazing program!, I want to get rid of the partition and use Parallels instead.
    My understanding is that I have to wipe my hard drive to erase the partition. Assuming this is true, what version of restore should I use? I want the computer to be exactly as it is in the backup, except for the partition.

    Ian Chamandy1 wrote:
    When I go into the Partition tab, the diagram and text shows my HD as having 148.73 gigs of space (it appears in blue on top in the diagram) and "available space" being 49.5 gigs (it appears in white on the bottom).
    Once you deleted the Boot Camp partition, you now have only a single partition. The light-blue shading represents the data in the partition; the white are represents the rest ("available space").
    Is this how it should be? I clicked on both the blue area and the white area but that doesn't select them. There is no line between them for me to drag. Also, the "-" and "Options" buttons are grayed out.
    If there's only one partition on the disk, the whole diagram, containing both the blue shading and white area, covering the entire disk, should be outlined in medium blue. The "-" sign is grayed-out because there's only the one partition. If there were 2 or more, you could use it to delete one.
    If you wanted to make a second partition, you would click the plus sign. DU would then change the diagram, splitting the existing partition. Then you'd see a line between the two, which you could drag up or down, etc. The Options button is used when setting-up a new or erased drive "from scratch," to specify the *Partition Map Scheme* for the entire drive.
    Browse Disk Utility's help for a general idea of what it can do. (It's one of the few apps that has fairly comprehensive explanations and instructions.)
    I should mention that I installed Parallels so I could run Windows and Mac OS simultaneously (it is quite amazing!). Could it be that Parallels creates an unlabeled partition?
    I don't do Windoze, but it's my understanding that Parallels makes one huge OSX file that contains the entire Windows system, rather than the way Boot Camp uses a separate partition. I also understand that this huge file is automatically excluded from Time Machine, so it doesn't back the whole thing up every time anything is changed. You can check this via TM Preferences > Options.

  • What type of DVD should I use for Windows Backup?

    I am wanting to do my Windows Backup and I was wondering what type of DVD media I should use. Is it better to use a RW or only R type DVD.
    I have an HP Omni 220-1180qd, A5W89AV#ABA, running Win7 64 bit.
    I thought I read it can use CD's, DVD's but I want to know which would be the better choice.
    Thanks for any help and all help is appreciated.
    This question was solved.
    View Solution.

    Honestly, an external hard drive would be a better choice. The difference between +R and +R/W is that +R is "Recordable" and +R/W is "Re-Writable". If you intend on making periodic backups, go with an extrernal hard drive... If you intend on making very few backups, consider the DVD+R discs.
    Frank
    {------------ Please click the "White Kudos" Thumbs Up to say THANKS for helping.
    Please click the "Accept As Solution" on my post, if my assistance has solved your issue. ------------V
    This is a user supported forum. I am a volunteer and I don't work for HP.
    HP 15t-j100 (on loan from HP)
    HP 13 Split x2 (on loan from HP)
    HP Slate8 Pro (on loan from HP)
    HP a1632x - Windows 7, 4GB RAM, AMD Radeon HD 6450
    HP p6130y - Windows 7, 8GB RAM, AMD Radeon HD 6450
    HP p6320y - Windows 7, 8GB RAM, NVIDIA GT 240
    HP p7-1026 - Windows 7, 6GB RAM, AMD Radeon HD 6450
    HP p6787c - Windows 7, 8GB RAM, NVIDIA GT 240

  • What type of connection should i use?

    Not sure if i should i post this here or web tier api's, but here goes...
    I have a servlet in a tomcat webserver and i want it pass information between it and a standard j2se application running on the same machine.
    I'm not sure what type of connection i should use?
    DataStream?
    Socket?
    HttpConnection?
    Any other recommended method?
    Or if i need a network connection like that at all?
    Thanks for the help

    The most straightforward method would be to use rmi since both are running java. that is the least amount of work on your part in terms of managing connections and data marshalling. any of the other solutions add more burdens in one or both of these areas.

  • What type of timer should i use ?

    hi everybody,
    ok problem is i am making a application and it uses rmi, and i need a timer to count down in a text area. what is the best method to use, should i use one where i get the time and then use time i enter in a text box to compare them and then display the message when they match or do i enter the integer in the jtextfield and then get it to refresh and -1 one from it everytime it refreshs. i am really stuck here and dont have a clue about timers or countdown timers, if anyone knows of a good simple script etc or tutorial i would appreciate it. i have searched the forum and not found anything that covers this.
    regards

    And what kind of "text area" are you asking about? My guess is that it's Swing since you mention Swing components elsewhere. If that's the case then you should use a javax.swing.Timer.
    As for tutorials, the API documentation for javax.swing.Timer links to a tutorial. This is common, especially for Swing classes. Looking at the API documentation will often save you having to ask questions like that.

  • What type of dvds should i use for writing with hpenvy touchsmart

    what type dvds are writable in the pc
    This question was solved.
    View Solution.

    Hi,
    What is your "hp envy touchsmart 17.1". Normally you can use blank DVD+R or DVD-R to write.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • What type of chart should we use for comparing more than 200 items

    Hi Guys, 
    I have a Pie chart graph for comparing data items but this chart becomes cluttered or serves no purpose when categories increase up to 100 or 200 items.
    I have tried collected Pie but still facing same issue.
    When the numbers of Legends increases the chart will become cluttered and this will reduce it readability as shown in the image.  Please share your suggestions for suitable chart type or strategy to overcome this issue.
    Regards

    Hi,
    As you may know, the issue is caused by the excessive items in the category group of the pie chart. The most direct and effective way is to reduce the items in the category group. Generally, we are not always need the report to display all items in the chart.
    In this scenario, we can add a parameter in the report, then use the parameter to filter the corresponding values in the chart.
    Besides, in order to increase the chart readability, we can try to use Column Chart to display those values. And we can “Enable scale breaks” in the Vertical Axis. A scale break is a stripe drawn across the plotting area of a chart to denote a break in continuity
    between the high and low values on a value axis. Use a scale break to display two distinct ranges in the same chart area.
    Reference:
    Add a parameter to filter the data in SSRS
    Add Scale Breaks to a Chart (Report Builder
    and SSRS)
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • What type of graph should I use in mobile application

    Hi,
    I have an application under jdev 11g.
    Some of my pages are exposed for mobile but they include DVT component.
    The DVT is not shown in mobile browser.
    I tried the trinidad chart also the graph is not displayed.
    Kindly advise which is the best graph component to be used in mobile application (JFREE CHART, ...)
    Regards
    Emile BITAR

    Hi, Emile, which DVT components are you using for your mobile pages? Is it ADF Data Visualization or ADF Data Visualization Core? Mobile support for DVT components is in the ADF Data Visualization Core set of components.
    Trinidad Chart is not a supported component - you would need to use ADF DV Core set of components.
    Please note that ADF Data Visualization Core is a new feature in JDeveloper 11.1.1.1.0 that was just released on July 1st with FMW 11g.
    One last little reminder - when creating a page to be rendered on Mobile Browser, the JSF page should not contain any ADF Faces components (i.e. af: tags) or ADF Data Visualization Components. Including these tags would cause the ADF Faces RC framework files to be downloaded to mobile devices.
    If you are using ADF Data Visualization Core components in 11.1.1.1.0, but they do not show up in your mobile browser, please specify the mobile browser you are using. While Trinidad components in general now works on virtually any mobile browsers, DVT core does not. Please let us know what you are using and we can look into it.
    Thanks,
    Joe Huang

  • What type of include should i use?

    I made a jsp (logcheck.jsp) that checks wheter the the session id associated with this request is valid. It also checks on another attribute that was created after the users login was succesful. First of all, how does the isRequestedSessionIdValid() method checks on the association between the request and the session id? Can someone provide some more info plz?
    I need to place the logcheck.jsp in every page i create for security reasons. What is the best (fastest) way to include this in every page?
    <%@include file="logcheck.jsp"%> or <jsp:include page="logcheck.jsp"> .

    I think the best way is to use a bean or custom tag instead. But if you wan't to use a JSP you have to use the <jsp:include...> version. The other one is only evaluated once when the JSP is compiled, so the result would be the same for all calls.
    /Fredrik

  • What type of encryption should I use?

    I'm sorry for asking such a beginner question...but I'm a bit puzzled here.
    I am writing a program that needs to keep a gigantic (2 million +) database of videos. Ordinarily that would not be very difficult, but I have to also make sure that those videos never fall into the wrong hands. My idea is to take the video files themselves and shuffle the internal data around in such a way that no ordinary video player will be able to recognize the format. I don't mean just change the header stuff, I mean shuffle the bytes around. I would then make a custom player that unscrambles the video and then plays it.
    Unfortunately, I think that somebody with the proper know-how would be able to break this scheme rather quickly. So what I want to do is encrypt the entire file into something completely unintelligible. This means I need an encryption scheme that can take in any arbitrary size of file, and spit out a file that contains all the same information, but encrypted.
    From the little bit of research that I have done, AES seems to fit my needs, but is there something better? Are there other options that would fit my needs just as well?
    Thanks in advance

    You're asking how to use encryption to implement a DRM scheme. If you google on DRM+encryption, you'll see how difficult this is.

  • What type of programming should I use?

    I've tried other forums without getting any response at all, so I really hope that an experienced Mac programmer can point me in the right direction this time.
    I'm looking to automate tasks while I'm working on my laptop. I "simply" want a script to read pixels or look for a pixel in an area to check if it is a correct color. I've so far only seen workarounds where people use AppleScript to then use DigitalColor Meter to then hover over a pixel using the mouse. This method won't allow me to work at the same time. So what I'm asking is:
    Q1: Is it possible to get a pixel color from the screen, no matter what software that's opened/being active, without moving the mouse?
    Q2: If the anwer to Q1 is "yes", what programming language / software do I have to learn (AppleScript Studio/Objective-C/Cocoa/Xcode/etc)?
    Q3: Can I use the chosen language/software to send control clicks to most software not made by Apple (for example choose "OK" in standard info popups that only has "OK" and "Cancel" options)?
    I would be extremely thankful for any advice regarding this. I'm a programmer myself, but I've never entered the programming world of Mac.
    I've been using AutoIt for Windows, which is extremely easy to get to perform tasks like I mentioned above and is the only reason I still stick around with Windows. Please help me leave Windows for good .

    Hello Lakestone,
    You'd need to write code in C family.
    Just some pointers.
    • To capture partial screen under OSX 10.6 or later, you may use this C API [1] -
    CGDisplayCreateImageForRect
    • To post mouse event under OSX 10.4 or later, you may use these C APIs [2] -
    CGEventCreateMouseEvent
    CGEventPost
    cf
    [1] Quartz Display Services Reference
    http://developer.apple.com/library/mac/documentation/GraphicsImaging/Reference/Q uartz_Services_Ref/
    [2] Quartz Event Services Reference
    http://developer.apple.com/library/mac/documentation/Carbon/Reference/QuartzEven tServicesRef/
    Good luck,
    H

  • What type of microphone should I use with Captivate 6

    My IT guy wants me to select a microphone and/or headset to record the verbiage for the videos we intend to make. Do you recommend a microphone or headset? And which specific model do you recommend for the best quality?
    I would appreciate any feedback, thanks!
    Melissa

    Hi Melissa.  We have two different mics we use.  The first is a headset mic - a Sennheiser PC323D.  I costs about $150 list price.  The other mic we use is a Rode Podcaster.  I don't know its price, but it's considerably more.  Both produce good results for recording narration in Captivate.  My personal preference is the Sennheiser headset.  It has a good frequency range and does a good job of reducing background noise, plus it maintains a constant position relative to my mouth, so I can move around and still sound good.  The Podcaster is a fixed position mic.  Other of our folks prefer its sound.
    We also record our audio in small rooms with sound deadening foam on the walls.  If you don't have that, at least find a quiet place.  I've even recorded in my walk-in closet at home.  The clothes do a good job of absorbing ambient noise and reflections.
    I hope this helps.
    Bob

  • What type of compression should I use?

    I have a 50-minute IMovie that I want to burn to a DVD. The size of the file is 23 gigs.
    23 gigs is obviously too large to fit on a DVD, so I assume I need to compress the file somehow. Which compression format would provide me with the best quality picture/sound to view on a TV set?
    Is there some other way to get this large a file to fit on a DVD?
    Any help you can give a very confused new IMovie user will be very much appreciated!

    reelsole,
    Yes, dvd video is always compressed.
    Are you using iDVD? If so, it compresses the video for you when imported into the program.
    Hence the 'encoding process' which must take place before you burn the disc.
    The size(GB) doesn't matter, it works based on the running time.
    Fear not!

  • What XA JDBC driver should I use with Oracle 8i 8.1.6

    I need to use an XA JDBC driver for Oracle 8i 8.1.6. I am using the driver in
    a ConnectionPool in a TxDataSource for use by some entity beans using EJB 2.0.
    I'm running WebLogic Server 6.0 sp2, EJB 2.0, Java 2 SDK 1.3.1 Server VM, Solaris
    2.7, and Oracle 8i 8.1.6.
    I know of three different Oracle XA drivers: WebLogic jDriver for Oracle XA, Oracle
    OCI type 2 driver XA, and Oracle Thin tyoe 2 XA. Are there any other drivers
    that I can use for Oracle 8.1.6? Which driver and which version should I use?
    For example, can I use the Oracle 8.1.7 JDBC drivers with the Oracle 8.1.6 server,
    or would the Oracle 9i drivers work with the Oracle 8i server? Which drivers
    are faster, and which support more features? I assume that I should not use the
    type 4 driver since I am not using an applet, but I don't know if there are bugs
    in the OCI C library for Solaris or in the JDBC drivers that use it that prevent
    XA from woking. Which version of the Oracle C OCI library should I use if I use
    a type 2 driver?
    Thanks,
    Ross Goldberg

    Hi,
    I think you can't use the 8.1.6 thin driver for XA, you would have to
    use the OCI driver or 2PC-enable your datasource. AFAIK this has been
    changed for 8.1.7
    Check http://e-docs.bea.com/wls/docs61/////jta/thirdpartytx.html.
    Daniel
    -----Original Message-----
    From: Gene Chuang [mailto:[email protected]]
    Posted At: Thursday, August 30, 2001 2:04 AM
    Posted To: jdbc
    Conversation: What XA JDBC driver should I use with Oracle 8i 8.1.6
    Subject: Re: What XA JDBC driver should I use with Oracle 8i 8.1.6
    I've asked this question before. This is the reply from Joe
    Weinstein:
    For reliability and JDBC 2.0 compliance, I recommend the
    Oracle thin driver.
    If not that driver, you should verify that a type-2 driver
    actually does
    deliver better performance, but then I would not have a
    strong preference
    between their type-2 and ours. Theirs may be faster, and JDBC
    2.0 compliant.
    Both are succeptible to OCI bugs, some of which only they can
    fix, but we
    listen.
    Gene
    "Ross Goldberg" <[email protected]> wrote in message
    news:[email protected]...
    >
    I need to use an XA JDBC driver for Oracle 8i 8.1.6. I am using thedriver in
    a ConnectionPool in a TxDataSource for use by some entity beans usingEJB 2.0.
    I'm running WebLogic Server 6.0 sp2, EJB 2.0, Java 2 SDK 1.3.1 ServerVM, Solaris
    2.7, and Oracle 8i 8.1.6.
    I know of three different Oracle XA drivers: WebLogic jDriver forOracle XA, Oracle
    OCI type 2 driver XA, and Oracle Thin tyoe 2 XA. Are there any otherdrivers
    that I can use for Oracle 8.1.6? Which driver and which versionshould I use?
    For example, can I use the Oracle 8.1.7 JDBC drivers with the Oracle8.1.6 server,
    or would the Oracle 9i drivers work with the Oracle 8i server? Whichdrivers
    are faster, and which support more features? I assume that I shouldnot use the
    type 4 driver since I am not using an applet, but I don't know ifthere are bugs
    in the OCI C library for Solaris or in the JDBC drivers that use itthat prevent
    XA from woking. Which version of the Oracle C OCI library should Iuse if I use
    a type 2 driver?
    Thanks,
    Ross Goldberg

Maybe you are looking for