[ADWC] オプティマイザヒントはデフォルト無効

デフォルト動作

ADWC環境ではデフォルトでオプティマイザヒントおよびPARALLELヒントは無視されます。

DB初期化パラメータOPTIMIZER_IGNORE_HINTS に「FALSE」を設定することで、これらを有効化することができます。

 

なぜ、そのような仕様になっているか?

Why is ADWC set up like this? It’s pretty simple: the Oracle Optimizer’s job is to find good SQL execution plans without manual intervention. It is not the application developer’s or DBA’s job, so hints should be avoided as much as possible. Over time, they can prevent applications from taking advantage of new optimization techniques, so try and leave the heavy-lifting to the database. Think autonomous.

チューニングはデータベースに任せておけばよい。

 

ちゃんと、マニュアルにも載っている。

Autonomous Data Warehouse Cloudは、デフォルトでSQL文のオプティマイザ・ヒントとPARALLELヒントを無視します。 アプリケーションがヒントに依存している場合、ALTER SESSIONまたはALTER SYSTEMを使用して、セッションまたはシステム・レベルでパラメータOPTIMIZER_IGNORE_HINTSをFALSEに設定して、オプティマイザ・ヒントを有効にできます。

 

参考

 

 

スポンサードリンク

Be the first to comment

Leave a Reply

Your email address will not be published.


*