
{"id":234,"date":"2018-06-01T18:13:16","date_gmt":"2018-06-01T21:13:16","guid":{"rendered":"http:\/\/rodrigosilvaesilva.com.br\/?p=234"},"modified":"2018-06-01T18:13:16","modified_gmt":"2018-06-01T21:13:16","slug":"ora-12516","status":"publish","type":"post","link":"https:\/\/rodrigosilvaesilva.com.br\/index.php\/2018\/06\/01\/ora-12516\/","title":{"rendered":"ORA-12516 TNS: listener can not find the available handler with the corresponding protocol stack!"},"content":{"rendered":"<pre class=\"lang:plsql decode:true \">ERROR : ORA-12516: TNS:listener could not find available handler with matching protocol stack<\/pre>\n<p><strong>Motivo:<\/strong> Limite de processos atingidos. N\u00e3o \u00e9 mais poss\u00edvel criar novas sess\u00f5es no banco.<\/p>\n<p>Verificando valor m\u00e1ximo de sess\u00f5es e processos do banco de dados<\/p>\n<pre class=\"lang:plsql decode:true \">SYS@ORCL &gt; select name, value from v$parameter where name in ('processes','sessions');\n\nNAME\n--------------------------------------------------------------------------------\nVALUE\n----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\nprocesses\n150\n\nsessions\n248\n<\/pre>\n<p>Verificando quantidade sess\u00f5es e processos ativos no momento do erro<\/p>\n<pre class=\"lang:plsql decode:true\">SYS@ORCL &gt; select resource_name, CURRENT_UTILIZATION from v$resource_limit where resource_name in ('processes','sessions');\n\nRESOURCE_NAME                  CURRENT_UTILIZATION\n------------------------------ -------------------\nprocesses                                      149\nsessions                                       153\n<\/pre>\n<p>Verificando processos setados.<\/p>\n<pre class=\"lang:plsql decode:true\"> SYS@ORCL &gt; show parameter process\n\nNAME                                 TYPE        VALUE\n------------------------------------ ----------- ------------------------------\naq_tm_processes                      integer     1\ncell_offload_processing              boolean     TRUE\ndb_writer_processes                  integer     1\ngcs_server_processes                 integer     0\nglobal_txn_processes                 integer     1\njob_queue_processes                  integer     1000\nlog_archive_max_processes            integer     4\nprocesses                            integer     150\nprocessor_group_name                 string\n<\/pre>\n<p>Visualizando os 2 selects juntos.<\/p>\n<pre class=\"lang:plsql decode:true \">select decode(name,'processes','Processos Configurados','sessions','Sess\u00f5es Configuradas') as \"CONFIGURACAO\",to_char(value) as \"VALOR\"\nfrom v$parameter where name in ('processes','sessions')\n \nUNION ALL\n \nselect decode(resource_name,'processes','Processos Ativos','sessions','Sess\u00f5es Ativas') as \"CONFIGURACAO\", \nto_char(CURRENT_UTILIZATION) as \"VALOR\"\nfrom v$resource_limit where resource_name in ('processes','sessions');<\/pre>\n<p><strong>Solu\u00e7\u00e3o:<\/strong> Aumente a quantidade de processos e sess\u00f5es do banco de Dados.<\/p>\n<p>Alterando o limite de processos e sessions<\/p>\n<p><strong>Processos<\/strong><\/p>\n<pre class=\"lang:plsql decode:true \">alter system set processes=300 scope=spfile;\n<\/pre>\n<p><strong>Sessions<\/strong><\/p>\n<pre class=\"lang:plsql decode:true  \">alter system set sessions=300 scope=spfile;<\/pre>\n<p>&nbsp;<\/p>\n<p>Resolvido!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ERROR : ORA-12516: TNS:listener could not find available handler with matching protocol stack Motivo: Limite de processos atingidos. N\u00e3o \u00e9 mais poss\u00edvel criar novas sess\u00f5es no banco. Verificando valor m\u00e1ximo de sess\u00f5es e processos do banco de dados SYS@ORCL &gt; select name, value from v$parameter where name in (&#8216;processes&#8217;,&#8217;sessions&#8217;); NAME &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; VALUE &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- processes 150&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[235,362,363],"class_list":["post-234","post","type-post","status-publish","format-standard","hentry","category-oracle","tag-ora-12516","tag-tns-listener-can-not-find-the-available-handler-with-the-corresponding-protocol-stack","tag-tns-listener-nao-pode-localizar-o-manipulador-disponivel-com-uma-pilha-de-arquivos-correspondentes"],"_links":{"self":[{"href":"https:\/\/rodrigosilvaesilva.com.br\/index.php\/wp-json\/wp\/v2\/posts\/234","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rodrigosilvaesilva.com.br\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rodrigosilvaesilva.com.br\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rodrigosilvaesilva.com.br\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rodrigosilvaesilva.com.br\/index.php\/wp-json\/wp\/v2\/comments?post=234"}],"version-history":[{"count":0,"href":"https:\/\/rodrigosilvaesilva.com.br\/index.php\/wp-json\/wp\/v2\/posts\/234\/revisions"}],"wp:attachment":[{"href":"https:\/\/rodrigosilvaesilva.com.br\/index.php\/wp-json\/wp\/v2\/media?parent=234"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rodrigosilvaesilva.com.br\/index.php\/wp-json\/wp\/v2\/categories?post=234"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rodrigosilvaesilva.com.br\/index.php\/wp-json\/wp\/v2\/tags?post=234"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}