Friday, May 15, 2015

Using Index hint in oracle database

If running from different schema you need to use alias table name.

In the below example i used temp

select /*+index(temp temp_idx_01) */ * from hma_tm_prod.ddx temp where vin like '%123454';


If running from same schema then we can you table name directly.

select /*+index(ddx temp_idx_01) */ * from ddx where vin like '%123454';






No comments:

Post a Comment

Featured Post

Apply Patch 22191577 latest GI PSU to RAC and DB homes using Opatch auto or manual steps

Patch 22191577: GRID INFRASTRUCTURE PATCH SET UPDATE 11.2.0.4.160119 (JAN2016) Unzip the patch 22191577 Unzip latest Opatch Version in or...