Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 265
  • Last Modified:

Oracle

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
GouthamAnand
Asked:
GouthamAnand
  • 2
1 Solution
 
Naveen KumarProduction Manager / Application Support ManagerCommented:
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
 
awking00Commented:
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
 
GouthamAnandAuthor Commented:
Thank you.
0
 
Naveen KumarProduction Manager / Application Support ManagerCommented:
Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now