{"id":751,"date":"2016-05-22T22:58:09","date_gmt":"2016-05-23T01:58:09","guid":{"rendered":"http:\/\/dbtimewizard.com.br\/blog\/?p=751"},"modified":"2020-09-21T19:23:54","modified_gmt":"2020-09-21T22:23:54","slug":"sql-profile-sera-que-posso-usar-esse-recurso","status":"publish","type":"post","link":"http:\/\/dbtimewizard.com.br\/blog\/sql-profile-sera-que-posso-usar-esse-recurso\/","title":{"rendered":"SQL Profile: Ser\u00e1 que posso usar esse recurso?"},"content":{"rendered":"<p style=\"text-align: justify;\"><span style=\"font-size: 12pt;\">Quando a Oracle lan\u00e7a uma nova vers\u00e3o de banco de dados no mercado todos os profissionais da \u00e1rea ficam curiosos para conhecer as novas funcionalidades (features), e algumas delas proporcionam recursos fant\u00e1sticos para facilitar a vida de quem trabalha com isso, porem muitas vezes n\u00e3o fica claro que algumas dessas novas funcionalidades requerem uma licen\u00e7a adicional. Esse \u00e9 o caso do &#8220;Feature SQL Profile&#8221;, para utiliz\u00e1-la alem da licen\u00e7a do Oracle Database Enterprise Edition precisamos adquirir a &#8220;<strong><a href=\"https:\/\/docs.oracle.com\/cd\/E11882_01\/license.112\/e47877\/options.htm#DBLIC170\" target=\"_blank\">Option Tuning Pack<\/a><\/strong>&#8221; que por sua vez requer a &#8220;<strong><a href=\"https:\/\/docs.oracle.com\/cd\/E11882_01\/license.112\/e47877\/options.htm#DBLIC165\" target=\"_blank\">Option Diagnostic Pack<\/a><\/strong>&#8220;.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-size: 12pt;\">A leitura do documento de licen\u00e7a da Oracle n\u00e3o \u00e9 muito clara quanto ao fato de que a &#8220;Feature SQL Profile&#8221; faz parte da &#8220;Option Tuning Pack&#8221;, para validar essa informa\u00e7\u00e3o vamos realizar uma simula\u00e7\u00e3o com uma consulta ativando e desativando a &#8220;Option Tuning Pack&#8221; para verificar se ela realmente faz parte dessa Option.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-size: 12pt;\">Para aqueles que n\u00e3o disp\u00f5em das licen\u00e7as &#8220;Diagnostic and Tuning Pack&#8221; em sua base Oracle Enterprise Edition, uma alternativa \u00e9 a utiliza\u00e7\u00e3o da SQL Plan Management (SPM), cujos recursos s\u00e3o bem parecidos com SQL Profile. <\/p>\n<h2 style=\"text-align: justify;\"><span style=\"font-size: 14pt;\">Simulando a utiliza\u00e7\u00e3o da SQL Profile<\/span><\/h2>\n<p style=\"text-align: justify;\"><span style=\"font-size: 12pt;\">Para validar a necessidade da licen\u00e7a &#8220;Diagnostic and Tuning Pack&#8221; quando da\u00a0utiliza\u00e7\u00e3o da &#8220;Feature SQL Profile&#8221; vamos realizar o seguinte procedimento:<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\"><span style=\"font-size: 12pt;\"><strong>1)<\/strong> Vamos verificar se as &#8220;Options Diagnostic and Tuning Pack&#8221; est\u00e3o habilitadas consultando o valor do par\u00e2metro &#8220;control_management_pack_access&#8221;;<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-size: 12pt;\"><strong>2)<\/strong> Com as Options habilitadas vamos executar uma consulta que possui uma SQL Profile definida;<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-size: 12pt;\"><strong>3)<\/strong> Utilizando o pacote DBMS_XPLAN vamos exibir o plano de execu\u00e7\u00e3o e verificar se\u00e7\u00e3o &#8220;Note&#8221; se a SQL Profile esta sendo utilizada;<\/span><\/p>\n<p>&nbsp;<\/p>\n<div class=\"codecolorer-container php default codecolorer-noborder\" style=\"overflow:auto;white-space:nowrap;width:800px;height:520px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/>4<br \/>5<br \/>6<br \/>7<br \/>8<br \/>9<br \/>10<br \/>11<br \/>12<br \/>13<br \/>14<br \/>15<br \/>16<br \/>17<br \/>18<br \/>19<br \/>20<br \/>21<br \/>22<br \/>23<br \/>24<br \/>25<br \/>26<br \/>27<br \/>28<br \/>29<br \/>30<br \/>31<br \/>32<br \/>33<br \/>34<br \/>35<br \/>36<br \/>37<br \/>38<br \/>39<br \/>40<br \/>41<br \/>42<br \/>43<br \/>44<br \/>45<br \/>46<br \/>47<br \/>48<br \/>49<br \/>50<br \/>51<br \/>52<br \/>53<br \/>54<br \/>55<br \/>56<br \/>57<br \/>58<br \/>59<br \/>60<br \/><\/div><\/td><td><div class=\"php codecolorer\">SQL <span class=\"sy0\">&gt;<\/span> SELECT <span class=\"sy0\">*<\/span> FROM V<span class=\"re0\">$VERSION<\/span> where rownum <span class=\"sy0\">&lt;<\/span> <span class=\"nu0\">2<\/span><span class=\"sy0\">;<\/span><br \/>\n<br \/>\nBANNER<br \/>\n<span class=\"sy0\">--------------------------------------------------------------------------------<\/span><br \/>\nOracle Database 11g Enterprise Edition Release 11<span class=\"sy0\">.<\/span>2<span class=\"sy0\">.<\/span>0<span class=\"sy0\">.<\/span>4<span class=\"sy0\">.<\/span>0 <span class=\"sy0\">-<\/span> Production<br \/>\n<br \/>\nSQL <span class=\"sy0\">&gt;<\/span><br \/>\nSQL <span class=\"sy0\">&gt;<\/span> col name <span class=\"kw1\">for<\/span> a40<br \/>\nSQL <span class=\"sy0\">&gt;<\/span> col value <span class=\"kw1\">for<\/span> a30<br \/>\nSQL <span class=\"sy0\">&gt;<\/span> select name<span class=\"sy0\">,<\/span> value<span class=\"sy0\">,<\/span> isdefault<span class=\"sy0\">,<\/span> ismodified from v<span class=\"re0\">$parameter<\/span> where name <span class=\"sy0\">=<\/span> <span class=\"st_h\">'control_management_pack_access'<\/span><span class=\"sy0\">;<\/span><br \/>\n<br \/>\nNAME &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; VALUE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ISDEFAULT ISMODIFIED<br \/>\n<span class=\"sy0\">----------------------------------------<\/span> <span class=\"sy0\">------------------------------<\/span> <span class=\"sy0\">---------<\/span> <span class=\"sy0\">----------<\/span><br \/>\ncontrol_management_pack_access &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DIAGNOSTIC<span class=\"sy0\">+<\/span>TUNING &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"kw4\">TRUE<\/span> &nbsp; &nbsp; &nbsp;<span class=\"kw4\">FALSE<\/span><br \/>\n<br \/>\nSQL <span class=\"sy0\">&gt;<\/span><br \/>\nSQL <span class=\"sy0\">&gt;<\/span><br \/>\nSQL <span class=\"sy0\">&gt;<\/span> alter <a href=\"http:\/\/www.php.net\/system\"><span class=\"kw3\">system<\/span><\/a> <a href=\"http:\/\/www.php.net\/flush\"><span class=\"kw3\">flush<\/span><\/a> shared_pool<span class=\"sy0\">;<\/span><br \/>\n<br \/>\n<a href=\"http:\/\/www.php.net\/system\"><span class=\"kw3\">System<\/span><\/a> altered<span class=\"sy0\">.<\/span><br \/>\n<br \/>\nSQL <span class=\"sy0\">&gt;<\/span><br \/>\nSQL <span class=\"sy0\">&gt;<\/span><br \/>\nSQL <span class=\"sy0\">&gt;<\/span> select <a href=\"http:\/\/www.php.net\/count\"><span class=\"kw3\">count<\/span><\/a><span class=\"br0\">&#40;<\/span><span class=\"nu0\">1<\/span><span class=\"br0\">&#41;<\/span> from dbtw_objects<span class=\"sy0\">;<\/span><br \/>\n<br \/>\n&nbsp; <a href=\"http:\/\/www.php.net\/count\"><span class=\"kw3\">COUNT<\/span><\/a><span class=\"br0\">&#40;<\/span><span class=\"nu0\">1<\/span><span class=\"br0\">&#41;<\/span><br \/>\n<span class=\"sy0\">----------<\/span><br \/>\n&nbsp; &nbsp; &nbsp;<span class=\"nu0\">87034<\/span><br \/>\n<br \/>\nSQL <span class=\"sy0\">&gt;<\/span><br \/>\nSQL <span class=\"sy0\">&gt;<\/span><br \/>\nSQL <span class=\"sy0\">&gt;<\/span> SELECT <span class=\"sy0\">*<\/span> FROM TABLE <span class=\"br0\">&#40;<\/span>dbms_xplan<span class=\"sy0\">.<\/span>display_cursor <span class=\"br0\">&#40;<\/span><span class=\"st_h\">'2cfxx1aqrc3kx'<\/span><span class=\"sy0\">,<\/span><span class=\"kw4\">null<\/span><span class=\"sy0\">,<\/span><span class=\"st_h\">'typical iostats last'<\/span><span class=\"br0\">&#41;<\/span><span class=\"br0\">&#41;<\/span><span class=\"sy0\">;<\/span><br \/>\n<br \/>\nPLAN_TABLE_OUTPUT<br \/>\n<span class=\"sy0\">--------------------------------------------------------------------------------------------------------------<\/span><br \/>\nSQL_ID &nbsp;2cfxx1aqrc3kx<span class=\"sy0\">,<\/span> child number <span class=\"nu0\">0<\/span><br \/>\n<span class=\"sy0\">-------------------------------------<\/span><br \/>\nselect <a href=\"http:\/\/www.php.net\/count\"><span class=\"kw3\">count<\/span><\/a><span class=\"br0\">&#40;<\/span><span class=\"nu0\">1<\/span><span class=\"br0\">&#41;<\/span> from dbtw_objects<br \/>\n<br \/>\nPlan <a href=\"http:\/\/www.php.net\/hash\"><span class=\"kw3\">hash<\/span><\/a> value<span class=\"sy0\">:<\/span> <span class=\"nu0\">2190313608<\/span><br \/>\n<br \/>\n<span class=\"sy0\">----------------------------------------------------------------------------<\/span><br \/>\n<span class=\"sy0\">|<\/span> Id &nbsp;<span class=\"sy0\">|<\/span> Operation &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"sy0\">|<\/span> Name &nbsp; &nbsp; &nbsp; &nbsp; <span class=\"sy0\">|<\/span> E<span class=\"sy0\">-<\/span>Rows <span class=\"sy0\">|<\/span> Cost <span class=\"br0\">&#40;<\/span><span class=\"sy0\">%<\/span>CPU<span class=\"br0\">&#41;<\/span><span class=\"sy0\">|<\/span> E<span class=\"sy0\">-<\/span><a href=\"http:\/\/www.php.net\/time\"><span class=\"kw3\">Time<\/span><\/a> &nbsp; <span class=\"sy0\">|<\/span><br \/>\n<span class=\"sy0\">----------------------------------------------------------------------------<\/span><br \/>\n<span class=\"sy0\">|<\/span> &nbsp; <span class=\"nu0\">0<\/span> <span class=\"sy0\">|<\/span> SELECT STATEMENT &nbsp; <span class=\"sy0\">|<\/span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"sy0\">|<\/span> &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"sy0\">|<\/span> &nbsp; <span class=\"nu0\">347<\/span> <span class=\"br0\">&#40;<\/span><span class=\"nu0\">100<\/span><span class=\"br0\">&#41;<\/span><span class=\"sy0\">|<\/span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"sy0\">|<\/span><br \/>\n<span class=\"sy0\">|<\/span> &nbsp; <span class=\"nu0\">1<\/span> <span class=\"sy0\">|<\/span> &nbsp;<a href=\"http:\/\/www.php.net\/sort\"><span class=\"kw3\">SORT<\/span><\/a> <a href=\"http:\/\/www.php.net\/aggregate\"><span class=\"kw3\">AGGREGATE<\/span><\/a> &nbsp; &nbsp;<span class=\"sy0\">|<\/span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"sy0\">|<\/span> &nbsp; &nbsp; &nbsp;<span class=\"nu0\">1<\/span> <span class=\"sy0\">|<\/span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"sy0\">|<\/span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"sy0\">|<\/span><br \/>\n<span class=\"sy0\">|<\/span> &nbsp; <span class=\"nu0\">2<\/span> <span class=\"sy0\">|<\/span> &nbsp; TABLE ACCESS FULL<span class=\"sy0\">|<\/span> DBTW_OBJECTS <span class=\"sy0\">|<\/span> &nbsp; &nbsp;103K<span class=\"sy0\">|<\/span> &nbsp; <span class=\"nu0\">347<\/span> &nbsp; <span class=\"br0\">&#40;<\/span><span class=\"nu0\">1<\/span><span class=\"br0\">&#41;<\/span><span class=\"sy0\">|<\/span> <span class=\"nu8\">00<\/span><span class=\"sy0\">:<\/span><span class=\"nu8\">00<\/span><span class=\"sy0\">:<\/span><span class=\"nu8\">05<\/span> <span class=\"sy0\">|<\/span><br \/>\n<span class=\"sy0\">----------------------------------------------------------------------------<\/span><br \/>\n<br \/>\nNote<br \/>\n<span class=\"sy0\">-----<\/span><br \/>\n&nbsp; &nbsp;<span class=\"sy0\">-<\/span> SQL profile coe_2cfxx1aqrc3kx_2190313608 used <span class=\"kw1\">for<\/span> this statement<br \/>\n&nbsp; &nbsp;<span class=\"sy0\">-<\/span> Warning<span class=\"sy0\">:<\/span> basic plan statistics not available<span class=\"sy0\">.<\/span> These are only collected when<span class=\"sy0\">:<\/span><br \/>\n&nbsp; &nbsp; &nbsp; &nbsp;<span class=\"sy0\">*<\/span> hint <span class=\"st_h\">'gather_plan_statistics'<\/span> is used <span class=\"kw1\">for<\/span> the statement or<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp;<span class=\"sy0\">*<\/span> parameter <span class=\"st_h\">'statistics_level'<\/span> is set to <span class=\"st_h\">'ALL'<\/span><span class=\"sy0\">,<\/span> at session or <a href=\"http:\/\/www.php.net\/system\"><span class=\"kw3\">system<\/span><\/a> level<br \/>\n<br \/>\n<br \/>\n<span class=\"nu0\">21<\/span> rows selected<span class=\"sy0\">.<\/span><br \/>\n<br \/>\nSQL <span class=\"sy0\">&gt;<\/span><\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\"><span style=\"font-size: 12pt;\">Na se\u00e7\u00e3o &#8220;Note&#8221; do plano de execu\u00e7\u00e3o podemos observar a exist\u00eancia da mensagem &#8220;SQL profile coe_2cfxx1aqrc3kx_2190313608 used for this statement&#8221; que indica a utiliza\u00e7\u00e3o da SQL Profile.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\"><span style=\"font-size: 12pt;\"><strong>4)<\/strong> Vamos desativar as &#8220;Options Diagnostic and Tuning Pack&#8221; alterando o par\u00e2metro &#8220;control_management_pack_access&#8221; para &#8220;none&#8221;;<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-size: 12pt;\"><strong>5)<\/strong> Limpar a Shared_pool;<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-size: 12pt;\"><strong>6)<\/strong> Com as Options desativadas vamos executar a mesma consulta novamente;<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-size: 12pt;\"><strong>7)<\/strong> Utilizando o pacote DBMS_XPLAN vamos exibir o plano de execu\u00e7\u00e3o e verificar se\u00e7\u00e3o &#8220;Note&#8221; se a SQL Profile esta sendo utilizada;<\/span><\/p>\n<p>&nbsp;<\/p>\n<div class=\"codecolorer-container php default codecolorer-noborder\" style=\"overflow:auto;white-space:nowrap;width:800px;height:520px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/>4<br \/>5<br \/>6<br \/>7<br \/>8<br \/>9<br \/>10<br \/>11<br \/>12<br \/>13<br \/>14<br \/>15<br \/>16<br \/>17<br \/>18<br \/>19<br \/>20<br \/>21<br \/>22<br \/>23<br \/>24<br \/>25<br \/>26<br \/>27<br \/>28<br \/>29<br \/>30<br \/>31<br \/>32<br \/>33<br \/>34<br \/>35<br \/>36<br \/>37<br \/>38<br \/>39<br \/>40<br \/>41<br \/>42<br \/>43<br \/>44<br \/>45<br \/>46<br \/>47<br \/>48<br \/>49<br \/>50<br \/>51<br \/>52<br \/>53<br \/><\/div><\/td><td><div class=\"php codecolorer\">SQL <span class=\"sy0\">&gt;<\/span> alter <a href=\"http:\/\/www.php.net\/system\"><span class=\"kw3\">system<\/span><\/a> set control_management_pack_access<span class=\"sy0\">=<\/span><span class=\"st_h\">'none'<\/span><span class=\"sy0\">;<\/span><br \/>\n<br \/>\n<a href=\"http:\/\/www.php.net\/system\"><span class=\"kw3\">System<\/span><\/a> altered<span class=\"sy0\">.<\/span><br \/>\n<br \/>\nSQL <span class=\"sy0\">&gt;<\/span><br \/>\nSQL <span class=\"sy0\">&gt;<\/span> select name<span class=\"sy0\">,<\/span> value<span class=\"sy0\">,<\/span> isdefault<span class=\"sy0\">,<\/span> ismodified from v<span class=\"re0\">$parameter<\/span> where name <span class=\"sy0\">=<\/span> <span class=\"st_h\">'control_management_pack_access'<\/span><span class=\"sy0\">;<\/span><br \/>\n<br \/>\nNAME &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; VALUE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ISDEFAULT ISMODIFIED<br \/>\n<span class=\"sy0\">----------------------------------------<\/span> <span class=\"sy0\">------------------------------<\/span> <span class=\"sy0\">---------<\/span> <span class=\"sy0\">----------<\/span><br \/>\ncontrol_management_pack_access &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; none &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class=\"kw4\">TRUE<\/span> &nbsp; &nbsp; &nbsp;SYSTEM_MOD<br \/>\n<br \/>\nSQL <span class=\"sy0\">&gt;<\/span><br \/>\nSQL <span class=\"sy0\">&gt;<\/span> alter <a href=\"http:\/\/www.php.net\/system\"><span class=\"kw3\">system<\/span><\/a> <a href=\"http:\/\/www.php.net\/flush\"><span class=\"kw3\">flush<\/span><\/a> shared_pool<span class=\"sy0\">;<\/span><br \/>\n<br \/>\n<a href=\"http:\/\/www.php.net\/system\"><span class=\"kw3\">System<\/span><\/a> altered<span class=\"sy0\">.<\/span><br \/>\n<br \/>\nSQL <span class=\"sy0\">&gt;<\/span><br \/>\nSQL <span class=\"sy0\">&gt;<\/span> select <a href=\"http:\/\/www.php.net\/count\"><span class=\"kw3\">count<\/span><\/a><span class=\"br0\">&#40;<\/span><span class=\"nu0\">1<\/span><span class=\"br0\">&#41;<\/span> from dbtw_objects<span class=\"sy0\">;<\/span><br \/>\n<br \/>\n&nbsp; <a href=\"http:\/\/www.php.net\/count\"><span class=\"kw3\">COUNT<\/span><\/a><span class=\"br0\">&#40;<\/span><span class=\"nu0\">1<\/span><span class=\"br0\">&#41;<\/span><br \/>\n<span class=\"sy0\">----------<\/span><br \/>\n&nbsp; &nbsp; &nbsp;<span class=\"nu0\">87034<\/span><br \/>\n<br \/>\nSQL <span class=\"sy0\">&gt;<\/span><br \/>\nSQL <span class=\"sy0\">&gt;<\/span> SELECT <span class=\"sy0\">*<\/span> FROM TABLE <span class=\"br0\">&#40;<\/span>dbms_xplan<span class=\"sy0\">.<\/span>display_cursor <span class=\"br0\">&#40;<\/span><span class=\"st_h\">'2cfxx1aqrc3kx'<\/span><span class=\"sy0\">,<\/span><span class=\"kw4\">null<\/span><span class=\"sy0\">,<\/span><span class=\"st_h\">'typical iostats last'<\/span><span class=\"br0\">&#41;<\/span><span class=\"br0\">&#41;<\/span><span class=\"sy0\">;<\/span><br \/>\n<br \/>\nPLAN_TABLE_OUTPUT<br \/>\n<span class=\"sy0\">----------------------------------------------------------------------------------------------------------------------------<\/span><br \/>\nSQL_ID &nbsp;2cfxx1aqrc3kx<span class=\"sy0\">,<\/span> child number <span class=\"nu0\">0<\/span><br \/>\n<span class=\"sy0\">-------------------------------------<\/span><br \/>\nselect <a href=\"http:\/\/www.php.net\/count\"><span class=\"kw3\">count<\/span><\/a><span class=\"br0\">&#40;<\/span><span class=\"nu0\">1<\/span><span class=\"br0\">&#41;<\/span> from dbtw_objects<br \/>\n<br \/>\nPlan <a href=\"http:\/\/www.php.net\/hash\"><span class=\"kw3\">hash<\/span><\/a> value<span class=\"sy0\">:<\/span> <span class=\"nu0\">2190313608<\/span><br \/>\n<br \/>\n<span class=\"sy0\">----------------------------------------------------------------------------<\/span><br \/>\n<span class=\"sy0\">|<\/span> Id &nbsp;<span class=\"sy0\">|<\/span> Operation &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"sy0\">|<\/span> Name &nbsp; &nbsp; &nbsp; &nbsp; <span class=\"sy0\">|<\/span> E<span class=\"sy0\">-<\/span>Rows <span class=\"sy0\">|<\/span> Cost <span class=\"br0\">&#40;<\/span><span class=\"sy0\">%<\/span>CPU<span class=\"br0\">&#41;<\/span><span class=\"sy0\">|<\/span> E<span class=\"sy0\">-<\/span><a href=\"http:\/\/www.php.net\/time\"><span class=\"kw3\">Time<\/span><\/a> &nbsp; <span class=\"sy0\">|<\/span><br \/>\n<span class=\"sy0\">----------------------------------------------------------------------------<\/span><br \/>\n<span class=\"sy0\">|<\/span> &nbsp; <span class=\"nu0\">0<\/span> <span class=\"sy0\">|<\/span> SELECT STATEMENT &nbsp; <span class=\"sy0\">|<\/span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"sy0\">|<\/span> &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"sy0\">|<\/span> &nbsp; <span class=\"nu0\">347<\/span> <span class=\"br0\">&#40;<\/span><span class=\"nu0\">100<\/span><span class=\"br0\">&#41;<\/span><span class=\"sy0\">|<\/span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"sy0\">|<\/span><br \/>\n<span class=\"sy0\">|<\/span> &nbsp; <span class=\"nu0\">1<\/span> <span class=\"sy0\">|<\/span> &nbsp;<a href=\"http:\/\/www.php.net\/sort\"><span class=\"kw3\">SORT<\/span><\/a> <a href=\"http:\/\/www.php.net\/aggregate\"><span class=\"kw3\">AGGREGATE<\/span><\/a> &nbsp; &nbsp;<span class=\"sy0\">|<\/span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"sy0\">|<\/span> &nbsp; &nbsp; &nbsp;<span class=\"nu0\">1<\/span> <span class=\"sy0\">|<\/span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"sy0\">|<\/span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"sy0\">|<\/span><br \/>\n<span class=\"sy0\">|<\/span> &nbsp; <span class=\"nu0\">2<\/span> <span class=\"sy0\">|<\/span> &nbsp; TABLE ACCESS FULL<span class=\"sy0\">|<\/span> DBTW_OBJECTS <span class=\"sy0\">|<\/span> &nbsp;<span class=\"nu0\">79266<\/span> <span class=\"sy0\">|<\/span> &nbsp; <span class=\"nu0\">347<\/span> &nbsp; <span class=\"br0\">&#40;<\/span><span class=\"nu0\">1<\/span><span class=\"br0\">&#41;<\/span><span class=\"sy0\">|<\/span> <span class=\"nu8\">00<\/span><span class=\"sy0\">:<\/span><span class=\"nu8\">00<\/span><span class=\"sy0\">:<\/span><span class=\"nu8\">05<\/span> <span class=\"sy0\">|<\/span><br \/>\n<span class=\"sy0\">----------------------------------------------------------------------------<\/span><br \/>\n<br \/>\nNote<br \/>\n<span class=\"sy0\">-----<\/span><br \/>\n&nbsp; &nbsp;<span class=\"sy0\">-<\/span> dynamic sampling used <span class=\"kw1\">for<\/span> this statement <span class=\"br0\">&#40;<\/span>level<span class=\"sy0\">=<\/span><span class=\"nu0\">2<\/span><span class=\"br0\">&#41;<\/span><br \/>\n&nbsp; &nbsp;<span class=\"sy0\">-<\/span> Warning<span class=\"sy0\">:<\/span> basic plan statistics not available<span class=\"sy0\">.<\/span> These are only collected when<span class=\"sy0\">:<\/span><br \/>\n&nbsp; &nbsp; &nbsp; &nbsp;<span class=\"sy0\">*<\/span> hint <span class=\"st_h\">'gather_plan_statistics'<\/span> is used <span class=\"kw1\">for<\/span> the statement or<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp;<span class=\"sy0\">*<\/span> parameter <span class=\"st_h\">'statistics_level'<\/span> is set to <span class=\"st_h\">'ALL'<\/span><span class=\"sy0\">,<\/span> at session or <a href=\"http:\/\/www.php.net\/system\"><span class=\"kw3\">system<\/span><\/a> level<br \/>\n<br \/>\n<br \/>\n<span class=\"nu0\">21<\/span> rows selected<span class=\"sy0\">.<\/span><br \/>\n<br \/>\nSQL <span class=\"sy0\">&gt;<\/span><\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\"><span style=\"font-size: 12pt;\">Agora a mensagem de utiliza\u00e7\u00e3o da SQL Profile n\u00e3o aparece na se\u00e7\u00e3o &#8220;Note&#8221; do plano de execu\u00e7\u00e3o, indicando que a SQL Profile n\u00e3o foi utilizada, ou seja quando as &#8220;Options Diagnostic and Tuning Pack&#8221; est\u00e3o desativadas o Otimizador n\u00e3o utiliza SQL Profile o que demonstra a depend\u00eancia da licen\u00e7a dessas Options.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\"><span style=\"font-size: 12pt;\"><strong>8)<\/strong> Vamos criar uma SQL Plan baseline e verificar se ela depende da licen\u00e7a das &#8220;Options Diagnostic and Tuning Pack&#8221;;<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-size: 12pt;\"><strong>9)<\/strong> Limpar a Shared_pool;<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-size: 12pt;\"><strong>10)<\/strong> Com as Options desativadas vamos executar a mesma consulta novamente;<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-size: 12pt;\"><strong>11)<\/strong> Utilizando o pacote DBMS_XPLAN vamos exibir o plano de execu\u00e7\u00e3o e verificar se\u00e7\u00e3o &#8220;Note&#8221; se a SQL Plan baseline esta sendo utilizada;<\/span><\/p>\n<p>&nbsp;<\/p>\n<div class=\"codecolorer-container php default codecolorer-noborder\" style=\"overflow:auto;white-space:nowrap;width:800px;height:520px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/>4<br \/>5<br \/>6<br \/>7<br \/>8<br \/>9<br \/>10<br \/>11<br \/>12<br \/>13<br \/>14<br \/>15<br \/>16<br \/>17<br \/>18<br \/>19<br \/>20<br \/>21<br \/>22<br \/>23<br \/>24<br \/>25<br \/>26<br \/>27<br \/>28<br \/>29<br \/>30<br \/>31<br \/>32<br \/>33<br \/>34<br \/>35<br \/>36<br \/>37<br \/>38<br \/>39<br \/>40<br \/>41<br \/>42<br \/>43<br \/>44<br \/>45<br \/>46<br \/>47<br \/>48<br \/>49<br \/>50<br \/>51<br \/>52<br \/>53<br \/>54<br \/>55<br \/>56<br \/>57<br \/>58<br \/>59<br \/>60<br \/>61<br \/>62<br \/>63<br \/>64<br \/>65<br \/><\/div><\/td><td><div class=\"php codecolorer\">SQL <span class=\"sy0\">&gt;<\/span> <span class=\"sy0\">@<\/span>create_baseline<span class=\"sy0\">;<\/span><br \/>\nEnter value <span class=\"kw1\">for<\/span> sql_id<span class=\"sy0\">:<\/span> 2cfxx1aqrc3kx<br \/>\nEnter value <span class=\"kw1\">for<\/span> plan_hash_value<span class=\"sy0\">:<\/span> <span class=\"nu0\">2190313608<\/span><br \/>\nEnter value <span class=\"kw1\">for<\/span> fixed <span class=\"br0\">&#40;<\/span>NO<span class=\"br0\">&#41;<\/span><span class=\"sy0\">:<\/span><br \/>\nEnter value <span class=\"kw1\">for<\/span> enabled <span class=\"br0\">&#40;<\/span>YES<span class=\"br0\">&#41;<\/span><span class=\"sy0\">:<\/span><br \/>\nEnter value <span class=\"kw1\">for<\/span> plan_name <span class=\"br0\">&#40;<\/span>ID_sqlid_planhashvalue<span class=\"br0\">&#41;<\/span><span class=\"sy0\">:<\/span><br \/>\nBaseline SQLID_2CFXX1AQRC3KX_2190313608 created<span class=\"sy0\">.<\/span><br \/>\nSQL <span class=\"sy0\">&gt;<\/span><br \/>\nSQL <span class=\"sy0\">&gt;<\/span> alter <a href=\"http:\/\/www.php.net\/system\"><span class=\"kw3\">system<\/span><\/a> set control_management_pack_access<span class=\"sy0\">=<\/span><span class=\"st_h\">'none'<\/span><span class=\"sy0\">;<\/span><br \/>\n<br \/>\n<a href=\"http:\/\/www.php.net\/system\"><span class=\"kw3\">System<\/span><\/a> altered<span class=\"sy0\">.<\/span><br \/>\n<br \/>\nSQL <span class=\"sy0\">&gt;<\/span><br \/>\nSQL <span class=\"sy0\">&gt;<\/span> select name<span class=\"sy0\">,<\/span> value<span class=\"sy0\">,<\/span> isdefault<span class=\"sy0\">,<\/span> ismodified from v<span class=\"re0\">$parameter<\/span> where name <span class=\"sy0\">=<\/span> <span class=\"st_h\">'control_management_pack_access'<\/span><span class=\"sy0\">;<\/span><br \/>\n<br \/>\nNAME &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; VALUE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ISDEFAULT ISMODIFIED<br \/>\n<span class=\"sy0\">----------------------------------------<\/span> <span class=\"sy0\">------------------------------<\/span> <span class=\"sy0\">---------<\/span> <span class=\"sy0\">----------<\/span><br \/>\ncontrol_management_pack_access &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; none &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class=\"kw4\">FALSE<\/span> &nbsp; &nbsp; SYSTEM_MOD<br \/>\n<br \/>\n<span class=\"nu0\">1<\/span> row selected<span class=\"sy0\">.<\/span><br \/>\n<br \/>\nSQL <span class=\"sy0\">&gt;<\/span><br \/>\nSQL <span class=\"sy0\">&gt;<\/span> alter <a href=\"http:\/\/www.php.net\/system\"><span class=\"kw3\">system<\/span><\/a> <a href=\"http:\/\/www.php.net\/flush\"><span class=\"kw3\">flush<\/span><\/a> shared_pool<span class=\"sy0\">;<\/span><br \/>\n<br \/>\n<a href=\"http:\/\/www.php.net\/system\"><span class=\"kw3\">System<\/span><\/a> altered<span class=\"sy0\">.<\/span><br \/>\n<br \/>\nSQL <span class=\"sy0\">&gt;<\/span><br \/>\nSQL <span class=\"sy0\">&gt;<\/span> select <a href=\"http:\/\/www.php.net\/count\"><span class=\"kw3\">count<\/span><\/a><span class=\"br0\">&#40;<\/span><span class=\"nu0\">1<\/span><span class=\"br0\">&#41;<\/span> from dbtw_objects<span class=\"sy0\">;<\/span><br \/>\n<br \/>\n&nbsp; <a href=\"http:\/\/www.php.net\/count\"><span class=\"kw3\">COUNT<\/span><\/a><span class=\"br0\">&#40;<\/span><span class=\"nu0\">1<\/span><span class=\"br0\">&#41;<\/span><br \/>\n<span class=\"sy0\">----------<\/span><br \/>\n&nbsp; &nbsp; &nbsp;<span class=\"nu0\">87034<\/span><br \/>\n<br \/>\n<span class=\"nu0\">1<\/span> row selected<span class=\"sy0\">.<\/span><br \/>\n<br \/>\nSQL <span class=\"sy0\">&gt;<\/span><br \/>\nSQL <span class=\"sy0\">&gt;<\/span> SELECT <span class=\"sy0\">*<\/span> FROM TABLE <span class=\"br0\">&#40;<\/span>dbms_xplan<span class=\"sy0\">.<\/span>display_cursor <span class=\"br0\">&#40;<\/span><span class=\"st_h\">'2cfxx1aqrc3kx'<\/span><span class=\"sy0\">,<\/span><span class=\"kw4\">null<\/span><span class=\"sy0\">,<\/span><span class=\"st_h\">'typical iostats last'<\/span><span class=\"br0\">&#41;<\/span><span class=\"br0\">&#41;<\/span><span class=\"sy0\">;<\/span><br \/>\n<br \/>\nPLAN_TABLE_OUTPUT<br \/>\n<span class=\"sy0\">-----------------------------------------------------------------------------------------------------------------------------<\/span><br \/>\nSQL_ID &nbsp;2cfxx1aqrc3kx<span class=\"sy0\">,<\/span> child number <span class=\"nu0\">0<\/span><br \/>\n<span class=\"sy0\">-------------------------------------<\/span><br \/>\nselect <a href=\"http:\/\/www.php.net\/count\"><span class=\"kw3\">count<\/span><\/a><span class=\"br0\">&#40;<\/span><span class=\"nu0\">1<\/span><span class=\"br0\">&#41;<\/span> from dbtw_objects<br \/>\n<br \/>\nPlan <a href=\"http:\/\/www.php.net\/hash\"><span class=\"kw3\">hash<\/span><\/a> value<span class=\"sy0\">:<\/span> <span class=\"nu0\">2190313608<\/span><br \/>\n<br \/>\n<span class=\"sy0\">----------------------------------------------------------------------------<\/span><br \/>\n<span class=\"sy0\">|<\/span> Id &nbsp;<span class=\"sy0\">|<\/span> Operation &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"sy0\">|<\/span> Name &nbsp; &nbsp; &nbsp; &nbsp; <span class=\"sy0\">|<\/span> E<span class=\"sy0\">-<\/span>Rows <span class=\"sy0\">|<\/span> Cost <span class=\"br0\">&#40;<\/span><span class=\"sy0\">%<\/span>CPU<span class=\"br0\">&#41;<\/span><span class=\"sy0\">|<\/span> E<span class=\"sy0\">-<\/span><a href=\"http:\/\/www.php.net\/time\"><span class=\"kw3\">Time<\/span><\/a> &nbsp; <span class=\"sy0\">|<\/span><br \/>\n<span class=\"sy0\">----------------------------------------------------------------------------<\/span><br \/>\n<span class=\"sy0\">|<\/span> &nbsp; <span class=\"nu0\">0<\/span> <span class=\"sy0\">|<\/span> SELECT STATEMENT &nbsp; <span class=\"sy0\">|<\/span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"sy0\">|<\/span> &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"sy0\">|<\/span> &nbsp; <span class=\"nu0\">347<\/span> <span class=\"br0\">&#40;<\/span><span class=\"nu0\">100<\/span><span class=\"br0\">&#41;<\/span><span class=\"sy0\">|<\/span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"sy0\">|<\/span><br \/>\n<span class=\"sy0\">|<\/span> &nbsp; <span class=\"nu0\">1<\/span> <span class=\"sy0\">|<\/span> &nbsp;<a href=\"http:\/\/www.php.net\/sort\"><span class=\"kw3\">SORT<\/span><\/a> <a href=\"http:\/\/www.php.net\/aggregate\"><span class=\"kw3\">AGGREGATE<\/span><\/a> &nbsp; &nbsp;<span class=\"sy0\">|<\/span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"sy0\">|<\/span> &nbsp; &nbsp; &nbsp;<span class=\"nu0\">1<\/span> <span class=\"sy0\">|<\/span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"sy0\">|<\/span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"sy0\">|<\/span><br \/>\n<span class=\"sy0\">|<\/span> &nbsp; <span class=\"nu0\">2<\/span> <span class=\"sy0\">|<\/span> &nbsp; TABLE ACCESS FULL<span class=\"sy0\">|<\/span> DBTW_OBJECTS <span class=\"sy0\">|<\/span> &nbsp;<span class=\"nu0\">87034<\/span> <span class=\"sy0\">|<\/span> &nbsp; <span class=\"nu0\">347<\/span> &nbsp; <span class=\"br0\">&#40;<\/span><span class=\"nu0\">1<\/span><span class=\"br0\">&#41;<\/span><span class=\"sy0\">|<\/span> <span class=\"nu8\">00<\/span><span class=\"sy0\">:<\/span><span class=\"nu8\">00<\/span><span class=\"sy0\">:<\/span><span class=\"nu8\">05<\/span> <span class=\"sy0\">|<\/span><br \/>\n<span class=\"sy0\">----------------------------------------------------------------------------<\/span><br \/>\n<br \/>\nNote<br \/>\n<span class=\"sy0\">-----<\/span><br \/>\n&nbsp; &nbsp;<span class=\"sy0\">-<\/span> SQL plan baseline SQLID_2CFXX1AQRC3KX_2190313608 used <span class=\"kw1\">for<\/span> this statement<br \/>\n&nbsp; &nbsp;<span class=\"sy0\">-<\/span> Warning<span class=\"sy0\">:<\/span> basic plan statistics not available<span class=\"sy0\">.<\/span> These are only collected when<span class=\"sy0\">:<\/span><br \/>\n&nbsp; &nbsp; &nbsp; &nbsp;<span class=\"sy0\">*<\/span> hint <span class=\"st_h\">'gather_plan_statistics'<\/span> is used <span class=\"kw1\">for<\/span> the statement or<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp;<span class=\"sy0\">*<\/span> parameter <span class=\"st_h\">'statistics_level'<\/span> is set to <span class=\"st_h\">'ALL'<\/span><span class=\"sy0\">,<\/span> at session or <a href=\"http:\/\/www.php.net\/system\"><span class=\"kw3\">system<\/span><\/a> level<br \/>\n<br \/>\n<br \/>\n<span class=\"nu0\">21<\/span> rows selected<span class=\"sy0\">.<\/span><br \/>\n<br \/>\nSQL <span class=\"sy0\">&gt;<\/span><\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\"><span style=\"font-size: 12pt;\">Na se\u00e7\u00e3o &#8220;Note&#8221; do plano de execu\u00e7\u00e3o podemos observar a exist\u00eancia da mensagem &#8220;SQL plan baseline SQLID_2CFXX1AQRC3KX_2190313608 used for this statement&#8221; que indica a utiliza\u00e7\u00e3o da SQL Plan baseline, como as Options est\u00e3o desativadas podemos constatar que a utiliza\u00e7\u00e3o de &#8220;SQL Plan baseline&#8221; (SPM) n\u00e3o depende da licen\u00e7a das &#8220;Options Diagnostic and Tuning Pack&#8221;;<\/span><\/p>\n<h2 style=\"text-align: justify;\"><span style=\"font-size: 14pt;\">Conclus\u00e3o<\/span><\/h2>\n<p style=\"text-align: justify;\"><span style=\"font-size: 12pt;\">Precisamos verificar quais s\u00e3o as options que possuem licen\u00e7a nas bases que estamos trabalhando pois podemos estar utilizando options que n\u00e3o foram adquiridas e isso pode causar problemas para a empresa numa auditoria de licen\u00e7as da Oracle. Para verificar as &#8220;features&#8221; que est\u00e3o sendo utilizadas na base basta consultar a vis\u00e3o DBA_FEATURE_USAGE_STATISTICS.<\/span><\/p>\n<h2 style=\"text-align: justify;\"><span style=\"font-size: 14pt;\">Scripts<\/span><\/h2>\n<p><span style=\"font-size: 12pt;\">Abaixo a lista de scripts utilizados nesse artigo:<\/span><\/p>\n<p><strong><a href=\"http:\/\/dbtimewizard.com.br\/blog\/scripts\/create_baseline.sql\" target=\"_blank\">create_baseline.sql<\/a><\/strong><\/p>\n<h2 style=\"text-align: justify;\"><span style=\"font-size: 14pt;\">Refer\u00eancias<\/span><\/h2>\n<p><strong><a href=\"http:\/\/kerryosborne.oracle-guy.com\/2011\/01\/licensing-requirements-for-sql-profiles\/\" target=\"_blank\">http:\/\/kerryosborne.oracle-guy.com\/2011\/01\/licensing-requirements-for-sql-profiles\/<\/a><\/strong><\/p>\n<p><strong><a href=\"https:\/\/blogs.oracle.com\/optimizer\/entry\/does_the_use_of_sql\" target=\"_blank\">https:\/\/blogs.oracle.com\/optimizer\/entry\/does_the_use_of_sql<\/a><\/strong><br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n<a href=\"http:\/\/dbtimewizard.com.br\/treinamento\/\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-1255\" src=\"http:\/\/dbtimewizard.com.br\/blog\/wp-content\/uploads\/2018\/10\/promo_cur02.jpg\" alt=\"Promo-D75L\" width=\"330\" height=\"242\" \/><\/a><\/p>\n<p><a href=\"https:\/\/youtu.be\/l6OphhTle9I\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-full wp-image-1215\" src=\"http:\/\/dbtimewizard.com.br\/wp-content\/uploads\/2018\/01\/video-02-300x168.jpg\" alt=\"video-02\" width=\"330\" height=\"242\" \/><\/a><br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Quando a Oracle lan\u00e7a uma nova vers\u00e3o de banco de dados no mercado todos os profissionais da \u00e1rea ficam curiosos para conhecer as novas funcionalidades (features), e algumas delas proporcionam recursos fant\u00e1sticos para facilitar a vida de quem trabalha com isso, porem muitas vezes n\u00e3o fica claro que algumas dessas novas funcionalidades requerem uma licen\u00e7a adicional. Esse \u00e9 o caso<\/p>\n","protected":false},"author":2,"featured_media":752,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[115],"tags":[140,137,138,139,136,118],"class_list":["post-751","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sql-profile","tag-licenca","tag-license","tag-option-diagnostic-pack","tag-option-tuning-pack","tag-sql-plan-baseline","tag-sql-profile"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.9 - aioseo.com -->\n\t<meta name=\"description\" content=\"Como validar que a utiliza\u00e7\u00e3o da feature SQL Profile requer a licen\u00e7a das &quot;Options Diagnostic and Tuning Pack&quot;.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"V. J.A.\"\/>\n\t<link rel=\"canonical\" href=\"http:\/\/dbtimewizard.com.br\/blog\/sql-profile-sera-que-posso-usar-esse-recurso\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.9\" \/>\n\t\t<meta property=\"og:locale\" content=\"pt_BR\" \/>\n\t\t<meta property=\"og:site_name\" content=\"DBTimeWizard | Manter seus Bancos de Dados e Aplica\u00e7\u00f5es com alto desempenho \u00e9 o nosso neg\u00f3cio.\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"SQL Profile: Ser\u00e1 que posso usar esse recurso? | DBTimeWizard\" \/>\n\t\t<meta property=\"og:description\" content=\"Como validar que a utiliza\u00e7\u00e3o da feature SQL Profile requer a licen\u00e7a das &quot;Options Diagnostic and Tuning Pack&quot;.\" \/>\n\t\t<meta property=\"og:url\" content=\"http:\/\/dbtimewizard.com.br\/blog\/sql-profile-sera-que-posso-usar-esse-recurso\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2016-05-23T01:58:09+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-09-21T22:23:54+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"SQL Profile: Ser\u00e1 que posso usar esse recurso? | DBTimeWizard\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Como validar que a utiliza\u00e7\u00e3o da feature SQL Profile requer a licen\u00e7a das &quot;Options Diagnostic and Tuning Pack&quot;.\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\\\/\\\/dbtimewizard.com.br\\\/blog\\\/sql-profile-sera-que-posso-usar-esse-recurso\\\/#article\",\"name\":\"SQL Profile: Ser\\u00e1 que posso usar esse recurso? | DBTimeWizard\",\"headline\":\"SQL Profile: Ser\\u00e1 que posso usar esse recurso?\",\"author\":{\"@id\":\"http:\\\/\\\/dbtimewizard.com.br\\\/blog\\\/author\\\/vjaquino\\\/#author\"},\"publisher\":{\"@id\":\"http:\\\/\\\/dbtimewizard.com.br\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"http:\\\/\\\/dbtimewizard.com.br\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/05\\\/oracle-licensing.jpg\",\"width\":1280,\"height\":856,\"caption\":\"Oracle Licensing\"},\"datePublished\":\"2016-05-22T22:58:09-03:00\",\"dateModified\":\"2020-09-21T19:23:54-03:00\",\"inLanguage\":\"pt-BR\",\"mainEntityOfPage\":{\"@id\":\"http:\\\/\\\/dbtimewizard.com.br\\\/blog\\\/sql-profile-sera-que-posso-usar-esse-recurso\\\/#webpage\"},\"isPartOf\":{\"@id\":\"http:\\\/\\\/dbtimewizard.com.br\\\/blog\\\/sql-profile-sera-que-posso-usar-esse-recurso\\\/#webpage\"},\"articleSection\":\"SQL Profile, Licen\\u00e7a, license, Option Diagnostic Pack, Option Tuning Pack, SQL Plan baseline, SQL Profile\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\\\/\\\/dbtimewizard.com.br\\\/blog\\\/sql-profile-sera-que-posso-usar-esse-recurso\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/dbtimewizard.com.br\\\/blog#listItem\",\"position\":1,\"name\":\"In\\u00edcio\",\"item\":\"http:\\\/\\\/dbtimewizard.com.br\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/dbtimewizard.com.br\\\/blog\\\/category\\\/sql-profile\\\/#listItem\",\"name\":\"SQL Profile\"}},{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/dbtimewizard.com.br\\\/blog\\\/category\\\/sql-profile\\\/#listItem\",\"position\":2,\"name\":\"SQL Profile\",\"item\":\"http:\\\/\\\/dbtimewizard.com.br\\\/blog\\\/category\\\/sql-profile\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/dbtimewizard.com.br\\\/blog\\\/sql-profile-sera-que-posso-usar-esse-recurso\\\/#listItem\",\"name\":\"SQL Profile: Ser\\u00e1 que posso usar esse recurso?\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/dbtimewizard.com.br\\\/blog#listItem\",\"name\":\"In\\u00edcio\"}},{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/dbtimewizard.com.br\\\/blog\\\/sql-profile-sera-que-posso-usar-esse-recurso\\\/#listItem\",\"position\":3,\"name\":\"SQL Profile: Ser\\u00e1 que posso usar esse recurso?\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/dbtimewizard.com.br\\\/blog\\\/category\\\/sql-profile\\\/#listItem\",\"name\":\"SQL Profile\"}}]},{\"@type\":\"Organization\",\"@id\":\"http:\\\/\\\/dbtimewizard.com.br\\\/blog\\\/#organization\",\"name\":\"DBTimeWizard\",\"description\":\"Manter seus Bancos de Dados e Aplica\\u00e7\\u00f5es com alto desempenho \\u00e9 o nosso neg\\u00f3cio.\",\"url\":\"http:\\\/\\\/dbtimewizard.com.br\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"http:\\\/\\\/dbtimewizard.com.br\\\/blog\\\/author\\\/vjaquino\\\/#author\",\"url\":\"http:\\\/\\\/dbtimewizard.com.br\\\/blog\\\/author\\\/vjaquino\\\/\",\"name\":\"V. J.A.\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"http:\\\/\\\/dbtimewizard.com.br\\\/blog\\\/sql-profile-sera-que-posso-usar-esse-recurso\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0ebfb24510db8dc34abd17c6b4afddd99d8e48dc9184002bc49b2fc6d324d68f?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"V. J.A.\"}},{\"@type\":\"WebPage\",\"@id\":\"http:\\\/\\\/dbtimewizard.com.br\\\/blog\\\/sql-profile-sera-que-posso-usar-esse-recurso\\\/#webpage\",\"url\":\"http:\\\/\\\/dbtimewizard.com.br\\\/blog\\\/sql-profile-sera-que-posso-usar-esse-recurso\\\/\",\"name\":\"SQL Profile: Ser\\u00e1 que posso usar esse recurso? | DBTimeWizard\",\"description\":\"Como validar que a utiliza\\u00e7\\u00e3o da feature SQL Profile requer a licen\\u00e7a das \\\"Options Diagnostic and Tuning Pack\\\".\",\"inLanguage\":\"pt-BR\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/dbtimewizard.com.br\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"http:\\\/\\\/dbtimewizard.com.br\\\/blog\\\/sql-profile-sera-que-posso-usar-esse-recurso\\\/#breadcrumblist\"},\"author\":{\"@id\":\"http:\\\/\\\/dbtimewizard.com.br\\\/blog\\\/author\\\/vjaquino\\\/#author\"},\"creator\":{\"@id\":\"http:\\\/\\\/dbtimewizard.com.br\\\/blog\\\/author\\\/vjaquino\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"http:\\\/\\\/dbtimewizard.com.br\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/05\\\/oracle-licensing.jpg\",\"@id\":\"http:\\\/\\\/dbtimewizard.com.br\\\/blog\\\/sql-profile-sera-que-posso-usar-esse-recurso\\\/#mainImage\",\"width\":1280,\"height\":856,\"caption\":\"Oracle Licensing\"},\"primaryImageOfPage\":{\"@id\":\"http:\\\/\\\/dbtimewizard.com.br\\\/blog\\\/sql-profile-sera-que-posso-usar-esse-recurso\\\/#mainImage\"},\"datePublished\":\"2016-05-22T22:58:09-03:00\",\"dateModified\":\"2020-09-21T19:23:54-03:00\"},{\"@type\":\"WebSite\",\"@id\":\"http:\\\/\\\/dbtimewizard.com.br\\\/blog\\\/#website\",\"url\":\"http:\\\/\\\/dbtimewizard.com.br\\\/blog\\\/\",\"name\":\"DBTimeWizard\",\"description\":\"Manter seus Bancos de Dados e Aplica\\u00e7\\u00f5es com alto desempenho \\u00e9 o nosso neg\\u00f3cio.\",\"inLanguage\":\"pt-BR\",\"publisher\":{\"@id\":\"http:\\\/\\\/dbtimewizard.com.br\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"SQL Profile: Ser\u00e1 que posso usar esse recurso? | DBTimeWizard","description":"Como validar que a utiliza\u00e7\u00e3o da feature SQL Profile requer a licen\u00e7a das \"Options Diagnostic and Tuning Pack\".","canonical_url":"http:\/\/dbtimewizard.com.br\/blog\/sql-profile-sera-que-posso-usar-esse-recurso\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/dbtimewizard.com.br\/blog\/sql-profile-sera-que-posso-usar-esse-recurso\/#article","name":"SQL Profile: Ser\u00e1 que posso usar esse recurso? | DBTimeWizard","headline":"SQL Profile: Ser\u00e1 que posso usar esse recurso?","author":{"@id":"http:\/\/dbtimewizard.com.br\/blog\/author\/vjaquino\/#author"},"publisher":{"@id":"http:\/\/dbtimewizard.com.br\/blog\/#organization"},"image":{"@type":"ImageObject","url":"http:\/\/dbtimewizard.com.br\/blog\/wp-content\/uploads\/2016\/05\/oracle-licensing.jpg","width":1280,"height":856,"caption":"Oracle Licensing"},"datePublished":"2016-05-22T22:58:09-03:00","dateModified":"2020-09-21T19:23:54-03:00","inLanguage":"pt-BR","mainEntityOfPage":{"@id":"http:\/\/dbtimewizard.com.br\/blog\/sql-profile-sera-que-posso-usar-esse-recurso\/#webpage"},"isPartOf":{"@id":"http:\/\/dbtimewizard.com.br\/blog\/sql-profile-sera-que-posso-usar-esse-recurso\/#webpage"},"articleSection":"SQL Profile, Licen\u00e7a, license, Option Diagnostic Pack, Option Tuning Pack, SQL Plan baseline, SQL Profile"},{"@type":"BreadcrumbList","@id":"http:\/\/dbtimewizard.com.br\/blog\/sql-profile-sera-que-posso-usar-esse-recurso\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"http:\/\/dbtimewizard.com.br\/blog#listItem","position":1,"name":"In\u00edcio","item":"http:\/\/dbtimewizard.com.br\/blog","nextItem":{"@type":"ListItem","@id":"http:\/\/dbtimewizard.com.br\/blog\/category\/sql-profile\/#listItem","name":"SQL Profile"}},{"@type":"ListItem","@id":"http:\/\/dbtimewizard.com.br\/blog\/category\/sql-profile\/#listItem","position":2,"name":"SQL Profile","item":"http:\/\/dbtimewizard.com.br\/blog\/category\/sql-profile\/","nextItem":{"@type":"ListItem","@id":"http:\/\/dbtimewizard.com.br\/blog\/sql-profile-sera-que-posso-usar-esse-recurso\/#listItem","name":"SQL Profile: Ser\u00e1 que posso usar esse recurso?"},"previousItem":{"@type":"ListItem","@id":"http:\/\/dbtimewizard.com.br\/blog#listItem","name":"In\u00edcio"}},{"@type":"ListItem","@id":"http:\/\/dbtimewizard.com.br\/blog\/sql-profile-sera-que-posso-usar-esse-recurso\/#listItem","position":3,"name":"SQL Profile: Ser\u00e1 que posso usar esse recurso?","previousItem":{"@type":"ListItem","@id":"http:\/\/dbtimewizard.com.br\/blog\/category\/sql-profile\/#listItem","name":"SQL Profile"}}]},{"@type":"Organization","@id":"http:\/\/dbtimewizard.com.br\/blog\/#organization","name":"DBTimeWizard","description":"Manter seus Bancos de Dados e Aplica\u00e7\u00f5es com alto desempenho \u00e9 o nosso neg\u00f3cio.","url":"http:\/\/dbtimewizard.com.br\/blog\/"},{"@type":"Person","@id":"http:\/\/dbtimewizard.com.br\/blog\/author\/vjaquino\/#author","url":"http:\/\/dbtimewizard.com.br\/blog\/author\/vjaquino\/","name":"V. J.A.","image":{"@type":"ImageObject","@id":"http:\/\/dbtimewizard.com.br\/blog\/sql-profile-sera-que-posso-usar-esse-recurso\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/0ebfb24510db8dc34abd17c6b4afddd99d8e48dc9184002bc49b2fc6d324d68f?s=96&d=mm&r=g","width":96,"height":96,"caption":"V. J.A."}},{"@type":"WebPage","@id":"http:\/\/dbtimewizard.com.br\/blog\/sql-profile-sera-que-posso-usar-esse-recurso\/#webpage","url":"http:\/\/dbtimewizard.com.br\/blog\/sql-profile-sera-que-posso-usar-esse-recurso\/","name":"SQL Profile: Ser\u00e1 que posso usar esse recurso? | DBTimeWizard","description":"Como validar que a utiliza\u00e7\u00e3o da feature SQL Profile requer a licen\u00e7a das \"Options Diagnostic and Tuning Pack\".","inLanguage":"pt-BR","isPartOf":{"@id":"http:\/\/dbtimewizard.com.br\/blog\/#website"},"breadcrumb":{"@id":"http:\/\/dbtimewizard.com.br\/blog\/sql-profile-sera-que-posso-usar-esse-recurso\/#breadcrumblist"},"author":{"@id":"http:\/\/dbtimewizard.com.br\/blog\/author\/vjaquino\/#author"},"creator":{"@id":"http:\/\/dbtimewizard.com.br\/blog\/author\/vjaquino\/#author"},"image":{"@type":"ImageObject","url":"http:\/\/dbtimewizard.com.br\/blog\/wp-content\/uploads\/2016\/05\/oracle-licensing.jpg","@id":"http:\/\/dbtimewizard.com.br\/blog\/sql-profile-sera-que-posso-usar-esse-recurso\/#mainImage","width":1280,"height":856,"caption":"Oracle Licensing"},"primaryImageOfPage":{"@id":"http:\/\/dbtimewizard.com.br\/blog\/sql-profile-sera-que-posso-usar-esse-recurso\/#mainImage"},"datePublished":"2016-05-22T22:58:09-03:00","dateModified":"2020-09-21T19:23:54-03:00"},{"@type":"WebSite","@id":"http:\/\/dbtimewizard.com.br\/blog\/#website","url":"http:\/\/dbtimewizard.com.br\/blog\/","name":"DBTimeWizard","description":"Manter seus Bancos de Dados e Aplica\u00e7\u00f5es com alto desempenho \u00e9 o nosso neg\u00f3cio.","inLanguage":"pt-BR","publisher":{"@id":"http:\/\/dbtimewizard.com.br\/blog\/#organization"}}]},"og:locale":"pt_BR","og:site_name":"DBTimeWizard | Manter seus Bancos de Dados e Aplica\u00e7\u00f5es com alto desempenho \u00e9 o nosso neg\u00f3cio.","og:type":"article","og:title":"SQL Profile: Ser\u00e1 que posso usar esse recurso? | DBTimeWizard","og:description":"Como validar que a utiliza\u00e7\u00e3o da feature SQL Profile requer a licen\u00e7a das &quot;Options Diagnostic and Tuning Pack&quot;.","og:url":"http:\/\/dbtimewizard.com.br\/blog\/sql-profile-sera-que-posso-usar-esse-recurso\/","article:published_time":"2016-05-23T01:58:09+00:00","article:modified_time":"2020-09-21T22:23:54+00:00","twitter:card":"summary","twitter:title":"SQL Profile: Ser\u00e1 que posso usar esse recurso? | DBTimeWizard","twitter:description":"Como validar que a utiliza\u00e7\u00e3o da feature SQL Profile requer a licen\u00e7a das &quot;Options Diagnostic and Tuning Pack&quot;."},"aioseo_meta_data":{"post_id":"751","title":"SQL Profile: Ser\u00e1 que posso usar esse recurso? | #site_title","description":"Como validar que a utiliza\u00e7\u00e3o da feature SQL Profile requer a licen\u00e7a das &quot;Options Diagnostic and Tuning Pack&quot;.","keywords":[{"label":"SQL Profile","value":"SQL Profile"},{"label":"SQL Plan baseline","value":"SQL Plan baseline"},{"label":"license","value":"license"},{"label":"licen\u00e7a","value":"licen\u00e7a"},{"label":"Option Diagnostic Pack","value":"Option Diagnostic Pack"},{"label":"Option Tuning Pack","value":"Option Tuning Pack"}],"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-12-05 15:21:03","updated":"2026-03-19 14:32:24","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"http:\/\/dbtimewizard.com.br\/blog\" title=\"In\u00edcio\">In\u00edcio<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"http:\/\/dbtimewizard.com.br\/blog\/category\/sql-profile\/\" title=\"SQL Profile\">SQL Profile<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tSQL Profile: Ser\u00e1 que posso usar esse recurso?\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"In\u00edcio","link":"http:\/\/dbtimewizard.com.br\/blog"},{"label":"SQL Profile","link":"http:\/\/dbtimewizard.com.br\/blog\/category\/sql-profile\/"},{"label":"SQL Profile: Ser\u00e1 que posso usar esse recurso?","link":"http:\/\/dbtimewizard.com.br\/blog\/sql-profile-sera-que-posso-usar-esse-recurso\/"}],"_links":{"self":[{"href":"http:\/\/dbtimewizard.com.br\/blog\/wp-json\/wp\/v2\/posts\/751","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/dbtimewizard.com.br\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/dbtimewizard.com.br\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/dbtimewizard.com.br\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/dbtimewizard.com.br\/blog\/wp-json\/wp\/v2\/comments?post=751"}],"version-history":[{"count":20,"href":"http:\/\/dbtimewizard.com.br\/blog\/wp-json\/wp\/v2\/posts\/751\/revisions"}],"predecessor-version":[{"id":2217,"href":"http:\/\/dbtimewizard.com.br\/blog\/wp-json\/wp\/v2\/posts\/751\/revisions\/2217"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/dbtimewizard.com.br\/blog\/wp-json\/wp\/v2\/media\/752"}],"wp:attachment":[{"href":"http:\/\/dbtimewizard.com.br\/blog\/wp-json\/wp\/v2\/media?parent=751"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/dbtimewizard.com.br\/blog\/wp-json\/wp\/v2\/categories?post=751"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/dbtimewizard.com.br\/blog\/wp-json\/wp\/v2\/tags?post=751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}