<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4532985094872298557</id><updated>2024-10-07T02:28:58.126-03:00</updated><title type='text'>Dia a dia na T.I. [Vivência de um DBA]</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://raphaeloafernandes.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://raphaeloafernandes.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Raphael Fernandes</name><uri>http://www.blogger.com/profile/05900910831621641258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>35</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4532985094872298557.post-597594861071251311</id><published>2014-02-01T16:09:00.003-03:00</published><updated>2014-02-01T16:10:38.142-03:00</updated><title type='text'>ORAKILL - Matando processos Oracle em servidor com S.O. Windows.</title><content type='html'>&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; line-height: 150%;&quot;&gt;Muito
boa tarde, a todos!&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Hoje
gostaria de contar uma experiência que tive com o Oracle (na versão 10G)
rodando em um servidor com Windows Server 2003. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;A
situação foi mais ou menos a seguinte: um sistema consultava uma view, que
fazia referência a um banco de dados remoto (via DBLink). Devido a um problema,
o banco remoto ficou indisponível por algum tempo no momento de uma transação
do sistema. Com isso, a projeção dos dados não fora possível, e simplesmente o
banco não retornava nada e a aplicação ficava &quot;tentando&quot; consultar os
dados. Depois de um tempo, o banco de dados remoto retornou, porém a session
ainda estava tentando consumir a informação pela view. A uma altura dessa, o
usuário que disparou a requisição já tinha saído ou fechado o browser, ou qualquer
outra coisa, porém a session ficou executando no servidor de banco. Qualquer
outra consulta na view não retornava nada, ou melhor, ficava rodando por horas
sem concluir a projeção. Tentei recompilar a view e não conseguia. Criei uma
outra view idêntica a anterior (imaginando que o problema podia ser no banco
remoto), e consegui cria-la e usa-la normalmente. Então tentei matar a sessão
que estava gerando o lock no objeto (através do comando: ALTER SYSTEM KILL
SESSION &#39;sid,serial#&#39;;), mas não consegui sucesso.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;O que
precisava fazer estava claro, matar a session pois ela estava bloqueando o
objeto. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Para
fazer isso, precisei matar o processo/thread diretamente no servidor, que nesse
caso possuía um sistema operacional Windows Server.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Em um
ambiente UNIX, é possível ver todos os processos ativos no servidor, enquanto
que no WINDOWS, os processos Oracle ficam ativos no programa oracle.exe como
threads. No UNIX finalizamos uma sessão pelo SO com o comando: KILL -9 SPID.
Podemos saber o SPID através da consulta:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;select
s.username, s.osuser, s.program, s.sid, s.serial#, p.spid&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ansi-language: EN-US;&quot;&gt;from v$session s,v$process p &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ansi-language: EN-US;&quot;&gt;where s.paddr = p.addr;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Já
para Windows, para matar um processo usamos o comando ORAKILL, com a
seguinte sintaxe:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;b&gt;ORAKILL
SID THREAD&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Onde
SID: a instância Oracle;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;e
THREAD: a thread (spid da consulta acima) que deseja matar.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ansi-language: EN-US;&quot;&gt;Exemplo:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ansi-language: EN-US;&quot;&gt;&lt;b&gt;&lt;i&gt;orakill housework 902&lt;/i&gt;&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ansi-language: EN-US;&quot;&gt;Kill of thread id 902 in instance housework successfully
signalled.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Com
esse procedimento foi possível matar a session bloqueada, recompilar o objeto e
acessá-lo normalmente.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Para
auxiliar esse processo, o DBA também pode utilizar programas para matar a
session. Burleson indica alguns:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&amp;nbsp;- QuickSlice;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&amp;nbsp;- PStat;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&amp;nbsp;- Process Explorer.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Eu
particularmente gosto do Process Explorer pois é bem prático. É possível ver a
interface da ferramenta na figura abaixo.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipv71MUIhGbFauUaQYwesuQNJcX1Xi1eesqHiEa_fifxrTBtcR8D_N7wq7pl_SorpMbp9-P3JleDSr8NTYwRBjCgJ0Uj8cImRLfOheejWYE4G5Z2XfkXnKhRQKsqiqfRX1s6MK1dI5ymgZ/s1600/process_explorer.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipv71MUIhGbFauUaQYwesuQNJcX1Xi1eesqHiEa_fifxrTBtcR8D_N7wq7pl_SorpMbp9-P3JleDSr8NTYwRBjCgJ0Uj8cImRLfOheejWYE4G5Z2XfkXnKhRQKsqiqfRX1s6MK1dI5ymgZ/s1600/process_explorer.png&quot; height=&quot;204&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Interface do Process Explorer. (Fonte: Autor do documento)&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;É
possível fazer o download da ferramenta no site da &lt;a href=&quot;http://technet.microsoft.com/en-us/sysinternals//bb896653.aspx&quot; target=&quot;_blank&quot;&gt;Microsoft&lt;/a&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Bom
pessoal,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif; line-height: 150%;&quot;&gt;Por
hoje é só!&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Até a
próxima!&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ansi-language: EN-US;&quot;&gt;Fonte:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ansi-language: EN-US;&quot;&gt;BURLESON CONSULTING - ORAKILL TIPS. &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Disponível em:
http://fabalvesdba.blogspot.com.br/2011/12/orakill-o-assassino-de-processos-oracle.html.
Acessado: 01/02/2014.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;FABIO
ALVES - ORAKILL - O Assassino de processos oracle no windows. Disponível em:
http://www.dba-oracle.com/tips_oracle_orakill.htm. Acessado: 30/01/2014.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;DIOGO
NOMURA - Orakill. Disponível em:
http://dhnomura.blogspot.com.br/2009/02/orakill.html. Acessado: 01/02/2014.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ansi-language: EN-US;&quot;&gt;SCOTT STEPHENS - Oracle Tip: Kill runaway Oracle
processes on Windows with OraKill. &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Disponível
em:
http://www.techrepublic.com/article/oracle-tip-kill-runaway-oracle-processes-on-windows-with-orakill/.
Acessado: 01/02/2014.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://raphaeloafernandes.blogspot.com/feeds/597594861071251311/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://raphaeloafernandes.blogspot.com/2014/02/orakill-matando-processos-oracle-em.html#comment-form' title='1 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/597594861071251311'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/597594861071251311'/><link rel='alternate' type='text/html' href='http://raphaeloafernandes.blogspot.com/2014/02/orakill-matando-processos-oracle-em.html' title='ORAKILL - Matando processos Oracle em servidor com S.O. Windows.'/><author><name>Raphael Fernandes</name><uri>http://www.blogger.com/profile/05900910831621641258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipv71MUIhGbFauUaQYwesuQNJcX1Xi1eesqHiEa_fifxrTBtcR8D_N7wq7pl_SorpMbp9-P3JleDSr8NTYwRBjCgJ0Uj8cImRLfOheejWYE4G5Z2XfkXnKhRQKsqiqfRX1s6MK1dI5ymgZ/s72-c/process_explorer.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4532985094872298557.post-3934476218185695549</id><published>2013-08-22T14:16:00.000-03:00</published><updated>2013-08-22T14:16:36.148-03:00</updated><title type='text'>Heterogeneous Services – Conectividade entre Oracle e MS SQL Server</title><content type='html'>&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; line-height: 150%;&quot;&gt;Olá pessoal!&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; line-height: 150%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; line-height: 150%;&quot;&gt;Recentemente realizei uma atividade e vou
compartilhar com vocês. Surgiu uma demanda para mim para estabelecer conexão
entre uma base de dados Microsoft SQL Server 2000 e um Oracle 10G. Para atender
à demanda foi utilizada a tecnologia “Oracle Database Gateway for MS SQL Server&lt;/span&gt;”.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 150%;&quot;&gt;Existem algumas formas de se configurar o link
entre bases heterogêneas (bancos de dados distintos), e o que utilizei foi via
ODBC (Open Database Connectivity&lt;/span&gt;), conforme figura 1.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoi4rZucm03EOFFIjdx_aVBk8a2m0EbfwOJoUpKT9H8jGAT4AYaH7a0y7l8z9iWEVgn2QfJYQUfd7SZCgM-g1u3u_sMwDkR0aEY1HvxWaEUvtQ-7uhIW1v-MBqWUoT8916pRmohuWc62yr/s1600/oracle-db-gateway.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoi4rZucm03EOFFIjdx_aVBk8a2m0EbfwOJoUpKT9H8jGAT4AYaH7a0y7l8z9iWEVgn2QfJYQUfd7SZCgM-g1u3u_sMwDkR0aEY1HvxWaEUvtQ-7uhIW1v-MBqWUoT8916pRmohuWc62yr/s1600/oracle-db-gateway.gif&quot; height=&quot;310&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Figura 1 Oracle Gateway via ODBC. (Fonte: DATADIRECT)&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoCaption&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;Vou descrever o passo a passo que realizei
para configurar.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;1 – Configuração de um Data Source ODBC
(fonte de dados)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;Primeiramente foi necessário criar um OBDC
para o banco SQL Server. Esse passo envolveu outra instituição, que teve que
dar permissão ao IP do servidor Oracle para acessar o servidor MS SQL Server.
Além da liberação do IP, a empresa me passou um usuário e senha do banco remoto
para acesso e configuração.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;2 – Configuração do INIT.ORA&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;Após o estabelecimento de conectividade entre
os bancos via ODBC, foi realizada uma configuração no servidor Oracle. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;No diretório “&lt;b&gt;&lt;i&gt;&amp;lt;ORACLE_HOME&amp;gt;\hs\admin\&lt;/i&gt;&lt;/b&gt;
“ (vale lembrar que esse banco Oracle estava instalado em um servidor Windows Server
2003), provavelmente existe um arquivo chamado &lt;b&gt;inithsodbc.ora, &lt;/b&gt;que poderia ter sido utilizado, mas como precisava
acessar duas bases SQL Server distintas, criei outros init.ora e não alterei o
inithsodbc.ora. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;Criação dos arquivos .ORA:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;init&amp;lt;SID1&amp;gt;.ora&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;# This is a
sample agent init file that contains the HS parameters that are&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;# needed for an
ODBC Agent. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;# HS init
parameters&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;HS_FDS_CONNECT_INFO
= DS_ODBC_SQLSERVER1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;HS_FDS_TRACE_LEVEL
= off&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;# Environment
variables required for the non-Oracle system&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8.0pt; line-height: 150%;&quot;&gt;#set &amp;lt;envvar&amp;gt;=&amp;lt;value&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;init&amp;lt;SID2&amp;gt;.ora&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;# This is a
sample agent init file that contains the HS parameters that are&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;# needed for an
ODBC Agent. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;# HS init
parameters&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;HS_FDS_CONNECT_INFO
= DS_ODBC_SQLSERVER2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;HS_FDS_TRACE_LEVEL
= off&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;# Environment
variables required for the non-Oracle system&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8.0pt; line-height: 150%;&quot;&gt;#set &amp;lt;envvar&amp;gt;=&amp;lt;value&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;Existem outros parâmetros que podem ser
configurados nesse arquivo, a alteração de apenas esses atende a minha
necessidade. O parâmetro HS_FDS_CONNECT_INFO está setado para o data source
ODBC que criamos anteriormente no passo 1.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;É importante saber que o nome do arquivo deve
ser iniciado com “init”, e que o SID1 e SID2&amp;nbsp;
serão “interpretados” pela configuração do TNSNAMES.ORA e LISTENER.ORA.,
então merecem um cuidado especial.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;3 – Criação/alteração de LISTENER.ORA&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;No diretório “&lt;b&gt;&lt;i&gt;&amp;lt;ORACLE_HOME
&amp;gt;\network\admin\&lt;/i&gt;&lt;/b&gt;” foi necessária uma alteração no arquivo LISTENER.ORA.
No meu caso, criei um listener dedicado para esse serviço, para não impactar
nos demais.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;As alterações foram as listadas abaixo:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;(...)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;SID_LIST_LISTENERHS
=&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp; (SID_LIST =&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (SID_DESC =&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (SID_NAME = SID1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (ORACLE_HOME = &amp;lt;ORACLE_HOME&amp;gt; )&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (PROGRAM = hsodbc)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (SID_DESC =&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (SID_NAME = SID2)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (ORACLE_HOME = &amp;lt;ORACLE_HOME&amp;gt; )&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (PROGRAM = hsodbc)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp; )&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;(...)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;LISTENERHS =&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp; (DESCRIPTION_LIST =&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (DESCRIPTION =&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (ADDRESS = (PROTOCOL = TCP)(HOST = &amp;lt;xxxxxx
IP_HOST_ORACLE xxxxx&amp;gt;)(PORT = 1522))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp; )&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;(...)&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;Foi criado um listener chamado “&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%;&quot;&gt;LISTENERHS&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;” em
outra porta: 1522. Atentar para a lista de serviços que o listener vai atender
(&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%;&quot;&gt;SID_LIST_LISTENERHS&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;),
lá consta o SID1 e SID2, ambos referenciando o programa HSODBC.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;Para startar o lisntener novo, utilize o
comando:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;lsnrctl start &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;LISTENERHS&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%;&quot;&gt;Se houver necessidade, seguem os comandos para
verificar o status e parar o listener.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;lsnrctl
status &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;LISTENERHS&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;lsnrctl
stop &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;LISTENERHS&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;4 – Alteração no
TNSNAMES.ORA&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;No diretório “&lt;b&gt;&lt;i&gt;&amp;lt;ORACLE_HOME
&amp;gt;\network\admin\&lt;/i&gt;&lt;/b&gt;”, deve ser alterado o arquivo TNSNAMES.ORA, para
acresentar os novos acessos aos bancos SQL Server.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%;&quot;&gt;HS&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;_ODBC&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%;&quot;&gt;_SID1
=&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;(DESCRIPTION =&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (ADDRESS_LIST =&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (ADDRESS = (PROTOCOL = TCP)(HOST = &amp;lt;xxxxxx
IP_HOST_ORACLE xxxxx&amp;gt;)(PORT = 1522))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (CONNECT_DATA =&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (SID = SID1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (HS=OK)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp; )&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;HS_ODBC_SID2 =&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp; (DESCRIPTION =&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (ADDRESS_LIST =&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (ADDRESS = (PROTOCOL = TCP)(HOST = &amp;lt;xxxxxx
IP_HOST_ORACLE xxxxx&amp;gt;)(PORT = 1522))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (CONNECT_DATA =&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (SID = SID2)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (HS=OK)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%;&quot;&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;5 – Criação do DBLINK no Oracle Database&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;Foram criados dois dblinks privados em um
schema do Oracle que irá gerenciar (receber e tratar) as informações do MS SQL
Server.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;CREATE DATABASE
LINK &quot;BDLINK_SID1&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;CONNECT TO &quot;&amp;lt;user_bd_sqlserver_1&amp;gt;&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;IDENTIFIED BY &quot;&amp;lt;pass_bd_sqlserver_1&amp;gt;&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;USING ’ HS_ODBC_SID2&#39;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;CREATE DATABASE
LINK &quot; BDLINK_SID2&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;CONNECT TO &quot;&amp;lt;user_bd_sqlserver_2&amp;gt;&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;IDENTIFIED BY &quot;&amp;lt;pass_bd_sqlserver_2&amp;gt;&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;USING ‘HS_ODBC_SID2’;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;Lembrando que para os dblinks no Oracle,
foram criados com os mesmos usuário/senha que foi configurado na fonte de dados
ODBC, e o tns usado (USING) o que foi configurado no arquivo TNSNAMES.ORA.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;Pronto!&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;Agora é só testar:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;select * from
tabela_sqlserverSID1@DBLINK_SID1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;e&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%; mso-ansi-language: EN-US;&quot;&gt;select * from
tabela_sqlserverSID2@DBLINK_SID2;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;Bom, pessoal...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;É isso!&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;Espero ter ajudado no entendimento da
configuração usada por mim para resolver uma demanda de “comunicação” entre
bancos heterogêneos: Oracle 10g e MS SQL Server 2000.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;Até a próxima!&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; line-height: 150%;&quot;&gt;Referências:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;ORACLE -
Configuring Oracle Database Gateway for ODBC. &lt;/span&gt;&lt;span style=&quot;line-height: 150%;&quot;&gt;Disponível em:
http://docs.oracle.com/cd/B28359_01/gateways.111/b31043/configodbc.htm.
Acessado em: 21/08/2013.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 150%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;ORACLE - Oracle
Database Gateway. Installation and Configuration Guide. &lt;/span&gt;&lt;span style=&quot;line-height: 150%;&quot;&gt;11g
Release 1 (11.1) for Microsoft Windows. Disponível em:
http://docs.oracle.com/cd/B28359_01/gateways.111/b31043.pdf. Acessado em:
20/08/2013.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;BURLESON
CONSULTING - Creating Multiple Listeners Tips. &lt;/span&gt;&lt;span style=&quot;line-height: 150%;&quot;&gt;Disponível em http://www.dba-oracle.com/t_configure_multiple_listeners.htm.
Acessado em:21/08/2013.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;DATADIRECT
- Connect for ODBC with Oracle database. Gateway for ODBC (DG4ODBC). &lt;/span&gt;Disponível
em: http://www.datadirect.com/resources/odbc/oracle-database-gateway/index.html.
Acessado: 21/08/2013.&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://raphaeloafernandes.blogspot.com/feeds/3934476218185695549/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/08/heterogeneous-services-conectividade.html#comment-form' title='2 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/3934476218185695549'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/3934476218185695549'/><link rel='alternate' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/08/heterogeneous-services-conectividade.html' title='Heterogeneous Services – Conectividade entre Oracle e MS SQL Server'/><author><name>Raphael Fernandes</name><uri>http://www.blogger.com/profile/05900910831621641258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoi4rZucm03EOFFIjdx_aVBk8a2m0EbfwOJoUpKT9H8jGAT4AYaH7a0y7l8z9iWEVgn2QfJYQUfd7SZCgM-g1u3u_sMwDkR0aEY1HvxWaEUvtQ-7uhIW1v-MBqWUoT8916pRmohuWc62yr/s72-c/oracle-db-gateway.gif" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4532985094872298557.post-4217943816029717989</id><published>2013-07-30T22:21:00.001-03:00</published><updated>2013-07-30T22:21:34.803-03:00</updated><title type='text'>Reorganizando os dados em uma tabela no Oracle Database</title><content type='html'>Olá pessoal!&lt;br /&gt;
&lt;br /&gt;
No artigo de hoje falarei sobre um assunto que entendo como uma extensão do artigo &lt;a href=&quot;http://raphaeloafernandes.blogspot.com.br/2013/05/recriacao-de-inidces-rebuild-index.html&quot; target=&quot;_blank&quot;&gt;Recriação de índices - Rebuild Index&lt;/a&gt; que escrevi tempos atrás.&lt;br /&gt;
&lt;br /&gt;
Bom, o assunto é como efetuar uma reorganização dos dados de uma tabela em um banco de dados Oracle. Uma tabela pode se apresentar fragmentada, ou seja, com espaços não utilizados entre os espaços usados pela tabela.&lt;br /&gt;
&lt;br /&gt;
Li um artigo bastante interessante, onde o autor, Mohammad, afirma que existem quatro formas de se reorganizar tabelas fragmentadas:&lt;br /&gt;
1) alter table ... move + rebuild indexes&lt;br /&gt;
2) export / truncate / import&lt;br /&gt;
3) create table as select&lt;br /&gt;
4) dbms_redefinition&lt;br /&gt;
&lt;br /&gt;
No post de hoje vamos falar sobre a primeira alternativa.&lt;br /&gt;
&lt;br /&gt;
Para isso vamos criar uma tabela de teste, inserir dados e manipula-los com o objetivo de criarmos lacunas de espaços na tabela. depois vamos realizar uma reorganização dos dados do objeto visando o ganho de espaço, um melhor plano de execução das consultas contra a tabela, além de uma organização melhor dos dados.&lt;br /&gt;
&lt;br /&gt;
Primeiro vamos criar a tabela conforme script abaixo:&lt;br /&gt;
&lt;br /&gt;
CREATE TABLE tbl_reorg&lt;br /&gt;
(&lt;br /&gt;
&amp;nbsp; &amp;nbsp;codigo &amp;nbsp; &amp;nbsp; &amp;nbsp;NUMBER (8) NOT NULL,&lt;br /&gt;
&amp;nbsp; &amp;nbsp;descricao &amp;nbsp; VARCHAR2 (100) NOT NULL&lt;br /&gt;
);&lt;br /&gt;
&lt;br /&gt;
Agora vamos popular a tabela:&lt;br /&gt;
&lt;br /&gt;
BEGIN&lt;br /&gt;
&amp;nbsp; &amp;nbsp;FOR i IN REVERSE 1 .. 1000000&lt;br /&gt;
&amp;nbsp; &amp;nbsp;LOOP&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; INSERT INTO tbl_reorg (codigo, descricao) VALUES (i, &#39;registro da posição: &#39; || i);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;END LOOP;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;COMMIT;&lt;br /&gt;
END;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Verificando o tamanho da tabela após a inserção dos dados com o script abaixo. A projeção dos dados pode ser vista na figura 1.&lt;br /&gt;
SELECT SEGMENT_NAME, ROUND (SUM (bytes) / 1024 / 1024, 2) size_mb&lt;br /&gt;
&amp;nbsp; &amp;nbsp; FROM dba_segments&lt;br /&gt;
&amp;nbsp; &amp;nbsp;WHERE segment_name = &#39;TBL_REORG&#39;&lt;br /&gt;
GROUP BY SEGMENT_NAME;&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiK0PpCRa88uFZLA1xVx8XnUpt6PopHLvpYHe5wO8kdOUiR-mMujdr8dWZ5HJ7snnDgJUZiZax7Ez1KBWelxw5KtE0SVh7MwFOWD5lWcGlP4ElLdWtF41OPFzW2gMi93Vlz8GI27m_MZ7K/s1600/figura1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiK0PpCRa88uFZLA1xVx8XnUpt6PopHLvpYHe5wO8kdOUiR-mMujdr8dWZ5HJ7snnDgJUZiZax7Ez1KBWelxw5KtE0SVh7MwFOWD5lWcGlP4ElLdWtF41OPFzW2gMi93Vlz8GI27m_MZ7K/s1600/figura1.jpg&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Figura 1: Tamanho da tabela TBL_REORG. (Fonte: autoria própria)&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
Vamos coletar as estatísticas da tabela pois como pode ser observado pela consulta abaixo, não existem dados estatísticos sobre o objeto.&lt;br /&gt;
&lt;br /&gt;
SELECT owner,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;table_name,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;blocks,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;empty_blocks,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;num_rows,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TO_CHAR (last_analyzed, &#39;DD-MM-RRRR HH24:MI:SS&#39;) AS &quot;ANALYZE&quot;&lt;br /&gt;
&amp;nbsp; FROM dba_tables&lt;br /&gt;
&amp;nbsp;WHERE table_name = &#39;TBL_REORG&#39;;&lt;br /&gt;
&lt;br /&gt;
O script abaixo coleta as estatísticas da tabela.&lt;br /&gt;
exec dbms_stats.gather_table_stats (ownname=&amp;gt;&#39;HOUSEWORK&#39;,tabname=&amp;gt;&#39;TBL_REORG&#39;,estimate_percent=&amp;gt;30,method_opt=&amp;gt;&#39;FOR ALL COLUMNS SIZE AUTO&#39;,degree=&amp;gt;6);&lt;br /&gt;
&lt;br /&gt;
Vale lembrar que existem outras formas de coleta de estatísticas. Falei um pouco sobre isso no artigo &lt;a href=&quot;http://raphaeloafernandes.blogspot.com.br/2013/03/estatisticas-no-banco-de-dados-oracle.html&quot; target=&quot;_blank&quot;&gt;Estatísticas no banco de dados Oracle&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Agora vamos apagar alguns dados para gerar os espaços em branco na tabela.&lt;br /&gt;
delete from tbl_reorg where codigo between 10000 and 20000;&lt;br /&gt;
delete from tbl_reorg where codigo between 50000 and 200000;&lt;br /&gt;
delete from tbl_reorg where codigo between 400000 and 700000;&lt;br /&gt;
delete from tbl_reorg where codigo &amp;gt; 900000;&lt;br /&gt;
commit;&lt;br /&gt;
&lt;br /&gt;
Vamos verificar o tamanho da tabela após algumas exclusões. O resultado pode ser visto na figura 2.&lt;br /&gt;
SELECT SEGMENT_NAME, ROUND (SUM (bytes) / 1024 / 1024, 2) size_mb&lt;br /&gt;
&amp;nbsp; &amp;nbsp; FROM dba_segments&lt;br /&gt;
&amp;nbsp; &amp;nbsp;WHERE segment_name = &#39;TBL_REORG&#39;&lt;br /&gt;
GROUP BY SEGMENT_NAME;&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBSclU_KS_9ZHS07huZ5fmduoX2WWbedKE-jJU6moNyuNtxH5RnOY5gFA0Bptf_4nWIcmdz6H6NqT5thWY2LozT9UFWKBZ4FNCFgn0TTLIQym8ojrK7fTLLZ_zCOSmVnLFizq3JC_7UCf9/s1600/figura1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBSclU_KS_9ZHS07huZ5fmduoX2WWbedKE-jJU6moNyuNtxH5RnOY5gFA0Bptf_4nWIcmdz6H6NqT5thWY2LozT9UFWKBZ4FNCFgn0TTLIQym8ojrK7fTLLZ_zCOSmVnLFizq3JC_7UCf9/s1600/figura1.jpg&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Figura 2: Tamanho da tabela TBL_REORG após exclusão de alguns registros. (Fonte: autoria própria)&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
Bom...&lt;br /&gt;
&lt;br /&gt;
Para resolvermos esse problema de fragmentação, basta reconstruir o mapa binário da tabela, para isso vamos usar o comando MOVE.&lt;br /&gt;
&lt;br /&gt;
Não vamos mover a tabela para outra tablespace, vamos move-la na própria tablespace com o script abaixo:&lt;br /&gt;
ALTER TABLE tbl_reorg MOVE;&lt;br /&gt;
&lt;br /&gt;
Verificando novamente o tamanho da tabela, &amp;nbsp;se tem o resultado exibido na figura 3.&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEsvMPKL9KK0YxRUXW9jmFhKxMVxotIz92_rztOQTW6SpzVRZZd_-mBtz-yrnbzjCnSHXhWzgN-Bm6FkKD0yniGSJcBZzGm257MMXPyc2hyphenhyphenZaHWX2b3Kmg-rgACjSaTjy_Nd9AiiqsBtJs/s1600/figura2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEsvMPKL9KK0YxRUXW9jmFhKxMVxotIz92_rztOQTW6SpzVRZZd_-mBtz-yrnbzjCnSHXhWzgN-Bm6FkKD0yniGSJcBZzGm257MMXPyc2hyphenhyphenZaHWX2b3Kmg-rgACjSaTjy_Nd9AiiqsBtJs/s1600/figura2.jpg&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Figura 3: Tamanho da tabela TBL_REORG após exclusão de dados e MOVE. (Fonte: autoria própria)&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
Após a execução do MOVE, a tabela foi reorganizada e o tamanho da tabela caiu de 42MB para 19MB, fazendo apenas uma reconstrução dos extents da tabela.&lt;br /&gt;
&lt;br /&gt;
É interessante também realizar uma nova coleta das estatísticas da tabela após o MOVE, para que seja &quot;traçado&quot; um plano de execução mais otimizado de consultas contra o objeto.&lt;br /&gt;
&lt;br /&gt;
exec dbms_stats.gather_table_stats (ownname=&amp;gt;&#39;HOUSEWORK&#39;,tabname=&amp;gt;&#39;TBL_REORG&#39;,estimate_percent=&amp;gt;30,method_opt=&amp;gt;&#39;FOR ALL COLUMNS SIZE AUTO&#39;,degree=&amp;gt;6);&lt;br /&gt;
&lt;br /&gt;
Pois é pessoal...&lt;br /&gt;
&lt;br /&gt;
Esse foi um dos métodos para resolver o problema da fragmentação de uma tabela no banco de dados, vale lembrar que essa situação pode causar perda de performance em um sistema de banco de dados então vale a pena ter um cuidado especial sobre o assunto.&lt;br /&gt;
&lt;br /&gt;
Bom, é isso aí!&lt;br /&gt;
&lt;br /&gt;
Até a próxima!&lt;br /&gt;
&lt;br /&gt;
Referências:&lt;br /&gt;
&lt;br /&gt;
Reis, Bruno - How to do reorg in a table in Oracle Database / Como fazer reorg em uma tabela no Banco de Dados Oracle. Disponível em: http://brunors.com/how-to-do-reorg-in-a-table-in-oracle-database-como-fazer-reorg-em-uma-tabela-no-banco-de-dados-oracle/. Acessado: 29/07/2013.&lt;br /&gt;
&lt;br /&gt;
Almeida, Rodrigo - Entendendo a Marca d’água e fragmentação de tabelas. Disponível em : http://profissionaloracle.com.br/blogs/rodrigoalmeida/2008/10/07/entendendo-a-marca-dagua-e-fragmentacao-de-tabelas/. Acessado: 29/07/2013.&lt;br /&gt;
&lt;br /&gt;
Taj, Mohammad - Table Fragmentation. Disponível em: http://dbataj.blogspot.com.br/2007/07/table-fragmentation.html. Acessado: 29/07/2013.</content><link rel='replies' type='application/atom+xml' href='http://raphaeloafernandes.blogspot.com/feeds/4217943816029717989/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/07/reorganizando-os-dados-em-uma-tabela-no.html#comment-form' title='2 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/4217943816029717989'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/4217943816029717989'/><link rel='alternate' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/07/reorganizando-os-dados-em-uma-tabela-no.html' title='Reorganizando os dados em uma tabela no Oracle Database'/><author><name>Raphael Fernandes</name><uri>http://www.blogger.com/profile/05900910831621641258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiK0PpCRa88uFZLA1xVx8XnUpt6PopHLvpYHe5wO8kdOUiR-mMujdr8dWZ5HJ7snnDgJUZiZax7Ez1KBWelxw5KtE0SVh7MwFOWD5lWcGlP4ElLdWtF41OPFzW2gMi93Vlz8GI27m_MZ7K/s72-c/figura1.jpg" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4532985094872298557.post-3779850577760537492</id><published>2013-07-22T10:40:00.001-03:00</published><updated>2013-07-22T10:51:23.183-03:00</updated><title type='text'>Tirinhas de humor sobre Banco de Dados.</title><content type='html'>Olá pessoal,&lt;br /&gt;
&lt;br /&gt;
Enquanto termino de escrever um material para postar, seguem algumas tirinhas do site &lt;a href=&quot;http://vidadeprogramador.com.br/&quot; target=&quot;_blank&quot;&gt;Vida de Programador&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Essas são sobre banco de dados, mas tem várias outras bastante interessante. Acessem lá e confiram!&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRln4pCWFQgEHcA_jKzG1-VkJmKn4s7eRp91bZOrY50Vrk_8CvF-U7g-G1xW1tN3uLtWt2ZpMjcDYCszn05ehMvyAXEPsxsz5lERjqX1sJq4_8wr6S-bLnNAT6CXmmp1RkXHfCPoPMNJTf/s1600/seguranca_informacao.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRln4pCWFQgEHcA_jKzG1-VkJmKn4s7eRp91bZOrY50Vrk_8CvF-U7g-G1xW1tN3uLtWt2ZpMjcDYCszn05ehMvyAXEPsxsz5lERjqX1sJq4_8wr6S-bLnNAT6CXmmp1RkXHfCPoPMNJTf/s1600/seguranca_informacao.png&quot; height=&quot;320&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Segurança da informação é tudo! (Fonte: Vida de Programador)&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWRqZMpjt8fbBuzGlVzpec6yKAlTfuFj1gpw1nd-dM_Jj_Gp8EYM2Ta3NAmE9NK9MSbqXq_5jWTUz5WAnrLORjeT2yHrWkOH95DlZFPmCV4ascIgJVjNWKU9CjyHRfuz5u-ckpNUuM1PiD/s1600/sid_banco.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWRqZMpjt8fbBuzGlVzpec6yKAlTfuFj1gpw1nd-dM_Jj_Gp8EYM2Ta3NAmE9NK9MSbqXq_5jWTUz5WAnrLORjeT2yHrWkOH95DlZFPmCV4ascIgJVjNWKU9CjyHRfuz5u-ckpNUuM1PiD/s1600/sid_banco.png&quot; height=&quot;320&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;SID do BD? Quem é esse? (Fonte: Vida de Programador)&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisv9hb3E6YqBcYGFDPtAZMDRy9vSVAxfwVxdm8fY4YO4tBPRrt-jNGk3lRVEwBRTsWYXlFRVdIK-XhCLxQbDleMTrjSXu3ymhYYXhJ7bvJqvNJ7ogwOWAR_0-XaeQMRbZ9YKGW9zbsdMhQ/s1600/otimizacao_banco.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisv9hb3E6YqBcYGFDPtAZMDRy9vSVAxfwVxdm8fY4YO4tBPRrt-jNGk3lRVEwBRTsWYXlFRVdIK-XhCLxQbDleMTrjSXu3ymhYYXhJ7bvJqvNJ7ogwOWAR_0-XaeQMRbZ9YKGW9zbsdMhQ/s1600/otimizacao_banco.png&quot; height=&quot;320&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Otimizando o banco de dados. (Fonte: Vida de Programador)&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
Fonte:&lt;br /&gt;
&lt;br /&gt;
Vida de programador /*Linhas de código da vida de um programador*/ - Acesso à base de dados. Disponível em: http://vidadeprogramador.com.br/2013/05/02/acesso-a-base-de-dados/. Acessado em: 21/07/2013.&lt;br /&gt;
&lt;br /&gt;
Vida de programador /*Linhas de código da vida de um programador*/ - SID do Banco. Disponível em: http://vidadeprogramador.com.br/2012/07/01/sid-do-banco/. Acessado em: 21/07/2013.&lt;br /&gt;
&lt;br /&gt;
Vida de programador /*Linhas de código da vida de um programador*/ - Otimização do BD. Disponível em: http://vidadeprogramador.com.br/2012/08/03/otimizacao-do-bd/. Acessado em: 21/07/2013.</content><link rel='replies' type='application/atom+xml' href='http://raphaeloafernandes.blogspot.com/feeds/3779850577760537492/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/07/tirinhas-de-humor-sobre-banco-de-dados.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/3779850577760537492'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/3779850577760537492'/><link rel='alternate' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/07/tirinhas-de-humor-sobre-banco-de-dados.html' title='Tirinhas de humor sobre Banco de Dados.'/><author><name>Raphael Fernandes</name><uri>http://www.blogger.com/profile/05900910831621641258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRln4pCWFQgEHcA_jKzG1-VkJmKn4s7eRp91bZOrY50Vrk_8CvF-U7g-G1xW1tN3uLtWt2ZpMjcDYCszn05ehMvyAXEPsxsz5lERjqX1sJq4_8wr6S-bLnNAT6CXmmp1RkXHfCPoPMNJTf/s72-c/seguranca_informacao.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4532985094872298557.post-2448420804989062140</id><published>2013-07-03T09:11:00.001-03:00</published><updated>2013-07-03T09:14:44.157-03:00</updated><title type='text'>Geração de relatório Excel no SQL*Plus</title><content type='html'>Olá pessoal.&lt;br /&gt;
&lt;br /&gt;
Hoje vou falar sobre algo que pode ser bem interessante para administradores de banco de dados.&lt;br /&gt;
&lt;br /&gt;
Muitas vezes nós DBA&#39;s recebemos solicitações para geração de relatórios em ambiente de produção (pelo menos onde trabalho isso é muito comum).&lt;br /&gt;
&lt;br /&gt;
A questão é que sempre utilizamos o SQL*Plus para solicitações dos analistas e, na maioria das vezes, é desejado que a projeção da informação seja salva em planilha.&lt;br /&gt;
&lt;br /&gt;
Para resolver essa situação, podemos utilizar um tipo de saída do SQL*Plus que torna o layout do arquivo gerado mais &quot;apresentável&quot;. Na verdade, a projeção será gerada dentro de um código HTML, mas podemos gerá-lo como um XLS por se tratar de uma estrutura em tabelas através do &lt;b&gt;markup html&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
O comando, em uma forma bem básica, é o seguinte:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;i&gt;set feed off markup html on&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;i&gt;spool c:\temp\relatorio.xls&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;i&gt;SELECT * FROM hr.employees;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;i&gt;spool off&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;i&gt;set markup html off&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
O arquivo gerado pode ser aberto no MS-Excel pois o spool foi para um &quot;.xls&quot;.&lt;br /&gt;
&lt;br /&gt;
Para se ter uma melhora na apresentação do arquivo, pode-se editá-lo retirando a consulta executada (que deve aparecer no início do arquivo) e o comando &quot;spool off&quot; (que deve aparecer no final do arquivo).&lt;br /&gt;
&lt;br /&gt;
Bom pessoal, fica a dica!&lt;br /&gt;
&lt;br /&gt;
Até a próxima.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;
Referências:&lt;br /&gt;
&lt;br /&gt;
Oracle – Generating HTML Reports from SQL*Plus. Disponível em: http://docs.oracle.com/cd/B13789_01/server.101/b12170/ch8.htm. Acessado: 102/07/2013.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://raphaeloafernandes.blogspot.com/feeds/2448420804989062140/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/07/geracao-de-relatorio-excel-no-sqlplus.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/2448420804989062140'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/2448420804989062140'/><link rel='alternate' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/07/geracao-de-relatorio-excel-no-sqlplus.html' title='Geração de relatório Excel no SQL*Plus'/><author><name>Raphael Fernandes</name><uri>http://www.blogger.com/profile/05900910831621641258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4532985094872298557.post-5070090825468891970</id><published>2013-06-12T20:17:00.000-03:00</published><updated>2013-06-12T20:17:11.766-03:00</updated><title type='text'>Vídeo: Desenvolvedores vs. DBA</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
Meus caros,&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Assisti a esse vídeo e achei muito engraçado e interessante.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Legal é que mesmo sendo uma edição, ficou muito bem casado com o texto, e com a realidade do dia-a-dia de um DBA, inclusive fazendo críticas à equipe de desenvolvimento (frequentes na vivência do profissional de banco).&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Assistam e digam se não é bem real!&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/5kDc-5bbOOQ?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://raphaeloafernandes.blogspot.com/feeds/5070090825468891970/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/06/video-desenvolvedores-vs-dba.html#comment-form' title='1 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/5070090825468891970'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/5070090825468891970'/><link rel='alternate' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/06/video-desenvolvedores-vs-dba.html' title='Vídeo: Desenvolvedores vs. DBA'/><author><name>Raphael Fernandes</name><uri>http://www.blogger.com/profile/05900910831621641258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4532985094872298557.post-2415277698169712458</id><published>2013-06-10T22:23:00.001-03:00</published><updated>2013-06-10T22:24:24.947-03:00</updated><title type='text'>Arquitetura Oracle Database 11g - Estrutura de memória</title><content type='html'>Pessoal,&lt;br /&gt;
&lt;br /&gt;
Estou de férias do trabalho e estou aproveitando para resolver algumas coisas e viajar para descansar, por isso estou com pouco tempo para desenvolver algo para o Blog.&lt;br /&gt;
&lt;br /&gt;
Bom...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Estava pretendendo escrever sobre a estrutura de memória do banco de dados Oracle. Foi então que em busca de material para referência, encontrei um vídeo que explica de forma muito interessante o assunto. Não gostei muito do áudio, mas achei o conteúdo legal.&lt;br /&gt;
&lt;br /&gt;
Vejam e tirem suas próprias conclusões.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;315&quot; src=&quot;http://www.youtube.com/embed/AEufxhXHuZI&quot; width=&quot;560&quot;&gt;&lt;/iframe&gt;

&lt;br /&gt;
&lt;br /&gt;
Valeu pessoal!!&lt;br /&gt;
&lt;br /&gt;
Até a próxima...&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://raphaeloafernandes.blogspot.com/feeds/2415277698169712458/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/06/arquitetura-oracle-database-11g.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/2415277698169712458'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/2415277698169712458'/><link rel='alternate' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/06/arquitetura-oracle-database-11g.html' title='Arquitetura Oracle Database 11g - Estrutura de memória'/><author><name>Raphael Fernandes</name><uri>http://www.blogger.com/profile/05900910831621641258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/AEufxhXHuZI/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4532985094872298557.post-6840892335072140534</id><published>2013-05-27T12:22:00.001-03:00</published><updated>2013-05-27T13:21:26.421-03:00</updated><title type='text'>Bilionários da T.I.</title><content type='html'>&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;
Muito bom dia a todos!&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;
Saiu na semana passada (se não estou enganado, no dia 24/05/2013) uma
lista atualizada das pessoas mais ricas do mundo. Essa pesquisa foi elaborada
pela Bloomberg. Como os assuntos abordados nesse blog são sobre T.I.
(Tecnologia da Informação), abstrai dessa lista apenas os bilionários dessa
área.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;
É importante salientar que Larry Ellison (da Oracle) está no TOP 10 da
lista de bilionários. Muito justo! (hehehe)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;
Bom...&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;
Segue a lista dos bilionários da T.I.:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0jdnqKSlav2D2ib0hyfvwog_6tkWkv0kb_GAt2-3C0pN1HZdLQ4WAJ6yxRGSLgOjq0Hpyjcsf72r41LoG4UMw9cS1QmcfVudnDKsVBhDGCIfFKlOZvWziF6H9SJ6Q6hDUKwFQsMs2jdVj/s1600/bilionarios_ti.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0jdnqKSlav2D2ib0hyfvwog_6tkWkv0kb_GAt2-3C0pN1HZdLQ4WAJ6yxRGSLgOjq0Hpyjcsf72r41LoG4UMw9cS1QmcfVudnDKsVBhDGCIfFKlOZvWziF6H9SJ6Q6hDUKwFQsMs2jdVj/s1600/bilionarios_ti.png&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: x-small; line-height: 24px;&quot;&gt;Bilionários da T.I. (Fonte&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 24px;&quot;&gt;: Bloomberg)&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 150%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;
1) Bill Gates (U$ 72.4 Bilhões) - cofundador da Microsoft #1&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;
2) Larry Ellison (U$ 41 Bilhões) - fundador da Oracle #8&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;
3) Larry Page (U$ 25.5 Bilhões) - cofundador e CEO do Google #20&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;
4) Sergey Brin (U$ 25.2 Bilhões) - cofundador do Google #23&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;
5) Jeff Bezos (U$ 24.5 Bilhões) - fundador e presidente da Amazon #24&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;
6) Steve Ballmer (U$ 16.7 Bilhões) - CEO da Microsoft #44&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;
7) Paul Allen (U$ 15.3 Bilhões) - cofundador da Microsoft #54&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;
8) Michael Dell (U$ 14.8 Bilhões) fundador da Dell #59&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;
9) Jim Goodnight (U$ 12.3 Bilhões) - CEO da SAS Institute #80&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;
10) Mark Zuckerberg (U$ 12 Bilhões) - cofundador e CEO do Facebook #87&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;
11) Lee Kun Hee (U$ 11 Bilhões) - presidente da Samsung Electronics #94&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;
12) Azim Premji (U$ 11 Bilhões) - presidente da Wipro #96&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;
Por hoje é só, pessoal!&lt;br /&gt;
É melhor seguir trabalhando que um dia chegaremos lá!! (hehehe)&lt;br /&gt;
Até a próxima.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;
Referências:&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;Bloomberg. &lt;/span&gt;Disponível
em: &lt;a href=&quot;http://www.bloomberg.com/billionaires/2013-05-24/aaa&quot;&gt;http://www.bloomberg.com/billionaires/2013-05-24/aaa&lt;/a&gt;.
Acessado: 26/05/2013.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://raphaeloafernandes.blogspot.com/feeds/6840892335072140534/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/05/bilionarios-da-ti.html#comment-form' title='1 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/6840892335072140534'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/6840892335072140534'/><link rel='alternate' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/05/bilionarios-da-ti.html' title='Bilionários da T.I.'/><author><name>Raphael Fernandes</name><uri>http://www.blogger.com/profile/05900910831621641258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0jdnqKSlav2D2ib0hyfvwog_6tkWkv0kb_GAt2-3C0pN1HZdLQ4WAJ6yxRGSLgOjq0Hpyjcsf72r41LoG4UMw9cS1QmcfVudnDKsVBhDGCIfFKlOZvWziF6H9SJ6Q6hDUKwFQsMs2jdVj/s72-c/bilionarios_ti.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4532985094872298557.post-8799473369785787602</id><published>2013-05-21T22:17:00.000-03:00</published><updated>2013-05-21T22:17:06.820-03:00</updated><title type='text'>Um pouco de conceitos da Oracle sobre pfile e spfile</title><content type='html'>&lt;span style=&quot;line-height: 150%; text-align: justify;&quot;&gt;Olá pessoal!&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
O processo para inicialização de uma instância no banco
Oracle é feito a partir da leitura do seu arquivo de inicialização, e os
tipos desse arquivo é o assunto que vou abordar hoje. &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
Existem dois tipos de arquivos de inicialização para
o Oracle: o PFILE (que é um arquivo texto conhecido também por init.ora) e o
SPFILE que é um arquivo binário de parâmetros do servidor (conhecido como
spfile.ora).&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
No post de hoje vou falar sobre alguns conceitos
relacionados a esses arquivos, porém não vou entrar no detalhe sobre
parâmetros, ou pelo menos não é minha ideia, pois o intuito desse artigo é
falar sobre o que são esses arquivos, como e quando são usados.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;b&gt;O PFILE&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
Esse arquivo armazena os parâmetros de inicialização
para &quot;levantar&quot; uma instância Oracle. Através desse arquivo, o DBA
pode controlar a memória em seu banco de dados Oracle, atribuindo valores para
os parâmetros de memória no arquivo INIT.ORA para o seu sistema. A localização
deste arquivo varia, dependendo do sistema operacional em questão. Por exemplo:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&amp;nbsp;- No UNIX ou
Linux, o init.ora poderá ser encontrado em: $ORACLE_HOME/dbs&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&amp;nbsp;- No Windows,
o diretório será: ORACLE_HOME/database&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
É possível que em alguns sistemas, exista mais de um
arquivo init.ora, o que possibilita ter diferentes bases de dados com seus
próprios parâmetros. &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
Por exemplo, initDESENV.ora pode controlar o banco de
dados de desenvolvimento, initHML.ora o banco de dados de homologação, e
initPROD.ora banco de dados de produção; ou ainda diferentes ambientes, como:
initRH.ora, initFIN.ora, initADM.ora...&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
Como o PFILE é um arquivo de texto puro, ele pode ser
editado no VI do UNIX ou no Notepad do Windows.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
Para saber quais parâmetros podem ser alterados no
PFILE, recomendo a leitura dos artigos: “INIT.ORA Parameters A-L” e “INIT.ORA
Parameters M-Z” da&amp;nbsp;TOAD WORLD.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;b&gt;O SPFILE (server
parameter file)&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
O arquivo SPFILE é uma versão binária do PFILE. O
SPFILE não pode ser alterado diretamente, porém através do comando &lt;i&gt;ALTER SYSTEM&lt;/i&gt; é possível mudar alguns de seus
parâmetros dinamicamente, ou seja, sem a necessidade de reiniciar o banco de
dados. Para saber quais parâmetros podem ser alterados dinamicamente, pode-se
executar uma consulta em uma view do schema SYS, conforme script abaixo:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;b&gt;SELECT * FROM
V$PARAMETER;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;line-height: 150%;&quot;&gt;O SPFILE possui
algumas vantagens em relação ao PFILE, pois a Oracle criou procedimentos de
otimização automática do banco baseadas no uso do SPFILE.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
É possível verificar se existe o SPFILE com o
seguinte comando:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;SHOW PARAMETER SPFILE;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
Para criar o SPFILE a partir do PFILE, pode-se
utilizar os seguintes comandos:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;CREATE SPFILE FROM PFILE;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;ou&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;CREATE SPFILE FROM
PFILE=’/U01/APP/ORACLE/PRODUCT/11.2.0/DBHOME_1/DBS/initSID.ORA’&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;ou&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;CREATE SPFILE=’/U01/APP/ORACLE/PRODUCT/11.2.0/DBHOME_1/DBS/spfileSID.ORA’
FROM PFILE=’/U01/APP/ORACLE/PRODUCT/11.2.0/DBHOME_1/DBS/initSID.ORA’&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
Após de qualquer um desses comandos, para efetivar a
criação, é necessário reiniciar o banco&lt;span style=&quot;line-height: 150%;&quot;&gt;:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;b&gt;SHUTDOWN
IMMEDIATE;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;b&gt;STARTUP&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
Pode existir a necessidade, devido a alguma mudança dinâmica
dos parâmetros do banco, que o DBA necessite gerar um novo init.ora (PFILE), a
partir do SPFILE. O comando para realizar essa criação é:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;CREATE PFILE FROM SPFILE;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
Executando esse script, será criado um PFILE chamado
init.ora no diretório $ORACLE_HOME/dbs (Linux/Unix) ou no $ORACLE_HOME/database
(Windows).&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
É possível também que o DBA especifique um diretório
de sua preferência para gravar o PFILE, basta executar comando: &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;CREATE PFILE=C:/TEMP/initTESTE.ORA
FROM SPFILE;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
Caso seja necessário iniciar um banco Oracle com o
PFILE pode-se utilizar o seguinte comando:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;STARTUP OPEN
PFILE=&#39;/OPT/ORACLE/PRODUCT/9IR2/DBS/initSID.ORA&#39;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
Uma consulta interessante para saber se sua instância
está utilizando o SPFILE ou PFILE, é apresentada abaixo:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;SELECT DECODE (VALUE, NULL, &#39;PFILE&#39;,
&#39;SPFILE&#39;) &quot;INIT FILE TYPE&quot; FROM SYS.V_$PARAMETER WHERE NAME =
&#39;SPFILE&#39;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
É importante saber que para iniciar uma instância
Oracle, os parâmetros de inicialização são buscados nos diretórios devidos
(mencionados anteriormente com a variação entre UNIX e WINDOWS), na seguinte
ordem: &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; text-indent: 35.4pt;&quot;&gt;
1.&amp;nbsp;
spfileSID.ora&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; text-indent: 35.4pt;&quot;&gt;
2.&amp;nbsp;
spfile.ora&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; text-indent: 35.4pt;&quot;&gt;
3.&amp;nbsp;
initSID.ora&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; text-indent: 35.4pt;&quot;&gt;
4.&amp;nbsp;
init.ora &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;o:p&gt;Bom pessoal, por hoje é só!&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;o:p&gt;Espero ter ajudado a entender um pouco sobre arquivos de inicialização no banco Oracle.&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;o:p&gt;Sinta-se a vontade para deixar seu comentário com críticas, sugestões ou elogios sobre os artigos. Isso me ajuda a saber se agrado ou não com meus artigos e seus temas.&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
Grande abraço e até a próxima!&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
Referências:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
ORACLE HOME. Disponível em:
http://www.oracle-home.ro/Oracle_Database/Maintenance/PFILEvsSPFILE.html.
Acessado em: 20/05/2013.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
Carvalho, Pedro - Arquivos de Parâmetros PFILE e
SPFILE do Oracle. Disponível em:
http://www.pedrofcarvalho.com.br/PDF/ORACLE_SPFILE_PFILE.pdf. Acessado em:
20/05/2013.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;Oracle
- Starting Up a Database. &lt;/span&gt;Disponível em:
http://docs.oracle.com/cd/B28359_01/server.111/b28310/start001.htm. Acessado
em: 21/05/2013.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
Oracle - Specifying Initialization Parameters.
Disponível em:
http://docs.oracle.com/cd/B28359_01/server.111/b28310/create005.htm. Acessado
em: 21/05/2013.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;TOAD
WORLD - INIT.ORA Parameters A-L. &lt;/span&gt;INIT.ORA Disponível em:
http://www.toadworld.com/KNOWLEDGE/KnowledgeXpertforOracle/tabid/648/TopicID/ARC513A/Default.aspx.
Acessado em: 21/05/2013.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;TOAD
WORLD - INIT.ORA Parameters M-Z. &lt;/span&gt;Disponível em:
http://www.toadworld.com/KNOWLEDGE/KnowledgeXpertforOracle/tabid/648/TopicID/ARC513B/Default.aspx.
Acessado em: 21/05/2013.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;TOAD
WORLD - INIT.ORA Parameters. &lt;/span&gt;Disponível em:
http://www.toadworld.com/KNOWLEDGE/KnowledgeXpertforOracle/tabid/648/TopicID/ARC513/Default.aspx.
Acessado em: 21/05/2013.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;TOAD
WORLD - Creating an SPFILE. &lt;/span&gt;Disponível em: http://www.toadworld.com/KNOWLEDGE/KnowledgeXpertforOracle/tabid/648/TopicID/SPF1/Default.aspx.
Acessado em: 21/05/2013.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://raphaeloafernandes.blogspot.com/feeds/8799473369785787602/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/05/um-pouco-de-conceitos-da-oracle-sobre.html#comment-form' title='2 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/8799473369785787602'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/8799473369785787602'/><link rel='alternate' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/05/um-pouco-de-conceitos-da-oracle-sobre.html' title='Um pouco de conceitos da Oracle sobre pfile e spfile'/><author><name>Raphael Fernandes</name><uri>http://www.blogger.com/profile/05900910831621641258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4532985094872298557.post-8892635159287937520</id><published>2013-05-14T21:55:00.002-03:00</published><updated>2013-05-16T15:45:54.288-03:00</updated><title type='text'>Recriação de índices - Rebuild Index</title><content type='html'>&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Olá pessoal!&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Hoje vou falar um pouco sobre rebuild de índice no
Oracle.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
No dia 04/04/2013 postei uma situação que eu tinha
vivido no trabalho. O nome do post foi: &quot;&lt;a href=&quot;http://raphaeloafernandes.blogspot.com.br/2013/04/recuperar-uma-instancia-oracle-apos.html&quot; target=&quot;_blank&quot;&gt;Recuperar uma instância Oracleapós a exclusão acidental de um datafile&lt;/a&gt;&quot;.
Em uma passagem do que escrevi, cito um comando (ALTER TABLE OWNER.TBL_TABELA
MOVE TABLESPACE TBS50MB) que move uma tabela para outra tablespace (ou a mesma
tablespace), porém em contrapartida torna os índices da tabela em questão
&quot;inutilizável&quot;, e é sobre isso que falarei agora!&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Quando um índice está com status inutilizável
(UNUSABLE), ele necessita ser reparado antes que possa ser usado.
Diferentemente de um objeto PL/SQL por exemplo, pois quando é acessado a
primeira vez o objeto é recompilado automaticamente pelo Oracle.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Para identificar se um índice está inutilizável,
podemos usar a consulta abaixo:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;SELECT owner, table_name, index_name&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp;
FROM dba_indexes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;WHERE status = &#39;UNUSABLE&#39;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Mas o que fazer para tornar o ínidice utilizável
novamente?&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Bom pessoal...&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
A forma que vou usar para tornar um índice
novamente preparado para utilização, é muito importante também para
desfragmentar o índice (caso o mesmo esteja fragmentado).&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
O problema da fragmentação aparece quando
atualizamos ou apagamos (update/delete)&amp;nbsp;
dados de uma tabela. Se os campos alterados possuem índices associados,
provavelmente o índice ficará fragmentado. Podemos dizer que a fragmentação é a
existência de espaços não utilizados (ou disponíveis) no meio de um espaço
utilizado. Isso porque os espaços que são liberados durante manipulação dos
dados (update/delete) não são imediatamente reutilizado, o que resulta em
“espaços livres&quot; ou &quot;blocos de dados espalhados nas tablespaces “.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Basicamente, a sintaxe que vou apresentar aqui é: &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;b&gt;ALTER INDEX
owner.nome_do_indice REBUILD;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Mas vamos fazer com que esse script seja gerado
para todos os indices que estão inutilizáveis no banco.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;SELECT&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39; alter index &#39;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; || owner&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; || &#39;.&#39;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; || index_name&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; || &#39; rebuild; &#39;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp;
FROM dba_indexes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp;WHERE status = &#39;UNUSABLE&#39;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
A projeção dessa query pode ser usado para
reconstruir os índices, e pode também desfragmentar o índice. Não
necessariamente a desfragmentação do índice ocorrerá pois dependerá da
disponibilidade de espaço livre da tablespace.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Por hoje é só!&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Espero ter contribuído e agregado algum
conhecimento a você leitor.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Fico grato por você ler meu post, e indico a
leitura dos demais artigos publicados.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Um grande abraço e até a próxima!&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://raphaeloafernandes.blogspot.com/feeds/8892635159287937520/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/05/recriacao-de-inidces-rebuild-index.html#comment-form' title='5 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/8892635159287937520'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/8892635159287937520'/><link rel='alternate' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/05/recriacao-de-inidces-rebuild-index.html' title='Recriação de índices - Rebuild Index'/><author><name>Raphael Fernandes</name><uri>http://www.blogger.com/profile/05900910831621641258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4532985094872298557.post-2634072971083459687</id><published>2013-05-10T11:54:00.006-03:00</published><updated>2013-05-10T11:55:21.715-03:00</updated><title type='text'>Explicação sobre RAID</title><content type='html'>&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Muito bom dia, pessoal!&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Hoje vou compartilhar rapidamente com vocês uma figura que vi e achei muito interessante. Se trata de uma &quot;explicação&quot; sobre RAID que encontrei no blog do sábio DBA Ricardo Portilho.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Muito legal e se assemelha muito com a realidade!!&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Confiram na figura abaixo.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4cR7rVq5janKRCkYnkJtYuEaO9LQc-YUCjvWSKpGHfGv1C-01Y8rUqwE7dOQ4gjEq3PaMFhL6fP6bapqk1CfyLfBsgThTpZUJ-iqzNI3h3_ANwJmhDefaqFLdzwLosxIHM6OyRZPvJqIo/s1600/raid.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;210&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4cR7rVq5janKRCkYnkJtYuEaO9LQc-YUCjvWSKpGHfGv1C-01Y8rUqwE7dOQ4gjEq3PaMFhL6fP6bapqk1CfyLfBsgThTpZUJ-iqzNI3h3_ANwJmhDefaqFLdzwLosxIHM6OyRZPvJqIo/s400/raid.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;Figura 1 - Entendendo o que é RAID. (Fonte: Blog do Portilho)&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Referência:&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Blog do Portilho - GPO Blogs. Entendendo RAID. Dsponível em: http://profissionaloracle.com.br/blogs/portilho/2009/07/28/entendendo-raid/ Acessado: 09/05/2013.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://raphaeloafernandes.blogspot.com/feeds/2634072971083459687/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/05/explicacao-sobre-raid.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/2634072971083459687'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/2634072971083459687'/><link rel='alternate' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/05/explicacao-sobre-raid.html' title='Explicação sobre RAID'/><author><name>Raphael Fernandes</name><uri>http://www.blogger.com/profile/05900910831621641258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4cR7rVq5janKRCkYnkJtYuEaO9LQc-YUCjvWSKpGHfGv1C-01Y8rUqwE7dOQ4gjEq3PaMFhL6fP6bapqk1CfyLfBsgThTpZUJ-iqzNI3h3_ANwJmhDefaqFLdzwLosxIHM6OyRZPvJqIo/s72-c/raid.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4532985094872298557.post-6574640503363880936</id><published>2013-05-04T22:28:00.001-03:00</published><updated>2013-05-07T22:58:58.344-03:00</updated><title type='text'>Um pouco sobre redo log file e archive</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
Olá, meus caros!&lt;br /&gt;
&lt;br /&gt;
Recentemente passei por um problema na empresa onde
trabalho e achei um tema interessante para se abordar aqui no blog.
Resumidamente a situação foi a seguinte: um dos servidores de banco de dados
foi inesperadamente desligado, e quando a máquina foi ligada, no momento em que
tentávamos “levantar” uma instância, não foi possível pois um dos arquivos de
redo log estava corrompido. Foi uma situação muito tensa, pois era uma base
importante para o negócio da empresa. Não vou entrar no detalhe do que
aconteceu, tampouco falar da solução, mas motivado pelo problema ocorrido vou
falar hoje um pouco sobre redo log file e archive.

&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Bom, pessoal...&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Para começar, acho de extrema importância conhecermos
algumas estruturas do banco. São elas: log buffer, log writer e archiver.
Basicamente, o primeiro (log buffer) é uma área de memória pequena onde são
gravadas instruções de desfazer uma alteração (comando DML) disparada contra a
base, antes de essa instrução ser gravada no disco (no redo log file). Eu
escrevi algo sobre essa estrutura com um pouco mais de riqueza no artigo: &lt;b&gt;&lt;span style=&quot;color: windowtext; text-decoration: none; text-underline: none;&quot;&gt;&lt;a href=&quot;http://raphaeloafernandes.blogspot.com.br/2013/02/ola-vou-comecar-postar-hoje-primeira.html&quot; target=&quot;_blank&quot;&gt;[Hard Parse]Parte 01 - Execução de comandos DML&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;.
O log writer é o processo de background responsável pela gravação do conteúdo
do log buffer no redo log file. O archiver também é um processo de background,
porém sua existência está condicionada a uma configuração da instância
(ARCHIVELOG). O archiver copia o conteúdo dos arquivos de redo log (que são
arquivos cíclicos e reutilizáveis – falarei melhor sobre isso) em arquivos
chamados de archives (ou redo log arquivado). Cada uma dessas estruturas podem
ser alvo de bastante discussão e conteúdo, que não focarei nesse post, mas é
importante que entendamos ao menos o básico para não nos atrapalharmos mais
adiante em outras explicações.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;Redo Log File&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Esse arquivo é uma cadeia contínua e cronológica de
cada vetor de alteração (“instruções” para desfazer um DML de alteração –
insert, update, delete). Uma utilidade de fácil entendimento desses arquivos é
na recuperação de uma base após um problema que necessite “voltar” o backup.
Para que não haja perda de trabalho até o momento do crash ou erro, os arquivos
de redo log podem ser aplicados ao backup para refazer o trabalho,
adiantando-os no tempo até o momento em que o dano ocorreu.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
John Watson afirma que o redo log pode ser dividido
em dois tipos: redo log online e o redo log arquivado (os archives).&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Cada banco de dados deve ter por definição pelo menos
dois redo log online. Arquivos de redo log compõe um grupo de arquivo, e são
conhecidos como membros. Um banco de dados requer ao menos dois grupos com pelo
menos um membro para funcionar. Para um melhor desempenho, podem ser criados
mais de dois grupos, e para uma maior segurança, deve-se criar mais de um
membro por grupo (caso opte por essa configuração não é necessário se preocupar
com desempenho ou sincronismo, pois o processo responsável irá gravar em todos
os membros de forma paralela mantendo-os idênticos). A razão do requisito
mínimo para o banco Oracle funcionar ser um mínimo de dois grupos é devido à
situação de que enquanto um dos grupos (o de status &lt;i&gt;current&lt;/i&gt;) está recebendo as alterações (através de comando do
processo de background Log Writer – LGWR), o outro está sendo “arquivado” (pelo
processo de background Archiver – ARCn), ou seja, está sendo gerado um Archive
a partir de um Redo Log File com status &lt;i&gt;inactive&lt;/i&gt;.
Um passo a passo do processo pode ser o seguinte: ao tempo em que as sessões
dos usuários atualizam registros (no buffer cache), elas também gravam vetores
de alterações mínimos no redo log buffer, e o LGWR continuamente grava os dados
desse buffer para os arquivos que compõem o grupo de arquivos de redo log atual
(com status current). Por serem de tamanhos limitados, os redo log se alternam
quando estiverem completamente cheios, tornando o outro grupo o atual. Se o
banco de dados estiver configurado para gerar Archive (o que é uma segurança
para que não haja perda de dados), os processos ARCn arquivarão (ou copiarão)
os membros do redo log file que compõe o primeiro grupo. Quando o segundo grupo
é totalmente preenchido, o LGWR mudará de volta para o primeiro (setará seu
status como current) e irá sobrescrever seu conteúdo (que já foi arquivado), ao
mesmo tempo, o ARCn começará a arquivar o segundo grupo (de status inactive).
Basicamente é dessa forma que se dá esse processo, de forma cíclica
(alternância de log) e reutilizando os membros dos grupos de redo log file.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
É importante saber que é possível adicionar ou
excluir redo log files (inclusive com tamanhos diferentes dos demais) a qualquer
momento, sem a necessidade de reiniciar a instância.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Para criar um novo grupo de redo log file, podemos
usar o comando abaixo:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot;&gt;ALTER DATABASE ADD LOGFILE (&#39;/oracle/dbs/log1c.rdo&#39;,
&#39;/oracle/dbs/log2c.rdo&#39;) SIZE 4M;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Ou criar um novo grupo especificando o seu número:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot;&gt;ALTER DATABASE ADD LOGFILE GROUP 10 (&#39;/oracle/dbs/log1c.rdo&#39;, &#39;/oracle/dbs/log2c.rdo&#39;)
SIZE 4M;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
E para adicionar um membro a um grupo, podemos
utilizar o comando&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot;&gt;ALTER DATABASE ADD LOGFILE MEMBER &#39;/oracle/dbs/log2b.rdo&#39; TO GROUP 2;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Ou de uma forma alternativa de identificar um grupo,
que é identificando seus membros, conforme exemplo abaixo:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot;&gt;ALTER DATABASE ADD LOGFILE MEMBER &#39;/oracle/dbs/log2c.rdo&#39; TO
(&#39;/oracle/dbs/log2a.rdo&#39;, &#39;/oracle/dbs/log2b.rdo&#39;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Para excluir um grupo do redo log file, segundo a
Oracle, existem três restrições. São elas:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;- É necessário
que a mais de dois grupos de redo log file, para após a exclusão ainda
existirem o mínimo aceitável pelo banco de dados Oracle (conforme explicado
anteriormente);&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;- Só é
possível excluir grupos de redo log com status inactive. Para excluir o grupo
atual (current), é necessário primeiro alternar o log para torná-lo inactive.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;- Tenha
certeza que o redo log file foi arquivado (se estiver no modo archive) antes de
excluí-lo. Na view &lt;b&gt;V$LOG&lt;/b&gt; é possível
verificar se já ocorreu o arquivamento.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
O comando da exclusão é o seguinte:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot;&gt;ALTER DATABASE DROP LOGFILE GROUP 3;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Para excluir um membro, deve-se atender aos
requisitos citados para o grupo pois seguem as mesmas restrições. a Sintaxe é a
seguinte:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;i&gt;ALTER DATABASE DROP LOGFILE MEMBER &#39;/oracle/dbs/log3c.rdo&#39;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Para forçar que o banco alterne o grupo de redo log
atual, podemos utilizar o comando:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;i&gt;ALTER SYSTEM SWITCH LOGFILE;&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;Archive&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Vamos falar um pouco sobre o tal redo log file
arquivado, ou archive.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
O banco Oracle garante que sua instância nunca fique
corrompida, por meio dos redo log files, porém para garantir que não haja perda
de dados após uma falha, é necessário ter um registro de todas as alterações
aplicadas ao banco de dados desde o último backup. Por default, um banco de
dados é criado em modo NOARCHIVELOG, o que significa que os redo log files são
sobrescritos sem que tenha ocorrido o arquivamento dos seus dados. Quando
alteramos o banco para o modo ARCHIVELOG, a Oracle afirma que é impossível que
ocorra perda de dados (desde que os archives gerados após o último backup
estejam disponíveis. Nesse modo, um novo processo de background (na verdade são
quatro processos por default) será iniciado automaticamente: o Archiver (ARCn),
isso nas versões do Oracle a partir do 10G.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
É importante saber que a transição do modo NOARCHIVELOG
para ARCHIVELOG (ou o contrário) só pode ser feita enquanto o banco está no modo
&lt;b&gt;&lt;i&gt;mount
&lt;/i&gt;&lt;/b&gt;após um &lt;b&gt;&lt;i&gt;shutdown &lt;/i&gt;&lt;/b&gt;e deve ser feito por um usuário com privilégio SYSDBA.
Também é necessário fazer a configuração nos parâmetros de inicialização que
controlam os nomes e os locais dos archives. &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Para habilitar o modo ARCHIVELOG, podemos usar os
comandos abaixo:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot;&gt;SQLPLUS /NOLOG&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot;&gt;CONNECT / AS SYSDBA&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot;&gt;ALTER SYSTEM SET LOG_ARCHIVE_DEST_1=’LOCATION=/oracle/dbs/archives’
SCOPE=SPFILE;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot;&gt;SHUTDOWN IMMEDIATE;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot;&gt;STARTUP MOUNT;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot;&gt;ALTER DATABASE ARCHIVELOG;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot;&gt;ALTER DATABASE OPEN;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Bom pessoal…&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Por hoje é isso!&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Espero ter ajudado no entendimento sobre o redo log
file do Oracle e o Archive.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Grande abraço a todos e até a próxima.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Referências:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Oracle® Database Administrator&#39;s Guide - 11g Release
1 (11.1) - Cre&lt;span lang=&quot;EN-US&quot;&gt;ating Redo Log
Groups and Members. &lt;/span&gt;Disponível em:
http://docs.oracle.com/cd/B28359_01/server.111/b28310/onlineredo003.htm.
Acessado em 03/05/2013.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;Oracle®
Database Administrator&#39;s Guide - 11g Release 1 (11.1) - Dropping Redo Log
Groups and Members. &lt;/span&gt;Disponível em:
http://docs.oracle.com/cd/B28359_01/server.111/b28310/onlineredo005.htm.
Acessado em 03/05/2013.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
WATSON, JOHN – OCA Oracle Database 11g –
Administração I – Guia do Exame 1z0-052. Editora: BOOKMAN.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://raphaeloafernandes.blogspot.com/feeds/6574640503363880936/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/05/um-pouco-sobre-redo-log-file-e-archive.html#comment-form' title='4 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/6574640503363880936'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/6574640503363880936'/><link rel='alternate' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/05/um-pouco-sobre-redo-log-file-e-archive.html' title='Um pouco sobre redo log file e archive'/><author><name>Raphael Fernandes</name><uri>http://www.blogger.com/profile/05900910831621641258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4532985094872298557.post-75266598072415672</id><published>2013-04-25T23:09:00.000-03:00</published><updated>2013-04-25T23:21:55.388-03:00</updated><title type='text'>ODA - Oracle Database Appliance</title><content type='html'>&lt;span style=&quot;font-family: inherit;&quot;&gt;Muito bom dia a todos!&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Hoje vou fazer um breve comentário sobre a “tecnologia” da Oracle conhecida como ODA.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Para dar início, gostaria de informar que não trabalho com ODA, mas tenho estudado bastante sobre o sistema e o acho bastante interessante.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Bom...&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;ODA é a abreviação de Oracle Database Appliance, que segundo definição Oracle é um sistema projetado que consiste em hardware e software que economiza tempo e custo para os clientes, simplificando a implantação, manutenção e o suporte de soluções de banco de dados de alta disponibilidade.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Com essa tecnologia, a Oracle proporciona um sistema totalmente integrado de software, servidores, storage, e conectado à rede em um único equipamento que oferece serviços de alta disponibilidade em banco de dados, aplicável tanto para serviços operacionais (OLTP) quanto para aplicações gerenciais em data warehouse (OLAP). A figura 1 exibe a parte da frente de uma ODA.&lt;/span&gt;&lt;br /&gt;



&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: inherit; margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8TnMy7JsYn-NwhApq12JaQ6DLhRrreTeLXiFpAP-1Kpf0qNsq9GV3VHaAcCLn4jAKO6GKPQDC1PdAU2bcP-TfW8ailbBy50Nu_r-rNZJysRBLpiH9GOoJb94_PoLxkESFXODaYHrW4hiD/s1600/servidor-oda.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8TnMy7JsYn-NwhApq12JaQ6DLhRrreTeLXiFpAP-1Kpf0qNsq9GV3VHaAcCLn4jAKO6GKPQDC1PdAU2bcP-TfW8ailbBy50Nu_r-rNZJysRBLpiH9GOoJb94_PoLxkESFXODaYHrW4hiD/s1600/servidor-oda.png&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; page-break-after: avoid; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background: white; font-size: 12.0pt; line-height: 150%; mso-bidi-font-family: Arial; mso-fareast-language: PT-BR; mso-no-proof: yes;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shapetype
 id=&quot;_x0000_t75&quot; coordsize=&quot;21600,21600&quot; o:spt=&quot;75&quot; o:preferrelative=&quot;t&quot;
 path=&quot;m@4@5l@4@11@9@11@9@5xe&quot; filled=&quot;f&quot; stroked=&quot;f&quot;&gt;
 &lt;v:stroke joinstyle=&quot;miter&quot;/&gt;
 &lt;v:formulas&gt;
  &lt;v:f eqn=&quot;if lineDrawn pixelLineWidth 0&quot;/&gt;
  &lt;v:f eqn=&quot;sum @0 1 0&quot;/&gt;
  &lt;v:f eqn=&quot;sum 0 0 @1&quot;/&gt;
  &lt;v:f eqn=&quot;prod @2 1 2&quot;/&gt;
  &lt;v:f eqn=&quot;prod @3 21600 pixelWidth&quot;/&gt;
  &lt;v:f eqn=&quot;prod @3 21600 pixelHeight&quot;/&gt;
  &lt;v:f eqn=&quot;sum @0 0 1&quot;/&gt;
  &lt;v:f eqn=&quot;prod @6 1 2&quot;/&gt;
  &lt;v:f eqn=&quot;prod @7 21600 pixelWidth&quot;/&gt;
  &lt;v:f eqn=&quot;sum @8 21600 0&quot;/&gt;
  &lt;v:f eqn=&quot;prod @7 21600 pixelHeight&quot;/&gt;
  &lt;v:f eqn=&quot;sum @10 21600 0&quot;/&gt;
 &lt;/v:formulas&gt;
 &lt;v:path o:extrusionok=&quot;f&quot; gradientshapeok=&quot;t&quot; o:connecttype=&quot;rect&quot;/&gt;
 &lt;o:lock v:ext=&quot;edit&quot; aspectratio=&quot;t&quot;/&gt;
&lt;/v:shapetype&gt;&lt;v:shape id=&quot;Imagem_x0020_1&quot; o:spid=&quot;_x0000_i1025&quot; type=&quot;#_x0000_t75&quot;
 style=&#39;width:189pt;height:63pt;visibility:visible;mso-wrap-style:square&#39;&gt;
 &lt;v:imagedata src=&quot;file:///C:\Users\ROAFER~1\AppData\Local\Temp\msohtmlclip1\01\clip_image001.png&quot;
  o:title=&quot;&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoCaption&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: inherit; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;Figura &lt;/span&gt;&lt;!--[if supportFields]&gt;&lt;span
style=&#39;color:windowtext;font-weight:normal;mso-bidi-font-weight:bold&#39;&gt;&lt;span
style=&#39;mso-element:field-begin&#39;&gt;&lt;/span&gt;&lt;span style=&#39;mso-spacerun:yes&#39;&gt; &lt;/span&gt;SEQ
Figura \* ARABIC &lt;span style=&#39;mso-element:field-separator&#39;&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]--&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;1&lt;/span&gt;&lt;!--[if supportFields]&gt;&lt;span
style=&#39;color:windowtext;font-weight:normal;mso-bidi-font-weight:bold&#39;&gt;&lt;span
style=&#39;mso-element:field-end&#39;&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]--&gt;&lt;span style=&quot;color: windowtext;&quot;&gt; - Frente da ODA. (Fonte:
Oracle Corporation)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: windowtext; font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: windowtext; font-family: inherit;&quot;&gt;No vídeo abaixo é possível ter uma visão melhor do que é a ODA.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;background: white; font-family: inherit; font-size: 12.0pt; line-height: 150%; mso-bidi-font-family: Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;315&quot; src=&quot;http://www.youtube.com/embed/plUjM1NT_yQ&quot; width=&quot;560&quot;&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Falando um pouco dos recursos de uma ODA:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;✔ Equipamento de banco de dados completamente integrado em um equipamento único&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;✔ Componentes com redundância e hot-swap: servidor, armazenamento, placa de rede, fonte e ventilador&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;✔ Sistema Operacional Oracle Linux&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;✔ Dois Servidores de banco de dados&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;✔ 24 núcleos de processadores&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;✔ 192 GB de memória&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;✔ 12 TB de armazenamento com triple-mirror (espelhamento triplo), oferecendo 4 TB de armazenamento em RAID-1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;✔ 292 GB de armazenamento em drive de estado sólido&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;✔ Oracle Database, Enterprise Edition 11g&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;✔ Oracle Real Application Clusters ou Oracle Real Application Clusters One Node&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;✔ Oracle Automatic Storage Management (ASM)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;✔ Oracle Enterprise Manager&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;


&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Abaixo é possível conferir uma apresentação de Renato Martins sobre ODA.&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;315&quot; src=&quot;http://www.youtube.com/embed/4N_05a7A6uY&quot; style=&quot;font-family: inherit;&quot; width=&quot;560&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;O valor estimado para um sistema desse, segundo a 4Partner, &amp;nbsp;está a partir de R$ 260.000,00.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Para concluir, indico que assistam esse vídeo abaixo que trás uma explicação sobre a ODA com um toque de humor. É muito bom!&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;315&quot; src=&quot;http://www.youtube.com/embed/os4RDVclWS8&quot; width=&quot;560&quot;&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Bom pessoal, por hoje é só!&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Espero ter ajudado.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Até a próxima&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Fonte:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;4Partner - Oracle Database Appliance. Fácil. Confiável. Acessível. Disponível em: http://oracledatabaseappliance.com.br/oracle/hardware/oracle-database-appliance/solucao-completa-de-hardware-e-software.html. Acessado em: 22/04/2013.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Oracle Corporation - About Oracle Database Appliance. Disponível em: http://docs.oracle.com/cd/E22693_01/doc.21/e22692/abtoda.htm. Acessado em: 22/04/2013.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Felipe do Carmo - Oracle Database Appliance. Disponível em: http://felipedocarmo.blogspot.com.br/2011/12/oracle-database-appliance.html. Acessado em: 2504/2013.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://raphaeloafernandes.blogspot.com/feeds/75266598072415672/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/04/oda-oracle-database-appliance.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/75266598072415672'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/75266598072415672'/><link rel='alternate' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/04/oda-oracle-database-appliance.html' title='ODA - Oracle Database Appliance'/><author><name>Raphael Fernandes</name><uri>http://www.blogger.com/profile/05900910831621641258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8TnMy7JsYn-NwhApq12JaQ6DLhRrreTeLXiFpAP-1Kpf0qNsq9GV3VHaAcCLn4jAKO6GKPQDC1PdAU2bcP-TfW8ailbBy50Nu_r-rNZJysRBLpiH9GOoJb94_PoLxkESFXODaYHrW4hiD/s72-c/servidor-oda.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4532985094872298557.post-2414371819046183424</id><published>2013-04-23T20:39:00.003-03:00</published><updated>2013-04-23T20:39:17.674-03:00</updated><title type='text'>Documentos úteis para um DBA</title><content type='html'>&lt;span style=&quot;line-height: 150%; text-align: justify;&quot;&gt;Olá a todos!&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
Hoje quero falar um pouco sobre algo que li
recentemente em um artigo publicado em 2007 e achei bastante interessante. O
artigo fala sobre alguns documentos que um DBA deve lidar. Esses documentos são
úteis para organizar e gerenciar atividades do DBA, além do mais, um documento
também serve de registro técnico sobre algo.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
Bom...&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
Para começar queria deixar claro uma coisa...
documentar é um trabalho muito chato!! Hehehe&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
Brincadeiras a parte, a documentação é algo de
extrema importância, e temos que ter sempre em mente que criar ou atualizar um
documento não é apenas um trabalho desnecessário que consome tempo e torna uma
demanda mais lenta. Documentação é um item necessário e obrigatório em qualquer
projeto, servindo a vários propósitos. &amp;nbsp;As
metodologias estão aí para isso, e logicamente, devido à maturidade dos
processos, agregam muito valor ao serviço.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
É bastante normal na T.I. (vou corrigir isso, pois
normal não é!!)... É bastante frequente na T.I. encontrar profissionais que não
gostam de documentar, seja esse documento de qualquer natureza. Talvez seja uma
cultura que trazemos da escola ou faculdade, mas que devemos mudar! &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
Li certa vez (não me recordo onde), que em termos
de documentação nos serviços de T.I., as mulheres são muito mais comprometidas
e responsáveis que os homens. E levando em consideração minha experiência
profissional, eu concordo plenamente com isso! Não podemos generalizar, mas em
uma visão superficial pode-se notar que mulheres são mais organizadas e dedicadas
em trabalhos de documentação (obviamente existem exceções).&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
Segundo Pichiliani, “em geral, é difícil encontrar
profissionais, em particular DBAs, que trabalhem com muita documentação. Isso
se deve tanto à questão cultural como a questão que envolve a disponibilidade
de tempo para criar e manter a documentação atualizada.” &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
A seguir é apresentada uma lista de documentos
elencadas por Pichiliani, úteis tanto para quem trabalha tanto como DBA como analista
ou desenvolvedor.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;b&gt;1) MER (Modelo Entidade Relacionamento)&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
O MER, chamado também de modelo de dados ou
diagrama de entidade-relacionamento, é a principal documentação de um banco de
dados. &amp;nbsp;Nesse documento deve constar
todas as entidades (com seus atributos, tipos de dados e restrições) do banco e
seus relacionamentos. O MER pode ser de três tipos: conceitual, lógico e
físico, e cada um desses têm uma particularidade. Não entrarei no detalhe, mas
recomendo a leitura do artigo de Adail Faleiro, que aborda de forma objetiva o
assunto.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;b&gt;2) Documento de Padrões de Variáveis&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
Utilizar nomes de fácil entendimento em classes,
métodos, atributos, etc, é cada vez mais frequente como pré-requisito para quem
trabalha com desenvolvimento. Sendo assim, utilizar padrões é sempre uma boa
prática de desenvolvimento. Com foco em banco de dados, possuir um padrão de
nomes para tabelas, colunas,&amp;nbsp;restrições,
procedimentos, funções e demais objetos de dados é muito importante. Segundo Pichiliani,
a idéia é possuir um padrão eficaz que seja fácil de ser utilizado, além de fazer
sentido no contexto de banco de dados. Para formalizar a adoção do padrão, Pichiliani
recomenda criar um documento explicando os detalhes deste padrão tais como: se
os nomes devem ser em português, se as palavras devem estar no plural ou se há
um limite no tamanho da coluna.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;b&gt;3) Plano de Capacidade&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
Fiz um post recentemente sobre as &lt;a href=&quot;http://raphaeloafernandes.blogspot.com.br/2013/04/tarefas-de-um-administrador-de-banco-de.html&quot; target=&quot;_blank&quot;&gt;tarefas de um DBA&lt;/a&gt;, e das atividades
que cito (conforme orientação da própria Oracle) é a de “avaliar o hardware do
servidor de banco de dados”, e de acordo com Pichiliani, além de economizar
recursos, dimensionar os recursos necessários mostra que existe um controle não
apenas para o ambiente atual, mas também para os recursos que podem ser
necessários no futuro. Para que esse dimensionamento seja registrado (podendo
evitar possíveis problemas), o DBA deve elaborar um documento de Plano de
Capacidade. Neste documento, informações sobre espaço de armazenamento e
crescimento médio dos ambientes, utilização de CPU, utilização de memória e
outros requisitos técnicos; devem estar contidos para exibir o funcionamento do
servidor atual e até embasar aquisição de novos recursos (hardware ou
software).&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;b&gt;4) Dicionário de dados&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
O dicionário de dados é um documento onde deve
constar uma coleção de metadados que contém definições e representações de
elementos de dados. Ele pode ser considerado um documento complementar ao MER.
No documento deve conter algumas das seguintes informações definição sobre os
objetos, perfis de usuários, papéis e privilégios, restrições de integridade, valores
possíveis para um campo, quantidade típica de valores armazenados, etc. Vale
lembrar que este documento deve sempre estar atualizado com a base de dados
atual, para evitar desgastes e problemas.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;b&gt;5) Política de segurança&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
De acordo com Pichiliani, um documento que informa
a política de segurança é um objeto não necessariamente técnico que envolve os
procedimentos, responsabilidades e atribuições relacionadas à segurança das
informações e disponibilização delas. Geralmente documentos dessa natureza
contêm regras de usuários e senhas, tais como: nível de dificuldade da senha,
atualização periódica dela, bloquei após repetidas tentativas mal sucedidas. &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;b&gt;6) &amp;nbsp;Acordo de
nível de serviço (ANS) ou SLA (&lt;i&gt;Service Level Agreement&lt;/i&gt;)&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
O SLA é um acordo firmado entre a área de T.I. e
seu cliente, que descreve o serviço, suas metas de nível de serviço, além dos
papéis e responsabilidades das partes envolvidas no acordo. Este acordo deve
deixar claro quais serviços estão sendo oferecidos (serviços específicos) e o
nível de cada serviço (horas de funcionamento,&amp;nbsp;&lt;i&gt;downtime&lt;/i&gt;, horário do
suporte, etc). Segundo Pichiliani, e com foco em banco de dados, pode-se
utilizar um SLA interno, onde o DBA se compromete a dar algum tipo de retorno (&lt;i&gt;feedback&lt;/i&gt;)
ao solicitante, nem que seja apenas a informação de que está ciente &amp;nbsp;da solicitação (mesmo que ainda não tenha uma
solução para a situação). Acordo de nível de serviço é algo que está muito em
alta no mercado de T.I., por isso sugiro a leitura da biblioteca ITIL V3.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;b&gt;7) Diagrama de arquitetura&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
Geralmente as organizações possuem diversos
ambientes de banco de dados, que podem ser separados de acordo com sua
utilidade, como por exemplo: &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
&amp;nbsp;- ambiente
de desenvolvimento – banco utilizado por desenvolvedores e analistas de
sistemas para criação de aplicativos;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
&amp;nbsp;- ambiente
de homologação – banco utilizado para realização de validações de usuários
antes de implantação de um aplicativo;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
&amp;nbsp;- ambiente
de produção – onde os usuários finais trabalham com os dados reais dos
sistemas.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
O DBA deve elaborar um diagrama de arquitetura para
facilitar o gerenciamento desses ambientes, onde deverá apresentar de forma
gráfica, quais servidores pertencem ao ambiente de desenvolvimento, homologação
e produção. Este tipo de diagrama contém informações relacionadas à estrutura
arquitetural dos ambientes e é extremamente útil para quem não conhece a
organização física e lógica dos componentes da rede e dos servidores. &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;b&gt;8) Estratégia de Backup&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
Mais uma das tarefas de todo DBA que postei num
&lt;a href=&quot;http://raphaeloafernandes.blogspot.com.br/2013/04/tarefas-de-um-administrador-de-banco-de.html&quot; target=&quot;_blank&quot;&gt;artigo passado&lt;/a&gt;&amp;nbsp;é a de “Realizar
backup, restaurar e recuperar o banco de dados”. Todo DBA deve possuir uma
estratégia de backup adequada que deve ser criada de acordo com as necessidades
de recuperação e disponibilidade do sistema, ou seja, vai depender do quanto
de&amp;nbsp;&lt;i&gt;downtime&amp;nbsp;&lt;/i&gt;e tempo de recuperação é aceitável de acordado com
os SLA’s. Esse tipo de documentação é importante para registro oficial sobre o
que pode ser recuperado e em quais circunstâncias.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
É isso aí, pessoal...&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
Obviamente existem vários outros documentos importantes para um
DBA, mais esses são alguns dos mais interessantes, e que todo DBA deve manter. &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
Espero ter ajudado!&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
Até a próxima.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
Referências:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
Pichiliani, Mauro - Documentação do DBA – 11/06/2007.
Disponível em: http://imasters.com.br/artigo/6392/sql-server/documentacao-do-dba/
. Acessado em: 18/04/2013&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
Faleiro, Adail Tiago Lima - Modelo Entidade
Relacionamento (MER). Disponível em:
http://www.devmedia.com.br/modelo-entidade-relacionamento-mer/19821. Acessado
em: 19/04/2013.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://raphaeloafernandes.blogspot.com/feeds/2414371819046183424/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/04/documentos-uteis-para-um-dba.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/2414371819046183424'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/2414371819046183424'/><link rel='alternate' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/04/documentos-uteis-para-um-dba.html' title='Documentos úteis para um DBA'/><author><name>Raphael Fernandes</name><uri>http://www.blogger.com/profile/05900910831621641258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4532985094872298557.post-5375746839965895445</id><published>2013-04-18T23:08:00.000-03:00</published><updated>2013-04-18T23:08:01.803-03:00</updated><title type='text'>Vídeo sobre recuperação de desastre</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;line-height: 150%; text-align: justify;&quot;&gt;Olá a todos!&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
Estava procurando um documento em minha máquina, quando me deparei com
anotações que tinha realizado enquanto cursava minha especialização em banco de
dados. As anotações eram da disciplina &amp;nbsp;“Contingência e Alta Disponibilidade”. Me lembrei de
um vídeo muito interessante que o professor tinha exibido para a turma. O vídeo
era sobre um teste de recuperação de desastre com uma solução da HP.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
Foi então que comecei a procurar o vídeo e achei!&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
Confiram e tirem suas conclusões.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/qMCHpUtJnEI?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
Esse vídeo está no &lt;b&gt;&lt;i&gt;youtube&lt;/i&gt;&lt;/b&gt;, mas seu endereço original
está no site da &lt;a href=&quot;http://www.hp.com/go/disasterproof&quot; target=&quot;_blank&quot;&gt;HP&lt;/a&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
Em breve, quando estiver com um tempinho a mais extra, falarei sobre
algumas coisas que aprendi sobre contingência e alta disponibilidade, focando
mais para a área de banco de dados.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;
Até a próxima!&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://raphaeloafernandes.blogspot.com/feeds/5375746839965895445/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/04/video-sobre-recuperacao-de-desastre.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/5375746839965895445'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/5375746839965895445'/><link rel='alternate' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/04/video-sobre-recuperacao-de-desastre.html' title='Vídeo sobre recuperação de desastre'/><author><name>Raphael Fernandes</name><uri>http://www.blogger.com/profile/05900910831621641258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4532985094872298557.post-7037188518988176939</id><published>2013-04-11T21:40:00.000-03:00</published><updated>2013-04-11T21:40:09.916-03:00</updated><title type='text'>Tarefas de um administrador de banco de dados Oracle</title><content type='html'>&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #222222;&quot;&gt;Olá a todos!&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Tenho andado bastante sobrecarregado no trabalho e em outras atividades,
o que tem resultado em pouco tempo de dedicação a posts aqui no blog.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Mas vou superar isso! hehehe&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Bom... Hoje vou falar sobre algo bem básico que são as tarefas de um
Administrador de Banco de Dados.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Identificar um DBA não é uma tarefa fácil, mesmo porque “tudo sempre é
culpa do DBA”. Se ocorre um &lt;i&gt;crash&lt;/i&gt; no
banco no banco, chamam o DBA, até aí tudo bem, mas o DBA também pode ser
chamado se a rede falhar, se os servidores derem uma pane ou se ocorrer um erro
na aplicação, se a impressora está sem tinta ou se o telefone está com defeito...hehe
(esses últimos acredito que qualquer profissional de T.I. está sujeito). Brincadeiras
a parte, imaginasse que algumas dessas situações estão relacionadas às funções
do DBA porque praticamente qualquer falha no ambiente de T.I. impede que os
usuários finais acessem o banco de dados, logo faz do DBA o primeiro ponto de
contato natural.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Abstraindo essas expectativas excessivas , seguindo as orientações da
Oracle, que inclusive é cobrado no exame (1Z0-052 na versão 11G) para a
certificação OCA, as tarefas de um DBA se resumem, segundo John Watson,
basicamente nas seguintes:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #222222; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Avaliar o hardware do servidor
de banco de dados&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Este item diz respeito à realização de previsões precisas relacionadas&amp;nbsp; à quantidade de memória, espaço em disco e
CPU. O DBA deverá saber dimensionar os recursos necessáriaos para garantir que
as aplicações serão bem executadas sem demandar recursos desnecessários,
mantendo assim um desempenho bom sem extrapolar o orçamento disponível.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #222222; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Instalar e manter o software
Oracle&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;A instalação de um banco de dados Oracle e a criação de instâncias, é
algo básico para um DBA, mas é de fundamental importância que este saiba também
realizar instalações de patches críticos e patches de manutenção. Obviamente
que antes de se implantar uma atualização em ambiente de produção, os patches
devem ser adequadamente testados, uma vez que o DBA é o responsável pelo bom
funcionamento do ambiente de banco de dados.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #222222; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Planejar o banco de dados&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Configurar o armazenamento físico de um banco de dados podem impactar na
performance dos sistemas e seu gerenciamento. O DBA deve também estar ciente do
impacto de diferentes estruturas de armazenamento nos dispositivos, como
sistemas de discos e fitas.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #222222; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Monitorar e ajustar o
desempenho do banco de dados&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Essa é uma atividade que deve ser contínua e frequente para os sistemas
de banco de dados. Um bom DBA será capaz de antecipar os problemas de
desempenho e corrigi-los antes que surjam, sempre trabalhando de forma proativa
através, por exemplo, da realização de tuning (de configuração e de queries).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #222222; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Auxiliar os desenvolvedores nos
projetos de aplicações e ajustes de SQL&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Alguns DBAs gastam muito tempo ajustando SQL, porém há quem diga (e
particularmente concordo) que essa tarefa é função dos programadores. Onde o
DBA pode participar, é ajudando a identificar as áreas com problemas para que
eles (os desenvolvedores possam) resolver, e evitar problemas futuros.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #222222; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Manter contato com
fornecedores, usuários finais, desenvolvedores, gerentes e outros grupos de
suporte&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Como técnico com enfoque mais completo do ambiente, o DBA deve ter um
papel de “liderança” na coordenação de planejamentos e ações de todos os grupos
envolvidos no ambiente de T.I.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #222222; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Realizar backup, restaurar e
recuperar o banco de dados&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Possivelmente a tarefa mais importante de um DBA é essa. O DBA deve
criar rotinas que deverão garantir a disponibilidade do ambiente de banco de
dados, preferencialmente combinando o mais próximo possível de 100% de tempo de
atividade e 0% de perda de dados.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Não há certo ou errado, apenas a conformidade (ou a falha dela) aos
objetivos combinados, e para garantir que a tarefa será bem sucedida, testes frequentes
devem ser realizados.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #222222; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Gerenciar os usuários do
sistema e manter a segurança do banco de dados&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Essa é outra parte crítica do trabalho do DBA. Como na tarefa de manter
a disponibilidade do ambiente, para a atividade de segurança também não há
certo e errado, apenas a conformidade com os acordos realizados. O DBA deve
configurar os procedimentos que garantirão a conformidade e monitorar a seu
funcionamento.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Bom pessoal... &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Era isso que tinha para falar por hoje, o que obviamente não define a
função de um DBA, mas trás características e funções interessantes. Vale
lembrar que o amplo escopo da função de um DBA requer estudo contínuo e
desenvolvimento pessoal, estudo do banco de dados Oracle e tecnologias
relacionadas. Também requer vocação para educar e disseminar o conhecimento,
talvez a parte mais gratificante do trabalho, por isso que escrevo e publico
esses artigos aqui no blog. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Espero ter ajudado!&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Até a próxima!&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Referência:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;WATSON, JOHN – OCA Oracle Database 11g – Administração I – Guia do Exame
1z0-052. Editora: BOOKMAN.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://raphaeloafernandes.blogspot.com/feeds/7037188518988176939/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/04/tarefas-de-um-administrador-de-banco-de.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/7037188518988176939'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/7037188518988176939'/><link rel='alternate' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/04/tarefas-de-um-administrador-de-banco-de.html' title='Tarefas de um administrador de banco de dados Oracle'/><author><name>Raphael Fernandes</name><uri>http://www.blogger.com/profile/05900910831621641258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4532985094872298557.post-6472222627389865816</id><published>2013-04-04T23:15:00.002-03:00</published><updated>2013-04-04T23:16:49.432-03:00</updated><title type='text'>Recuperar uma instância Oracle após a exclusão acidental de um datafile</title><content type='html'>&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Muito boa noite a todos!!&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Hoje vou compartilhar com vocês
mais um problema que passei, e realmente fiquei preocupado até achar a solução.
Foi algo muito interessante e acho que muitos já devem ter passado por
problemas parecidos (ao menos em nível de stress).&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
A história é mais ou menos a
seguinte...&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Estou realizando um trabalho de
padronização de &lt;b&gt;TABLESPACES&lt;i&gt; &lt;/i&gt;&lt;/b&gt;em todas as bases de dados Oracle
da organização onde trabalho. Esse trabalho consiste basicamente em criar as “&lt;b&gt;N” &lt;/b&gt;tablespaces, divididas por tamanhos
de &lt;b&gt;extents &lt;/b&gt;distintos, como por
exemplo: TBS50MB, TBS100MB, TBS500MB, etc.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Para alocar as tabelas e índices
em uma tablespaces compatível com o tamanho do objeto, foi realizado um cálculo
(que não vem ao caso) para que a tabela “residisse” em uma tablespace compatível
com seu tamanho. Essa alteração é importante para muitas coisas, inclusive para
facilitar o gerenciamento e melhorar performance dos scripts contra esses
objetos.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
O procedimento que estava
realizando, e ainda estou pois são muitas bases, era o seguinte:&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;text-indent: -18pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&amp;nbsp;&lt;span style=&quot;font-size: 7pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;1- Criação
das tablespaces “corretas”;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;text-indent: -18pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&amp;nbsp;&lt;span style=&quot;font-size: 7pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;2- Realização
da movimentação das tabelas e índices das tablespaces “antigas” para as novas
através dos scripts abaixo:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0.0001pt 72pt; text-indent: -18pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;a.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;ALTER&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;TABLE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;OWNER&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;.&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;TBL_TABELA&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;MOVE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;TABLESPACE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;TBS50MB&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0.0001pt 72pt; text-indent: -18pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;b.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;ALTER&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;INDEX&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;IDX_TBL_01&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;REBUILD&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;TABLESPACE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;TBS50MB&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;text-indent: -18pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&amp;nbsp;&lt;span style=&quot;font-size: 7pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;3- Após
mover todos os objetos da tablespace, realizava o drop da tablespace antiga com
o comando:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 72pt; text-indent: -18pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot;&gt;a.&lt;span style=&quot;font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;DROP&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;TABLESPACE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;TBSOLD&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;INCLUDING&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;CONTENTS&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;AND&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;DATAFILES;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;text-indent: -18pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&amp;nbsp;&lt;span style=&quot;font-size: 7pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;4- Depois
de dropar a tablespace, acessava o servidor da base em questão e realizava a
exclusão física do datafile (pois às vezes não eram excluídos pelo comando
acima) e às vezes tinha que “derrubar” e iniciar a instância para conseguir excluir
o datafile. Fazia isso para liberar espaço em disco gasto desnecessariamente,
uma vez que os datafiles não seriam mais utilizados.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Basicamente foi isso que estava
fazendo (mas pode acreditar, não é tão simples quanto parece). &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Foi então que em uma das
execuções, acabei interrompendo o trabalho para fazer alguma outra coisa, e
quando retornei para essa atividade, executei o descrito no passo 4 antes do
passo 3, ou seja, excluí o datafile antigo (e vazio) fisicamente antes de
dropar a tablespace. Resultado, quando tentei “levantar” a instância, não
consegui, pois quanto realizei o &lt;b&gt;startup,
&lt;/b&gt;foi solicitado o datafile excluído acidentalmente.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Na hora que dei conta de que
tinha feito uma besteira, fui logo verificar como estava o backup, pois seria o
pior dos casos realizar o &lt;b&gt;&lt;i&gt;recovery&lt;/i&gt;&lt;/b&gt; da base. Obviamente comecei
essa tarefa de padronização das tablespaces pelas bases de teste e
desenvolvimento, o que me fez respirar mais tranquilo para manter a “estabilidade
emocional” (hehe).&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Conversei com um colega também
DBA sobre o que tinha acontecido e começamos a ver as possibilidades de solução
que tínhamos para a situação. Procurei na internet sobre o assunto, foi então que
encontrei, em um blog, um artigo com a seguinte chamada: &lt;b&gt;How Drop Tablespace and Recover Oracle Database When Accidentally
Delete Datafile.&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Pessoal, isso foi um “achado”! (hehehe)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
O autor expos uma situação muito
parecida com a que vivi e descrevi acima, e a solução que ele apresentou foi
mais ou menos a seguinte:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;text-indent: -18pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&amp;nbsp;&lt;span style=&quot;font-size: 7pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;1- Conectar
no SQL*Plus como SYSDBA&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 72pt; text-indent: -18pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;a.&lt;span style=&quot;font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;!--[endif]--&gt;SQLPLUS /NOLOG&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 72pt; text-indent: -18pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;b.&lt;span style=&quot;font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;!--[endif]--&gt;CONNECT / AS SYSDBA&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;text-indent: -18pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&amp;nbsp;&lt;span style=&quot;font-size: 7pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;2- O banco de dados deve estar no estado mount para conseguirmos executar o comando,
então montemos o banco:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 72pt; text-indent: -18pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;a.&lt;span style=&quot;font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;!--[endif]--&gt;STARTUP MOUNT;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;text-indent: -18pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&amp;nbsp;&lt;span style=&quot;font-size: 7pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;3- Em
seguida, o comando que tornará o datafile off-line, e nos permitirá iniciar a
instância (abrir o banco):&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 72pt; text-indent: -18pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot;&gt;a.&lt;span style=&quot;font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;ALTER&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;DATABASE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;DATAFILE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&#39; /opt/oracle/oradata/workspace/TBSOLD01.dbf&#39;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;OFFLINE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;DROP;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;text-indent: -18pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&amp;nbsp;&lt;span style=&quot;font-size: 7pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;4- Agora
vamos abrir o banco:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 72pt; text-indent: -18pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;a.&lt;span style=&quot;font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;!--[endif]--&gt;ALTER DATABASE OPEN;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;text-indent: -18pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size: 7pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;5- Agora
sim! Com a instância iniciada pude finalmente eliminar a tablespace do banco
com o comando:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;margin-left: 72pt; text-indent: -18pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot;&gt;a.&lt;span style=&quot;font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;DROP&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;TABLESPACE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;TBSOLD&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;INCLUDING&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;CONTENTS&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;AND&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;DATAFILES;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
É isso aí pessoal!&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Realmente foi um susto o que ocorreu,
um problema que pode acontecer com qualquer um (ou não... hehehe), mas
felizmente foi tudo resolvido de forma tranquila. &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Foi um ótimo aprendizado mas
espero que vocês não passem por isso, porém caso ocorra, já sabem com solucionar,
ok?!?!&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Por hoje é só e até a próxima!&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Referência:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;MY DIGITAL LIFE - How Drop Tablespace and
Recover Oracle Database When Accidentally Delete Datafile. &lt;/span&gt;Disponível
em: http://www.mydigitallife.info/how-drop-tablespace-and-recover-oracle-database-when-accidentally-delete-datafile/.
Acessado em: 04/04/2013.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://raphaeloafernandes.blogspot.com/feeds/6472222627389865816/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/04/recuperar-uma-instancia-oracle-apos.html#comment-form' title='1 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/6472222627389865816'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/6472222627389865816'/><link rel='alternate' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/04/recuperar-uma-instancia-oracle-apos.html' title='Recuperar uma instância Oracle após a exclusão acidental de um datafile'/><author><name>Raphael Fernandes</name><uri>http://www.blogger.com/profile/05900910831621641258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4532985094872298557.post-432612988489115438</id><published>2013-04-02T21:12:00.000-03:00</published><updated>2013-04-02T21:13:28.465-03:00</updated><title type='text'>Particionamento de dados no banco de dados Oracle</title><content type='html'>&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Olá a todos!&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Hoje vou falar sobre particionamento de tabelas e
índices no banco de dados Oracle, mas precisamente sobre uma situação que passei
recentemente no trabalho.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Para entender a situação que passei, é necessário
um conhecimento básico sobre particionamento de tabelas e índices no banco de
dados Oracle. Particionamento é alvo de muitos artigos e documentos oficiais da
Oracle, portanto não quero entrar nesse mérito, mas recomendo a leitura de
Borovina e Legatti que explicam de forma clara e objetiva as definições e
conceitos envolvidos. Também tem uma vasta documentação da Oracle disponível em
vários artigos, um deles fala sobre: Particionamento no Banco de Dados Oracle
11g. Os links para esses artigos são citados nas referências desse post.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Agora vou apresentar de fato a situação que vivi:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Em uma instância Oracle 10g (na versão 10.2.0.3)
tenho uma tabela particionada por lista.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
A estrutura da tabela é mais ou menos a seguinte:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;CREATE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;TABLE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;TBL_TABELA&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;COD&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;NUMBER&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;9&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;NOT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;NULL,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;CADASTRO&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;NUMBER&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;9&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;NOT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;NULL,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;MES&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;NUMBER&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;2&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;),&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;ANO&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;NUMBER&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;4&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;TABLESPACE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;TBS_DEFAULT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;PARTITION&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;BY&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;LIST&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;ANO&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;PARTITION&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;P_2008&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;VALUES&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;2008&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;TABLESPACE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;TBS_P_2008&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;PARTITION&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;P_2009&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;VALUES&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;2009&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;TABLESPACE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;TBS_P_2009&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;PARTITION&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;P_2010&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;VALUES&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;2010&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;TABLESPACE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;TBS_P_2010&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;PARTITION&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;P_2011&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;VALUES&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;2011&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;TABLESPACE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;TBS_P_2011&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;PARTITION&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;P_DEFAULT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;VALUES&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(DEFAULT)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;TABLESPACE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;TBS_DEFAULT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;);&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Meu problema é que os dados dos anos diferentes de
2008,2009,2010 e 2011 cairão, obviamente, na partição default.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
O que tenho que fazer, é criar partições para os
anos de 2012 e 2013, porém a presença da partição DEFAULT me impede de fazer
isso.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
É importante saber que a partição default está com
muitos dados (2012 e 2013) e não posso simplesmente dropar ela.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Essa era a minha situação problemática, que
inclusive tentei ajuda no fórum de Rodrigo Almeida.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
No início dessa semana, pesquisando sobre o
assunto, achei uma técnica interessante para resolver o assunto.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Para inserir uma nova partição, com a presença de
uma partição default, inicialmente criei as tablespaces para os anos de 2012 e
2013, conforme exemplo abaixo:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;CREATE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;TABLESPACE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;TBS_2012&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;DATAFILE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR; mso-highlight: white;&quot;&gt;&#39;/opt/oracle/oradata/workspace/tbs_2012.dbf&#39;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; mso-ansi-language: EN-US; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR; mso-highlight: white;&quot;&gt;SIZE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; mso-ansi-language: EN-US; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR; mso-highlight: white;&quot;&gt;2048&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR; mso-highlight: white;&quot;&gt;M&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; mso-ansi-language: EN-US; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR; mso-highlight: white;&quot;&gt;AUTOEXTEND&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; mso-ansi-language: EN-US; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR; mso-highlight: white;&quot;&gt;OFF&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;NOLOGGING&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;ONLINE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;EXTENT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;MANAGEMENT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;LOCAL&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;UNIFORM&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;SIZE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;100&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;M&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;BLOCKSIZE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;8&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;K&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;SEGMENT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;SPACE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;MANAGEMENT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;AUTO&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;FLASHBACK&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;ON;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Em seguida utilizei o comando &lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-highlight: white;&quot;&gt;SPLIT&lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-highlight: white;&quot;&gt;PARTITION&lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;para realizer a
divisão de uma partição, esse é o ponto crucial da solução do problema.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;A sintaxe que utilizei foi mais ou
menos a seguinte (para o ano de 2012):&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-highlight: white;&quot;&gt;ALTER&lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-highlight: white;&quot;&gt;TABLE&lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;TBL_TABELA&lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;SPLIT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;PARTITION&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;P_DEFAULT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;VALUES&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;2012&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;INTO&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;PARTITION&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;P_2012&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;TABLESPACE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;TBS_2012&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,PARTITION&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;P_DEFAULT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;);&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;O resultado após a execução desse
comando é uma partição P_2012 (que estará na tablespace TBS_2012) contendo os
dados da tabela do ano de 2012 e os dados dos outros anos ficarão na partição
P_DEFAULT (exceto para os anos que existem partições referentes), no meu caso
apenas os dados de 2013.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;Depois fiz a mesma coisa para a
partição do ano de 2013, e pronto. Resolvida a situação!&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;Bom pessoal, por enquanto é isso.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;Grande abraço e até a próxima!&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;Referências:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;LEGATTI, EDUARDO - Oracle Blog - Um
pouco sobre índices particionados no Oracle. Disponível em:
http://eduardolegatti.blogspot.com.br/2011/12/um-pouco-sobre-indices-particionados-no.html.
Acessado em: 02/04/2013.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;BOROVINA, JOÃO MARCELO -
Particionamento de Dados: Uma introdução aos conceitos e aplicação. Disponível
em:
http://www.devmedia.com.br/particionamento-de-dados-uma-introducao-aos-conceitos-e-aplicacao/7299.
Acessado em 02/04/2013.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;ALMEIDA, RODRIGO - Fórum: Problema
com tabela particionada no Oracle 10g. Disponível em:
http://www.rodrigoalmeida.net/forum/viewtopic.php?f=3&amp;amp;t=891&amp;amp;sid=2642261a63b71d2453109f92000e0a96
Acessado em: 01/04/2013.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;Oracle Corporation - Particionamento
no Banco de Dados Oracle 11g -Um artigo técnico da Oracle. Junho de 2007.
Disponível em:
http://www.oracle.com/technetwork/pt/database/enterprise-edition/documentation/particionamento-banco-de-dados-11g-432098-ptb.pdf.
Acessado em: 31/03/2013.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;Oracle Corporation - Maintaining
Partitions. Disponível em:
http://docs.oracle.com/cd/E11882_01/server.112/e25523/part_admin002.htm.
Acessado em: 01/04/2013.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://raphaeloafernandes.blogspot.com/feeds/432612988489115438/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/04/particionamento-de-dados-no-banco-de.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/432612988489115438'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/432612988489115438'/><link rel='alternate' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/04/particionamento-de-dados-no-banco-de.html' title='Particionamento de dados no banco de dados Oracle'/><author><name>Raphael Fernandes</name><uri>http://www.blogger.com/profile/05900910831621641258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4532985094872298557.post-131015478907999743</id><published>2013-04-01T08:08:00.000-03:00</published><updated>2013-04-01T08:08:14.607-03:00</updated><title type='text'>Notícia interessante sobre a Oracle</title><content type='html'>&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Bom dia a todos!&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Ontem estava lendo umas notícias,
quando me deparei com uma que foge um pouco o assunto de banco de dados, mas é
interessante por se tratar de tecnologia.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;A notícia foi publicada
23/02/2013, e fala sobre ataques cibernéticos diante da “vulnerabilidade” da
tecnologia JAVA. Na reportagem fala da ocorrências de ataques em empresas bastante
conhecidas tais como: Apple, Facebook e Twitter; e que os criminosos que tentam
invadir sistemas focaram na linguagem Java pois julgam que atualmente possui pontos
de ataque mais fáceis.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;A Oracle, que é a proprietária da
linguagem Java (após a aquisição da Sun Microsystems) desde o ano de 2010, vem
corrigindo os furos na linguagem, mas assim que as falhas são reparadas, novas
são expostas, segundo a reportagem.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Confiram a matéria completa no
site: http://www.advivo.com.br/blog/luisnassif/ataques-ciberneticos-expoem-oracle&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;É uma matéria interessante!&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Fica a dica, e até a próxima!&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://raphaeloafernandes.blogspot.com/feeds/131015478907999743/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/04/noticia-interessante-sobre-oracle.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/131015478907999743'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/131015478907999743'/><link rel='alternate' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/04/noticia-interessante-sobre-oracle.html' title='Notícia interessante sobre a Oracle'/><author><name>Raphael Fernandes</name><uri>http://www.blogger.com/profile/05900910831621641258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4532985094872298557.post-7646437935313967630</id><published>2013-03-25T09:19:00.001-03:00</published><updated>2013-03-25T11:01:22.507-03:00</updated><title type='text'>As funções numéricas ROUND e TRUNC no banco de dados Oracle</title><content type='html'>Olá pessoal!&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Tive uma semana conturbada e não deu para postar
nada, mas comecei a escrever algo e terminei há pouco.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Bom...&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Hoje vou falar sobre duas funções de linha simples:
&lt;b&gt;&lt;i&gt;round&lt;/i&gt;&lt;/b&gt;
e &lt;b&gt;&lt;i&gt;trunc.&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Só relembrando as primeiras aulas de banco de dados
da faculdade, funções de linha simples são as que operam com uma linha de
conjunto de dados por vez. Se uma instrução SQL seleciona 20 linhas
(registros), a função será executada 20 vezes, uma para cada linha.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
As funções &lt;i&gt;round
&lt;/i&gt;e&lt;i&gt; trunc &lt;/i&gt;podem ser usadas em
campos do tipo numérico e data, mas minha abordagem será apenas sobre número.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
A função &lt;b&gt;&lt;i&gt;ROUND&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Essa função realiza uma operação de arredondamento
de um valor com base em uma precisão especificada. &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
A sintaxe da função ROUND pode ser observada na Figura
1.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4gu6D1BeinQqLQnrK3pnDVD4Oz0SIAT3ts9t4Xxjja7RNEljwtloGyT-ULGAh7H9zfxGYLz-8sT3cDxIobaX51gMkg02L0npt128kmTMbePzSfAbw6HaecQoQAWu35oB4a8oWWNyD3GhR/s1600/round_number.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4gu6D1BeinQqLQnrK3pnDVD4Oz0SIAT3ts9t4Xxjja7RNEljwtloGyT-ULGAh7H9zfxGYLz-8sT3cDxIobaX51gMkg02L0npt128kmTMbePzSfAbw6HaecQoQAWu35oB4a8oWWNyD3GhR/s1600/round_number.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; page-break-after: avoid; text-align: center;&quot;&gt;
&lt;!--[if gte vml 1]&gt;&lt;v:shapetype
 id=&quot;_x0000_t75&quot; coordsize=&quot;21600,21600&quot; o:spt=&quot;75&quot; o:preferrelative=&quot;t&quot;
 path=&quot;m@4@5l@4@11@9@11@9@5xe&quot; filled=&quot;f&quot; stroked=&quot;f&quot;&gt;
 &lt;v:stroke joinstyle=&quot;miter&quot;/&gt;
 &lt;v:formulas&gt;
  &lt;v:f eqn=&quot;if lineDrawn pixelLineWidth 0&quot;/&gt;
  &lt;v:f eqn=&quot;sum @0 1 0&quot;/&gt;
  &lt;v:f eqn=&quot;sum 0 0 @1&quot;/&gt;
  &lt;v:f eqn=&quot;prod @2 1 2&quot;/&gt;
  &lt;v:f eqn=&quot;prod @3 21600 pixelWidth&quot;/&gt;
  &lt;v:f eqn=&quot;prod @3 21600 pixelHeight&quot;/&gt;
  &lt;v:f eqn=&quot;sum @0 0 1&quot;/&gt;
  &lt;v:f eqn=&quot;prod @6 1 2&quot;/&gt;
  &lt;v:f eqn=&quot;prod @7 21600 pixelWidth&quot;/&gt;
  &lt;v:f eqn=&quot;sum @8 21600 0&quot;/&gt;
  &lt;v:f eqn=&quot;prod @7 21600 pixelHeight&quot;/&gt;
  &lt;v:f eqn=&quot;sum @10 21600 0&quot;/&gt;
 &lt;/v:formulas&gt;
 &lt;v:path o:extrusionok=&quot;f&quot; gradientshapeok=&quot;t&quot; o:connecttype=&quot;rect&quot;/&gt;
 &lt;o:lock v:ext=&quot;edit&quot; aspectratio=&quot;t&quot;/&gt;
