Solved

Oracle

Posted on 2013-11-21
4
254 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
  • 2
4 Comments
 
LVL 28

Accepted Solution

by:
Naveen Kumar earned 500 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

803 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