• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 261
  • 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

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.

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