Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

BYPASS_RECURSIVE_CHECK oracle hint purpose?

Tags:

hint

oracle11g

Someone knows the purpose of this undocumented oracle hint :

BYPASS_RECURSIVE_CHECK

Why to use it or not?

like image 897
Osy Avatar asked Apr 12 '13 03:04

Osy


1 Answers

You should never use that hint. It's undocumented for a reason. If you were meant to use it, it would be documented.

As far as I'm aware, there are occasional cases where the optimizer generates plans differently when optimizing recursive SQL statements. This hint is intended to affect that. Realistically, unless you are a developer working for Oracle who is having a conversation with the optimizer group as to why some of your recursive SQL statements aren't generating the plans you would expect or you're a developer with an open SR with Oracle Support that is instructed to use this hint to work around an optimizer bug, you're almost certainly better off ignoring this and any other undocumented hints you come across.

If you really want more information, you can take a look at MOS ID 398605.1 which has links to a few related bugs.

like image 68
Justin Cave Avatar answered Oct 16 '22 16:10

Justin Cave