&lt;/v:shapetype&gt;&lt;v:shape id=&quot;Imagem_x0020_5&quot; o:spid=&quot;_x0000_i1028&quot; type=&quot;#_x0000_t75&quot;
 alt=&quot;round_number.gif&quot; style=&#39;width:236.25pt;height:34.5pt;visibility:visible;
 mso-wrap-style:square&#39;&gt;
 &lt;v:imagedata src=&quot;file:///C:\Users\ROAFER~1\AppData\Local\Temp\msohtmlclip1\01\clip_image001.gif&quot;
  o:title=&quot;round_number&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;!--[endif]--&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoCaption&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;Figura &lt;/span&gt;&lt;!--[if supportFields]&gt;&lt;span
style=&#39;color:windowtext;font-weight:normal;mso-bidi-font-weight:bold&#39;&gt;&lt;span
style=&#39;mso-element:field-begin&#39;&gt;&lt;/span&gt;&lt;span style=&#39;mso-spacerun:yes&#39;&gt; &lt;/span&gt;SEQ
Figura \* ARABIC &lt;span style=&#39;mso-element:field-separator&#39;&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]--&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;1&lt;/span&gt;&lt;!--[if supportFields]&gt;&lt;span
style=&#39;color:windowtext;font-weight:normal;mso-bidi-font-weight:bold&#39;&gt;&lt;span
style=&#39;mso-element:field-end&#39;&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]--&gt;&lt;/span&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; - Sintaxe da função
ROUND. (Fonte: Oracle Corporation)&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoCaption&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: windowtext;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
O grau de arredondamento ou precisão é opcional e
caso exista, deve ser um valor decimal, e para o caso desse valor ser “&lt;i&gt;n”, &lt;/i&gt;onde n &amp;gt; 0&lt;i&gt;, &lt;/i&gt;o dígito significante ao arredondamento é encontrado (n+1) do
lado direito do ponto decimal, ou seja:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;SELECT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;ROUND&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;1.259&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;2&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;valor&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;FROM&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;DUAL&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;;&lt;/span&gt; &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
A precisão é igual a 2 nesse exemplo, portanto o
dígito de arredondamento nesse caso será o de posição 2 após (lado direito) o
ponto, nesse caso o valor “5”.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Para o caso do valor da precisão ser um número
negativo, o dígito significante ao arredondamento é “&lt;i&gt;n&lt;/i&gt;” colocado do lado esquerdo do ponto:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;SELECT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;ROUND&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;136.479&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;-&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;1&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;valor&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;FROM&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;DUAL&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Nesse caso a precisão é -1, então o arredondamento
será feito no primeiro dígito após o ponto decimal, nesse caso o valor “6”.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Se o valor numérico do dígito significante for
maior ou igual a 5, um arredondamento para cima ocorrerá, caso contrário será
um arredondamento para baixo. Se não for informada a precisão de arredondamento
para a função round, o grau padrão de arredondamento é zero, significando que a
origem será arredondada para o número inteiro mais próximo (lado esquerdo do
ponto decimal).&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Vou dar uns exemplos para facilitar o entendimento:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;SELECT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;ROUND&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;1652.479&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;2&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;AS&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;valor&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;FROM&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;DUAL&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;UNION&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;ALL&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;SELECT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;ROUND&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;1652.479&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;1&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;AS&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;valor&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;FROM&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;DUAL&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;UNION&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;ALL&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;SELECT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;ROUND&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;1652.479&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;AS&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;valor&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;FROM&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;DUAL&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;UNION&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;ALL&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;SELECT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;ROUND&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;1652.479&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;-&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;1&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;AS&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;valor&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;FROM&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;DUAL&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;UNION&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;ALL&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;SELECT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;ROUND&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;1652.479&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;-&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;2&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;AS&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;valor&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;FROM&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;DUAL&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
O resultado para as consultas do exemplo pode ser
conferido na Figura 2.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRLpLf7S07EYUD9n27Z5nmLw4BBWxhLGqvd0grCJklgdMBsKzCJ0MwvyBAn9qFFPuDDqCYsoO5Gzb0GRbm_hm4SA4SA5iPniZ5FoXed6kDrmjb10GDnYcoZTb7-aKnsrZgrIrP7tG-EJJa/s1600/resultado1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRLpLf7S07EYUD9n27Z5nmLw4BBWxhLGqvd0grCJklgdMBsKzCJ0MwvyBAn9qFFPuDDqCYsoO5Gzb0GRbm_hm4SA4SA5iPniZ5FoXed6kDrmjb10GDnYcoZTb7-aKnsrZgrIrP7tG-EJJa/s1600/resultado1.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoCaption&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;Figura &lt;/span&gt;&lt;!--[if supportFields]&gt;&lt;span
style=&#39;color:windowtext;font-weight:normal;mso-bidi-font-weight:bold&#39;&gt;&lt;span
style=&#39;mso-element:field-begin&#39;&gt;&lt;/span&gt;&lt;span style=&#39;mso-spacerun:yes&#39;&gt; &lt;/span&gt;SEQ
Figura \* ARABIC &lt;span style=&#39;mso-element:field-separator&#39;&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]--&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;2&lt;/span&gt;&lt;!--[if supportFields]&gt;&lt;span
style=&#39;color:windowtext;font-weight:normal;mso-bidi-font-weight:bold&#39;&gt;&lt;span
style=&#39;mso-element:field-end&#39;&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]--&gt;&lt;/span&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; - Resultado de consultas
utilizando o comando &lt;i&gt;round&lt;/i&gt;. (Fonte:
autoria própria)&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
A função &lt;b&gt;TRUNC&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
A função &lt;i&gt;trunc&lt;/i&gt;
realiza uma operação de truncamento em um valor numérico com base em uma
precisão decimal especificada, que assim como a função &lt;i&gt;round, &lt;/i&gt;é opcional. A diferença entre as funções round e trunc é que
a segunda função “quebra” o resultado na precisão decimal especificada e não
tenta arredondar para cima ou para baixo.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
A sintaxe do comando trunc pode ser configurada na Figura
3.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjD3HpspoVXBGuPONobwp6p3A7EHjwgfNs9t-RIdOXjywFxL4MCYyTr36Sxyr5Anr4T7jj-RHp1Gjh94ul0erySa6oYLojTfcegEaACIdhZbuTFPsjdzjPgvrOoMEceOvgm7IptNkvO8HXd/s1600/trunc_number.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjD3HpspoVXBGuPONobwp6p3A7EHjwgfNs9t-RIdOXjywFxL4MCYyTr36Sxyr5Anr4T7jj-RHp1Gjh94ul0erySa6oYLojTfcegEaACIdhZbuTFPsjdzjPgvrOoMEceOvgm7IptNkvO8HXd/s1600/trunc_number.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoCaption&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;Figura &lt;/span&gt;&lt;!--[if supportFields]&gt;&lt;span
style=&#39;color:windowtext;font-weight:normal;mso-bidi-font-weight:bold&#39;&gt;&lt;span
style=&#39;mso-element:field-begin&#39;&gt;&lt;/span&gt;&lt;span style=&#39;mso-spacerun:yes&#39;&gt; &lt;/span&gt;SEQ
Figura \* ARABIC &lt;span style=&#39;mso-element:field-separator&#39;&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]--&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;3&lt;/span&gt;&lt;!--[if supportFields]&gt;&lt;span
style=&#39;color:windowtext;font-weight:normal;mso-bidi-font-weight:bold&#39;&gt;&lt;span
style=&#39;mso-element:field-end&#39;&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]--&gt;&lt;/span&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; - Sintaxe da função TRUNC.
(Fonte: Oracle Corporation)&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Como os conceitos entre as funções &lt;i&gt;round&lt;/i&gt; e &lt;i&gt;trunc&lt;/i&gt; são bem parecidos, vou partir para exemplos do comando TRUNC
para facilitar o entendimento:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;SELECT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;TRUNC&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; color: maroon; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;1652.479123&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; color: maroon; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;3&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;AS&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;valor&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;FROM&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;DUAL&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;UNION&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;ALL&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;SELECT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;TRUNC&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;1652.479123&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;2&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;AS&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;valor&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;FROM&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;DUAL&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;UNION&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;ALL&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;SELECT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;TRUNC&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;1652.479123&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;1&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;AS&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;valor&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;FROM&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;DUAL&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;UNION&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;ALL&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;SELECT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;TRUNC&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;1652.479123&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;AS&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;valor&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;FROM&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;DUAL&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;UNION&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;ALL&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;SELECT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;TRUNC&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;1652.479123&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;-&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;1&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;AS&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;valor&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;FROM&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;DUAL&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;UNION&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;ALL&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;SELECT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;TRUNC&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;1652.479123&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;-&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;2&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;AS&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;valor&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;FROM&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;DUAL&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;UNION&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;ALL&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;SELECT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;TRUNC&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;1652.479123&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;-&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;3&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;AS&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;valor&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;FROM&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;DUAL&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqETDetGFev8a-ZlFaWlXjJ8Shnuv2OkaPjIB9OYyvItgxyX0gvszX3APgOcijpMeHEzNKxvZqqxMU8e8xVj_lv5TCl2I2mDadLqsXqqPhqFd69hStjQ3n8e0Zm2eKy4L9KyjoAxVq9D4B/s1600/resultado2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqETDetGFev8a-ZlFaWlXjJ8Shnuv2OkaPjIB9OYyvItgxyX0gvszX3APgOcijpMeHEzNKxvZqqxMU8e8xVj_lv5TCl2I2mDadLqsXqqPhqFd69hStjQ3n8e0Zm2eKy4L9KyjoAxVq9D4B/s1600/resultado2.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoCaption&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;Figura &lt;/span&gt;&lt;!--[if supportFields]&gt;&lt;span
style=&#39;color:windowtext;font-weight:normal;mso-bidi-font-weight:bold&#39;&gt;&lt;span
style=&#39;mso-element:field-begin&#39;&gt;&lt;/span&gt;&lt;span style=&#39;mso-spacerun:yes&#39;&gt; &lt;/span&gt;SEQ
Figura \* ARABIC &lt;span style=&#39;mso-element:field-separator&#39;&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]--&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;4&lt;/span&gt;&lt;!--[if supportFields]&gt;&lt;span
style=&#39;color:windowtext;font-weight:normal;mso-bidi-font-weight:bold&#39;&gt;&lt;span
style=&#39;mso-element:field-end&#39;&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]--&gt;&lt;/span&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; - Resultado de
consultas utilizando o comando &lt;i&gt;trunc&lt;/i&gt;.
(Fonte: autoria própria)&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Esses comandos de linhas simples são bastante
eficientes e muito útil quando se precisa trabalhar com precisões.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Espero ter conseguido passar o entendimento sobre
as funções.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Grande abraço e até a próxima!&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Referências: &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
WATSON, JOHN – Ramklass, Roopesh (2010) – OCA
Oracle Database 11g – Fundamentos I SQL – Manual do Exame 1z0-051. Editora: ALTABOOKS.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
ORACLE CORPORATION – ROUND (number).
Disponível em: http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions135.htm.
Acessado em 24/03/2013.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-ansi-language: PT-BR; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;ORACLE CORPORATION – TRUNC (number). Disponível
em: http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions200.htm. Acessado
em 24/03/2013.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://raphaeloafernandes.blogspot.com/feeds/7646437935313967630/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/03/as-funcoes-numericas-round-e-trunc-no.html#comment-form' title='9 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/7646437935313967630'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/7646437935313967630'/><link rel='alternate' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/03/as-funcoes-numericas-round-e-trunc-no.html' title='As funções numéricas ROUND e TRUNC no banco de dados Oracle'/><author><name>Raphael Fernandes</name><uri>http://www.blogger.com/profile/05900910831621641258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4gu6D1BeinQqLQnrK3pnDVD4Oz0SIAT3ts9t4Xxjja7RNEljwtloGyT-ULGAh7H9zfxGYLz-8sT3cDxIobaX51gMkg02L0npt128kmTMbePzSfAbw6HaecQoQAWu35oB4a8oWWNyD3GhR/s72-c/round_number.gif" height="72" width="72"/><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4532985094872298557.post-3481657703413269056</id><published>2013-03-20T11:10:00.000-03:00</published><updated>2013-03-20T11:10:04.291-03:00</updated><title type='text'>Query hierárquica no banco de dados Oracle</title><content type='html'>&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Olá pessoal,&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Hoje vou falar sobre consultas hierárquicas no
banco de dados Oracle. Esse tipo de estrutura é muito útil para várias situações
desde criação de itens de um menu até uma simulação de informação.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Bom...&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Uma consulta hierárquica relaciona registros com
base em uma relação de parentesco. Para que seja possível realizar uma consulta
de forma hierárquica de um conjunto de dados, é necessário que exista uma
relação de lógica entre os registros (pai e filho).&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Vou dar um exemplo mais prático: criação de itens de
menu. Digamos que queiramos criar um menu da seguinte forma:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
1.Item 1&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
--1.1.Item 1, parte 1&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
--1.2.Item 1, parte 2&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
----1.2.1.Item 1, parte 2, seção 1&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
----1.2.2.Item 1, parte 2, seção 2&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
2.Item 2&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
--2.1.Item 2, parte 1&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
--2.2.Item 2, parte 2&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Vou criar uma tabela chamada MENU para ajudar no
entendimento:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;CREATE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;TABLE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: olive; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;menu&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;cod&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;NUMBER&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;4&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;),&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;codpai&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;NUMBER&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;4&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;),&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;campo&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;VARCHAR&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;30&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;),&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;CONSTRAINT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;PK_MENU&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;PRIMARY&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;KEY&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;COD&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;),&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;CONSTRAINT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;FK_MENU_CODPAI&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;FOREIGN&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;KEY&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;CODPAI&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;REFERENCES&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;DIARIO&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;.&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: olive; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;MENU&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;COD&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Agora vou popular a tabela com registros de mesmo
valor do citado no exemplo literal acima:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;INSERT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;INTO&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: olive; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;MENU&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;VALUES&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;1&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;NULL,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&#39;Item
1&#39;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;);&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;INSERT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;INTO&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: olive; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;MENU&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;VALUES&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;2&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;1&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&#39;Item
1,parte 1&#39;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;);&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;INSERT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;INTO&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: olive; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;MENU&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;VALUES&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;3&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;1&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&#39;Item
1,parte 2&#39;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;);&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;INSERT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;INTO&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: olive; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;MENU&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;VALUES&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;4&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;3&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&#39;Item
1,parte 2, seção 1&#39;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;);&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;INSERT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;INTO&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: olive; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;MENU&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;VALUES&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;5&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;3&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&#39;Item
1,parte 2, seção 2&#39;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;);&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;INSERT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;INTO&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: olive; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;MENU&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;VALUES&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;6&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,NULL,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&#39;Item
2&#39;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;);&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;INSERT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;INTO&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: olive; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;MENU&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;VALUES&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;7&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;6&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&#39;Item
2,parte 1&#39;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;);&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;INSERT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;INTO&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: olive; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;MENU&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;VALUES&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;8&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;6&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&#39;Item
2,parte 2&#39;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;);&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;COMMIT;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Verificando de forma normal os registros executando
a consulta abaixo temos o resultado da Figura 2:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;SELECT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;cod&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;codpai&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;campo&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;FROM&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: olive; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;MENU&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;ORDER&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;BY&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;1&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;ASC,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;2&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;ASC;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnMk-18GKMDt45eD3IRDBcwxvbi0YRyHPXP8X0X-htQKzLAmGXmA-wFtFzWyrFIm2Jd1ylPa64ut9Jusi2_-lk3p6giSi2g9U8IpI7YKqMLbmL0jQYCfF8ecH5TEfsHZn4qkdp4J3UzChV/s1600/resultado_1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnMk-18GKMDt45eD3IRDBcwxvbi0YRyHPXP8X0X-htQKzLAmGXmA-wFtFzWyrFIm2Jd1ylPa64ut9Jusi2_-lk3p6giSi2g9U8IpI7YKqMLbmL0jQYCfF8ecH5TEfsHZn4qkdp4J3UzChV/s1600/resultado_1.png&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: windowtext; text-align: center;&quot;&gt;Figura &lt;/span&gt;&lt;span style=&quot;color: windowtext; text-align: center;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: windowtext; text-align: center;&quot;&gt; - Resultado da
consulta do exemplo 1. (Fonte: autoria própria)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Agora vamos ver como realizar uma consulta hierárquica
contra essa tabela. Para isso, vamos entender um pouco do conceito.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
A estrutura utilizada para realizar consultas dessa
natureza é: &lt;b&gt;&lt;i&gt;START WITH ... CONNECT BY&lt;/i&gt;&lt;/b&gt;, e sua sintaxe pode ser vista na
Figura 2.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcBJjg_vlM2vAJ2iBUybzaGCuFaO0bzeA3dWAZWvJOwaU2TcqkAIWSBZHx12uLVIOefZUIJgWO3gbBpKuqC47Xs_qRlRxbovUvcezKdsZ3z5ttscJI14u2n84RHM-LGJR-F7GHW4cg24Fi/s1600/hierarchical_query_clause.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;76&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcBJjg_vlM2vAJ2iBUybzaGCuFaO0bzeA3dWAZWvJOwaU2TcqkAIWSBZHx12uLVIOefZUIJgWO3gbBpKuqC47Xs_qRlRxbovUvcezKdsZ3z5ttscJI14u2n84RHM-LGJR-F7GHW4cg24Fi/s400/hierarchical_query_clause.gif&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoCaption&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;Figura &lt;/span&gt;&lt;!--[if supportFields]&gt;&lt;span style=&#39;color:windowtext;
font-weight:normal;mso-bidi-font-weight:bold&#39;&gt;&lt;span style=&#39;mso-element:field-begin&#39;&gt;&lt;/span&gt;&lt;span
style=&#39;mso-spacerun:yes&#39;&gt; &lt;/span&gt;SEQ Figura \* ARABIC &lt;span style=&#39;mso-element:
field-separator&#39;&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]--&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;2&lt;/span&gt;&lt;!--[if supportFields]&gt;&lt;span
style=&#39;color:windowtext;font-weight:normal;mso-bidi-font-weight:bold&#39;&gt;&lt;span
style=&#39;mso-element:field-end&#39;&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]--&gt;&lt;/span&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; - Sintaxe para
consultas hierárquicas. (Fonte: Oracle Corporation)&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;_GoBack&quot;&gt;&lt;/a&gt;O comando START WITH:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Determina quais são os registros “raiz” que devem
ser utilizados para iniciar a consulta. No nosso caso, serão os registros com “&lt;b&gt;&lt;i&gt;codpai&lt;/i&gt;&lt;/b&gt;”
nulo.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
O comando CONNECT BY PRIOR:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Este comando especifica a relação entre registros
pai e filho. No nosso caso, “&lt;b&gt;&lt;i&gt;cod&lt;/i&gt;&lt;/b&gt;” deverá ter um correspondente em
“&lt;b&gt;&lt;i&gt;codpai&lt;/i&gt;&lt;/b&gt;”.
É importante ressaltar que se a igualdade for invertida, ou seja, “&lt;b&gt;&lt;i&gt;codpai&lt;/i&gt;&lt;/b&gt;”
foi igual a “&lt;b&gt;&lt;i&gt;cod&lt;/i&gt;&lt;/b&gt;” o resultado será totalmente diferente, pois o Oracle
considera o argumento da esquerda como pai (ou raiz) e o da direita da
igualdade como filho.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
A consulta hierárquica para atender a solução é a
seguinte:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;SELECT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;cod&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;codpai&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;LEVEL,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;LPAD&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&#39; &#39;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,(LEVEL&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;-&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;1&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; * &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;3&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&#39;-&#39;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; || &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;campo&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;AS&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&quot;Descrição&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;FROM&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: olive; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;menu&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;START&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;WITH&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;codpai&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;IS&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;NULL&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;CONNECT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;BY&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;PRIOR&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;cod&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;=&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;codpai&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;ORDER&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;BY&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;cod&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;ASC,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;codpai&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;ASC,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;campo&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;ASC;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
A pseudo-coluna &lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;LEVEL&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt; &lt;/span&gt;sempre
está disponível para consultas hierárquicas e serve para indicar o nível em que
o registro se encontra em relação à raiz. &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
O resultado da consulta acima pode ser conferido na
Figura 3.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; page-break-after: avoid; text-align: center;&quot;&gt;
&lt;!--[if gte vml 1]&gt;&lt;v:shape
 id=&quot;Imagem_x0020_2&quot; o:spid=&quot;_x0000_i1027&quot; type=&quot;#_x0000_t75&quot; alt=&quot;resultado_2.png&quot;
 style=&#39;width:235.5pt;height:129pt;visibility:visible;mso-wrap-style:square&#39;&gt;
 &lt;v:imagedata src=&quot;file:///C:\Users\ROAFER~1\AppData\Local\Temp\msohtmlclip1\01\clip_image005.png&quot;
  o:title=&quot;resultado_2&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;!--[endif]--&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoVTC75MbusrhmSuJ5UOm-rudJ-laAsWpMImE1QbzpIGGECMJiY-XC_-NWDIdhV5g-ueja8C3xHN7W3_3Jr_TqmdpORNbgZpY5IEbW_OGtvMHuSUUh3V8grhahFFmJT3XkbZ8jGpgODBxM/s1600/resultado_2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoVTC75MbusrhmSuJ5UOm-rudJ-laAsWpMImE1QbzpIGGECMJiY-XC_-NWDIdhV5g-ueja8C3xHN7W3_3Jr_TqmdpORNbgZpY5IEbW_OGtvMHuSUUh3V8grhahFFmJT3XkbZ8jGpgODBxM/s1600/resultado_2.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoCaption&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;Figura &lt;/span&gt;&lt;!--[if supportFields]&gt;&lt;span
