Solved

Hash Partition

Posted on 2011-03-16
3
434 Views
Last Modified: 2012-05-11
If I have a table with 45 columns what critera should I use to determine which columns to include in the partition by hash clause?
0
Comment
Question by:msimons4
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 11

Accepted Solution

by:
Akenathon earned 500 total points
ID: 35149653
You might be confusing hash partitioning methods with a hash cluster. What's your goal? Why are you choosing partitioning? Which business need are you trying to accomplish?
0
 

Author Comment

by:msimons4
ID: 35150132
I am trying to speed up full table scans. I thought when you hash partition a table you select which columns you want to partition:

CREATE TABLE invoices
(invoice_no    NUMBER NOT NULL,
 invoice_date  DATE   NOT NULL,
 comments      VARCHAR2(500))
PARTITION BY HASH (invoice_no)
(PARTITION invoices_q1 TABLESPACE users,
 PARTITION invoices_q2 TABLESPACE users,
 PARTITION invoices_q3 TABLESPACE users,
 PARTITION invoices_q4 TABLESPACE users);

in this case: PARTITION BY HASH (invoice_no)
If I have 45 columns what do I base which columns to PARTITION BY HASH
0
 
LVL 11

Assisted Solution

by:Akenathon
Akenathon earned 500 total points
ID: 35151840
You won't speed up FTSs by hashing. On the contrary, (any kind of) hashing is useful when you are looking for exact matches.

If your table is big, you should aim to avoid FTSs and do indexed (or hashed) accesses. What's the query you'd like to speed up? Does it absolutely need a FTS? Prove it and we can talk about speeding up FTSs if you have no choice...
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question