Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Oracle should have a new hint "INDEX_COL(tname,colname)".

52 views
Skip to first unread message

AnySQL (d.c.b.a)

unread,
Mar 6, 2006, 9:19:22 AM3/6/06
to
The "INDEX" hint let Oracle automatically choose index, however if
Oracle can introduce a new hint "INDEX_COL", it will really helpful.

Because we may use different index name for the same table in different
environment (PROD vs QA).

And to use column on specific column is easy for developer to
understand.

Welcome, AnySQL
=======================
http://www.anysql.net/en/

Chuck

unread,
Mar 6, 2006, 10:03:55 AM3/6/06
to

Naming the indexes the same across environments would be a lot easier
than getting Oracle to change their RDBMS code. Perhaps you should just
synchronize your environments. That's what I would do.
--
To reply by email remove "_nospam"

sybr...@yahoo.com

unread,
Mar 6, 2006, 10:15:42 AM3/6/06
to

Why do you even want to use different index names? What pressing
business need is resolved using this requirement? Do you really think
it makes sense to use different names?

--
Sybrand Bakker
Senior Oracle DBA

DA Morgan

unread,
Mar 6, 2006, 1:58:49 PM3/6/06
to

Why should Oracle add a hint to cover for the horrifyingly bad
discipline and practices of a development team?

If the indexes have different names the DBA should be asked to
resign.
--
Daniel A. Morgan
http://www.psoug.org
damo...@x.washington.edu
(replace x with u to respond)

Sybrand Bakker

unread,
Mar 6, 2006, 4:34:20 PM3/6/06
to
On Mon, 06 Mar 2006 10:58:49 -0800, DA Morgan <damo...@psoug.org>
wrote:

>If the indexes have different names the DBA should be asked to
>resign.

Aren't the customary exit procedures in the US (unlike many civilized
coutnies) quite different?

--
Sybrand Bakker, Senior Oracle DBA

Joel Garry

unread,
Mar 6, 2006, 6:17:31 PM3/6/06
to
AnySQL wrote:

>The "INDEX" hint let Oracle automatically choose index, however if

>Oracle can introduce a new hint "INDEX_COL", it will really helpful.

You got it backwards. Hinting HINDERS the ability to let Oracle
automatically choose the index. If your developers are having to put
in a lot of hints, there is perhaps something wrong with their
perception of CBO.

Is it really so hard for your developers to understand they should be
explicitly naming everything consistently?

jg
--
@home.com is bogus.
http://www.signonsandiego.com/uniontrib/20060304/news_1b4google.html

DA Morgan

unread,
Mar 6, 2006, 7:20:52 PM3/6/06
to

Absolutely ... an unfortunatly. Honor and personal integrity are
quaint attributes of earlier generations.

oracle_doc

unread,
Mar 6, 2006, 7:58:19 PM3/6/06
to


Actually, it's already there!

In 10g, there is an improved version of INDEX hint

INDEX(tab1 tab1(ind_col1, ind_col2))


By specifying the index columns rather than the index name, Oracle can
pick up any index with these columns as the leading portion of the
index key. When you think about it it's a much better hint, approaching
the problem from the right direction - the search criteria from the
logical perspective rather than a particular physical object.

yon...@yahoo.com

unread,
Mar 6, 2006, 10:36:45 PM3/6/06
to

Hi, oracle_doc,

You're one of the few gentlemen that have good memory! About this day
last year, Jonathan Lewis told us this (still) undocumented feature

http://groups.google.com/group/comp.databases.oracle.server/browse_frm/thread/de056ba01e68c621

See message 9 and later.

If you see it documented anywhere, let us know.

Regards,

Yong Huang

AnySQL (d.c.b.a)

unread,
Mar 7, 2006, 2:36:20 AM3/7/06
to
Thanks for your information.


Welcome, AnySQL
==============================
http://www.anysql.net/en/

0 new messages