style=&#39;color:windowtext;font-weight:normal;mso-bidi-font-weight:bold&#39;&gt;&lt;span
style=&#39;mso-element:field-begin&#39;&gt;&lt;/span&gt;&lt;span style=&#39;mso-spacerun:yes&#39;&gt; &lt;/span&gt;SEQ
Figura \* ARABIC &lt;span style=&#39;mso-element:field-separator&#39;&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]--&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;3&lt;/span&gt;&lt;!--[if supportFields]&gt;&lt;span
style=&#39;color:windowtext;font-weight:normal;mso-bidi-font-weight:bold&#39;&gt;&lt;span
style=&#39;mso-element:field-end&#39;&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]--&gt;&lt;/span&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; - Resultado da
consulta do exemplo 1. (Fonte: autoria própria)&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoCaption&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: windowtext;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Consultas hierárquicas podem ter muitas utilidades,
e os comandos &lt;i&gt;connect by&lt;/i&gt; e &lt;i&gt;start with&lt;/i&gt; podem nos ajudar de várias
outras formas.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Por exemplo, uma simulação de valores de 1 a 10:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;SELECT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;LEVEL&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&quot;Número&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;FROM&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;DUAL&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;CONNECT BY&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;LEVEL&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&amp;lt;=&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;10&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;ORDER&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;BY&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;1&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;ASC;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
O resultado da consulta acima pode ser conferido na
Figura 4.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifi2hC7tkJlrmRZEjX6Pv_9J_NL3H39LoSM29meHKeLdJ5ApdvEyzZIL7ABYP-GWfaE6DbW7eInqeU3xy2lCa4axvmQjndQVQqw04haj7sp7nmnEx3VOfQy7PQvMq2AJWbdSOJgyF6DP0i/s1600/simulacao1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifi2hC7tkJlrmRZEjX6Pv_9J_NL3H39LoSM29meHKeLdJ5ApdvEyzZIL7ABYP-GWfaE6DbW7eInqeU3xy2lCa4axvmQjndQVQqw04haj7sp7nmnEx3VOfQy7PQvMq2AJWbdSOJgyF6DP0i/s1600/simulacao1.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoCaption&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;Figura &lt;/span&gt;&lt;!--[if supportFields]&gt;&lt;span
style=&#39;color:windowtext;font-weight:normal;mso-bidi-font-weight:bold&#39;&gt;&lt;span
style=&#39;mso-element:field-begin&#39;&gt;&lt;/span&gt;&lt;span style=&#39;mso-spacerun:yes&#39;&gt; &lt;/span&gt;SEQ
Figura \* ARABIC &lt;span style=&#39;mso-element:field-separator&#39;&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]--&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;4&lt;/span&gt;&lt;!--[if supportFields]&gt;&lt;span
style=&#39;color:windowtext;font-weight:normal;mso-bidi-font-weight:bold&#39;&gt;&lt;span
style=&#39;mso-element:field-end&#39;&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]--&gt;&lt;/span&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; - Simulação de
contagem de 1 a 10. (Fonte: autoria própria)&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
Recentemente passei por uma situação e usei &lt;i&gt;connect by&lt;/i&gt; e &lt;i&gt;start with &lt;/i&gt;para
resolver. A situação foi a seguinte, precisava saber qual o primeiro domingo do
mês corrente. &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
Alguém se habilita com uma solução?&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
Bom...&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
A que usei foi a seguinte: simulei dados para os 7 primeiros dias do
mês (e com certeza o primeiro domingo estará entre eles), e numa consulta mais
externa verifiquei qual das datas correspondia ao primeiro dia da semana, no
caso o domingo. A consulta foi a seguinte:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;SELECT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;dia&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;FROM&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(SELECT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;TRUNC&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(SYSDATE,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&#39;MM&#39;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;+&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;b&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;.&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;simulado&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;dia&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;FROM&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;DUAL&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;a,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;SELECT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;LEVEL&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;-&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;1&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;simulado&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;FROM&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;DUAL&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;CONNECT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;BY&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;LEVEL&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&amp;lt;=&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;7&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;b&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;WHERE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;TO_CHAR&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;dia&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&#39;D&#39;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;=&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&#39;1&#39;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
O resultado para a consulta pode ser conferida na
Figura 5.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxjyHvR_KC3BMgD4xovzsU5hj6rGF5QAZJyBBwidK0hLaE2AlJp4gxwz5_YxoTvnmst6Z7JIhnz7ERmebhLdOdLns5xKvT2uzelHkHIa17EZ_3VttV0zj_wcVYFaqYiX2emGV-78BOjtvd/s1600/simulacao2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxjyHvR_KC3BMgD4xovzsU5hj6rGF5QAZJyBBwidK0hLaE2AlJp4gxwz5_YxoTvnmst6Z7JIhnz7ERmebhLdOdLns5xKvT2uzelHkHIa17EZ_3VttV0zj_wcVYFaqYiX2emGV-78BOjtvd/s1600/simulacao2.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoCaption&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;Figura &lt;/span&gt;&lt;!--[if supportFields]&gt;&lt;span
style=&#39;color:windowtext;font-weight:normal;mso-bidi-font-weight:bold&#39;&gt;&lt;span
style=&#39;mso-element:field-begin&#39;&gt;&lt;/span&gt;&lt;span style=&#39;mso-spacerun:yes&#39;&gt; &lt;/span&gt;SEQ
Figura \* ARABIC &lt;span style=&#39;mso-element:field-separator&#39;&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]--&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;5&lt;/span&gt;&lt;!--[if supportFields]&gt;&lt;span
style=&#39;color:windowtext;font-weight:normal;mso-bidi-font-weight:bold&#39;&gt;&lt;span
style=&#39;mso-element:field-end&#39;&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]--&gt;&lt;span style=&quot;color: windowtext;&quot;&gt; – Consulta para saber
o primeiro domingo do mês corrente. (Fonte: autoria própria)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoCaption&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Essa foi uma forma simples e prática para a solução
do meu problema.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Por hoje é isso, pessoal!&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Espero ter conseguido passar o entendimento de
forma clara e objetiva.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Até a próxima!&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Referências:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Oracle Corporation – Hierarchical Queries.
Disponível em: http://docs.oracle.com/cd/B28359_01/server.111/b28286/queries003.htm.
Acessado: 18/03/2013.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Lusa, Diego Antonio - Uso do CONNECT BY no Oracle.
Disponível em: http://www.devmedia.com.br/uso-do-connect-by-no-oracle/23647. Acessado:18/03/2013.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://raphaeloafernandes.blogspot.com/feeds/3481657703413269056/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/03/query-hierarquica-no-banco-de-dados.html#comment-form' title='4 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/3481657703413269056'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/3481657703413269056'/><link rel='alternate' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/03/query-hierarquica-no-banco-de-dados.html' title='Query hierárquica no banco de dados Oracle'/><author><name>Raphael Fernandes</name><uri>http://www.blogger.com/profile/05900910831621641258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnMk-18GKMDt45eD3IRDBcwxvbi0YRyHPXP8X0X-htQKzLAmGXmA-wFtFzWyrFIm2Jd1ylPa64ut9Jusi2_-lk3p6giSi2g9U8IpI7YKqMLbmL0jQYCfF8ecH5TEfsHZn4qkdp4J3UzChV/s72-c/resultado_1.png" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4532985094872298557.post-5934089618291948835</id><published>2013-03-18T10:29:00.000-03:00</published><updated>2013-03-18T10:29:26.053-03:00</updated><title type='text'>Estatísticas no banco de dados Oracle</title><content type='html'>&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Olá pessoal!&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Hoje quero falar um pouco sobre as estatísticas no
banco de dados Oracle e a importância delas para o bom desempenho dos scripts
submetidos ao banco.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Inicialmente, vou abordar os métodos existentes
para realizar a coleta das estatísticas, com algumas características e tentar
estabelecer uma comparação entre eles.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Lembrando que em um &lt;b&gt;&lt;a href=&quot;http://raphaeloafernandes.blogspot.com.br/2013/03/query-para-verificar-atualizacao-das.html&quot; target=&quot;_blank&quot;&gt;post anterior&lt;/a&gt;&lt;/b&gt;, comentei sobre como verificar se as estatísticas de
sua instância Oracle foram atualizadas recentemente.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Vou fazer uma explicação rápida sobre plano de
execução (isso porque pretendo fazer um post sobre o assunto em outro momento).
&amp;nbsp;O Plano de Execução de uma instrução SQL
é uma seqüência de operações que o Banco de Dados Oracle realiza para executar
uma instrução. O plano de uma instrução pode se alterar conforme o ambiente em
que está sendo executado: versão do Oracle, hardware, parâmetros de servidor
(sistema ou sessão), volume de dados e estatísticas.&amp;nbsp; Esse último item é o ponto que quero focar no
artigo de hoje.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Estatística é uma coleção de dados detalhados sobre
o banco de dados e seus objetos. As estatísticas são usadas pelo otimizador de
consultas do Oracle para escolher o melhor plano de execução a ser executado.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Abaixo, seguindo a definição da Oracle, seguem
itens inclusos nas estatísticas:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
- Para o caso de tabela:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -
Número de linhas (registros)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -
Número de blocos de dados&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -
Comprimento médio das linhas&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
- Para as colunas:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -
Número de valores distintos na coluna (NDV – Number of Distinct Values)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -
Número de colunas nulas&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -
Distribuição dos dados (histogramas)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
- Estatísticas dos índices:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -
Número de blocos folha&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -
Níveis&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify; text-indent: 35.4pt;&quot;&gt;
- Fator de agrupamento&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
- Estatísticas de sistema:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -
Desempenho e utilização de I/O&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -
Desempenho e utilização de CPU&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Entendendo quais informações são levadas em
consideração nas estatísticas, torna de mais fácil entendimento a razão que
elas auxiliam na escolha do otimizador do Oracle de “traçar” um plano de
execução mais eficiente para acessar um dado (ou um conjunto de dados) da base.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Existem algumas maneiras de se atualizar as
estatísticas, inclusive o próprio banco de dados Oracle já realiza diante de
algumas circunstâncias, tais como modificação significativa na tabela (mais de
10% dos registros caso o objeto esteja habilitado para monitoramento). As
formas de atualização das estatísticas são as seguintes:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;text-indent: -24px;&quot;&gt;Atualização através do comando&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;text-indent: -24px;&quot;&gt;ANALYZE&lt;/b&gt;&lt;span style=&quot;text-indent: -24px;&quot;&gt;:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
A sintaxe
para coletar estatísticas de uma tabela é a seguinte:&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify; text-indent: 34.8pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;ANALYZE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;TABLE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;OWNER&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;.&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;TABELA&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;COMPUTE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;STATISTICS;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Algumas
características sobre essa estrutura de atualização das estatísticas, segundo
Fábio Prado:&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;margin: 0cm 0cm 0.0001pt 72pt; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;a.&lt;span style=&quot;font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;!--[endif]--&gt;Coleta ou exclui estatísticas sobre índices,
tabelas ou clusters; de forma exata ou estimada em um número ou percentual de
registros;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0.0001pt 72pt; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;b.&lt;span style=&quot;font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;!--[endif]--&gt;Pode não precisar a informação de cardinalidade
da tabela no que diz respeito a valores distintos nas colunas (NDV);&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;margin: 0cm 0cm 0.0001pt 72pt; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;c.&lt;span style=&quot;font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;!--[endif]--&gt;Foi bastante eficiente nas versões anteriores do
banco de dados Oracle, mas nas versões atuais existem apenas para manter a
compatibilidade.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify; text-indent: -18pt;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; Atua&lt;a href=&quot;&quot; name=&quot;_GoBack&quot;&gt;&lt;/a&gt;lização através do pacote &lt;b&gt;DBMS_UTILITY:&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
A sintaxe para
coletar estatísticas de um esquema é a seguinte:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify; text-indent: 35.4pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;EXEC&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;DBMS_UTILITY.ANALYZE_SCHEMA&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;OWNER&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&#39;ESTIMATE&#39;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;99&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;20&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&#39;FOR
TABLE&#39;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;);&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify; text-indent: 18pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify; text-indent: 35.4pt;&quot;&gt;
ou pode-se atualizar as
estatísticas de toda a instância através do commando:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify; text-indent: 35.4pt;&quot;&gt;
&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-highlight: white;&quot;&gt;EXEC&lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;
&lt;/span&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;DBMS_UTILITY.ANALYZE_DATABASE&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-highlight: white;&quot;&gt;&#39;ESTIMATE&#39;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-highlight: white;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-highlight: white;&quot;&gt;20&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-highlight: white;&quot;&gt;&#39;FOR TABLE&#39;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-highlight: white;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify; text-indent: 35.4pt;&quot;&gt;
&lt;span style=&quot;text-indent: 17.4pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify; text-indent: 35.4pt;&quot;&gt;
&lt;span style=&quot;text-indent: 17.4pt;&quot;&gt;É importante lembrar que diferente do comando &lt;/span&gt;&lt;b style=&quot;text-indent: 17.4pt;&quot;&gt;ANALYZE&lt;/b&gt;&lt;span style=&quot;text-indent: 17.4pt;&quot;&gt;, o pacote DBMS_&lt;/span&gt;&lt;b style=&quot;text-indent: 17.4pt;&quot;&gt;UTILITY&lt;/b&gt;&lt;span style=&quot;text-indent: 17.4pt;&quot;&gt; pode coletar as estatísticas de
um esquema ou de todo um banco de dados.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify; text-indent: -18pt;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; Atualização
através do pacote &lt;b&gt;DBMS_STATS:&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
A sintaxe
para coletar estatísticas de uma tabela é a seguinte:&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;EXEC&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;DBMS_STATS.GATHER_TABLE_STATS&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;OWNNAME&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&#39;OWNER&#39;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;TABNAME&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&#39;TABELA&#39;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;ESTIMATE_PERCENT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;20&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
A sintaxe
para coletar estatísticas de um esquema é a seguinte:&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;EXEC&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;DBMS_STATS.GATHER_SCHEMA_STATS&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&#39;OWNER&#39;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;ESTIMATE_PERCENT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;20&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
A sintaxe
para coletar estatísticas de toda a instância é a seguinte:&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;EXEC&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;DBMS_STATS.GATHER_DATABASE_STATS&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Para coletar
estatísticas de sistema (dicionário de dados): &lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;EXEC&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;DBMS_STATS.GATHER_DICTIONARY_STATS&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Algumas
características sobre essa estrutura de atualização das estatísticas, também
segundo Fábio Prado:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 0.0001pt 35.4pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;margin: 0cm 0cm 0.0001pt 72pt; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;a.&lt;span style=&quot;font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;!--[endif]--&gt;Foi introduzido no Oracle 8i e hoje é o método
mais eficiente para coletar estatísticas para o CBO. É o método de coleta de
estatísticas atualmente recomendado pela Oracle;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0.0001pt 72pt; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;b.&lt;span style=&quot;font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;!--[endif]--&gt;Permite coletar estatísticas exatas ou estimadas
de objetos individualmente (tabelas, índices, cluster etc), esquemas, banco de
dados completo e de sistema;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;margin: 0cm 0cm 0.0001pt 72pt; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;c.&lt;span style=&quot;font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;!--[endif]--&gt;Permite execução paralela, transferência de
estatísticas entre servidores e é mais preciso que os métodos anteriores pois
gera histogramas, que são extremamente úteis para otimizar scripts SQL que acessam
colunas com valores dispersos.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
É importante saber que utilizar o pacote DBMS_STATS
é a forma mais completa e justamente por esse motivo pode ser o método mais
lento de coleta de estatística entre os apresentados. Para garantir um
desempenho otimizado do seu banco, é de fundamental importância que as
estatísticas dele estejam atualizadas. Lembro novamente que o Oracle realiza de
forma automática a coleta das estatísticas diante de algumas situações (isso
nas versões “mais recentes” do banco Oracle – a partir do 10g): diariamente
caso as estatísticas estejam desatualizadas ou quando existir muita
movimentação dos registros – cerca de 10% do total (configurável) – do objeto
(que também significa que as estatísticas estão desatualizadas).&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Bom pessoal. Por hoje é isso!&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Espero ter conseguido passar o básico sobre coleta
de estatísticas no BD Oracle.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Até a próxima!&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Referências:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;ORACLE
CORPORATION - MANAGING OPTIMIZER STATISTICS. &lt;/span&gt;Disponível em:&amp;nbsp; http://docs.oracle.com/cd/B13789_01/server.101/b10752/stats.htm&lt;span class=&quot;MsoHyperlink&quot;&gt;.&lt;/span&gt; Acessado em: 02/03/2013.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
ORACLE CORPORATION - DBMS_STATS. Disponível
em:&amp;nbsp; http://docs.oracle.com/cd/B19306_01/appdev.102/b14258/d_stats.htm.
Acessado em: 02/03/2013.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
PRADO, FÁBIO. Disponível em: http://www.fabioprado.net/2012/04/coletando-estatisticas-para-o.html&lt;span class=&quot;MsoHyperlink&quot;&gt;.&lt;/span&gt; Acessado em: 17/03/2013.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
DBPEDIAS. Disponível: http://dbpedias.com/wiki/Oracle:DBMS_UTILITY.ANALYZE_DATABASE&lt;span class=&quot;MsoHyperlink&quot;&gt;.&lt;/span&gt; Acessado em: 02/03/2013.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
DBPEDIAS. Disponível em: http://dbpedias.com/wiki/Oracle:DBMS_UTILITY.ANALYZE_SCHEMA.
Acessado em: 02/03/2013.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://raphaeloafernandes.blogspot.com/feeds/5934089618291948835/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/03/estatisticas-no-banco-de-dados-oracle.html#comment-form' title='1 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/5934089618291948835'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/5934089618291948835'/><link rel='alternate' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/03/estatisticas-no-banco-de-dados-oracle.html' title='Estatísticas no banco de dados Oracle'/><author><name>Raphael Fernandes</name><uri>http://www.blogger.com/profile/05900910831621641258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4532985094872298557.post-8991975979675202775</id><published>2013-03-15T10:31:00.001-03:00</published><updated>2013-03-15T10:31:55.340-03:00</updated><title type='text'>Query para verificar atualização das estatísticas de tabelas e índices do banco de dados Oracle</title><content type='html'>&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Muito bom dia, a todos!&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Hoje vou falar sobre como verificar se as
estatísticas das tabelas e índices da sua instância estão atualizadas. Quero lembrar que o otimizador do banco de dados
Oracle nas versões “mais recentes”, otimizador baseado em custo (&lt;i&gt;CBO - Cost-Based Optimizer&lt;/i&gt;), que&amp;nbsp; é o grande responsável por traçar o plano de
execução, (definindo a “melhor” forma de se acessar um dado optando pelo “mais
eficiente” método de acesso), utiliza as estatísticas para fazê-lo. Dessa
forma, pode-se afirmar que a coleta e atualização das estatísticas está
diretamente ligada à performance do banco de dados.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Bom...&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Criei duas consultas para verificarmos quando foi a
última vez que o objeto (índice ou tabela) teve suas estatísticas coletadas. É
importante saber que o banco Oracle realiza de forma automática a coleta das
estatísticas para o caso de uma variação muito grande do tamanho do objeto
(cerca de 10%), mas isso é um assunto que falarei em outra oportunidade.&lt;a href=&quot;&quot; name=&quot;_GoBack&quot;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Na projeção da primeira consulta, deve-se observar
a data de atualização das estatísticas das tabelas do seu ambiente:&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-highlight: white;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;SELECT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;STAT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;.&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;OWNER&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;AS&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&quot;Schema
proprietário&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;STAT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;.&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;TABLE_NAME&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;AS&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&quot;Nome
do objeto&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;STAT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;.&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;OBJECT_TYPE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;AS&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&quot;Tipo
do objeto&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;STAT&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-highlight: white;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;NUM_ROWS&lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-highlight: white;&quot;&gt;AS&lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-highlight: white;&quot;&gt;&quot;Quant. de Linhas&quot;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;STAT&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-highlight: white;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;LAST_ANALYZED&lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-highlight: white;&quot;&gt;AS&lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-highlight: white;&quot;&gt;&quot;Última coleta das estatísticas&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;FROM&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; SYS.&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;DBA_TAB_STATISTICS&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;STAT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;WHERE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;STAT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;.&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;OWNER&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;NOT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;IN&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&#39;SYS&#39;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&#39;SYSTEM&#39;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&#39;SYSMAN&#39;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&#39;DBSNMP&#39;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;ORDER&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;BY&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;LAST_ANALYZED&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Já
na projeção da segunda (abaixo), é possível saber quando as estatísticas dos
índices foram coletadas pela última vez:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;SELECT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;STAT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;.&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;OWNER&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;AS&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&quot;Schema
proprietário&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;STAT&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-highlight: white;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt; TABLE_NAME&lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-highlight: white;&quot;&gt;AS&lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-highlight: white;&quot;&gt;&quot;Nome do objeto&quot;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;STAT&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-highlight: white;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;OBJECT_TYPE&lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-highlight: white;&quot;&gt;AS&lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-highlight: white;&quot;&gt;&quot;Tipo do objeto&quot;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;STAT&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-highlight: white;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;NUM_ROWS&lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-highlight: white;&quot;&gt;AS&lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-highlight: white;&quot;&gt;&quot;Quant. de Linhas&quot;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;STAT&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-highlight: white;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;LAST_ANALYZED&lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-highlight: white;&quot;&gt;AS&lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-highlight: white;&quot;&gt;&quot;Última coleta das estatísticas&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;FROM&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; SYS.&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;DBA_IND_STATISTICS&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;STAT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;WHERE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;STAT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;.&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;OWNER&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;NOT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;IN&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&#39;SYS&#39;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&#39;SYSTEM&#39;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&#39;SYSMAN&#39;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&#39;DBSNMP&#39;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;ORDER&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;BY&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;LAST_ANALYZED&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
Os campos projetados em ambas as
consultas são:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-highlight: white;&quot;&gt;&quot;Schema proprietário&quot;&lt;/span&gt;: -
campo que informa o esquema dono do objeto;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-highlight: white;&quot;&gt;&quot;Nome do objeto&quot;&lt;/span&gt;: -
campo que informa o nome do objeto;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-highlight: white;&quot;&gt;&quot;Tipo do objeto&quot;&lt;/span&gt;: - informa
o tipo do campo, no caso: tabela ou índice; &lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-highlight: white;&quot;&gt;&quot;Quant. de Linhas&quot;&lt;/span&gt;: - exibe
a quantidade de registros do objeto;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-highlight: white;&quot;&gt;&quot;Última coleta das
estatísticas&quot;&lt;/span&gt;: - data e hora da realização da última coleta (mais
recente) das estatísticas do objeto em questão.&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Na
seleção da informação, abstraí alguns esquemas, pois são os reservados e
utilizados pelo sistema, e não cabem termos conhecimento das estatísticas
desses usuários.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
A
ordenação da informação está em ordem ascendente de data, ou seja, da menor
para a maior apenas para facilitar e sabermos que os objetos com as
estatísticas mais desatualizadas aparecerão na frente dos dados.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Por
hoje é só!&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
Até
a próxima!&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://raphaeloafernandes.blogspot.com/feeds/8991975979675202775/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/03/query-para-verificar-atualizacao-das.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/8991975979675202775'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/8991975979675202775'/><link rel='alternate' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/03/query-para-verificar-atualizacao-das.html' title='Query para verificar atualização das estatísticas de tabelas e índices do banco de dados Oracle'/><author><name>Raphael Fernandes</name><uri>http://www.blogger.com/profile/05900910831621641258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4532985094872298557.post-4599046727353388802</id><published>2013-03-14T09:26:00.000-03:00</published><updated>2013-03-14T09:26:04.908-03:00</updated><title type='text'>Query para identificar os scripts com alto consumo de tempo de CPU no banco de dados Oracle</title><content type='html'>&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;Olá pessoal!&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;line-height: 115%; mso-bidi-font-size: 10.0pt;&quot;&gt;Existem algumas formas de se analisar os scripts
submetidos ao banco de dados Oracle quanto a sua performance.&amp;nbsp; Uma dessas formas é através de uma &lt;b&gt;&lt;i&gt;view&lt;/i&gt;&lt;/b&gt;
do esquema &lt;b&gt;&lt;i&gt;SYS&lt;/i&gt;&lt;/b&gt; chamada &lt;b&gt;&lt;i&gt;V_$SQLAREA&lt;/i&gt;&lt;/b&gt;, ou através do sinônimo
público &lt;b&gt;&lt;i&gt;V$SQLAREA &lt;/i&gt;&lt;/b&gt;que está setado para a tabela.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;line-height: 115%; mso-bidi-font-size: 10.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;line-height: 115%; mso-bidi-font-size: 10.0pt;&quot;&gt;Bom, de qualquer forma, nesse objeto existem
informações interessantes para o acompanhamento dos scripts submetidos ao
servidor de banco, mesmo que eles não tenham sido concluídos com sucesso.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;line-height: 115%; mso-bidi-font-size: 10.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;line-height: 115%; mso-bidi-font-size: 10.0pt;&quot;&gt;A consulta é a seguinte:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;line-height: 115%; mso-bidi-font-size: 10.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;SELECT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; *&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;FROM&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;SELECT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;ROUND&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;cpu_time&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;/&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;1000000&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;/&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;60&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;),&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;2&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;AS&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&quot;Tempo
total de CPU&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;executions&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;AS&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&quot;Quant.
exec.&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;rows_processed&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;AS&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&quot;Quant.
linhas proc.&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;disk_reads&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;AS&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&quot;Leituras
no disco&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;first_load_time&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;AS&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&quot;Primeira
utilização&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;last_load_time&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;AS&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&quot;Última
utilização&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;parsing_schema_name&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;AS&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&quot;Usuário
analisado&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;sql_text&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;AS&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&quot;SQL
exec.&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;FROM&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;v$sqlarea&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;WHERE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;parsing_schema_name&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;NOT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;IN&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&#39;SYS&#39;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&#39;SYSTEM&#39;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&#39;SYSMAN&#39;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&#39;DBSNMP&#39;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;ORDER&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;BY&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;1&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;DESC)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;WHERE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;ROWNUM&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&amp;lt;=&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;10&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;line-height: 115%; mso-bidi-font-size: 10.0pt;&quot;&gt;Nesse caso, a seleção da consulta mais externa
(cláusula &lt;i&gt;where&lt;/i&gt;) faz com que o
retorno sejam de apenas os 10 scripts com maior tempo total de CPU (garantido
no &lt;i&gt;sort&lt;/i&gt; da consulta interna), mas
podemos alterar esse valor ou retirar a condição. Na seleção da consulta mais
interna, retirei os usuários de controle do DBA e do próprio SGBD Oracle, para
que a análise possa ser feita apenas por aplicações e pessoas.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;line-height: 115%; mso-bidi-font-size: 10.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;line-height: 115%; mso-bidi-font-size: 10.0pt;&quot;&gt;Vou explicar rapidamente as informações da projeção
(cláusula &lt;i&gt;select&lt;/i&gt;):&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;line-height: 115%; mso-bidi-font-size: 10.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&quot;Tempo
total de CPU&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;line-height: 115%; mso-bidi-font-size: 10.0pt;&quot;&gt;– nesse
“campo” é retornado o tempo total de CPU gasto para executar todas as vezes o
script em questão. Fiz uma continha para exibir o tempo em minutos;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;line-height: 115%; mso-bidi-font-size: 10.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&quot;Quant.
exec&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;line-height: 115%; mso-bidi-font-size: 10.0pt;&quot;&gt;– nesse “campo” é retornado
a quantidade de vezes que o SQL em questão foi executado desde sua primeira vez
que foi submetido;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;line-height: 115%; mso-bidi-font-size: 10.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&quot;Quant.
linhas proc.&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;line-height: 115%; mso-bidi-font-size: 10.0pt;&quot;&gt;– nesse
“campo” é exibido a quantidade total de linhas processadas em todas as
execuções da SQL em questão;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;line-height: 115%; mso-bidi-font-size: 10.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&quot;Leituras no disco&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;line-height: 115%; mso-bidi-font-size: 10.0pt;&quot;&gt;– nesse “campo” é retornado a quantidade total de
leituras realizadas no disco;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%; mso-bidi-font-size: 10.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&quot;Primeira utilização&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;line-height: 115%; mso-bidi-font-size: 10.0pt;&quot;&gt;– informa a data e hora da primeira utilização da SQL
em questão, ou pelo menos a mais recente das “primeiras vezes”;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%; mso-bidi-font-size: 10.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&quot;Última utilização&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;line-height: 115%; mso-bidi-font-size: 10.0pt;&quot;&gt;– informa a data e hora da última utilização da SQL em
questão;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%; mso-bidi-font-size: 10.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&quot;Usuário analisado &quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;line-height: 115%; mso-bidi-font-size: 10.0pt;&quot;&gt;– informa qual o usuário da instância Oracle que
realizou a SQL;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%; mso-bidi-font-size: 10.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&quot;SQL exec.&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;line-height: 115%; mso-bidi-font-size: 10.0pt;&quot;&gt;– informa o script SQL submetido.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%; mso-bidi-font-size: 10.0pt;&quot;&gt;Grande
abraço e até a próxima!!&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://raphaeloafernandes.blogspot.com/feeds/4599046727353388802/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/03/query-para-identificar-os-scripts-com.html#comment-form' title='6 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/4599046727353388802'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/4599046727353388802'/><link rel='alternate' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/03/query-para-identificar-os-scripts-com.html' title='Query para identificar os scripts com alto consumo de tempo de CPU no banco de dados Oracle'/><author><name>Raphael Fernandes</name><uri>http://www.blogger.com/profile/05900910831621641258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4532985094872298557.post-1145720983891935464</id><published>2013-03-13T11:01:00.003-03:00</published><updated>2013-03-17T13:29:46.955-03:00</updated><title type='text'>O comando SQL: MERGE</title><content type='html'>&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
Muito bom dia a todos!&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
Hoje vou falar sobre um comando
SQL que não vejo muita gente usar mas que é bem poderoso. Esse comando é o
MERGE.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
Vejo muito código em PL/SQL da
seguinte forma:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;DECLARE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;var_existe&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: red; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;NUMBER&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;4&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;:=&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;0&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;BEGIN&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;SELECT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;COUNT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;cod&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;INTO&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;var_existe&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;FROM&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;tabela&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;WHERE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;cod&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;=&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;:&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;par_cod&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;IF&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;var_existe&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: maroon; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;0&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;THEN&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: green; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;--Significa que
existe valor para o parametro buscado (par_cod)&lt;/span&gt;&lt;/i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;UPDATE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;tabela&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;SET&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;campo&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;=&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;:&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;par_campo&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;WHERE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;cod&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;=&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;:&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;par_cod&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;ELSE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: green; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;--Significa que
NÃO existe valor para o parametro buscado&lt;/span&gt;&lt;/i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;INSERT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;INTO&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;tabela&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;VALUES&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(:&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;par_cod&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;:&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;par_campo&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;);&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;END&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;IF;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;END;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
Abstraindo o nome da tabela e
seus campos, e levando em consideração à estrutura do bloco de código,
basicamente o que é feito é um teste se um determinado valor (&lt;i&gt;:par_cod&lt;/i&gt;) existe na tabela, caso exista,
será realizada uma alteração (&lt;i&gt;UPDATE&lt;/i&gt;)
caso contrário será inserido um registro com aquele código (&lt;i&gt;INSERT&lt;/i&gt;).&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
Agora vou falar um pouco sobre o &lt;i&gt;MERGE&lt;/i&gt; e depois associar o comando com o
bloco PL/SQL acima.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
Segundo Watson, O merge foi
introduzido no SQL com o padrão SQL1999, e implementado no Oracle a partir da
versão 9i. No Oracle Database 10g o comando foi aprimorado para entrar em
conformidade com o padrão SQL2003.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
O propósito principal do comando
merge é justamente o mesmo do bloco lógico apresentado anteriormente. Uma operação
merge não faz nada que não possa ser feito com as instruções INSERT, UPDATE e
DELETE – mas com uma passagem pelos dados de origem, ela pode fazer as três
coisas. Código alternativo sem MERGE iria exigir três passagem pelos dados, uma
para cada comando.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
Os dados de Origem para uma
instrução MERGE pode ser uma tabela ou uma sub-consulta qualquer. A condição
usada para encontrar linhas correspondentes no destino é similar a uma cláusula
WHERE. As cláusulas que atualizam, inserem ou excluem linhas são semelhantes aos
comandos update, insert e delete. Alguns autores e profissionais&amp;nbsp; de banco de dados afirmam que o MERGE é o
mais complicado dos comandos DML, porém um dos mais poderosos.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
A sintaxe do MERGE, em sua forma
básica é a informada na Figura 1.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8uN_10MeZrzgkU-XtHQ69-QQLNbSjoLmBTnBgSYOuYrdhk0vDcgMg6eEus_if7JPVvbPxCMrT9x-3NGer2nRbmZIVghBK1gcrDGNLqZ7-oT1BKJvpSqPsC6cwhDhyrHeOIEJut6mEz9h5/s1600/merge.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8uN_10MeZrzgkU-XtHQ69-QQLNbSjoLmBTnBgSYOuYrdhk0vDcgMg6eEus_if7JPVvbPxCMrT9x-3NGer2nRbmZIVghBK1gcrDGNLqZ7-oT1BKJvpSqPsC6cwhDhyrHeOIEJut6mEz9h5/s1600/merge.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoCaption&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;Figura &lt;/span&gt;&lt;!--[if supportFields]&gt;&lt;span
style=&#39;color:windowtext;font-weight:normal;mso-bidi-font-weight:bold&#39;&gt;&lt;span
style=&#39;mso-element:field-begin&#39;&gt;&lt;/span&gt;&lt;span style=&#39;mso-spacerun:yes&#39;&gt; &lt;/span&gt;SEQ
Figura \* ARABIC &lt;span style=&#39;mso-element:field-separator&#39;&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]--&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;1&lt;/span&gt;&lt;!--[if supportFields]&gt;&lt;span
style=&#39;color:windowtext;font-weight:normal;mso-bidi-font-weight:bold&#39;&gt;&lt;span
style=&#39;mso-element:field-end&#39;&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]--&gt;&lt;/span&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; - Estrutura do
comando MERGE. (Fonte: Orale Corporation)&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoCaption&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: windowtext;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
Na Figura 1, as operações DML não
estão especificadas, então seguem algumas imagens complementares.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
Na Figura 2, é apresentada a
sintaxe para realizar um UPDATE na linha para o caso de correspondência (MATCHED)
na comparação realizada no comando.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
Essa mesma estrutura apresentada
na Figura 2 pode ser utilizada para a exclusão de linhas na tabela em questão. &lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhG06W8Anwgt9J1hid3E3sChi6oGy10RdBGwyOw94u_Xo3FxawMLtRAshLf0Nj2g2nsU15Syn6qJRTNY3x6EjF8PsBl9XZavuXPA9cW_tQJL9cFCQjSfRf8CUjT_6B_CUsMFePMNF37-9X1/s1600/merge_update_clause.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhG06W8Anwgt9J1hid3E3sChi6oGy10RdBGwyOw94u_Xo3FxawMLtRAshLf0Nj2g2nsU15Syn6qJRTNY3x6EjF8PsBl9XZavuXPA9cW_tQJL9cFCQjSfRf8CUjT_6B_CUsMFePMNF37-9X1/s1600/merge_update_clause.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoCaption&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;Figura &lt;/span&gt;&lt;!--[if supportFields]&gt;&lt;span
style=&#39;color:windowtext;font-weight:normal;mso-bidi-font-weight:bold&#39;&gt;&lt;span
style=&#39;mso-element:field-begin&#39;&gt;&lt;/span&gt;&lt;span style=&#39;mso-spacerun:yes&#39;&gt; &lt;/span&gt;SEQ
Figura \* ARABIC &lt;span style=&#39;mso-element:field-separator&#39;&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]--&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;2&lt;/span&gt;&lt;!--[if supportFields]&gt;&lt;span
style=&#39;color:windowtext;font-weight:normal;mso-bidi-font-weight:bold&#39;&gt;&lt;span
style=&#39;mso-element:field-end&#39;&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]--&gt;&lt;/span&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; - UPDATE/DELETE no
MERGE caso a comparação realizada corresponda. (Fonte: Orale Corporation)&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
Para o caso de não existir uma
correspondência na comparação realizada no comando, um INSERT pode ser
realizado conforme apresentado na Figura 3.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcFiHtwJjBczENHJ0BE2TT8mShBaC-tDLnHoGMTq7WGRdmil_3aRdC27JJDrBR9vvJM_w7CeIDt4GYQsnDdxBwY982Hc8H5Ng0lCsY69jaf1TbCpaDdKb16JP3i1KhraloGQnPUUTbAS5P/s1600/merge_insert_clause.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcFiHtwJjBczENHJ0BE2TT8mShBaC-tDLnHoGMTq7WGRdmil_3aRdC27JJDrBR9vvJM_w7CeIDt4GYQsnDdxBwY982Hc8H5Ng0lCsY69jaf1TbCpaDdKb16JP3i1KhraloGQnPUUTbAS5P/s1600/merge_insert_clause.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoCaption&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;Figura &lt;/span&gt;&lt;!--[if supportFields]&gt;&lt;span
style=&#39;color:windowtext;font-weight:normal;mso-bidi-font-weight:bold&#39;&gt;&lt;span
style=&#39;mso-element:field-begin&#39;&gt;&lt;/span&gt;&lt;span style=&#39;mso-spacerun:yes&#39;&gt; &lt;/span&gt;SEQ
Figura \* ARABIC &lt;span style=&#39;mso-element:field-separator&#39;&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]--&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;3&lt;/span&gt;&lt;!--[if supportFields]&gt;&lt;span
style=&#39;color:windowtext;font-weight:normal;mso-bidi-font-weight:bold&#39;&gt;&lt;span
style=&#39;mso-element:field-end&#39;&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]--&gt;&lt;/span&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; - INSERT no MERGE
caso a comparação realizada não corresponda. (Fonte: Orale Corporation)&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
Em ambas as situações, Figura 2 e
3, existem um trecho chamado “&lt;b&gt;&lt;i&gt;where_clause&lt;/i&gt;&lt;/b&gt;”&lt;i&gt;, &lt;/i&gt;que nada mais é que uma cláusula WHERE normal, no formado: &lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;WHERE &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: #76923c; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white; mso-themecolor: accent3; mso-themeshade: 191;&quot;&gt;condição&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;.&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
Na Figura 1, existe um trecho
chamado “&lt;b&gt;&lt;i&gt;error_loggin_clause”&lt;/i&gt;&lt;/b&gt;, que possui sua sintaxe conforme Figura 4.
Sua utilidade é para o caso de erros na execução do comando MERGE. O registro
na tabela de log será efetivado caso ocorra algum problema. Para se criar uma
tabela para o log do Oracle usa-se o pacote DBMS_ERRLOG.CREATE_ERROR_LOG. Como
não é nosso foco principal não abordarei profundamente a questão, mas recomendo
a leitura do assunto para um entendimento melhor (é interessante).&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgix8oGJQjFVlCvJT6HY115T24qsaOw0uF9KvpPGl9XEjEdWZZ_0Pg8F-yD-V4OTWN6HQ3zSl_WdL7Y2vhn3CSkVj4lHFifeDvlUcfRhRUPjXV0Nt1UZiZLqniWUnRkI9nwKZvCLdeOcOca/s1600/error_logging_clause.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgix8oGJQjFVlCvJT6HY115T24qsaOw0uF9KvpPGl9XEjEdWZZ_0Pg8F-yD-V4OTWN6HQ3zSl_WdL7Y2vhn3CSkVj4lHFifeDvlUcfRhRUPjXV0Nt1UZiZLqniWUnRkI9nwKZvCLdeOcOca/s1600/error_logging_clause.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoCaption&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;Figura &lt;/span&gt;&lt;!--[if supportFields]&gt;&lt;span
style=&#39;color:windowtext;font-weight:normal;mso-bidi-font-weight:bold&#39;&gt;&lt;span
style=&#39;mso-element:field-begin&#39;&gt;&lt;/span&gt;&lt;span style=&#39;mso-spacerun:yes&#39;&gt; &lt;/span&gt;SEQ
Figura \* ARABIC &lt;span style=&#39;mso-element:field-separator&#39;&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]--&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;4&lt;/span&gt;&lt;!--[if supportFields]&gt;&lt;span
style=&#39;color:windowtext;font-weight:normal;mso-bidi-font-weight:bold&#39;&gt;&lt;span
style=&#39;mso-element:field-end&#39;&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]--&gt;&lt;/span&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; - Tratamento de erros
no comando MERGE. (Fonte: Oracle Corporation)&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
Aplicando a sintaxe acima ao
nosso bloco lógico citado no início do post temos o seguinte: &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;MERGE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;INTO&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;tabela&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;t&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;USING&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(SELECT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;:&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;par_cod&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;AS&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;cod&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;FROM&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;DUAL&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;t_aux&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;ON&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(t.&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;cod&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;=&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;t_aux&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;.&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;cod&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;WHEN&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;MATCHED&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;THEN&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;UPDATE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;SET&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;campo&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;=&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;:&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt;&quot;&gt;par_campo&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;WHEN&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;NOT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;MATCHED&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;THEN&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;INSERT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;VALUES&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;(:&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;par_cod&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;:&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;MS Shell Dlg 2&#39;, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;par_campo&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-highlight: white;&quot;&gt;);&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;Fiz
uma simulação de consulta utilizando a tabela DUAL, apenas para depois testar
se o valor “passado por parâmetro” (par_cod) existe na tabela.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;A
sintaxe está bem simplificada, mas é bastante potente e mais performático em
relação ao bloco apresentado anteriormente.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;Fica
a dica: avaliem se em algum script seu existe uma situação que possa ser
utilizado o MERGE e faça um teste. Vale o aprendizado!&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;Espero
conseguido passar o conhecimento!&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;Grande
abraço e até a próxima...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;Referências:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;Watson,
John; Ramklass, Roopesh (2010) – OCA Oracle Database 11g – Fundamentos I SQL –
Manual do Exame 1z0-051. Editora: ALTABOOKS.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;Oracle
Corporation – MERGE. Disponível em http://docs.oracle.com/cd/B28359_01/server.111/b28286/statements_9016.htm.
Acessado em 13/03/2013.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://raphaeloafernandes.blogspot.com/feeds/1145720983891935464/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/03/o-comando-sql-merge.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/1145720983891935464'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4532985094872298557/posts/default/1145720983891935464'/><link rel='alternate' type='text/html' href='http://raphaeloafernandes.blogspot.com/2013/03/o-comando-sql-merge.html' title='O comando SQL: MERGE'/><author><name>Raphael Fernandes</name><uri>http://www.blogger.com/profile/05900910831621641258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8uN_10MeZrzgkU-XtHQ69-QQLNbSjoLmBTnBgSYOuYrdhk0vDcgMg6eEus_if7JPVvbPxCMrT9x-3NGer2nRbmZIVghBK1gcrDGNLqZ7-oT1BKJvpSqPsC6cwhDhyrHeOIEJut6mEz9h5/s72-c/merge.gif" height="72" width="72"/><thr:total>0</thr:total></entry></feed>