?
Solved

Oracle

Posted on 2013-11-21
4
Medium Priority
?
259 Views
Last Modified: 2013-11-24
Hi,

I have 2 tables and I use both tables in many of my pl/sql procedures together.

I have indexes created on these tables on the columns separately.

We want to furthur imporove the performance of the queries where these two tables are involved.

So, can you please let me know how to create combined index on both the tables together?

like table A and table B having x and y columns.

x and y columns are currently indexed individually on the tables A and B.

Now I would like to create index on columns x and y columns on both tables in together.


Thank you in advance.
0
Comment
Question by:GouthamAnand
[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
4 Comments
 
LVL 28

Accepted Solution

by:
Naveen Kumar earned 2000 total points
ID: 39665486
creating an index with 2 different columns from 2 different tables is not possible right. I guess you are looking to setup a cluster for closely related tables to store them on the same disk area. you first need to setup a cluster and then an index for that as explained in the link.

check this :

http://nimishgarg.blogspot.sg/2010/05/oracle-cluster-with-example.html
0
 
LVL 32

Expert Comment

by:awking00
ID: 39665756
You might consider creating a materialized view of the two tables, on which you can create an index, then use the view in your pl/sql.
0
 

Author Closing Comment

by:GouthamAnand
ID: 39672629
Thank you.
0
 
LVL 28

Expert Comment

by:Naveen Kumar
ID: 39673567
Thanks
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
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.
Suggested Courses

743 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