Solved

Oracle

Posted on 2013-11-21
4
253 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
Comment Utility
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 31

Expert Comment

by:awking00
Comment Utility
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
Comment Utility
Thank you.
0
 
LVL 28

Expert Comment

by:Naveen Kumar
Comment Utility
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.

Join & Write a Comment

Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to take different types of Oracle backups using RMAN.

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now