<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;C0YDRXY6eyp7ImA9WxBbFE8.&quot;"><id>tag:blogger.com,1999:blog-2523564552046105021</id><updated>2010-03-12T16:12:54.813-03:00</updated><title>Simple Write-Up</title><subtitle type="html">Oracle Blog 
     by Júlio César Corrêa</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://www.dbajccorrea.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://www.dbajccorrea.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>Júlio César Corrêa</name><uri>http://www.blogger.com/profile/16465498903177871508</uri><email>noreply@blogger.com</email></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>100</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/SimpleWrite-up" /><feedburner:info uri="simplewrite-up" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;C0YDRXY5cCp7ImA9WxBbFE8.&quot;"><id>tag:blogger.com,1999:blog-2523564552046105021.post-9200666021309640870</id><published>2010-03-12T16:12:00.001-03:00</published><updated>2010-03-12T16:12:54.828-03:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-12T16:12:54.828-03:00</app:edited><title>oradiag_oracle - Oracle 11gR2  - Disabling the Automatic Diagnost</title><content type="html">&lt;div&gt;Voltei aqui!&lt;/div&gt;&lt;br&gt;&lt;div&gt;Fazendo a limpeza do filesystem de um &amp;nbsp;servidor Oracle me deparei coma seguinte situa&amp;ccedil;&amp;atilde;o :&lt;/div&gt;&lt;br&gt;&lt;table border="2" bordercolor="#000000" cellpadding="3" cellspacing="0" id="hbj4" width="100%"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="100%"&gt;&lt;div&gt;[oracle@myserver oracle]$ du -sch *&lt;/div&gt;&lt;div&gt;360M admin&lt;/div&gt;&lt;div&gt;5.8M cfgtoollogs&lt;/div&gt;&lt;div&gt;8.0K checkpoints&lt;/div&gt;&lt;div&gt;1.2G diag&lt;/div&gt;&lt;div&gt;988K import_ONLINE.log&lt;/div&gt;&lt;div&gt;16K oraarch&lt;/div&gt;&lt;div&gt;&lt;b&gt;8.9G oradiag_oracle&lt;/b&gt;&lt;/div&gt;&lt;div&gt;4.5G product&lt;/div&gt;&lt;div&gt;15G total&lt;/div&gt;&lt;div&gt;[oracle@amhston1 oracle]$&amp;nbsp;&lt;/div&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br&gt;&lt;br&gt;8.9 GB de arquivos sendo que a maioria s&amp;atilde;o arquivos de TRACE.&lt;br&gt;&lt;br&gt;&lt;table border="2" bordercolor="#000000" cellpadding="3" cellspacing="0" id="wbig" width="100%"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="100%"&gt;&lt;div&gt;.../oradiag_oracle/diag/clients/user_oracle/host_919093865_76&lt;/div&gt;&lt;div&gt;[oracle@myserver host_919093865_76]$ du -sch *&lt;/div&gt;&lt;div&gt;2.3M alert&lt;/div&gt;&lt;div&gt;8.0K cdump&lt;/div&gt;&lt;div&gt;8.0K incident&lt;/div&gt;&lt;div&gt;8.0K incpkg&lt;/div&gt;&lt;div&gt;24K lck&lt;/div&gt;&lt;div&gt;296K metadata&lt;/div&gt;&lt;div&gt;8.0K stage&lt;/div&gt;&lt;div&gt;8.0K sweep&lt;/div&gt;&lt;div&gt;&lt;b&gt;8.9G&lt;/b&gt; &lt;b&gt;trace&lt;/b&gt;&lt;/div&gt;&lt;div&gt;8.9G total&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br&gt;&lt;br&gt;&lt;div&gt;Porcurando no metalink,j&amp;aacute; que no 11gR2 muitas coisas mudaram,me deparei com a nota&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;font face="helvetica"&gt;&lt;b&gt;ID 454927.1 .&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;br&gt;&lt;div&gt;&lt;font face="helvetica"&gt;Vamos executar os passos sugeridos na nota para desabilitar estes traces,j&amp;aacute; que estou com pouco espa&amp;ccedil;o no flesystem.&lt;/font&gt;&lt;/div&gt;&lt;br&gt;&lt;table border="2" bordercolor="#000000" cellpadding="3" cellspacing="0" id="j47r" width="100%"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="100%"&gt;&lt;div&gt;adrci&lt;/div&gt;&lt;br&gt;&lt;div&gt;ADRCI: Release 11.2.0.1.0 - Production on Fri Mar 12 11:00:19 2010&lt;/div&gt;&lt;br&gt;&lt;div&gt;Copyright (c) 1982, 2009, Oracle and/or its affiliates. &amp;nbsp;All rights reserved.&lt;/div&gt;&lt;br&gt;&lt;div&gt;ADR base = &amp;quot;/opt/oracle/oradiag_oracle&amp;quot;&lt;/div&gt;&lt;div&gt;adrci&amp;gt; show base -product client&lt;/div&gt;&lt;div&gt;ADR base is &amp;quot;/opt/oracle/oradiag_oracle&amp;quot;&lt;/div&gt;&lt;div&gt;adrci&amp;gt; &amp;nbsp;set base /opt/oracle/oradiag_oracle&lt;/div&gt;&lt;div&gt;adrci&amp;gt; exit&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br&gt;&lt;br&gt;&lt;div&gt;Vendo o trace file :&lt;/div&gt;&lt;br&gt;&lt;div&gt;&amp;nbsp;more /opt/oracle/oradiag_oracle/diag/clients/user_oracle/host_919093865_76/trace/ora_13830_47831278068960.trc&lt;/div&gt;&lt;div&gt;Trace file /opt/oracle/oradiag_oracle/diag/clients/user_oracle/host_919093865_76/trace/ora_13830_47831278068960.trc&lt;/div&gt;&lt;div&gt;2010-03-11 15:40:09.488543 : --- TRACE CONFIGURATION INFORMATION FOLLOWS ---&lt;/div&gt;&lt;div&gt;2010-03-11 15:40:09.490799 :&lt;b&gt;&amp;nbsp;New trace stream is /opt/oracle/oradiag_oracle/diag/clients/user_oracle/host_919093865_76/trace/ora_13830_47831278068960.trc&lt;/b&gt;&lt;/div&gt;&lt;div&gt;2010-03-11 15:40:09.490827 : New trace level is 16&lt;/div&gt;&lt;div&gt;2010-03-11 15:40:09.490842 : --- TRACE CONFIGURATION INFORMATION ENDS ---&lt;/div&gt;&lt;div&gt;2010-03-11 15:40:09.490862 : --- PARAMETER SOURCE INFORMATION FOLLOWS ---&lt;/div&gt;&lt;div&gt;2010-03-11 15:40:09.490881 : Attempted load of system pfile source /opt/oracle/product/11.2.0/db_1/network/admin/sqlnet.ora&lt;/div&gt;&lt;div&gt;2010-03-11 15:40:09.490895 : Parameter source loaded successfully&lt;/div&gt;&lt;div&gt;2010-03-11 15:40:09.490910 :&amp;nbsp;&lt;/div&gt;&lt;div&gt;2010-03-11 15:40:09.490924 : Attempted load of local pfile source /home/oracle/.sqlnet.ora&lt;/div&gt;&lt;div&gt;2010-03-11 15:40:09.490937 : Parameter source was not loaded&lt;/div&gt;&lt;div&gt;2010-03-11 15:40:09.490950 :&amp;nbsp;&lt;/div&gt;&lt;div&gt;2010-03-11 15:40:09.490963 : &amp;nbsp;-&amp;gt; PARAMETER TABLE LOAD RESULTS FOLLOW &amp;lt;-&lt;/div&gt;&lt;div&gt;2010-03-11 15:40:09.490992 : Successful parameter table load&lt;/div&gt;&lt;div&gt;2010-03-11 15:40:09.491010 : &amp;nbsp;-&amp;gt; PARAMETER TABLE HAS THE FOLLOWING CONTENTS &amp;lt;-&lt;/div&gt;&lt;div&gt;2010-03-11 15:40:09.491029 : &amp;nbsp; CE_UNIQUE_CLIENT = ON&lt;/div&gt;&lt;div&gt;2010-03-11 15:40:09.491044 : &amp;nbsp; ADR_BASE = /opt/oracle&lt;/div&gt;&lt;div&gt;2010-03-11 15:40:09.491057 : &amp;nbsp; NAMES.DIRECTORY_PATH = (TNSNAMES, EZCONNECT)&lt;/div&gt;&lt;div&gt;2010-03-11 15:40:09.491071 : &amp;nbsp; TRACE_DIRECTORY_CLIENT = /home/oracle/temp&lt;/div&gt;&lt;div&gt;2010-03-11 15:40:09.491084 : &amp;nbsp; TRACE_TIMESTAMP_CLIENT = ON&lt;/div&gt;&lt;div&gt;2010-03-11 15:40:09.491097 : &amp;nbsp; TRACE_LEVEL_CLIENT = 16&lt;/div&gt;&lt;div&gt;2010-03-11 15:40:09.491110 : &amp;nbsp; TRACE_FILE_CLIENT = SQLNetTrace&lt;/div&gt;&lt;div&gt;2010-03-11 15:40:09.491123 : --- PARAMETER SOURCE INFORMATION ENDS ---&lt;/div&gt;&lt;div&gt;2010-03-11 15:40:09.491139 : --- LOG CONFIGURATION INFORMATION FOLLOWS ---&lt;/div&gt;&lt;div&gt;2010-03-11 15:40:09.491180 : Log stream will be &amp;quot;/opt/oracle/oradiag_oracle/diag/clients/user_oracle/host_919093865_76/alert/log.xml&amp;quot;&lt;/div&gt;&lt;div&gt;2010-03-11 15:40:09.491199 : Log stream validation not requested&lt;/div&gt;&lt;div&gt;2010-03-11 15:40:09.491213 : --- LOG CONFIGURATION INFORMATION ENDS ---&lt;/div&gt;&lt;br&gt;Tem a possibilidade de fazer um purge dos arquivos.&lt;div&gt;Neste caso fiz assim :&lt;/div&gt;&lt;br&gt;&lt;table border="2" bordercolor="#000000" cellpadding="3" cellspacing="0" id="ey7k" width="100%"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="100%"&gt;&lt;div&gt;[oracle@myserver oradiag_oracle]$ adrci&lt;/div&gt;&lt;br&gt;&lt;div&gt;ADRCI: Release 11.2.0.1.0 - Production on Fri Mar 12 12:55:48 2010&lt;/div&gt;&lt;br&gt;&lt;div&gt;Copyright (c) 1982, 2009, Oracle and/or its affiliates. &amp;nbsp;All rights reserved.&lt;/div&gt;&lt;br&gt;&lt;div&gt;ADR base = &amp;quot;/opt/oracle/oradiag_oracle&amp;quot;&lt;/div&gt;&lt;div&gt;adrci&amp;gt; purge -age 10 -type trace&lt;/div&gt;&lt;div&gt;adrci&amp;gt; exit&lt;/div&gt;&lt;div&gt;[oracle@myserver oradiag_oracle]$ cd diag/clients/user_oracle/host_919093865_76/&lt;/div&gt;&lt;div&gt;[oracle@myserver host_919093865_76]$ du -sch *&lt;/div&gt;&lt;div&gt;2.3M alert&lt;/div&gt;&lt;div&gt;8.0K cdump&lt;/div&gt;&lt;div&gt;8.0K incident&lt;/div&gt;&lt;div&gt;8.0K incpkg&lt;/div&gt;&lt;div&gt;24K lck&lt;/div&gt;&lt;div&gt;296K metadata&lt;/div&gt;&lt;div&gt;8.0K stage&lt;/div&gt;&lt;div&gt;8.0K sweep&lt;/div&gt;&lt;div&gt;4.3M trace&lt;/div&gt;&lt;div&gt;6.9M total&lt;/div&gt;&lt;div&gt;[oracle@amhston1 host_919093865_76]$&amp;nbsp;&lt;/div&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br&gt;Ou &amp;nbsp;no sqlnet.ora do client e inserindo o parametro DIAG_ADR__ENABLED=OFF .&lt;br&gt;&lt;br&gt;&lt;div&gt;Doc para help :&lt;/div&gt;&lt;br&gt;http://download.oracle.com/docs/cd/E11882_01/network.112/e10836/trouble.htm#NETAG1524&lt;br&gt;&amp;nbsp;&lt;br&gt;&lt;div&gt;Abs,&lt;/div&gt;&lt;br&gt;&lt;div&gt;Julio Cesar Correa&lt;/div&gt;&lt;br&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2523564552046105021-9200666021309640870?l=www.dbajccorrea.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.dbajccorrea.com/feeds/9200666021309640870/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2523564552046105021&amp;postID=9200666021309640870&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/9200666021309640870?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/9200666021309640870?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SimpleWrite-up/~3/_6qK4-XTgDA/oradiagoracle-oracle-11gr2-disabling.html" title="oradiag_oracle - Oracle 11gR2  - Disabling the Automatic Diagnost" /><author><name>Júlio César Corrêa</name><uri>http://www.blogger.com/profile/16465498903177871508</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04550809630941347154" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.dbajccorrea.com/2010/03/oradiagoracle-oracle-11gr2-disabling.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0QHQ3c8fCp7ImA9WxBUEEk.&quot;"><id>tag:blogger.com,1999:blog-2523564552046105021.post-8152464430810159635</id><published>2010-02-24T16:44:00.002-03:00</published><updated>2010-02-24T16:55:32.974-03:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-24T16:55:32.974-03:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="11gr2" /><category scheme="http://www.blogger.com/atom/ns#" term="11g" /><category scheme="http://www.blogger.com/atom/ns#" term="migration" /><category scheme="http://www.blogger.com/atom/ns#" term="upgrade" /><category scheme="http://www.blogger.com/atom/ns#" term="oracle" /><title>Upgrade to Oracle 11gr2 - Para quem não sabe por onde começar</title><content type="html">Abaixo uma figura que ilustra os simples passos para o processo de upgrade!&lt;br /&gt;
Esta é uma das tarefas mais delicadas,pois envolverá o seu ambiente de produção.&lt;br /&gt;
&lt;br /&gt;
Esqueça ir direto para o passo 5 please!&lt;br /&gt;
So , take easy e take care with your &amp;nbsp;database !&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_6N0R_bIPWFw/S4WBJSywNXI/AAAAAAAADhM/lMyhGVPOz0I/s1600-h/upgrd001.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="640" src="http://1.bp.blogspot.com/_6N0R_bIPWFw/S4WBJSywNXI/AAAAAAAADhM/lMyhGVPOz0I/s640/upgrd001.gif" width="224" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Abaixo o link da documentação(em .pdf) do Oracle Database 11gr2 que fala sobre o processo de migração de uma versão anterior para o 11gr2,mais conhecido como upgrade kk.&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://download.oracle.com/docs/cd/E11882_01/server.112/e10819.pdf"&gt;http://download.oracle.com/docs/cd/E11882_01/server.112/e10819.pdf&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Tem um post ótimo sobre isso do meu amigo &lt;a href="http://eduardolegatti.blogspot.com/2010/02/ola-no-artigo-de-dezembro-de-2008-eu.html"&gt;Eduardo Legatti&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="http://eduardolegatti.blogspot.com/2010/02/ola-no-artigo-de-dezembro-de-2008-eu.html"&gt;aqui&lt;/a&gt;&amp;nbsp;.&lt;br /&gt;
&lt;br /&gt;
Att,&lt;br /&gt;
&lt;br /&gt;
Júlio César Corrêa&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2523564552046105021-8152464430810159635?l=www.dbajccorrea.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.dbajccorrea.com/feeds/8152464430810159635/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2523564552046105021&amp;postID=8152464430810159635&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/8152464430810159635?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/8152464430810159635?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SimpleWrite-up/~3/NG7cd81BFEI/upgrade-to-oracle-11gr2-para-quem-nao.html" title="Upgrade to Oracle 11gr2 - Para quem não sabe por onde começar" /><author><name>Júlio César Corrêa</name><uri>http://www.blogger.com/profile/16465498903177871508</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04550809630941347154" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_6N0R_bIPWFw/S4WBJSywNXI/AAAAAAAADhM/lMyhGVPOz0I/s72-c/upgrd001.gif" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.dbajccorrea.com/2010/02/upgrade-to-oracle-11gr2-para-quem-nao.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEUBQ3YycCp7ImA9WxBUEE8.&quot;"><id>tag:blogger.com,1999:blog-2523564552046105021.post-6162146738931198292</id><published>2010-02-24T11:36:00.002-03:00</published><updated>2010-02-24T11:37:32.898-03:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-24T11:37:32.898-03:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="sql" /><category scheme="http://www.blogger.com/atom/ns#" term="11gr2" /><category scheme="http://www.blogger.com/atom/ns#" term="merge" /><category scheme="http://www.blogger.com/atom/ns#" term="oracle" /><title>Oracle SQL - Usando MERGE e error log</title><content type="html">J&amp;aacute; encontrei muitos c&amp;oacute;digos SQL onde se poderia usar o comando MERGE para resolver o problema.&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;Sintaxe do comando MERGE:&lt;/div&gt;&lt;br /&gt;
&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;font size="2"&gt;MERGE &amp;lt;hint&amp;gt; INTO &amp;lt;table_name&amp;gt;&lt;br /&gt;
USING &amp;lt;table_view_or_query&amp;gt;&lt;br /&gt;
ON (&amp;lt;condition&amp;gt;)&lt;br /&gt;
WHEN MATCHED THEN &amp;lt;update_clause&amp;gt;&lt;br /&gt;
DELETE &amp;lt;where_clause&amp;gt;&lt;br /&gt;
WHEN NOT MATCHED THEN &amp;lt;insert_clause&amp;gt;&lt;br /&gt;
[LOG ERRORS &amp;lt;log_errors_clause&amp;gt; &amp;lt;reject limit &amp;lt;integer | unlimited&amp;gt;];&lt;/font&gt;&lt;/font&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;O MERGE normalmente &amp;eacute; usado nas situa&amp;ccedil;&amp;otilde;es em que j&amp;aacute; se tem uma tabela populada(alvo) e necessita inserir os registros da tabela origem que ainda n&amp;atilde;o se encontram na tabela alvo.&lt;/div&gt;&lt;div&gt;Digamos que sua tabela alvo foi atualizada semana passada.Ent&amp;atilde;o hoje voc&amp;ecirc; resolve fazer um MERGE entre as linhas para caso tenha ocorrido altera&amp;ccedil;&amp;atilde;o na tabela origem que esta seja propagada/efetuada na tabela alvo via UPDATE .&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;O interessante ent&amp;atilde;o no MERGE s&amp;atilde;o as op&amp;ccedil;&amp;otilde;es WHEN MATCHED THEN usando INSERT ou UPDATE.E tamb&amp;eacute;m a cl&amp;aacute;usula DELETE .&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;Vamos fazer um exemplo de merge usando a tabela PRODUCTS do schema OE.&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;table border="2" bordercolor="#000000" cellpadding="3" cellspacing="0" id="o-vy" width="100%"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td width="100%"&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;dbajcc@DBPOST on 24-FEB-10 &amp;gt;desc &amp;nbsp;oe.products;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;Name &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Null? &amp;nbsp; &amp;nbsp;Type&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;----------------------------------------------------- -------- ------------------------------------&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;PRODUCT_ID &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NOT NULL NUMBER(6)&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;LANGUAGE_ID &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;VARCHAR2(3)&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;PRODUCT_NAME &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NVARCHAR2(125)&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;CATEGORY_ID &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NUMBER(2)&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;PRODUCT_DESCRIPTION &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NVARCHAR2(2000)&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;WEIGHT_CLASS &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NUMBER(1)&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;WARRANTY_PERIOD &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;INTERVAL YEAR(2) TO MONTH&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;SUPPLIER_ID &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NUMBER(6)&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;PRODUCT_STATUS &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; VARCHAR2(20)&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;LIST_PRICE &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NUMBER(8,2)&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;MIN_PRICE &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NUMBER(8,2)&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;CATALOG_URL &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;VARCHAR2(50)&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;dbajcc@DBPOST on 24-FEB-10 &amp;gt;select count(*) from oe.products;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;COUNT(*)&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;----------&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; 288&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;Elapsed: 00:00:00.01&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;dbajcc@DBPOST on 24-FEB-10 &amp;gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;div&gt;Vamos criar uma tabela c&amp;oacute;pia da tabela oe.products mas no schema dbajcc&lt;/div&gt;&lt;br /&gt;
&lt;table border="2" bordercolor="#000000" cellpadding="3" cellspacing="0" id="h_-9" width="100%"&gt;&lt;tbody&gt;
&lt;tr style="text-align:left"&gt;&lt;td width="100%"&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;font size="2"&gt;&lt;b&gt;dbajcc@DBPOST on 24-FEB-10 &amp;gt;create table jcc_products&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;font size="2"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;2 &amp;nbsp; as select * from oe.products where rownum=0 ;&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;&lt;font size="3"&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/font&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;font size="2"&gt;&lt;b&gt;Table created.&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;&lt;font size="3"&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/font&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;font size="2"&gt;&lt;b&gt;Elapsed: 00:00:01.57&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;font size="2"&gt;&lt;b&gt;dbajcc@DBPOST on 24-FEB-10 &amp;gt;&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
Vamos inserir exatamente 100 linhas nesta nova tabela,lembrando que na tabela oe.products h&amp;aacute; 288 linhas :&lt;br /&gt;
&lt;br /&gt;
&lt;table border="2" bordercolor="#000000" cellpadding="3" cellspacing="0" id="j30m" width="100%"&gt;&lt;tbody&gt;
&lt;tr style="text-align:left"&gt;&lt;td width="100%"&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;font size="2"&gt;&lt;b&gt;dbajcc@DBPOST on 24-FEB-10 &amp;gt;&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;font size="2"&gt;&lt;b&gt;dbajcc@DBPOST on 24-FEB-10 &amp;gt;insert into jcc_products&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;font size="2"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;2 &amp;nbsp;select * from oe.products&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;font size="2"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;3 &amp;nbsp;where rownum &amp;lt; 101 ;&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;&lt;font size="3"&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/font&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;font size="2"&gt;&lt;b&gt;100 rows created.&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;&lt;font size="3"&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/font&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;font size="2"&gt;&lt;b&gt;Elapsed: 00:00:00.20&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;font size="2"&gt;&lt;b&gt;dbajcc@DBPOST on 24-FEB-10 &amp;gt;commit ;&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;&lt;font size="3"&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/font&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;font size="2"&gt;&lt;b&gt;Commit complete.&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;&lt;font size="3"&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/font&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;font size="2"&gt;&lt;b&gt;Elapsed: 00:00:00.01&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;font size="2"&gt;&lt;b&gt;dbajcc@DBPOST on 24-FEB-10 &amp;gt;&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
Agora vamos usar o MERGE para inserir os outros 188 registros .&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;Vamos usar a package DBMS_ERRLOG para criar uma tabela de captura de erros:&lt;/div&gt;&lt;br /&gt;
&lt;table border="2" bordercolor="#000000" cellpadding="3" cellspacing="0" id="wea." width="100%"&gt;&lt;tbody&gt;
&lt;tr style="text-align:left"&gt;&lt;td width="100%"&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;font size="2"&gt;&lt;b&gt;dbajcc@DBPOST on 24-FEB-10 &amp;gt;EXECUTE DBMS_ERRLOG.CREATE_ERROR_LOG(&amp;#39;jcc_products&amp;#39;, &amp;#39;jcc_products_log&amp;#39;);&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;&lt;font size="2"&gt;&lt;br /&gt;
&lt;/font&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;font size="2"&gt;&lt;b&gt;PL/SQL procedure successfully completed.&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;&lt;font size="2"&gt;&lt;br /&gt;
&lt;/font&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;font size="2"&gt;&lt;b&gt;Elapsed: 00:00:00.30&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;font size="2"&gt;&lt;b&gt;dbajcc@DBPOST on 24-FEB-10 &amp;gt;&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;div&gt;Usando o Merge:&lt;/div&gt;&lt;br /&gt;
&lt;table border="2" bordercolor="#000000" cellpadding="3" cellspacing="0" id="oh59" width="100%"&gt;&lt;tbody&gt;
&lt;tr style="text-align:left"&gt;&lt;td width="100%"&gt;&lt;div&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;dbajcc@DBPOST on 24-FEB-10 &amp;gt;&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;dbajcc@DBPOST on 24-FEB-10 &amp;gt;merge into jcc_products jp&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&amp;nbsp;&amp;nbsp;2 &amp;nbsp;using oe.products p&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;on (jp.product_id = p.product_id)&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;font color="#FF0000"&gt;when not matched then insert&lt;/font&gt;&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&amp;nbsp;&amp;nbsp;3 &amp;nbsp; &amp;nbsp;4 &amp;nbsp; &amp;nbsp;5 &amp;nbsp;( jp.language_id,&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;jp.product_name,&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;jp.category_id,&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;jp.product_description,&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;jp.weight_class,&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;jp.warranty_period,&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;jp.supplier_id,&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;jp.product_status,&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;jp.list_price,&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;jp.min_price ,&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;jp.catalog_url&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;)&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;values&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;( p.language_id,&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&amp;nbsp;p.product_name,&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&amp;nbsp;p.category_id,&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&amp;nbsp;p.product_description,&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&amp;nbsp;p.weight_class,&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&amp;nbsp;p.warranty_period,&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&amp;nbsp;p.supplier_id,&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&amp;nbsp;p.product_status,&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&amp;nbsp;p.list_price,&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&amp;nbsp;p.min_price ,&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&amp;nbsp;&amp;nbsp;6 &amp;nbsp; &amp;nbsp;7 &amp;nbsp; &amp;nbsp;8 &amp;nbsp; &amp;nbsp;9 &amp;nbsp; 10 &amp;nbsp; 11 &amp;nbsp; 12 &amp;nbsp; 13 &amp;nbsp; 14 &amp;nbsp; 15 &amp;nbsp; 16 &amp;nbsp; 17 &amp;nbsp; 18 &amp;nbsp; 19 &amp;nbsp; 20 &amp;nbsp; 21 &amp;nbsp; 22 &amp;nbsp; 23 &amp;nbsp; 24 &amp;nbsp; 25 &amp;nbsp; 26 &amp;nbsp; 27 &amp;nbsp; 28 &amp;nbsp; p.catalog_url &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;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&amp;nbsp;); 29&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;font size="2"&gt;&lt;br /&gt;
&lt;/font&gt;&lt;div&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;font color="#0000FF"&gt;188 rows merged.&lt;/font&gt;&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;font size="2"&gt;&lt;br /&gt;
&lt;/font&gt;&lt;div&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;Elapsed: 00:00:00.13&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;dbajcc@DBPOST on 24-FEB-10 &amp;gt;commit ;&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;font size="2"&gt;&lt;br /&gt;
&lt;/font&gt;&lt;div&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;Commit complete.&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;font size="2"&gt;&lt;br /&gt;
&lt;/font&gt;&lt;div&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;Elapsed: 00:00:00.01&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;dbajcc@DBPOST on 24-FEB-10 &amp;gt;&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;dbajcc@DBPOST on 24-FEB-10 &amp;gt;SELECT ORA_ERR_MESG$, ORA_ERR_TAG$ from &amp;nbsp;jcc_products_log ;&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;font size="2"&gt;&lt;br /&gt;
&lt;/font&gt;&lt;div&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;no rows selected&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;font size="2"&gt;&lt;br /&gt;
&lt;/font&gt;&lt;div&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;Elapsed: 00:00:00.00&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;dbajcc@DBPOST on 24-FEB-10 &amp;gt;&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;font size="2"&gt;&lt;br /&gt;
&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
Principalmente para quem trabalha com ETL o MERGE &amp;eacute; essencial !&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2523564552046105021-6162146738931198292?l=www.dbajccorrea.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.dbajccorrea.com/feeds/6162146738931198292/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2523564552046105021&amp;postID=6162146738931198292&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/6162146738931198292?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/6162146738931198292?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SimpleWrite-up/~3/JJAgm_ZVaBI/oracle-sql-usando-merge-e-error-log.html" title="Oracle SQL - Usando MERGE e error log" /><author><name>Júlio César Corrêa</name><uri>http://www.blogger.com/profile/16465498903177871508</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04550809630941347154" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.dbajccorrea.com/2010/02/oracle-sql-usando-merge-e-error-log.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEUGSH89eSp7ImA9WxBUEE8.&quot;"><id>tag:blogger.com,1999:blog-2523564552046105021.post-5293288425637833085</id><published>2010-02-24T09:50:00.002-03:00</published><updated>2010-02-24T11:37:09.161-03:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-24T11:37:09.161-03:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="sql" /><category scheme="http://www.blogger.com/atom/ns#" term="11gr2" /><category scheme="http://www.blogger.com/atom/ns#" term="right join" /><category scheme="http://www.blogger.com/atom/ns#" term="outer join.left join" /><category scheme="http://www.blogger.com/atom/ns#" term="oracle" /><title>Oracle SQL - Usando LEFT and RIGHT JOIN</title><content type="html">&lt;div&gt;Ol&amp;aacute;,&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;Hoje o assunto &amp;eacute; OUTER JOIN.&lt;/div&gt;&lt;div&gt;Essa dica de post eu peguei com o meu amigo Eduardo do blog&amp;nbsp;&lt;font face="arial, sans-serif"&gt;&lt;font color="#008000"&gt;&lt;font size="2"&gt;&lt;a href="http://bieduardo.blogspot.com/" id="ga:s" title="bieduardo.blogspot.com/"&gt;bieduardo.blogspot.com/&lt;/a&gt;&amp;nbsp;.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;&lt;font size="2"&gt;&lt;br /&gt;
&lt;/font&gt;&lt;div&gt;Normalmente muitos profissionais caem nesta d&amp;uacute;vida cruel.&lt;/div&gt;&lt;div&gt;Como fazer corretamente um OUTER JOIN?&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;Pirmeiro vamos relembrar o que &amp;eacute; um OUTER JOIN.&lt;/div&gt;&lt;div&gt;&amp;quot;Um OUTER JOIN &amp;eacute; um SIMPLE JOIN ou INNER JOIN &amp;nbsp;com uma &amp;quot;op&amp;ccedil;&amp;atilde;o extendida &amp;quot; de trazer tamb&amp;eacute;m os dados que n&amp;atilde;o satisfazem a condi&amp;ccedil;&amp;atilde;o de JOIN.&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;No Oracle para usar LEFT ou RIGHT &amp;nbsp;OUTER JOIN em seu SQL voc&amp;ecirc; pode usar o caracter &amp;quot;+&amp;quot; entre par&amp;ecirc;nteses para informar ao Oracle qual operador voc&amp;ecirc; est&amp;aacute; utilizando.Voc&amp;ecirc; tamb&amp;eacute;m pode usar o padr&amp;atilde;o SQL92 para JOIN usando as palavras RIGHT OUTER JOIN e LEFT OUTER JOIN.&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;Mostrarei isso mais a frente no segundo post.&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;A explica&amp;ccedil;&amp;atilde;o sobre de qual lado utilizar &amp;eacute; simples:&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;Se a coluna que cont&amp;eacute;m os dados nulos &amp;eacute; a da direita voc&amp;ecirc; ent&amp;atilde;o coloca o sinal (+) na coluna da esquerda e vice-versa.&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;Ex. Nas tabelas A e B existe a &amp;nbsp;coluna ID do tipo NUMBER.&lt;/div&gt;&lt;div&gt;Na tabela A existe uma linha em que a coluna ID &amp;eacute; nula,mas mesmo assim voc&amp;ecirc; precisa trazer esta linha na sua query ,neste caso voc&amp;ecirc; precisar fazer um JOIN para obt&amp;ecirc; - las.&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;ex.&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;select&amp;nbsp;&lt;/div&gt;&lt;div&gt;from tabela1 A,tabela2 B&lt;/div&gt;&lt;div&gt;where A.id = B.id(+) ;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;No exemplo acima foi feito um LEFT JOIN pois quero retornar todos os dados da tabela A que n&amp;atilde;o satisfazem a condi&amp;ccedil;&amp;atilde;o da JOIN .&lt;/div&gt;&lt;br /&gt;
Criando as tabelas de exemplo : &lt;br /&gt;
&lt;br /&gt;
&lt;table border="2" bordercolor="#000000" cellpadding="3" cellspacing="0" id="snek" width="100%"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td width="100%"&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;dbajcc@DBPOST on 23-FEB-10 &amp;gt;create table jcc_join_a&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;(seq number(2) ,&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;text varchar2(10)) ; &amp;nbsp;2 &amp;nbsp; &amp;nbsp;3&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;Table created.&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;Elapsed: 00:00:00.03&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;dbajcc@DBPOST on 23-FEB-10 &amp;gt; insert into jcc_join_a&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;values(1,&amp;#39;disk1&amp;#39;) ; &amp;nbsp;2&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;1 row created.&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;Elapsed: 00:00:00.02&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;dbajcc@DBPOST on 23-FEB-10 &amp;gt; insert into jcc_join_a&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;values(2,&amp;#39;disk2&amp;#39;) ; &amp;nbsp;2&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;1 row created.&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;Elapsed: 00:00:00.00&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;dbajcc@DBPOST on 23-FEB-10 &amp;gt; insert into jcc_join_a(seq)&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;values(3) ; &amp;nbsp;2&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;1 row created.&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;Elapsed: 00:00:00.00&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;dbajcc@DBPOST on 23-FEB-10 &amp;gt;commit ;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;Commit complete.&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;Elapsed: 00:00:00.00&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;dbajcc@DBPOST on 23-FEB-10 &amp;gt; create table jcc_join_b&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;(seq number(2) ,&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;text varchar2(10)) ; &amp;nbsp;2 &amp;nbsp; &amp;nbsp;3&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;Table created.&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;Elapsed: 00:00:00.02&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;dbajcc@DBPOST on 23-FEB-10 &amp;gt; insert into jcc_join_b&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;values(1,&amp;#39;disk1&amp;#39;) ;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; 2&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;1 row created.&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;Elapsed: 00:00:00.01&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;dbajcc@DBPOST on 23-FEB-10 &amp;gt; &amp;nbsp;insert into jcc_join_b&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;values(2,&amp;#39;disk2&amp;#39;) ; &amp;nbsp;2&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;1 row created.&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;Elapsed: 00:00:00.00&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;dbajcc@DBPOST on 23-FEB-10 &amp;gt; insert into jcc_join_b(text)&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;values(&amp;#39;disk3&amp;#39;) ; &amp;nbsp;2&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;1 row created.&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;Elapsed: 00:00:00.00&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;dbajcc@DBPOST on 23-FEB-10 &amp;gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;div&gt;Fazendo um &lt;i&gt;RIGHT JOIN&lt;/i&gt; :&lt;/div&gt;&lt;br /&gt;
&lt;table border="2" bordercolor="#000000" cellpadding="3" cellspacing="0" id="p2v." width="100%"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td width="100%"&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;dbajcc@DBPOST on 23-FEB-10 &amp;gt;select a.* ,b.*&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;from jcc_join_a a,&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;jcc_join_b b&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;where a.seq&lt;font color="#FF0000"&gt;(+)&lt;/font&gt; = &lt;font color="#0000FF"&gt;b.seq&lt;/font&gt; ; &amp;nbsp;2 &amp;nbsp; &amp;nbsp;3 &amp;nbsp; &amp;nbsp;4&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; SEQ TEXT &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;font color="#0000FF"&gt;&amp;nbsp;SEQ TEXT&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;---------- ---------- &lt;font color="#0000FF"&gt;---------- ----------&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 disk1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;font color="#0000FF"&gt;1 disk1&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 disk2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;font color="#0000FF"&gt;2 disk2&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&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; &amp;nbsp; &lt;font color="#0000FF"&gt;disk3&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;Elapsed: 00:00:00.02&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;dbajcc@DBPOST on 23-FEB-10 &amp;gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;div&gt;Ou usando a sintaxe do padr&amp;atilde;o SQL92 :&lt;/div&gt;&lt;br /&gt;
&lt;table border="2" bordercolor="#000000" cellpadding="3" cellspacing="0" id="v4rw" width="100%"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td width="100%"&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;dbajcc@DBPOST on 24-FEB-10 &amp;gt;select &amp;nbsp;a.* ,b.*&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;2 &amp;nbsp;from jcc_join_a a &lt;font color="#FF0000"&gt;right outer join&lt;/font&gt; jcc_join_b b&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;3 &amp;nbsp; on &amp;nbsp;a.seq = b.seq ;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; SEQ TEXT &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SEQ TEXT&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;---------- ---------- ---------- ----------&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 disk1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 disk1&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 disk2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 disk2&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&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; &amp;nbsp; disk3&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;Elapsed: 00:00:00.00&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;dbajcc@DBPOST on 24-FEB-10 &amp;gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;br /&gt;
Acima destaquei em azul a coluna na qual &amp;eacute; o alvo e que por sinal cont&amp;eacute;m um campo SEQ nulo para o campo TEXT &amp;quot;disk3&amp;quot; .&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;Agora vamos fazer um &lt;i&gt;LEFT JOIN :&lt;/i&gt;&lt;/div&gt;&lt;i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/i&gt;&lt;table border="2" bordercolor="#000000" cellpadding="3" cellspacing="0" id="cb4q" width="100%"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td width="100%"&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;[oracle@marte ~]$ sqlplus dbajcc&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;SQL*Plus: Release 11.2.0.1.0 Production on Wed Feb 24 07:49:02 2010&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;Copyright (c) 1982, 2009, Oracle. &amp;nbsp;All rights reserved.&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;Enter password:&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;Connected to:&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;With the Partitioning, Automatic Storage Management, OLAP, Data Mining&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;and Real Application Testing options&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;dbajcc@DBPOST on 24-FEB-10 &amp;gt; select a.* ,b.*&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;from jcc_join_a a,&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;jcc_join_b b&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;where &lt;font color="#0000FF"&gt;a.seq&lt;/font&gt; = b.seq&lt;font color="#FF0000"&gt;(+)&lt;/font&gt; ; &amp;nbsp;2 &amp;nbsp; &amp;nbsp;3 &amp;nbsp; &amp;nbsp;4&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;font color="#0000FF"&gt;SEQ TEXT&lt;/font&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SEQ TEXT&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&lt;font color="#0000FF"&gt;---------- ---------&lt;/font&gt;- ---------- ----------&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;font color="#0000FF"&gt;1 disk1&lt;/font&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 disk1&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;font color="#0000FF"&gt;2 disk2&lt;/font&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 disk2&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;font color="#0000FF"&gt;3&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;Elapsed: 00:00:00.05&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;dbajcc@DBPOST on 24-FEB-10 &lt;/b&gt;&lt;/font&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
Ou usando o outro tipo de sintaxe :&lt;br /&gt;
&lt;br /&gt;
&lt;table border="2" bordercolor="#000000" cellpadding="3" cellspacing="0" id="ehlo" width="100%"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td width="100%"&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;dbajcc@DBPOST on 24-FEB-10 &amp;gt;select &amp;nbsp;a.* ,b.*&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;2 &amp;nbsp;from jcc_join_a a &lt;font color="#FF0000"&gt;left outer join&lt;/font&gt; jcc_join_b b&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;3 &amp;nbsp;on &amp;nbsp;a.seq = b.seq ;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; SEQ TEXT &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SEQ TEXT&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;---------- ---------- ---------- ----------&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 disk1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 disk1&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 disk2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 disk2&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;Elapsed: 00:00:00.19&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;dbajcc@DBPOST on 24-FEB-10 &amp;gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;div&gt;Temos uma outra op&amp;ccedil;&amp;atilde;o que &amp;eacute; usar a um FULL OUTER JOIN para trazer os dados que n&amp;atilde;o satisfazem a condi&amp;ccedil;&amp;atilde;o de JOIN das duas tabelas envolvidas.&lt;/div&gt;&lt;br /&gt;
&lt;table border="2" bordercolor="#000000" cellpadding="3" cellspacing="0" id="vo92" width="100%"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td width="100%"&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;dbajcc@DBPOST on 24-FEB-10 &amp;gt;select &amp;nbsp;a.* ,b.*&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;2 &amp;nbsp;from jcc_join_a a &lt;font color="#FF0000"&gt;full outer join&lt;/font&gt; jcc_join_b b&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;3 &amp;nbsp; on &amp;nbsp;a.seq = b.seq ;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; SEQ TEXT &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SEQ TEXT&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;---------- ---------- ---------- ----------&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 disk1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 disk1&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 disk2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 disk2&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&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; &amp;nbsp; disk3&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;Elapsed: 00:00:00.01&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="&amp;#39;Courier New&amp;#39;"&gt;&lt;b&gt;dbajcc@DBPOST on 24-FEB-10 &amp;gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;div&gt;Nem vou trazer exemplos sobre Cartesian Join pois acredito ser de pouca utilidade.&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;At&amp;eacute;,&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;J&amp;uacute;lio C&amp;eacute;sar Corr&amp;ecirc;a&amp;nbsp;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2523564552046105021-5293288425637833085?l=www.dbajccorrea.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.dbajccorrea.com/feeds/5293288425637833085/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2523564552046105021&amp;postID=5293288425637833085&amp;isPopup=true" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/5293288425637833085?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/5293288425637833085?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SimpleWrite-up/~3/zHdAMMzIrYk/oracle-sql-usando-left-and-right-join.html" title="Oracle SQL - Usando LEFT and RIGHT JOIN" /><author><name>Júlio César Corrêa</name><uri>http://www.blogger.com/profile/16465498903177871508</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04550809630941347154" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total><feedburner:origLink>http://www.dbajccorrea.com/2010/02/oracle-sql-usando-left-and-right-join.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0INSX05fSp7ImA9WxBVGUg.&quot;"><id>tag:blogger.com,1999:blog-2523564552046105021.post-5723517937091055262</id><published>2010-02-23T17:05:00.001-03:00</published><updated>2010-02-23T17:06:38.325-03:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-23T17:06:38.325-03:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="11gr2" /><category scheme="http://www.blogger.com/atom/ns#" term="11g" /><category scheme="http://www.blogger.com/atom/ns#" term="1Z1-514" /><category scheme="http://www.blogger.com/atom/ns#" term="exame" /><category scheme="http://www.blogger.com/atom/ns#" term="oracle" /><title>Oracle Database 11g Essentials for Implementors (Beta)</title><content type="html">Para quem trabalha com parceiros Oracle é uma boa este exame :&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=41&amp;amp;p_exam_id=1Z0_514"&gt;http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=41&amp;amp;p_exam_id=1Z0_514&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Lembrando que vale para as duas versões!&lt;br /&gt;
&lt;br /&gt;
"&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;This exam is valid for Oracle Database 11gR1 and 11gR2."&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2523564552046105021-5723517937091055262?l=www.dbajccorrea.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.dbajccorrea.com/feeds/5723517937091055262/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2523564552046105021&amp;postID=5723517937091055262&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/5723517937091055262?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/5723517937091055262?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SimpleWrite-up/~3/k1-RWEpX_0Y/oracle-database-11g-essentials-for.html" title="Oracle Database 11g Essentials for Implementors (Beta)" /><author><name>Júlio César Corrêa</name><uri>http://www.blogger.com/profile/16465498903177871508</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04550809630941347154" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.dbajccorrea.com/2010/02/oracle-database-11g-essentials-for.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0IAQHkzcSp7ImA9WxBVGUg.&quot;"><id>tag:blogger.com,1999:blog-2523564552046105021.post-361831993120717764</id><published>2010-02-23T15:53:00.002-03:00</published><updated>2010-02-23T15:59:01.789-03:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-23T15:59:01.789-03:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="sql" /><category scheme="http://www.blogger.com/atom/ns#" term="11gr2" /><category scheme="http://www.blogger.com/atom/ns#" term="sql expert" /><category scheme="http://www.blogger.com/atom/ns#" term="oracle" /><title>Oracle SQL - Find whitespace- Regular Expressions - Oracle</title><content type="html">Procurando espaços em branco em uma coluna :&lt;br /&gt;
&lt;br /&gt;
&lt;table border="2" bordercolor="#000000" cellpadding="3" cellspacing="0" id="r0al"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td width="100%"&gt;&lt;div&gt;&lt;b&gt;dbajcc@DBPOST on 23-FEB-10 &amp;gt;create table jcc_regex(x number(1),y varchar2(15)) ;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;b&gt;Table created.&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;b&gt;Elapsed: 00:00:00.02&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;dbajcc@DBPOST on 23-FEB-10 &amp;gt;insert into jcc_regex&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;2 &amp;nbsp;values(1,'Os piratas');&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;b&gt;1 row created.&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;b&gt;Elapsed: 00:00:00.13&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;dbajcc@DBPOST on 23-FEB-10 &amp;gt;insert into jcc_regex&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;2 &amp;nbsp;values(2,'Ospiratas');&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;b&gt;1 row created.&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;b&gt;Elapsed: 00:00:00.00&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;dbajcc@DBPOST on 23-FEB-10 &amp;gt;commit ;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;b&gt;Commit complete.&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;b&gt;Elapsed: 00:00:00.01&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;dbajcc@DBPOST on 23-FEB-10 &amp;gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;table border="2" bordercolor="#000000" cellpadding="3" cellspacing="0" id="dnne"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td width="100%"&gt;&lt;div&gt;&lt;b&gt;dbajcc@DBPOST on 23-FEB-10 &amp;gt;select x,regexp_count(y,'(\s)') whitespace from jcc_regex ;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; X WHITESPACE&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;---------- ----------&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;b&gt;Elapsed: 00:00:00.01&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;dbajcc@DBPOST on 23-FEB-10 &amp;gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
Se por acaso vc está usando um campo CHAR e por um motivo qualquer você precise fazer um replace ,use o REGEXP_REPLACE.&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;Você tem uma lista que fica na doc Database Advanced Application Developer's Guide.Tem vários exemplos que podem ajudar você .&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;Para obter das docs :&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;a href="http://tahiti.oracle.com/" id="vj1q" title="tahiti.oracle.com"&gt;tahiti.oracle.com&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2523564552046105021-361831993120717764?l=www.dbajccorrea.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.dbajccorrea.com/feeds/361831993120717764/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2523564552046105021&amp;postID=361831993120717764&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/361831993120717764?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/361831993120717764?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SimpleWrite-up/~3/4RDggeR4DBc/find-whitespace-regular-expressions.html" title="Oracle SQL - Find whitespace- Regular Expressions - Oracle" /><author><name>Júlio César Corrêa</name><uri>http://www.blogger.com/profile/16465498903177871508</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04550809630941347154" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.dbajccorrea.com/2010/02/find-whitespace-regular-expressions.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Dk4NQ384cCp7ImA9WxBVGUk.&quot;"><id>tag:blogger.com,1999:blog-2523564552046105021.post-5313563819809848716</id><published>2010-02-23T14:09:00.002-03:00</published><updated>2010-02-23T14:09:52.138-03:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-23T14:09:52.138-03:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="sql expert" /><category scheme="http://www.blogger.com/atom/ns#" term="exame" /><category scheme="http://www.blogger.com/atom/ns#" term="1z0-047" /><category scheme="http://www.blogger.com/atom/ns#" term="oracle" /><title>Comentários interessantes sobre realizar um exame de certificação</title><content type="html">O assunto é sobre o exame 1z0-047 - SQL Expert .&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://laurentschneider.com/wordpress/2007/07/oracle-certified-sql-expert.html#comments"&gt;http://laurentschneider.com/wordpress/2007/07/oracle-certified-sql-expert.html#comments&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2523564552046105021-5313563819809848716?l=www.dbajccorrea.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.dbajccorrea.com/feeds/5313563819809848716/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2523564552046105021&amp;postID=5313563819809848716&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/5313563819809848716?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/5313563819809848716?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SimpleWrite-up/~3/aLdGDAvI5xk/comentarios-interessantes-sobre.html" title="Comentários interessantes sobre realizar um exame de certificação" /><author><name>Júlio César Corrêa</name><uri>http://www.blogger.com/profile/16465498903177871508</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04550809630941347154" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.dbajccorrea.com/2010/02/comentarios-interessantes-sobre.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkYNSX87fCp7ImA9WxBVGUk.&quot;"><id>tag:blogger.com,1999:blog-2523564552046105021.post-371789191609109352</id><published>2010-02-23T13:54:00.002-03:00</published><updated>2010-02-23T13:56:38.104-03:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-23T13:56:38.104-03:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="11gr2" /><category scheme="http://www.blogger.com/atom/ns#" term="error" /><category scheme="http://www.blogger.com/atom/ns#" term="storage" /><category scheme="http://www.blogger.com/atom/ns#" term="memory target" /><category scheme="http://www.blogger.com/atom/ns#" term="LINUX" /><category scheme="http://www.blogger.com/atom/ns#" term="oracle" /><title>Oracle Database 11gr2 - MEMORY_TARGET e /dev/shm</title><content type="html">&lt;div&gt;Olá,&lt;/div&gt;&lt;br /&gt;
Continuando os testes com o Oracle Database 11gr2 conforme o tempo livre que tenho,fiz alguns testes diminuindo a quantidade de memória RAM da VM .Como estava com o Oracle Restart habilitado,após subir o servidor de banco de dados logo teria os serviços disponíveis para uso. &lt;br /&gt;
&lt;br /&gt;
&lt;table border="3" bordercolor="#000000" cellpadding="3" cellspacing="0" id="fflx"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td width="100%"&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;[oracle@marte ~]$&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;[oracle@marte ~]$ &lt;span style="color: red;"&gt;echo $ORACLE_HOME&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;/u01/app/oracle/product/11.2.0/dbhome_1&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;[oracle@marte ~]$ &lt;span style="color: red;"&gt;echo $ORACLE_SID&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;dbpost&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;[oracle@marte ~]$ &lt;span style="color: red;"&gt;ps -ef|grep pmon&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;oracle &amp;nbsp; &amp;nbsp;2997 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 08:42 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 &lt;span style="color: blue;"&gt;asm_pmon_+ASM&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;oracle &amp;nbsp; &amp;nbsp;3118 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 08:43 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 &lt;span style="color: blue;"&gt;ora_pmon_dbpost&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;oracle &amp;nbsp; &amp;nbsp;4083 &amp;nbsp;3444 &amp;nbsp;0 09:58 pts/2 &amp;nbsp; &amp;nbsp;00:00:00 grep pmon&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;[oracle@marte ~]$ &lt;span style="color: red;"&gt;ps -ef|grep tns&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;oracle &amp;nbsp; &amp;nbsp;2908 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 08:41 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 &lt;span style="color: blue;"&gt;/u01/app/oracle/product/11.2.0/grid/bin/tnslsnr LISTENER -inherit&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;oracle &amp;nbsp; &amp;nbsp;4086 &amp;nbsp;3444 &amp;nbsp;0 09:59 pts/2 &amp;nbsp; &amp;nbsp;00:00:00 grep tns&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;[oracle@marte ~]$&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
Bom parece que o banco de dados está disponível&lt;br /&gt;
&lt;br /&gt;
&lt;table border="3" bordercolor="#000000" cellpadding="3" cellspacing="0" id="u0oc"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td width="100%"&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;[oracle@marte ~]$&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;[oracle@marte ~]$ &lt;span style="color: red;"&gt;sqlplus / as sysdba&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;SQL*Plus: Release 11.2.0.1.0 Production on Tue Feb 23 10:02:19 2010&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;Copyright (c) 1982, 2009, Oracle. &amp;nbsp;All rights reserved.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;Connected to an idle instance.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;idle on 23-FEB-10 &amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;idle on 23-FEB-10 &amp;gt;&lt;/b&gt;&lt;span style="color: red;"&gt;&lt;b&gt;select * from v$instance;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;select * from v$instance&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;*&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;ERROR at line 1:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;ORA-01034: ORACLE not available&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;Process ID: 0&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;Session ID: 0 Serial number: 0&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;Elapsed: 00:00:00.17&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;idle on 23-FEB-10 &amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
Há algo errado.&lt;br /&gt;
&lt;br /&gt;
Vamos ao alert log&lt;br /&gt;
&lt;br /&gt;
&lt;table border="3" bordercolor="#000000" cellpadding="3" cellspacing="0" id="j-as"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td width="100%"&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;[oracle@marte /]$ cd /u01/app/oracle/diag/rdbms/dbpost/dbpost/alert/&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;[oracle@marte alert]$ ls -ltrh&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;total 6.6M&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;-rw-r----- 1 oracle dba 6.6M Feb 23 09:36 log.xml&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;[oracle@marte alert]$&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;[oracle@marte alert]$ &lt;span style="color: red;"&gt;tail -20f log.xml&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&amp;lt;/msg&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&amp;lt;msg time='2010-02-23T09:36:06.048-02:00' org_id='oracle' comp_id='rdbms'&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&amp;nbsp;msg_id='opistr_real:935:3971575317' type='NOTIFICATION' group='startup'&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&amp;nbsp;level='16' host_id='marte' host_addr='127.0.0.1'&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&amp;nbsp;pid='3479'&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&amp;nbsp;&amp;lt;txt&amp;gt;&lt;span style="color: blue;"&gt;Starting ORACLE instance (normal)&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&amp;nbsp;&amp;lt;/txt&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&amp;lt;/msg&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&amp;lt;msg time='2010-02-23T09:36:06.075-02:00' org_id='oracle' comp_id='rdbms'&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&amp;nbsp;type='UNKNOWN' level='16' host_id='marte'&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&amp;nbsp;host_addr='127.0.0.1' pid='3479'&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&amp;nbsp;&amp;lt;txt&amp;gt;&lt;span style="color: blue;"&gt;WARNING: You are trying to use the MEMORY_TARGET feature. This feature requires the /dev/shm file system to be mounted for at least 536870912 bytes. /dev/shm is either not mounted or is mounted with available space less than this size. Please fix this so that MEMORY_TARGET can work as expected. Current available is 322220032 and used is 474198016 bytes. Ensure that the mount point is /dev/shm for this directory.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&amp;nbsp;&amp;lt;/txt&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&amp;lt;/msg&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&amp;lt;msg time='2010-02-23T09:36:06.092-02:00' org_id='oracle' comp_id='rdbms'&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&amp;nbsp;type='UNKNOWN' level='16' host_id='marte'&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&amp;nbsp;host_addr='127.0.0.1' pid='3479'&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&amp;nbsp;&amp;lt;txt&amp;gt;&lt;span style="color: blue;"&gt;memory_target needs larger /dev/shm&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&amp;nbsp;&amp;lt;/txt&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&amp;lt;/msg&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
Analisando o erro acima vamos ver o filesystem /dev/shm&lt;br /&gt;
&lt;br /&gt;
&lt;table border="3" bordercolor="#000000" cellpadding="3" cellspacing="0" id="yc3a"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td width="100%"&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;[root@marte /]# &lt;span style="color: red;"&gt;df -Ph&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;Filesystem &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Size &amp;nbsp;Used Avail Use% Mounted on&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;/dev/sda1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;23G &amp;nbsp; 15G &amp;nbsp;6.7G &amp;nbsp;70% /&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;tmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 760M &amp;nbsp;453M &amp;nbsp;308M &amp;nbsp;60% /dev/shm&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;[root@marte /]# &lt;span style="color: red;"&gt;cat /proc/meminfo&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;MemTotal: &amp;nbsp; &amp;nbsp; &amp;nbsp;1555508 kB&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;MemFree: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;315880 kB&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;Buffers: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 64700 kB&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;Cached: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 968316 kB&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;SwapCached: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 kB&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;Active: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 423800 kB&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;Inactive: &amp;nbsp; &amp;nbsp; &amp;nbsp; 769132 kB&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;HighTotal: &amp;nbsp; &amp;nbsp; &amp;nbsp;655296 kB&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;HighFree: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1168 kB&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;LowTotal: &amp;nbsp; &amp;nbsp; &amp;nbsp; 900212 kB&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;LowFree: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;314712 kB&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;SwapTotal: &amp;nbsp; &amp;nbsp; 1574360 kB&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;SwapFree: &amp;nbsp; &amp;nbsp; &amp;nbsp;1574360 kB&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;Dirty: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 468 kB&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;Writeback: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 kB&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;AnonPages: &amp;nbsp; &amp;nbsp; &amp;nbsp;159928 kB&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;Mapped: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;91568 kB&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;Slab: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;29760 kB&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;PageTables: &amp;nbsp; &amp;nbsp; &amp;nbsp; 9068 kB&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;NFS_Unstable: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 kB&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;Bounce: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 kB&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;CommitLimit: &amp;nbsp; 2352112 kB&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;Committed_AS: &amp;nbsp;1866740 kB&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;VmallocTotal: &amp;nbsp; 114680 kB&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;VmallocUsed: &amp;nbsp; &amp;nbsp; &amp;nbsp;3280 kB&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;VmallocChunk: &amp;nbsp; 111252 kB&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;HugePages_Total: &amp;nbsp; &amp;nbsp; 0&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;HugePages_Free: &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;HugePages_Rsvd: &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;Hugepagesize: &amp;nbsp; &amp;nbsp; 4096 kB&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;[root@marte /]#&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;div&gt;Vamos ver o tamanho alocado no paramtreo MEMORY_TARGET :&lt;/div&gt;&lt;br /&gt;
&lt;table border="3" bordercolor="#000000" cellpadding="3" cellspacing="0" id="x_p1"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td width="100%"&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;[oracle@marte /]$ cd $ORACLE_HOME/dbs&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;[oracle@marte dbs]$ &lt;span style="color: red;"&gt;vi initdbpost.ora&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;...&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;*.&lt;span style="color: blue;"&gt;memory_target=512m&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;*.open_cursors=300&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;*.processes=150&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;*.remote_login_passwordfile='EXCLUSIVE'&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;*.undo_tablespace='UNDOTBS1'&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
Ok.&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;O erro está ocorrendo porque não temos 512MB disponíveis no /dev/shm .Isto ocorre porque como não configurei o /dev/shm e tenho somente 1536MB de RAM alocado para esta VM.&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;Vou retirar totalmente o banco de dados&lt;i&gt; dbpost &lt;/i&gt;do Oracle Restart :&lt;/div&gt;&lt;br /&gt;
&lt;table border="3" bordercolor="#000000" cellpadding="3" cellspacing="0" id="bcme"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td width="100%"&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;[oracle@marte dbs]$ cd /&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;[oracle@marte /]$ &lt;span style="color: red;"&gt;srvctl disable database -d dbpost&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;[oracle@marte /]$&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;table border="3" bordercolor="#000000" cellpadding="3" cellspacing="0" id="vuz6"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td width="100%"&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;[root@marte /]#&lt;span style="color: red;"&gt; ps -ef|grep pmon&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;oracle &amp;nbsp; &amp;nbsp;2997 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 08:42 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 asm_pmon_+ASM&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;root &amp;nbsp; &amp;nbsp; &amp;nbsp;4774 &amp;nbsp;4362 &amp;nbsp;0 11:39 pts/2 &amp;nbsp; &amp;nbsp;00:00:00 grep pmon&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;[root@marte /]#&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;div&gt;&lt;div&gt;Para efeito de testes não quero alterar o tamanho da memória RAM.Vamos alterar o /dev/shm &amp;nbsp;que ainda está com valores default no meu SO.&lt;/div&gt;&lt;br /&gt;
Pode-se fazer via comando direto no shell/terminal,mas no caso para ficar definitivo após o boot vou colocá-lo no&amp;nbsp;&lt;b&gt;/etc/fstab .&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;table border="3" bordercolor="#000000" cellpadding="3" cellspacing="0" id="f7t_"&gt;&lt;tbody&gt;
&lt;tr style="text-align: left;"&gt;&lt;td width="100%"&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;root@marte /]# &lt;span style="color: red;"&gt;cat /etc/fstab&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;LABEL=/ &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; ext3 &amp;nbsp; &amp;nbsp;defaults &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1 1&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;tmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /dev/shm &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tmpfs &amp;nbsp; defaults &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 0&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;devpts &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/dev/pts &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;devpts &amp;nbsp;gid=5,mode=620 &amp;nbsp;0 0&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;sysfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /sys &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sysfs &amp;nbsp; defaults &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 0&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;proc &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/proc &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; proc &amp;nbsp; &amp;nbsp;defaults &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 0&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;LABEL=SWAP-sda2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; swap &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;swap &amp;nbsp; &amp;nbsp;defaults &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 0&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;[root@marte /]#&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
Fazendo o remount do /dev/shm&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;&lt;table border="3" bordercolor="#000000" cellpadding="3" cellspacing="0" id="ryo7"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td width="100%"&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;[root@marte /]# &lt;span style="color: red;"&gt;mount -o remount,size=1G /dev/shm&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;[root@marte /]#&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
Alocando o espaço para ficar disponível na inicialização do sistema :&lt;/div&gt;&lt;br /&gt;
&lt;table border="3" bordercolor="#000000" cellpadding="3" cellspacing="0" id="v76u"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td width="100%"&gt;&lt;div&gt;[root@marte /]# &lt;span style="color: red;"&gt;vi /etc/fstab&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;span style="font-size: x-small;"&gt;[root@marte /]# &lt;span style="color: red;"&gt;cat /etc/fstab&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;span style="font-size: x-small;"&gt;LABEL=/ &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; ext3 &amp;nbsp; &amp;nbsp;defaults &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1 1&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: blue;"&gt;tmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /dev/shm &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tmpfs &amp;nbsp; defaults,size=1024m,auto &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;span style="font-size: x-small;"&gt;devpts &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/dev/pts &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;devpts &amp;nbsp;gid=5,mode=620 &amp;nbsp;0 0&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;span style="font-size: x-small;"&gt;sysfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /sys &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sysfs &amp;nbsp; defaults &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 0&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;span style="font-size: x-small;"&gt;proc &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/proc &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; proc &amp;nbsp; &amp;nbsp;defaults &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 0&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;span style="font-size: x-small;"&gt;LABEL=SWAP-sda2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; swap &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;swap &amp;nbsp; &amp;nbsp;defaults &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 0&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;span style="font-size: x-small;"&gt;[root@marte /]#&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;div&gt;&amp;nbsp;reboot :&lt;/div&gt;&lt;br /&gt;
&lt;table border="3" bordercolor="#000000" cellpadding="3" cellspacing="0" id="bh47"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td width="100%"&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;[root@marte /]# &lt;span style="color: red;"&gt;shutdown -r now&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;Broadcast message from root (pts/2) (Tue Feb 23 11:50:40 2010):&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;The system is going down for reboot NOW!&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;[root@marte /]#&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
Curiosidade &amp;nbsp;- Oracle Restart em ação&lt;br /&gt;
&lt;div&gt;&lt;table border="3" bordercolor="#000000" cellpadding="3" cellspacing="0" id="myw4"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td width="100%"&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;[root@marte ~]# &lt;/b&gt;&lt;/span&gt;&lt;span style="color: red;"&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;tail -f /var/log/messages&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;Feb 23 11:52:34 localhost smartd[2568]: Device: /dev/sde, IE (SMART) not enabled, skip device Try 'smartctl -s on /dev/sde' to turn on SMART features&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;Feb 23 11:52:34 localhost smartd[2568]: Unable to register SCSI device /dev/sde at line 36 of file /etc/smartd.conf&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;...&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;Feb 23 11:52:37 localhost pcscd: winscard.c:219:SCardConnect() Reader E-Gate 0 0 Not Found&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;Feb 23 11:52:37 localhost last message repeated 3 times&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;Feb 23 11:52:38 localhost /u01/app/oracle/product/11.2.0/grid/bin/crswrapexece.pl[2552]: executing "/u01/app/oracle/product/11.2.0/grid/bin/ohasd.bin reboot"&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
Após o boot total,vamos tentar subir a instance dbpost.&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;Abaixo podemos ver que o /dev/shm está com a tamanho que foi colocado no /etc/fstab&lt;/div&gt;&lt;br /&gt;
&lt;table border="3" bordercolor="#000000" cellpadding="3" cellspacing="0" id="g9se"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td width="100%"&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;[root@marte ~]# &lt;span style="color: red;"&gt;df -Ph&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;Filesystem &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Size &amp;nbsp;Used Avail Use% Mounted on&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;/dev/sda1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;23G &amp;nbsp; 15G &amp;nbsp;6.7G &amp;nbsp;70% /&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;tmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.0G &amp;nbsp;154M &amp;nbsp;871M &amp;nbsp;16% /dev/shm&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;[root@marte ~]#&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;div&gt;Startup no dbpost :&lt;/div&gt;&lt;br /&gt;
&lt;table border="3" bordercolor="#000000" cellpadding="3" cellspacing="0" id="r5hx"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td width="100%"&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;[oracle@marte dbs]$ &lt;span style="color: red;"&gt;ps -ef|grep pmon&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;oracle &amp;nbsp; &amp;nbsp;2994 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 11:53 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00 asm_pmon_+ASM&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;oracle &amp;nbsp; &amp;nbsp;3124 &amp;nbsp;2948 &amp;nbsp;0 12:00 pts/2 &amp;nbsp; &amp;nbsp;00:00:00 grep pmon&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;[oracle@marte dbs]$ &lt;span style="color: red;"&gt;strings spfiledbpost.ora |grep memory&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;*.memory_target=512m&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;[oracle@marte dbs]$ &lt;span style="color: red;"&gt;srvctl start database -d dbpost -o open&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;PRCR-1079 : Failed to start resource ora.dbpost.db&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;CRS-2501: Resource 'ora.dbpost.db' is disabled&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;[oracle@marte dbs]$&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;[oracle@marte dbs]$&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;[oracle@marte dbs]$ &lt;span style="color: red;"&gt;echo $ORACLE_HOME&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;/u01/app/oracle/product/11.2.0/dbhome_1&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;[oracle@marte dbs]$ e&lt;span style="color: red;"&gt;cho $ORACLE_SID&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;dbpost&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;[oracle@marte dbs]$ &lt;span style="color: red;"&gt;sqlplus "/ as sysdba"&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;SQL*Plus: Release 11.2.0.1.0 Production on Tue Feb 23 12:03:58 2010&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;Copyright (c) 1982, 2009, Oracle. &amp;nbsp;All rights reserved.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;Connected to an idle instance.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;idle on 23-FEB-10 &amp;gt;&lt;span style="color: red;"&gt;startup nomount ;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;ORACLE instance started.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;Total System Global Area &amp;nbsp;535662592 bytes&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;Fixed Size &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1337720 bytes&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;Variable Size &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 364906120 bytes&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;Database Buffers &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;163577856 bytes&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;Redo Buffers &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5840896 bytes&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;idle on 23-FEB-10 &amp;gt;&lt;span style="color: red;"&gt;alter database mount ;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;Database altered.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;Elapsed: 00:00:05.45&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;idle on 23-FEB-10 &amp;gt;&lt;span style="color: red;"&gt;alter database open;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;Database altered.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;Elapsed: 00:00:22.07&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;idle on 23-FEB-10 &amp;gt;&lt;span style="color: red;"&gt;exit&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;With the Partitioning, OLAP, Data Mining and Real Application Testing options&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;[oracle@marte dbs]$ &lt;span style="color: red;"&gt;sqlplus "/ as sysdba"&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;SQL*Plus: Release 11.2.0.1.0 Production on Tue Feb 23 12:05:57 2010&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;Copyright (c) 1982, 2009, Oracle. &amp;nbsp;All rights reserved.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;Connected to:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;With the Partitioning, Automatic Storage Management, OLAP, Data Mining&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;and Real Application Testing options&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;sys@DBPOST on 23-FEB-10 &amp;gt;&lt;span style="color: red;"&gt;select open_mode from v$database ;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;OPEN_MODE&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;--------------------&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;READ WRITE&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;Elapsed: 00:00:00.0&lt;/span&gt;3&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;sys@DBPOST on 23-FEB-10 &amp;gt;&lt;span style="color: red;"&gt;exit&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;With the Partitioning, Automatic Storage Management, OLAP, Data Mining&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;and Real Application Testing options&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;[oracle@marte dbs]$&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;Links para maiores informações :&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;a href="http://www.cyberciti.biz/tips/what-is-devshm-and-its-practical-usage.html"&gt;&lt;span style="color: blue;"&gt;http://www.cyberciti.biz/tips/what-is-devshm-and-its-practical-usage.html&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;a href="http://www.oracle-base.com/articles/linux/LargeSGAOnLinux.php"&gt;&lt;span style="color: blue;"&gt;http://www.oracle-base.com/articles/linux/LargeSGAOnLinux.php&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;&lt;a href="http://kevinclosson.wordpress.com/2007/08/24/oracle11g-automatic-memory-management-part-ii-automatically-stupid/"&gt;&lt;span style="color: blue;"&gt;http://kevinclosson.wordpress.com/2007/08/24/oracle11g-automatic-memory-management-part-ii-automatically-stupid/&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;a href="http://metalink.oracle.com/"&gt;&lt;span style="color: blue;"&gt;metalink.oracle.com/&lt;/span&gt;&lt;/a&gt;&amp;nbsp;- Note ID 260152.1&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Abs,&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;Júlio César Corrêa&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2523564552046105021-371789191609109352?l=www.dbajccorrea.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.dbajccorrea.com/feeds/371789191609109352/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2523564552046105021&amp;postID=371789191609109352&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/371789191609109352?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/371789191609109352?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SimpleWrite-up/~3/dwUh6_pIdu8/oracle-database-11gr2-memorytarget-e.html" title="Oracle Database 11gr2 - MEMORY_TARGET e /dev/shm" /><author><name>Júlio César Corrêa</name><uri>http://www.blogger.com/profile/16465498903177871508</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04550809630941347154" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.dbajccorrea.com/2010/02/oracle-database-11gr2-memorytarget-e.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkUHQnw4cSp7ImA9WxBVGUk.&quot;"><id>tag:blogger.com,1999:blog-2523564552046105021.post-5107897326418801311</id><published>2010-02-22T16:06:00.002-03:00</published><updated>2010-02-23T13:57:13.239-03:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-23T13:57:13.239-03:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="11gr2" /><category scheme="http://www.blogger.com/atom/ns#" term="precision" /><category scheme="http://www.blogger.com/atom/ns#" term="number" /><category scheme="http://www.blogger.com/atom/ns#" term="datatypes" /><category scheme="http://www.blogger.com/atom/ns#" term="oracle" /><title>Oracle Database - Datatype Number - Precisão máxima</title><content type="html">Estes dias li um post muito legal do&amp;nbsp;&lt;a href="http://laurentschneider.com/"&gt;http://laurentschneider.com/&lt;/a&gt;&amp;nbsp;,sempre leio bem os posts dele pois ele sempre procura coisas "escondidas" dentro do Oracle .Acho interessante a visão dele principalmente nos testes com SQL.&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;O datatype NUMBER tem algumas coisas interessantes para ser observadas.&lt;/div&gt;&lt;div&gt;Vamos lá!&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;table border="3" bordercolor="#000000" cellpadding="3" cellspacing="0" id="ssth"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td width="100%"&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;[oracle@marte ~]$ sqlplus &amp;nbsp;dbajcc&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;SQL*Plus: Release 11.2.0.1.0 Production on Mon Feb 22 13:10:53 2010&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;Copyright (c) 1982, 2009, Oracle. &amp;nbsp;All rights reserved.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;Enter password:&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;Connected to:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;With the Partitioning, Automatic Storage Management, OLAP, Data Mining&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;and Real Application Testing options&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;table border="3" bordercolor="#000000" cellpadding="3" cellspacing="0" id="l.mg"&gt;&lt;tbody&gt;
&lt;tr style="text-align: left;"&gt;&lt;td width="100%"&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;create table jcc_numx (xnum number(39)) ;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;create table jcc_numx (xnum number(39))&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&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; &amp;nbsp; &amp;nbsp; *&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;ERROR at line 1:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;ORA-01727: numeric precision specifier is out of range (1 to 38)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;Elapsed: 00:00:00.01&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;create table jcc_numx (xnum number(38)) ;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;Table created.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;Elapsed: 00:00:00.03&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;desc jcc_numx ;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;&amp;nbsp;Name &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Null? &amp;nbsp; &amp;nbsp;Type&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;&amp;nbsp;----------------------------------------------------- -------- ------------------------------------&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;&amp;nbsp;XNUM &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; &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; NUMBER(38)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;--insere 38 digitos&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;insert into jcc_numx&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;values(10000000000000000000000000000000000000) ;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt; &amp;nbsp;2&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;1 row created.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;Elapsed: 00:00:00.01&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;--insere 39 digitos&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;insert into jcc_numx&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;values(100000000000000000000000000000000000000);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt; &amp;nbsp;2&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;values(100000000000000000000000000000000000000)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; *&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;ERROR at line 2:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;ORA-01438: value larger than specified precision allowed for this column&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;Elapsed: 00:00:00.02&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;commit ;dbajcc@DBPOST on 22-FEB-10 &amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;Commit complete.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;Elapsed: 00:00:00.00&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;select xnum,length(xnum) from jcc_numx ;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;XNUM LENGTH(XNUM)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;---------- ------------&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;1.0000E+37 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 38&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;Elapsed: 00:00:00.01&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;table border="3" bordercolor="#000000" cellpadding="3" cellspacing="0" id="mv9z"&gt;&lt;tbody&gt;
&lt;tr style="text-align: left;"&gt;&lt;td width="100%"&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;create table jcc_numx2 (xnum number) ;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;Table created.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;Elapsed: 00:00:00.02&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;br /&gt;
dbajcc@DBPOST on 22-FEB-10 &amp;gt;desc jcc_numx2;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;&amp;nbsp;Name &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Null? &amp;nbsp; &amp;nbsp;Type&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;&amp;nbsp;----------------------------------------------------- -------- ------------------------------------&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;&amp;nbsp;XNUM &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; &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; NUMBER&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New';"&gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;--insere 38 digitos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;insert into jcc_numx2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;values(10000000000000000000000000000000000000) ;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;commit ;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt; &amp;nbsp;2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;1 row created.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;Elapsed: 00:00:00.00&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;Commit complete.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;Elapsed: 00:00:00.01&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;--insere 39 digitos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;insert into jcc_numx2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;values(100000000000000000000000000000000000000);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;commit ;dbajcc@DBPOST on 22-FEB-10 &amp;gt; &amp;nbsp;2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;1 row created.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;Elapsed: 00:00:00.00&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;Commit complete.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;Elapsed: 00:00:00.01&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;--insere um googol&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;insert into jcc_numx2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;values(10000000000000000000000000000000000000000000000000000000000000&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;000000000000000000000000000000000000000) ;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;commit ;dbajcc@DBPOST on 22-FEB-10 &amp;gt; &amp;nbsp;2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;1 row created.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;Elapsed: 00:00:00.00&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;Commit complete.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;Elapsed: 00:00:00.00&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;select xnum,length(xnum) from jcc_numx2 ;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;XNUM LENGTH(XNUM)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;---------- ------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;1.0000E+37 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 38&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;1.0000E+38 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 39&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;1.000E+100 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 40&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;Elapsed: 00:00:00.00&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;insert into jcc_numx2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;values(11111111111111111111111111111111111111111111111111111111111111&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;11111111111111111111111111111111111111) ; &amp;nbsp;2&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;1 row created.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;Elapsed: 00:00:00.00&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;select xnum,length(xnum) from jcc_numx2 ;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;XNUM LENGTH(XNUM)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;---------- ------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;1.0000E+37 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 38&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;1.0000E+38 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 39&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;1.000E+100 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 40&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;1.1111E+99 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 40&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;Elapsed: 00:00:00.00&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;commit ;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;Commit complete.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;Elapsed: 00:00:00.01&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;table border="3" bordercolor="#000000" cellpadding="3" cellspacing="0" id="t.dr"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td width="100%"&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;create table jcc_numx3 (xnum number(*)) ;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;Table created.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;Elapsed: 00:00:00.04&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;desc jcc_numx3 ;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&amp;nbsp;Name &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Null? &amp;nbsp; &amp;nbsp;Type&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&amp;nbsp;----------------------------------------------------- -------- ------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&amp;nbsp;XNUM &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; &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; NUMBER&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;--insere 126 casas&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;insert into jcc_numx3&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;values(111111111111111111111111111111111111111111111111111111111111111111111&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;111111111111111111111111111111111111111111111111111111111) ;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;commit ;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;2 &amp;nbsp;--insere 127 casas&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;insert into jcc_numx3&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;values(1111111111111111111111111111111111111111111111111111111111111111111111&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;111111111111111111111111111111111111111111111111111111111) ;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;select xnum,length(xnum) from jcc_numx3 ;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;1 row created.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;Elapsed: 00:00:00.01&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;Commit complete.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;Elapsed: 00:00:00.00&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt; &amp;nbsp;2 &amp;nbsp;values(11111111111111111111111111111111111111111111111111111111111111111111111&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;11111111111111111111111111111111111111111111111111111111)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; *&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;ERROR at line 2:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;ORA-01426: numeric overflow&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;Elapsed: 00:00:00.01&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;XNUM LENGTH(XNUM)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;---------- ------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;1.111E+125 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 40&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;Elapsed: 00:00:00.00&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;dbajcc@DBPOST on 22-FEB-10 &amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2523564552046105021-5107897326418801311?l=www.dbajccorrea.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.dbajccorrea.com/feeds/5107897326418801311/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2523564552046105021&amp;postID=5107897326418801311&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/5107897326418801311?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/5107897326418801311?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SimpleWrite-up/~3/i5WciNamQyQ/oracle-database-datatype-number.html" title="Oracle Database - Datatype Number - Precisão máxima" /><author><name>Júlio César Corrêa</name><uri>http://www.blogger.com/profile/16465498903177871508</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04550809630941347154" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.dbajccorrea.com/2010/02/oracle-database-datatype-number.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkUBRnYyeSp7ImA9WxBVGUk.&quot;"><id>tag:blogger.com,1999:blog-2523564552046105021.post-4011539289346961860</id><published>2010-02-22T12:53:00.002-03:00</published><updated>2010-02-23T13:57:37.891-03:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-23T13:57:37.891-03:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="11gr2" /><category scheme="http://www.blogger.com/atom/ns#" term="oracle restart" /><category scheme="http://www.blogger.com/atom/ns#" term="new features" /><category scheme="http://www.blogger.com/atom/ns#" term="oracle" /><title>Disabling Oracle Restart - 11gr2</title><content type="html">Fazendo alguns testes com o Oracle Database 11gr2 surgiu a necessidade de desabilitar o Oracle Restart para um banco de dados. &lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;Para fazer isso utilize dentro da $ORACLE_HOME/bin do GRID o SRVCTL :&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;Ex.&lt;/div&gt;&lt;br /&gt;
Linha de comando do SRVCTL&lt;br /&gt;
&lt;br /&gt;
&lt;table border="3" bordercolor="#000000" cellpadding="3" cellspacing="0" id="j1vw"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td width="100%"&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;[oracle@marte grid]$ cd bin/&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;[oracle@marte bin]$ pwd&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;/u01/app/oracle/product/11.2.0/grid/bin&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;[oracle@marte bin]$&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;[oracle@marte bin]$ ./srvctl&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;Usage: srvctl &amp;lt;command&amp;gt; &amp;lt;object&amp;gt; [&amp;lt;options&amp;gt;]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;commands: enable|disable|start|stop|status|add|remove|modify|getenv|setenv|unsetenv|config&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;objects: database|service|asm|diskgroup|listener|home|ons|eons&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;For detailed help on each command and object and its options use:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;srvctl &amp;lt;command&amp;gt; -h or&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;srvctl &amp;lt;command&amp;gt; &amp;lt;object&amp;gt; -h&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;[oracle@marte bin]$&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;div&gt;Verificando o banco de dados :&lt;/div&gt;&lt;br /&gt;
&lt;table border="3" bordercolor="#000000" cellpadding="3" cellspacing="0" id="svnx"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td width="100%"&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;[oracle@marte bin]$ srvctl status database -d dbpost&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;Database is running.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;[oracle@marte bin]$&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;div&gt;Exibindo os banco de dados gerenciados pelo Oracle Restart&lt;/div&gt;&lt;br /&gt;
&lt;table border="3" bordercolor="#000000" cellpadding="3" cellspacing="0" id="psrs"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td width="100%"&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;[oracle@marte bin]$ srvctl config database&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;dbpost&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;[oracle@marte bin]$&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;br /&gt;
Verificando a configuração de um banco de dados específico ,no caso dbpost :&lt;br /&gt;
&lt;br /&gt;
&lt;table border="3" bordercolor="#000000" cellpadding="3" cellspacing="0" id="ay_o"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td width="100%"&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;[oracle@marte bin]$&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;[oracle@marte bin]$ srvctl config database -d dbpost&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;Database unique name: dbpost&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;Database name:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;Oracle home: /u01/app/oracle/product/11.2.0/dbhome_1/&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;Oracle user: oracle&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;Spfile:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;Domain: riversideti.com.br&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;Start options: open&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;Stop options: immediate&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;Database role: PRIMARY&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;Management policy: AUTOMATIC&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;Disk Groups:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;Services: dbpost&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;[oracle@marte bin]$&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;div&gt;No comando abaixo as opções "&lt;b&gt;&lt;span style="font-family: 'Times New Roman';"&gt;-y MANUAL&lt;/span&gt;&lt;/b&gt; " e "&lt;b&gt;&lt;span style="font-family: 'Times New Roman';"&gt;-s NOMOUNT&lt;/span&gt;&lt;/b&gt;" refere-se a como o Oracle Restart tratará este objeto,com a opção MANUAL o Oracle Restart não tentará subir o banco de dados quando o servidor reiniciar ,mas somente em caso de falha e a opção NOMOUNT será utilizada caso ocorra uma falha o Oracle tentará subir a instance como NOMOUNT.&lt;/div&gt;&lt;br /&gt;
&lt;table border="3" bordercolor="#000000" cellpadding="3" cellspacing="0" id="t5wi"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td width="100%"&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;[oracle@marte bin]$&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;[oracle@marte bin]$ srvctl modify database -d dbpost -y MANUAL -s NOMOUNT [ENTER]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New';"&gt;[oracle@marte bin]$&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;br /&gt;
Caso queira retirar o banco de dados da lista do Oracle Restart use a seguinte opção :&lt;br /&gt;
&lt;br /&gt;
&lt;table border="3" bordercolor="#000000" cellpadding="3" cellspacing="0" id="ffae"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td width="100%"&gt;&lt;span style="font-family: 'Courier New';"&gt;srvctl disable database -d&lt;/span&gt; &lt;span style="font-family: 'Times New Roman';"&gt;&lt;i&gt;database_name [ENTER]&lt;/i&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
Até,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Júlio César&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2523564552046105021-4011539289346961860?l=www.dbajccorrea.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.dbajccorrea.com/feeds/4011539289346961860/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2523564552046105021&amp;postID=4011539289346961860&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/4011539289346961860?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/4011539289346961860?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SimpleWrite-up/~3/56Cn9l8NIKk/disabling-oracle-restart-11gr2.html" title="Disabling Oracle Restart - 11gr2" /><author><name>Júlio César Corrêa</name><uri>http://www.blogger.com/profile/16465498903177871508</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04550809630941347154" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.dbajccorrea.com/2010/02/disabling-oracle-restart-11gr2.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkICR3w4eyp7ImA9WxBVFU0.&quot;"><id>tag:blogger.com,1999:blog-2523564552046105021.post-2500011804125282338</id><published>2010-02-18T13:56:00.000-02:00</published><updated>2010-02-18T13:56:06.233-02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-18T13:56:06.233-02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="oracle magazine" /><title>Oracle Magazine - Março/Abril</title><content type="html">Pessoal,&lt;br /&gt;
&lt;br /&gt;
Link para a revista digital :&amp;nbsp;&lt;a href="http://www.oraclemagazine-digital.com/oraclemagazine/20100304/?sub_id=BhKhISAYULmr8"&gt;http://www.oraclemagazine-digital.com/oraclemagazine/20100304/?sub_id=BhKhISAYULmr8&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Obs .É possível fazer o download .&lt;br /&gt;
&lt;br /&gt;
Abs,&lt;br /&gt;
&lt;br /&gt;
JC&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2523564552046105021-2500011804125282338?l=www.dbajccorrea.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.dbajccorrea.com/feeds/2500011804125282338/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2523564552046105021&amp;postID=2500011804125282338&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/2500011804125282338?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/2500011804125282338?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SimpleWrite-up/~3/JLeJLvK5O3M/oracle-magazine-marcoabril.html" title="Oracle Magazine - Março/Abril" /><author><name>Júlio César Corrêa</name><uri>http://www.blogger.com/profile/16465498903177871508</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04550809630941347154" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.dbajccorrea.com/2010/02/oracle-magazine-marcoabril.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEUDRXg_eSp7ImA9WxBWGUQ.&quot;"><id>tag:blogger.com,1999:blog-2523564552046105021.post-6338999301314881105</id><published>2010-02-12T14:31:00.001-02:00</published><updated>2010-02-12T14:31:14.641-02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-12T14:31:14.641-02:00</app:edited><title>SQL - INTERVAL YEAR TO MONTH  e DAY TO SECOND Datatypes</title><content type="html">A precis&amp;atilde;o m&amp;aacute;xima deste datatype s&amp;atilde;o de 2 digitos para ano e 2 para m&amp;ecirc;s.&lt;br&gt;&lt;br&gt;Poderiamos usar por exemplo para armazenar vig&amp;ecirc;ncias de determinado garantia por exemplo.&lt;br&gt;Comprei um aparelho de barbear e a garantia dele &amp;eacute; de por exemplo 1 ano de 6 meses.Uma &amp;quot;super garantia&amp;quot; .&lt;br&gt;&lt;br&gt;Login:&lt;br&gt;&lt;br&gt;&lt;table border="2" bordercolor="#000000" cellpadding="3" cellspacing="0" id="imky" width="100%"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="100%"&gt;&lt;font face="courier new"&gt;[oracle@marte ~]$ ps -ef|grep pmon&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;oracle&amp;nbsp;&amp;nbsp;&amp;nbsp; 2997&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp; 0 08:03 ?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00:00:01 asm_pmon_+ASM&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;oracle&amp;nbsp;&amp;nbsp;&amp;nbsp; 3115&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp; 0 08:05 ?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00:00:01 ora_pmon_dbpost&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;oracle&amp;nbsp;&amp;nbsp;&amp;nbsp; 5943&amp;nbsp; 5892&amp;nbsp; 0 11:51 pts/1&amp;nbsp;&amp;nbsp;&amp;nbsp; 00:00:00 grep pmon&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;[oracle@marte ~]$ sqlplus dbajcc@dbpost&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;SQL*Plus: Release 11.2.0.1.0 Production on Fri Feb 12 11:51:26 2010&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;Copyright (c) 1982, 2009, Oracle.&amp;nbsp; All rights reserved.&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;Enter password:&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;Connected to:&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;With the Partitioning, Automatic Storage Management, OLAP, Data Mining&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;and Real Application Testing options&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;dbajcc@DBPOST on 12-FEB-10 &amp;gt;&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br style="font-family:Courier New"&gt;Criando a tabela :&lt;br style="font-family:Courier New"&gt;&lt;br&gt;&lt;table border="2" bordercolor="#000000" cellpadding="3" cellspacing="0" id="n_1n" width="100%"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="100%"&gt;&lt;font face="courier new"&gt;dbajcc@DBPOST on 12-FEB-10 &amp;gt;create table super_shavers&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;&amp;nbsp; 2&amp;nbsp; (name varchar2(30),warranty interval year to month );&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;Table created.&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;Elapsed: 00:00:00.08&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;dbajcc@DBPOST on 12-FEB-10 &amp;gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br style="font-family:Courier New"&gt;Inserindo dados na tabela super_shavers :&lt;br style="font-family:Courier New"&gt;&lt;br&gt;&lt;table border="2" bordercolor="#000000" cellpadding="3" cellspacing="0" id="t8rd" width="100%"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="100%"&gt;&lt;font face="courier new"&gt;dbajcc@DBPOST on 12-FEB-10 &amp;gt;insert into super_shavers&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;&amp;nbsp; 2&amp;nbsp; values&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;&amp;nbsp; 3&amp;nbsp; (&amp;#39;shaver_100&amp;#39;,to_yminterval(&amp;#39;01-06&amp;#39;)) ;&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;1 row created.&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;Elapsed: 00:00:00.02&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;dbajcc@DBPOST on 12-FEB-10 &amp;gt;&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;dbajcc@DBPOST on 12-FEB-10 &amp;gt;insert into super_shavers&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;&amp;nbsp; 2&amp;nbsp; values&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;&amp;nbsp; 3&amp;nbsp; (&amp;#39;shaver_200&amp;#39;,to_yminterval(&amp;#39;01-00&amp;#39;)) ;&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;1 row created.&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;Elapsed: 00:00:00.01&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;dbajcc@DBPOST on 12-FEB-10 &amp;gt;commit ;&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;Commit complete.&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;Elapsed: 00:00:00.00&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;dbajcc@DBPOST on 12-FEB-10 &amp;gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br style="font-family:Courier New"&gt;&lt;br&gt;Bom, comprei o barbeador hoje e quero ver at&amp;eacute; que data eu posso levar na assist&amp;ecirc;ncia tecnica caso aconte&amp;ccedil;a algum defeito de fabrica.&lt;br&gt;&lt;br&gt;&lt;table border="2" bordercolor="#000000" cellpadding="3" cellspacing="0" id="kv:6" width="100%"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="100%"&gt;&lt;font face="courier new"&gt;dbajcc@DBPOST on 12-FEB-10 &amp;gt;select sysdate + warranty as &amp;quot;Expiration Date&amp;quot;,&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;&amp;nbsp; 2&amp;nbsp; name as &amp;quot;Product Name&amp;quot;&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;&amp;nbsp; 3&amp;nbsp; from super_shavers&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;&amp;nbsp; 4&amp;nbsp; where&amp;nbsp; name =&amp;#39;shaver_100&amp;#39; ;&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;Expiratio Product Name&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;--------- ------------------------------&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;12-AUG-11 shaver_100&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;1 row selected.&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;Elapsed: 00:00:00.01&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;dbajcc@DBPOST on 12-FEB-10 &amp;gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;H&amp;aacute; tamb&amp;eacute;m o datatype INTERVAL DAY TO SECOND que coloca ainda mais precis&amp;atilde;o&amp;nbsp; para dia,hora,minutos e segundos.&lt;br&gt;&lt;br&gt;Criando a tabela de exemplo :&lt;br&gt;&lt;br&gt;&lt;table border="2" bordercolor="#000000" cellpadding="3" cellspacing="0" id="lmin" width="100%"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="100%"&gt;&lt;font face="courier new"&gt;dbajcc@DBPOST on 12-FEB-10 &amp;gt;create table login_expiration&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;&amp;nbsp; 2&amp;nbsp; (login_name varchar2(50),&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;&amp;nbsp; 3&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;dbajcc@DBPOST on 12-FEB-10 &amp;gt;create table fool_login&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;&amp;nbsp; 2&amp;nbsp; (login_name varchar2(30),expiration_dt interval day to second);&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;Table created.&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;Elapsed: 00:00:00.07&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;dbajcc@DBPOST on 12-FEB-10 &amp;gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br&gt;Inserindo linhas :&lt;br&gt;&lt;br&gt;&lt;table border="2" bordercolor="#000000" cellpadding="3" cellspacing="0" id="n5az" width="100%"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="100%"&gt;&lt;font face="courier new"&gt;dbajcc@DBPOST on 12-FEB-10 &amp;gt;&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;dbajcc@DBPOST on 12-FEB-10 &amp;gt;insert into fool_login&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;&amp;nbsp; 2&amp;nbsp; values&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;&amp;nbsp; 3&amp;nbsp; (&amp;#39;rmartin&amp;#39;,INTERVAL &amp;#39;30 5:00:06&amp;#39; DAY TO SECOND) ;&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;1 row created.&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;Elapsed: 00:00:00.03&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;dbajcc@DBPOST on 12-FEB-10 &amp;gt;&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;dbajcc@DBPOST on 12-FEB-10 &amp;gt;insert into fool_login&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;&amp;nbsp; 2&amp;nbsp; values&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;&amp;nbsp; 3&amp;nbsp; (&amp;#39;jccorrea&amp;#39;,INTERVAL &amp;#39;75&amp;#39; DAY) ;&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;1 row created.&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;Elapsed: 00:00:00.00&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;dbajcc@DBPOST on 12-FEB-10 &amp;gt;commit ;&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;Commit complete.&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;Elapsed: 00:00:00.02&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;dbajcc@DBPOST on 12-FEB-10 &amp;gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br style="font-family:Courier New"&gt;Na minha tabela de exemplo vou verificar quanto tempo estes usu&amp;aacute;rios/logins que foram criados hoje/agora possuem at&amp;eacute; serem bloqueados para entrar em um determinado sistema&lt;br&gt;Obs. * a tabela foi criada apenas para exemplo *&lt;br&gt;&lt;br&gt;&lt;table border="2" bordercolor="#000000" cellpadding="3" cellspacing="0" id="owo9" width="100%"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="100%"&gt;&lt;font face="courier new"&gt;dbajcc@DBPOST on 12-FEB-10 &amp;gt;&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;dbajcc@DBPOST on 12-FEB-10 &amp;gt;alter session set nls_date_format = &amp;#39;dd/mm/rrrr hh24:mi&amp;#39; ;&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;Session altered.&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;Elapsed: 00:00:00.01&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;dbajcc@DBPOST on 12/02/2010 12:42 &amp;gt;select login_name,sysdate + expiration_dt&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;&amp;nbsp; 2&amp;nbsp; from fool_login&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;&amp;nbsp; 3&amp;nbsp; ;&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;LOGIN_NAME&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SYSDATE+EXPIRATI&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;------------------------------ ----------------&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;rmartin&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 14/03/2010 17:43&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;jccorrea&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 28/04/2010 12:43&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;2 rows selected.&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;Elapsed: 00:00:00.01&lt;/font&gt;&lt;br style="font-family:Courier New"&gt;&lt;font face="courier new"&gt;dbajcc@DBPOST on 12/02/2010 12:43 &amp;gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br style="font-family:Courier New"&gt;Esta foi uma breve apresenta&amp;ccedil;&amp;atilde;o dos datatypes INTERVAL YEAR TO MONTH e DAY TO SECOND e duas fun&amp;ccedil;&amp;otilde;es para manipul&amp;aacute; - los TO_YMINTERVAL(&lt;i&gt;express&amp;atilde;o&lt;/i&gt;&amp;#39; ) e INTERVAL &lt;i&gt;&amp;#39;express&amp;atilde;o&lt;/i&gt;&amp;#39; .&lt;br&gt;&lt;br&gt;Estes datatypes est&amp;atilde;o dispon&amp;iacute;veis no Oracle Database a partir da vers&amp;atilde;o 9i .&lt;br&gt;&lt;br&gt;At&amp;eacute;,&lt;br&gt;&lt;br&gt;J&amp;uacute;lio C&amp;eacute;sar &lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2523564552046105021-6338999301314881105?l=www.dbajccorrea.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.dbajccorrea.com/feeds/6338999301314881105/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2523564552046105021&amp;postID=6338999301314881105&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/6338999301314881105?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/6338999301314881105?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SimpleWrite-up/~3/6PejWQzKURk/sql-interval-year-to-month-e-day-to.html" title="SQL - INTERVAL YEAR TO MONTH  e DAY TO SECOND Datatypes" /><author><name>Júlio César Corrêa</name><uri>http://www.blogger.com/profile/16465498903177871508</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04550809630941347154" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.dbajccorrea.com/2010/02/sql-interval-year-to-month-e-day-to.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkMEQ3s5fip7ImA9WxBWGUU.&quot;"><id>tag:blogger.com,1999:blog-2523564552046105021.post-7858598786199975191</id><published>2010-02-12T13:26:00.002-02:00</published><updated>2010-02-12T13:26:42.526-02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-12T13:26:42.526-02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="bigadmin" /><category scheme="http://www.blogger.com/atom/ns#" term="sun" /><category scheme="http://www.blogger.com/atom/ns#" term="solaris" /><category scheme="http://www.blogger.com/atom/ns#" term="doc" /><title>Link da página BigAdmin da Oracle Sun</title><content type="html">Para quem curte o Sun Solaris existe uma página chamada BigAdmin da Oracle Sun.Vários exemplos de comandos e &amp;nbsp;etc.Vale a pena conferir!&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;Esta foi uma dica do meu amigo Augusto que vive dentro da área de Unix/Linux.&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;Link :&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;a href="http://www.sun.com/bigadmin/shellme/"&gt;http://www.sun.com/bigadmin/shellme/&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;Enjoy it!&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;JC&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2523564552046105021-7858598786199975191?l=www.dbajccorrea.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.dbajccorrea.com/feeds/7858598786199975191/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2523564552046105021&amp;postID=7858598786199975191&amp;isPopup=true" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/7858598786199975191?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/7858598786199975191?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SimpleWrite-up/~3/BjGn-u_CiYQ/link-da-pagina-bigadmin-da-oracle-sun.html" title="Link da página BigAdmin da Oracle Sun" /><author><name>Júlio César Corrêa</name><uri>http://www.blogger.com/profile/16465498903177871508</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04550809630941347154" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><feedburner:origLink>http://www.dbajccorrea.com/2010/02/link-da-pagina-bigadmin-da-oracle-sun.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Ak8GQng_eSp7ImA9WxBWEUw.&quot;"><id>tag:blogger.com,1999:blog-2523564552046105021.post-4489159777599877999</id><published>2010-02-02T11:53:00.000-02:00</published><updated>2010-02-02T11:53:43.641-02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-02T11:53:43.641-02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="open source" /><category scheme="http://www.blogger.com/atom/ns#" term="software livre" /><category scheme="http://www.blogger.com/atom/ns#" term="vg" /><category scheme="http://www.blogger.com/atom/ns#" term="SAN" /><category scheme="http://www.blogger.com/atom/ns#" term="NAS" /><category scheme="http://www.blogger.com/atom/ns#" term="lvm" /><category scheme="http://www.blogger.com/atom/ns#" term="asm" /><category scheme="http://www.blogger.com/atom/ns#" term="storage" /><category scheme="http://www.blogger.com/atom/ns#" term="iscsi" /><category scheme="http://www.blogger.com/atom/ns#" term="openfiler" /><category scheme="http://www.blogger.com/atom/ns#" term="oracle" /><title>Openfiler Storage Control Center – Gerenciandor de NAS/SAN – Part 2</title><content type="html">&lt;span class="Apple-style-span" style="font-family: Verdana; font-size: 13px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;b&gt;Local de download de software/arquivos &amp;nbsp;do posts &amp;nbsp;:&lt;/b&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;http://rpm.pbone.net&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana; font-size: 13px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
IMPORTANTE :&lt;br /&gt;
&lt;i&gt;Devido a falta de tempo hábil para testar o Openfiler e elaborar o post há alguns passos em que a data de execução são diferentes .Porém os passos seguidos estão na ordem correta.&lt;/i&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;b&gt;Configuração do host cliente do Openfiler&lt;/b&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Foi usado uma vm com &amp;nbsp;OEL 5 com kernel 2.6.18-53.el5 .&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Subindo instance ASM no host jamaica :&lt;/div&gt;&lt;br /&gt;
&lt;div id="rbme" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div id="h-am" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;&lt;img src="http://docs.google.com/File?id=ddm3dzs4_380gxktwwxm_b" style="height: 317px; width: 586px;" /&gt;&lt;/div&gt;&lt;div id="x73s" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div id="pb5a" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;No outro terminal acessando como root :&lt;/div&gt;&lt;div id="gfvq" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div id="a8vy" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;&lt;div id="wi5a" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;&lt;img src="http://docs.google.com/File?id=ddm3dzs4_381dqvgbsf4_b" style="height: 213px; width: 506px;" /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div id="v:.9" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;Acima vemos que existe 4 volumes na instance ASM.Ao final do post teremos o 5º volume chamado VOL5 disponível para o ASM.&lt;/div&gt;&lt;div id="oz:t" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div id="j_-t" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;Verificando a versão do kernel do Linux para poder instalar o pacote iscsi-initiator-utils :&lt;/div&gt;&lt;div id="uo0y" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div id="jq4h" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;[root@jamaica ~]# uname -r&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;2.6.18-53.el5&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;[root@jamaica ~]#&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Para vermos se o pacote está instalado usamos :&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;[root@jamaica ~]# &amp;nbsp;rpm -qa | grep iscsi&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;[root@jamaica ~]#&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;No caso acima o pacote não está instalado.Então vamos instalá-lo .&lt;/div&gt;&lt;/div&gt;&lt;div id="h3ux" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div id="rsln" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;Levei o pacote cia WinSCP para o diretorio /root do servidor jamaica.&lt;/div&gt;&lt;div id="eyt:" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div id="qe:4" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div id="lq6c" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;[root@jamaica ~]# pwd&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;/root&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;[root@jamaica ~]# ls -l |grep iscsi&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;-rw-r--r-- 1 root root 791713 Jan 28 &amp;nbsp;2010 iscsi-initiator-utils-6.2.0.871-0.10.el5.i386.rpm&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;[root@jamaica ~]#&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Instalando o pacote :&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;[root@jamaica ~]# rpm -ivh iscsi-initiator-utils-6.2.0.871-0.10.el5.i386.rpm&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;warning: iscsi-initiator-utils-6.2.0.871-0.10.el5.i386.rpm: Header V3 DSA signat&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Preparing... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;########################################### [100%]&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; 1:iscsi-initiator-utils &amp;nbsp;########################################### [100%]&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;[root@jamaica ~]#&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Vamos subir o serviço :&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;[root@jamaica ~]# service iscsid start&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Turning off network shutdown. Starting iSCSI daemon: &amp;nbsp; &amp;nbsp; &amp;nbsp; [ &amp;nbsp;OK &amp;nbsp;]&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&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; &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;OK &amp;nbsp;]&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;[root@jamaica ~]#&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Vamos desabilitar o SELinux para o daemon do iscsi ativar as transações para ficar pendentes após os reboot.&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;[root@jamaica ~]# setsebool -P iscsid_disable_trans=1&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;setsebool: &amp;nbsp;SELinux is disabled.&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;[root@jamaica ~]#&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;No meu caso o SELinux está desabilitado como mostra a mensagem acima.&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div id="lq6c" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Editei o /etc/hosts do servidor jamaica para enchergar o servidor do openfiler já que não estou usando servidor de DNS. :&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;[root@jamaica ~]# vi /etc/hosts&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;[root@jamaica ~]# ping netuno&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;PING netuno.riversideti.com.br (192.168.79.140) 56(84) bytes of data.&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;64 bytes from netuno.riversideti.com.br (192.168.79.140): icmp_seq=1 ttl=64 time=2.83 ms&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;64 bytes from netuno.riversideti.com.br (192.168.79.140): icmp_seq=2 ttl=64 time=0.170 ms&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;--- netuno.riversideti.com.br ping statistics ---&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;2 packets transmitted, 2 received, 0% packet loss, time 1000ms&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;rtt min/avg/max/mdev = 0.170/1.504/2.838/1.334 ms&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;Aproveitando fiz o mesmo no servidor do openfiler :&lt;/i&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;[root@netuno ~]# ping 192.168.79.130&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;PING 192.168.79.130 (192.168.79.130) 56(84) bytes of data.&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;64 bytes from 192.168.79.130: icmp_seq=0 ttl=64 time=1.08 ms&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;64 bytes from 192.168.79.130: icmp_seq=1 ttl=64 time=0.236 ms&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;^C&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;--- 192.168.79.130 ping statistics ---&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;2 packets transmitted, 2 received, 0% packet loss, time 1004ms&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;rtt min/avg/max/mdev = 0.236/0.658/1.081/0.423 ms, pipe 2&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;[root@netuno ~]#&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;b&gt;Configuração do storage via Openfiler Storage Control Center&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;No Openfiler você pode gerenciar vários tipos de dispositivos.&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;No nosso caso iremos habilitar o serviço iSCSI .&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Na aba SERVICES do Storage Control Center podemos habilitar o serviço.&lt;/div&gt;&lt;br /&gt;
&lt;div id="m_ow" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;&lt;img src="http://docs.google.com/File?id=ddm3dzs4_382d799qwf2_b" style="height: 275.844911px; width: 648px;" /&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Certifique-se que o serviço iSCISI initiator está ativo como na imagem acima.&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Pelo terminal também é possível ver se o serviço está ativo.Com o usuário root :&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;[root@netuno ~]# service iscsi-target status&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;ietd (pid 3214) is running...&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;[root@netuno ~]#&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Configurando o acesso ao Openfiler &amp;nbsp;&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Nesta seção podemos configurar os hosts que irão acessar o Storage.&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Navegando na aba System no final da página tem a opção :&lt;/div&gt;&lt;h3 align="center" style="background-color: #f0f0f0; background-image: initial; font-size: 12pt; margin-left: 15px; margin-right: 15px;"&gt;&lt;span class="Apple-style-span" style="color: #404040;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Network Access Configuration&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;É uma interface simples de configurar.Entre com o o nome do &amp;nbsp;host,IP,mascara de sub-redee &amp;nbsp;tipo de acesso.Após preencher a informação clique em "update" para gravar.&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Obs. Se errou em algo selecione na check box o host a ser alterado troque a informação nos campos em branco abaixo e clique em update novamente.&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;No caso deixei o meu desta forma :&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;div id="hqbl" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;&lt;img src="http://docs.google.com/File?id=ddm3dzs4_383gqpd3mfn_b" style="height: 177.829522px; width: 648px;" /&gt;&lt;/div&gt;Physical Storage :&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Lembro-me que falei ter adicionado dois discos a minha vmware e no caso posso enchergá-los por meio da aba Volumes &amp;nbsp;e depois na barra lateral direita em Block Devices &amp;nbsp;:&lt;/div&gt;&lt;br /&gt;
&lt;div id="hmyo" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;&lt;img src="http://docs.google.com/File?id=ddm3dzs4_384gzq474dd_b" style="height: 253.995181px; width: 648px;" /&gt;&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;b&gt;Particionamento dos discos físicos&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Faremos a mesma coisa que usar o fdisk /dev/sd* no Linux porém usando a interface de gerenciamento do Openfiler.&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Na mesma aba Volumes &amp;gt; Block Devices &amp;nbsp;selecionaremos o disco a ser particionado .&lt;/div&gt;&lt;br /&gt;
&lt;div id="mou4" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;&lt;img src="http://docs.google.com/File?id=ddm3dzs4_385gqmndgg9_b" style="height: 251.826923px; width: 648px;" /&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div id="d.rq" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;No final da pagina temos a opção de criar uma partição tradicional primária ou uma partição para o RAID.&lt;/div&gt;&lt;div id="szba" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div id="rxu5" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;&lt;div id="rb58" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;&lt;img src="http://docs.google.com/File?id=ddm3dzs4_386gqxqgqg5_b" style="height: 236.550155px; width: 648px;" /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div id="uf:q" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
No caso vamos criar particões tradicionais .O RAID fica pra outra oportunidade.Mas com certeza iremos fazer RAID 1 e depois um RAID 0.Nada de RAID 5!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;É só clicar em create :&lt;/div&gt;&lt;br /&gt;
&lt;div id="krkn" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;&lt;img src="http://docs.google.com/File?id=ddm3dzs4_388njwxz628_b" style="height: 268.174773px; width: 648px;" /&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Vamos fazer o mesmo para o disco /dev/sdb* &amp;nbsp;:&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;div id="rpfp" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;&lt;img src="http://docs.google.com/File?id=ddm3dzs4_389cbwfj5f7_b" style="height: 191.761668px; width: 648px;" /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Acima podemos ver que os dispositivos /dev/sd* aparecem com uma partição cada.&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;b&gt;Gerenciamento de Volume Group&lt;/b&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Há termos que fica esquisito traduzir.Então para gerenciar Volume Groups vamos até a aba&amp;nbsp;&lt;i&gt;Volumes&amp;nbsp;&lt;/i&gt;do Control Center.&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;div id="pvoc" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;&lt;img src="http://docs.google.com/File?id=ddm3dzs4_390fm5rnhgn_b" style="height: 329.057232px; width: 648px;" /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Acima podemos ver que as nossas partições já aparecem disponíveis para fazer parte de um novo Volume Group.&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Para criar um volume selecionamos as partições e e efetivamos no botão "Add volume group" .&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Vou criar com o nome de VOL_OCADB01 que é o nome da instância que mais a frente irá utilizar este volume.&lt;/div&gt;&lt;br /&gt;
&lt;div id="oa:5" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;&lt;img src="http://docs.google.com/File?id=ddm3dzs4_391dzhhjqcx_b" style="height: 241.570093px; width: 648px;" /&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Aqui o volume já criado :&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div id="djcx" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;&lt;img src="http://docs.google.com/File?id=ddm3dzs4_392gbjhspcc_b" style="height: 261.805025px; width: 648px;" /&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;No link&amp;nbsp;&lt;i&gt;View member PV's&lt;/i&gt;&amp;nbsp;você pode verificar quais Physical Volume faz parte do Volume Group em questão,no meu caso o vol_ocadb01 .&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;b&gt;Logical Volumes&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Este conceito mostra que dentro do nosso Volume Group vol_ocadb01 podemos por exemplo criar vários volumes lógicos como OCR disks ,Voting Disks (ambos raw devices) e discos de formato padrão ( Block Devices) para o ASM por exemplo &amp;nbsp;em um ambiente RAC .&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;No caso irei criar discos &amp;nbsp;para utilizar na minha instância ASM .Como no host jamaica onde se encontra a instance ASM usamos ASMLib não precisarei criar do tipo &amp;nbsp;Raw .&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Na aba Volumes temos uma tela estranha informando "&lt;span class="Apple-style-span" style="color: #404040;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;No existing volumes were found in this volume group" .Está informando que não temos volume lógicos criados em cima deste volume group .Na verdade o volume group funciona como um RAID 0.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: #404040;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;Na mesma aba porém na barra lateral direita entre em "Add Volume" .Irá aparecer a tela abaixo :&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div id="bknr" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;&lt;img src="http://docs.google.com/File?id=ddm3dzs4_393gg5728dh_b" style="height: 329.76699px; width: 648px;" /&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div id="kevw" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;&lt;img src="http://docs.google.com/File?id=ddm3dzs4_3945gpqfjfr_b" style="height: 329.76699px; width: 648px;" /&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Os detalhes da tela de &amp;nbsp;criação :&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div id="b-b6" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;&lt;img src="http://docs.google.com/File?id=ddm3dzs4_395ghwv3c9v_b" style="height: 363.861199px; width: 648px;" /&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Temos disponíveis&amp;nbsp;&lt;span class="Apple-style-span" style="color: #404040;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;10176 MB em nosso Volume Group e no caso vamos &amp;nbsp;criar dois Logical Volumes de 3 GB do tipo iSCSI.E deixar os 6GB restantes no Volume Group para outros fins .&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div id="j6t9" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;&lt;img src="http://docs.google.com/File?id=ddm3dzs4_396273twvsx_b" style="height: 234.891465px; width: 648px;" /&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: #404040;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;Ao termino a nossa tela de controle ficou assim :&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div id="a820" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;&lt;img src="http://docs.google.com/File?id=ddm3dzs4_397fjcsq5hq_b" style="height: 331.88641px; width: 648px;" /&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div id="zhcg" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;Na mesma aba Volume siga até a &amp;nbsp;barra lateral direita e clique em &amp;nbsp;iSCSI Targets :&lt;/div&gt;&lt;br /&gt;
&lt;div id="wrj2" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;&lt;img src="http://docs.google.com/File?id=ddm3dzs4_400jk95zqgq_b" style="height: 232.282277px; width: 648px;" /&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div id="v7j:" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;&lt;img src="http://docs.google.com/File?id=ddm3dzs4_401f9rg35xq_b" style="height: 238.159363px; width: 648px;" /&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Esta é a area de gerenciamento dos Target IQN's .&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;O Target IQN é muito importante.Ele funciona como um identificador de recursos no nosso caso discos entregues aos clients(hosts como um servidor de banco de dados).Porém você pode ter multiplos Target IQN's e associá-los &amp;nbsp;a LUN's específicas,Network ACL e CHAP Autentication.&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Exemplo:&lt;/div&gt;&lt;br /&gt;
&lt;div id="iymb" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;&lt;img src="http://docs.google.com/File?id=ddm3dzs4_403cnr77sf4_b" style="height: 273.540984px; width: 648px;" /&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;O Target IQN " iqn.2006-01.com.openfiler:tsn.6b5a9bb26b3f" da imagem acima &amp;nbsp;está associado a outros itens com as LUN's da aba ao lado LUN Mapping .&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Note que nesta aba você tem o LUN Path o modo de Leitura e Escrita R/W Mode ,o Transfer Mode e o local de Map e Unmap .&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Em networking ACL temos a opção de associar os hosts clientes ao nosso Target IQN e finalmente as LUN's .Podendo especificar o acesso "Allow" ou "Deny" .Para poder ter acesso deixe em Allow !!&lt;/div&gt;&lt;br /&gt;
&lt;div id="lw2v" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;&lt;img src="http://docs.google.com/File?id=ddm3dzs4_404g22j4c49_b" style="height: 272.566229px; width: 648px;" /&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Em CHAP Authentication você pode especificar o usuário e senha que fará acesso ao Storage.&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;div id="dknz" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;&lt;img src="http://docs.google.com/File?id=ddm3dzs4_405cx4vvrcn_b" style="height: 246.123052px; width: 648px;" /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;No meu caso configurei o usuário jamaica com o mesmo nome para senha.&lt;/div&gt;&lt;br /&gt;
Agora posso disponibilizar estes discos para o host jamaica onde está o ASM.&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;No host jamaica vamos fazer os devidos acertos para ter acesso aos novos discos :&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Editar o arquivo /etc/iscsi/iscsid.conf e localize o trecho abaixo.Tomar cuidado pois os parâmetros são muito parecidos.&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;# To enable CHAP authentication set node.session.auth.authmethod&lt;br /&gt;
# to CHAP. The default is None.&lt;br /&gt;
node.session.auth.authmethod = CHAP&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;# To set a CHAP username and password for initiator&lt;br /&gt;
# authentication by the target(s), uncomment the following lines:&lt;br /&gt;
node.session.auth.username =&amp;nbsp;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;coloque_a_senha_definida_no_CHAP_Authentication&lt;/span&gt;&lt;br /&gt;
node.session.auth.password = tcoloque_o_usuario_definido_no_CHAP_Authentication&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;
# To enable CHAP authentication for a discovery session to the target&lt;br /&gt;
# set discovery.sendtargets.auth.authmethod to CHAP. The default is None.&lt;br /&gt;
discovery.sendtargets.auth.authmethod = CHAP&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;# To set a discovery session CHAP username and password for the initiator&lt;br /&gt;
# authentication by the target(s), uncomment the following lines:&lt;br /&gt;
discovery.sendtargets.auth.username = coloque_a_senha_definida_no_CHAP_Authentication&lt;br /&gt;
discovery.sendtargets.auth.password = coloque_o_usuario_definido_no_CHAP_Authentication&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Salve o arquivo.&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Outro detalhe :&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Na pasta&amp;nbsp; /etc/iscsi existe um outro arquivo &amp;nbsp;initiatorname.iscsi com o ID do cliente que mais a frente será visualizado ao final do post.&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Após isto execute os comandos abaixo e observe se a saída exibida é semelhante a esta :&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Obs. netuno é o hostname e 192.168.79.140 é o IP .&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;b&gt;&amp;nbsp;chkconfig iscsid on&lt;/b&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;b&gt;&amp;nbsp;chkconfig iscsi on&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;b&gt;[root@jamaica iscsi]# service iscsi restart&lt;/b&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Stopping iSCSI daemon:&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;iscsid dead but pid file exists &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;OK &amp;nbsp;]&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Turning off network shutdown. Starting iSCSI daemon: &amp;nbsp; &amp;nbsp; &amp;nbsp; [ &amp;nbsp;OK &amp;nbsp;]&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&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; &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;OK &amp;nbsp;]&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Setting up iSCSI targets: iscsiadm: No records found!&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&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; &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;OK &amp;nbsp;]&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;b&gt;[root@jamaica iscsi]# iscsiadm -m discovery -t sendtargets -p 192.168.79.140&lt;/b&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;192.168.79.140:3260,1 iqn.2006-01.com.openfiler:tsn.6b5a9bb26b3f&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;b&gt;[root@jamaica iscsi]# service iscsi restart&lt;/b&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Stopping iSCSI daemon:&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;iscsid dead but pid file exists &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;OK &amp;nbsp;]&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Turning off network shutdown. Starting iSCSI daemon: &amp;nbsp; &amp;nbsp; &amp;nbsp; [ &amp;nbsp;OK &amp;nbsp;]&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&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; &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;OK &amp;nbsp;]&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Setting up iSCSI targets: Logging in to [iface: default, target: iqn.2006-01.com.openfiler:tsn.6b5a9bb26b3f, por &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tal: 192.168.79.140,3260]&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Login to [iface: default, target: iqn.2006-01.com.openfiler:tsn.6b5a9bb26b3f, portal: 192.168.79.140,3260]: succ &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;essful&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&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; &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;OK &amp;nbsp;]&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;b&gt;[root@jamaica iscsi]# fdisk -l&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Disk /dev/sda: 26.8 GB, 26843545600 bytes&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;255 heads, 63 sectors/track, 3263 cylinders&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; Device Boot &amp;nbsp; &amp;nbsp; &amp;nbsp;Start &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End &amp;nbsp; &amp;nbsp; &amp;nbsp;Blocks &amp;nbsp; Id &amp;nbsp;System&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;/dev/sda1 &amp;nbsp; * &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3067 &amp;nbsp; &amp;nbsp;24635646 &amp;nbsp; 83 &amp;nbsp;Linux&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;/dev/sda2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3068 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3263 &amp;nbsp; &amp;nbsp; 1574370 &amp;nbsp; 82 &amp;nbsp;Linux swap / Solaris&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Disk /dev/sdb: 10.7 GB, 10737418240 bytes&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;255 heads, 63 sectors/track, 1305 cylinders&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; Device Boot &amp;nbsp; &amp;nbsp; &amp;nbsp;Start &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End &amp;nbsp; &amp;nbsp; &amp;nbsp;Blocks &amp;nbsp; Id &amp;nbsp;System&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;/dev/sdb1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1305 &amp;nbsp; &amp;nbsp;10482381 &amp;nbsp; 83 &amp;nbsp;Linux&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Disk /dev/sdc: 10.7 GB, 10737418240 bytes&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;255 heads, 63 sectors/track, 1305 cylinders&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; Device Boot &amp;nbsp; &amp;nbsp; &amp;nbsp;Start &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End &amp;nbsp; &amp;nbsp; &amp;nbsp;Blocks &amp;nbsp; Id &amp;nbsp;System&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;/dev/sdc1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1305 &amp;nbsp; &amp;nbsp;10482381 &amp;nbsp; 83 &amp;nbsp;Linux&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Disk /dev/sdd: 10.7 GB, 10737418240 bytes&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;255 heads, 63 sectors/track, 1305 cylinders&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; Device Boot &amp;nbsp; &amp;nbsp; &amp;nbsp;Start &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End &amp;nbsp; &amp;nbsp; &amp;nbsp;Blocks &amp;nbsp; Id &amp;nbsp;System&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;/dev/sdd1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1305 &amp;nbsp; &amp;nbsp;10482381 &amp;nbsp; 83 &amp;nbsp;Linux&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Disk /dev/sde: 10.7 GB, 10737418240 bytes&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;255 heads, 63 sectors/track, 1305 cylinders&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; Device Boot &amp;nbsp; &amp;nbsp; &amp;nbsp;Start &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End &amp;nbsp; &amp;nbsp; &amp;nbsp;Blocks &amp;nbsp; Id &amp;nbsp;System&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;/dev/sde1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1305 &amp;nbsp; &amp;nbsp;10482381 &amp;nbsp; 83 &amp;nbsp;Linux&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;b&gt;Disk /dev/sdf&lt;/b&gt;: 3221 MB, 3221225472 bytes&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;100 heads, 62 sectors/track, 1014 cylinders&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Units = cylinders of 6200 * 512 = 3174400 bytes&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Disk /dev/sdf doesn't contain a valid partition table&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;b&gt;Disk /dev/sdg&lt;/b&gt;: 3221 MB, 3221225472 bytes&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;100 heads, 62 sectors/track, 1014 cylinders&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Units = cylinders of 6200 * 512 = 3174400 bytes&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Disk /dev/sdg doesn't contain a valid partition table&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;[root@jamaica iscsi]#&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;[root@jamaica iscsi]#&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;b&gt;Problemas encontrados durante a instalação e configuração&lt;/b&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;b&gt;&amp;nbsp;Openfiler Stoage Control Center&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;- Tive alguns problemas para acessar a interface do Control Center mas fui verificar e era o meu navegador,o Chrome.No Firefox funcionava parcial e o que consegui que funcionasse melhor foi no IE.&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;- Há telas/abas que são mostradas no Administration Guide do Openfiler 2.3 que sinceramente ainda não encontrei na minha instalação.&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;- Deu trabalho para alterar a senha de Administrador.O usuário Administrador default &amp;nbsp;é "Openfiler" e sua senha é "Password" .&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;b&gt;Target IQN&lt;/b&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;- Problemas na hora de criar o Target IQN .De inicio ele não funcionou.Tive que excluir e criar novamente.Então funcionou Ok.&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;- O client não conseguia mapear automaticamente o Target IQN quando no Storage só existia um Target IQN assoaciado ao Host.Depois de criar o segundo Target IQN ele começa a mapear.Na documentação do Openfiler não fala nada disso,aliás a documentação é uma apresentação da interface gráfica e não uma explicação de como funciona cada item dentro do sistema&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;i&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;b&gt;Processos&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;- Processos iscsid presos no Linux.Lembra o oc4j&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/i&gt;Outros comandos :&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;- Add um target manualmente&lt;/i&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;iscsiadm -m node -p 192.168.79.140:3260 -T iqn.2006-01.com.openfiler:tsn.f4c81f9a34dd -o new&lt;/div&gt;&lt;br /&gt;
&lt;i&gt;- Del um target manualmente&lt;/i&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;iscsiadm -m node -p 192.168.79.140:3260 -T iqn.2006-01.com.openfiler:tsn.f4c81f9a34dd -o delete&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;b&gt;Outros testes executados&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana; font-size: 13px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
Realizei um teste sem utilizar autenticação via CHAP.&lt;br /&gt;
&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;[root@jamaica nodes]# service iscsi restart&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Stopping iSCSI daemon:&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;iscsid dead but pid file exists &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;OK &amp;nbsp;]&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Turning off network shutdown. Starting iSCSI daemon: &amp;nbsp; &amp;nbsp; &amp;nbsp; [ &amp;nbsp;OK &amp;nbsp;]&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&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; &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;OK &amp;nbsp;]&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Setting up iSCSI targets: iscsiadm: No records found!&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&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; &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;OK &amp;nbsp;]&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;[root@jamaica nodes]# iscsiadm --mode discovery --type sendtargets --portal 192.168.79.140:3260&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;192.168.79.140:3260,1 iqn.2006-01.com.openfiler:tsn.552ec603e663&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;[root@jamaica nodes]# service iscsi restart&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Stopping iSCSI daemon:&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;iscsid dead but pid file exists &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;OK &amp;nbsp;]&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Turning off network shutdown. Starting iSCSI daemon: &amp;nbsp; &amp;nbsp; &amp;nbsp; [ &amp;nbsp;OK &amp;nbsp;]&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&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; &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;OK &amp;nbsp;]&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Setting up iSCSI targets: Logging in to [iface: default, target: iqn.2006-01.com.openfiler:tsn.552ec603e663, portal: 192.168. &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;79.140,3260]&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Login to [iface: default, target: iqn.2006-01.com.openfiler:tsn.552ec603e663, portal: 192.168.79.140,3260]: successful&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&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; &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;OK &amp;nbsp;]&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;[root@jamaica nodes]# fdisk -l&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Disk /dev/sda: 26.8 GB, 26843545600 bytes&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;255 heads, 63 sectors/track, 3263 cylinders&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; Device Boot &amp;nbsp; &amp;nbsp; &amp;nbsp;Start &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End &amp;nbsp; &amp;nbsp; &amp;nbsp;Blocks &amp;nbsp; Id &amp;nbsp;System&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;/dev/sda1 &amp;nbsp; * &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3067 &amp;nbsp; &amp;nbsp;24635646 &amp;nbsp; 83 &amp;nbsp;Linux&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;/dev/sda2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3068 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3263 &amp;nbsp; &amp;nbsp; 1574370 &amp;nbsp; 82 &amp;nbsp;Linux swap / Solaris&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Disk /dev/sdb: 10.7 GB, 10737418240 bytes&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;255 heads, 63 sectors/track, 1305 cylinders&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; Device Boot &amp;nbsp; &amp;nbsp; &amp;nbsp;Start &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End &amp;nbsp; &amp;nbsp; &amp;nbsp;Blocks &amp;nbsp; Id &amp;nbsp;System&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;/dev/sdb1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1305 &amp;nbsp; &amp;nbsp;10482381 &amp;nbsp; 83 &amp;nbsp;Linux&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Disk /dev/sdc: 10.7 GB, 10737418240 bytes&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;255 heads, 63 sectors/track, 1305 cylinders&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; Device Boot &amp;nbsp; &amp;nbsp; &amp;nbsp;Start &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End &amp;nbsp; &amp;nbsp; &amp;nbsp;Blocks &amp;nbsp; Id &amp;nbsp;System&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;/dev/sdc1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1305 &amp;nbsp; &amp;nbsp;10482381 &amp;nbsp; 83 &amp;nbsp;Linux&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Disk /dev/sdd: 10.7 GB, 10737418240 bytes&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;255 heads, 63 sectors/track, 1305 cylinders&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; Device Boot &amp;nbsp; &amp;nbsp; &amp;nbsp;Start &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End &amp;nbsp; &amp;nbsp; &amp;nbsp;Blocks &amp;nbsp; Id &amp;nbsp;System&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;/dev/sdd1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1305 &amp;nbsp; &amp;nbsp;10482381 &amp;nbsp; 83 &amp;nbsp;Linux&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Disk /dev/sde: 10.7 GB, 10737418240 bytes&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;255 heads, 63 sectors/track, 1305 cylinders&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; Device Boot &amp;nbsp; &amp;nbsp; &amp;nbsp;Start &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End &amp;nbsp; &amp;nbsp; &amp;nbsp;Blocks &amp;nbsp; Id &amp;nbsp;System&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;/dev/sde1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1305 &amp;nbsp; &amp;nbsp;10482381 &amp;nbsp; 83 &amp;nbsp;Linux&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Disk /dev/sdf: 3221 MB, 3221225472 bytes&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;100 heads, 62 sectors/track, 1014 cylinders&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Units = cylinders of 6200 * 512 = 3174400 bytes&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Disk /dev/sdf doesn't contain a valid partition table&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Disk /dev/sdg: 3221 MB, 3221225472 bytes&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;100 heads, 62 sectors/track, 1014 cylinders&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Units = cylinders of 6200 * 512 = 3174400 bytes&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Disk /dev/sdg doesn't contain a valid partition table&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;[root@jamaica nodes]#&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Disk /dev/sdg doesn't contain a valid partition table&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Fiz vários testes adicionando Targets IQN's e retirando para testar o initiator do host client.&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;O que realmente ajuda é monitorar o /var/log/messages :&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Jan 31 06:13:51 jamaica iscsid: iscsid shutting down.&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Jan 31 06:13:51 jamaica kernel: Loading iSCSI transport class v2.0-724.&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Jan 31 06:13:51 jamaica kernel: iscsi: registered transport (tcp)&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Jan 31 06:13:51 jamaica kernel: iscsi: registered transport (iser)&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Jan 31 06:13:51 jamaica iscsid: iSCSI logger with pid=15584 started!&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Jan 31 06:13:51 jamaica kernel: scsi22 : iSCSI Initiator over TCP/IP&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Jan 31 06:13:52 jamaica kernel: &amp;nbsp; Vendor: OPNFILER &amp;nbsp;Model: VIRTUAL-DISK &amp;nbsp; &amp;nbsp; &amp;nbsp;Rev: 0&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Jan 31 06:13:52 jamaica kernel: &amp;nbsp; Type: &amp;nbsp; Direct-Access &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ANSI SCSI revision: 04&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Jan 31 06:13:52 jamaica kernel: SCSI device sdf: 6291456 512-byte hdwr sectors (3221 MB)&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Jan 31 06:13:52 jamaica kernel: sdf: Write Protect is off&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Jan 31 06:13:52 jamaica kernel: SCSI device sdf: drive cache: none&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Jan 31 06:13:52 jamaica kernel: SCSI device sdf: 6291456 512-byte hdwr sectors (3221 MB)&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Jan 31 06:13:52 jamaica kernel: sdf: Write Protect is off&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Jan 31 06:13:52 jamaica kernel: SCSI device sdf: drive cache: none&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Jan 31 06:13:52 jamaica kernel: &amp;nbsp;sdf: unknown partition table&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Jan 31 06:13:52 jamaica kernel: sd 22:0:0:0: Attached scsi disk sdf&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Jan 31 06:13:52 jamaica kernel: sd 22:0:0:0: Attached scsi generic sg5 type 0&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Jan 31 06:13:52 jamaica kernel: &amp;nbsp; Vendor: OPNFILER &amp;nbsp;Model: VIRTUAL-DISK &amp;nbsp; &amp;nbsp; &amp;nbsp;Rev: 0&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Jan 31 06:13:52 jamaica kernel: &amp;nbsp; Type: &amp;nbsp; Direct-Access &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ANSI SCSI revision: 04&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Jan 31 06:13:52 jamaica kernel: SCSI device sdg: 6291456 512-byte hdwr sectors (3221 MB)&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Jan 31 06:13:52 jamaica kernel: sdg: Write Protect is off&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Jan 31 06:13:52 jamaica kernel: SCSI device sdg: drive cache: none&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Jan 31 06:13:52 jamaica kernel: SCSI device sdg: 6291456 512-byte hdwr sectors (3221 MB)&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Jan 31 06:13:52 jamaica kernel: sdg: Write Protect is off&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Jan 31 06:13:52 jamaica kernel: SCSI device sdg: drive cache: none&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Jan 31 06:13:52 jamaica kernel: &amp;nbsp;sdg: unknown partition table&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Jan 31 06:13:52 jamaica kernel: sd 22:0:0:1: Attached scsi disk sdg&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Jan 31 06:13:52 jamaica kernel: sd 22:0:0:1: Attached scsi generic sg6 type 0&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Jan 31 06:13:52 jamaica iscsid: transport class version 2.0-724. iscsid version 2.0-871&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Jan 31 06:13:52 jamaica iscsid: iSCSI daemon with pid=15585 started!&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Jan 31 06:13:52 jamaica iscsid: connection1:0 is operational now&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;Finalização&lt;/b&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Agora para finalizar o post vou fazer um fdisk no discos mapeados e criar um diskgroup no ASM .&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Para quem não conhece observe a seqüencia de comandos :&lt;/div&gt;&lt;br /&gt;
&lt;i&gt;Particionamento dos discos&lt;/i&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;[root@jamaica nodes]# fdisk /dev/sdf&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Building a new DOS disklabel. Changes will remain in memory only,&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;until you decide to write them. After that, of course, the previous&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;content won't be recoverable.&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Command (m for help): m&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Command action&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; a &amp;nbsp; toggle a bootable flag&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; b &amp;nbsp; edit bsd disklabel&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; c &amp;nbsp; toggle the dos compatibility flag&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; d &amp;nbsp; delete a partition&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; l &amp;nbsp; list known partition types&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; m &amp;nbsp; print this menu&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; n &amp;nbsp; add a new partition&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; o &amp;nbsp; create a new empty DOS partition table&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; p &amp;nbsp; print the partition table&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; q &amp;nbsp; quit without saving changes&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; s &amp;nbsp; create a new empty Sun disklabel&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; t &amp;nbsp; change a partition's system id&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; u &amp;nbsp; change display/entry units&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; v &amp;nbsp; verify the partition table&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; w &amp;nbsp; write table to disk and exit&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; x &amp;nbsp; extra functionality (experts only)&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Command (m for help): d&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;No partition is defined yet!&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Command (m for help): n&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Command action&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; e &amp;nbsp; extended&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; p &amp;nbsp; primary partition (1-4)&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;p&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Partition number (1-4): 1&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;First cylinder (1-1014, default 1):&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Using default value 1&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Last cylinder or +size or +sizeM or +sizeK (1-1014, default 1014):&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Using default value 1014&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Command (m for help): w&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;The partition table has been altered!&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Calling ioctl() to re-read partition table.&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Syncing disks.&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;[root@jamaica nodes]# fdisk /dev/sdg&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Building a new DOS disklabel. Changes will remain in memory only,&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;until you decide to write them. After that, of course, the previous&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;content won't be recoverable.&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Command (m for help): n&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Command action&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; e &amp;nbsp; extended&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; p &amp;nbsp; primary partition (1-4)&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;p&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Partition number (1-4): 1&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;First cylinder (1-1014, default 1):&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Using default value 1&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Last cylinder or +size or +sizeM or +sizeK (1-1014, default 1014):&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Using default value 1014&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Command (m for help): w&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;The partition table has been altered!&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Calling ioctl() to re-read partition table.&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Syncing disks.&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;[root@jamaica nodes]# fdisk -l&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Disk /dev/sda: 26.8 GB, 26843545600 bytes&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;255 heads, 63 sectors/track, 3263 cylinders&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; Device Boot &amp;nbsp; &amp;nbsp; &amp;nbsp;Start &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End &amp;nbsp; &amp;nbsp; &amp;nbsp;Blocks &amp;nbsp; Id &amp;nbsp;System&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;/dev/sda1 &amp;nbsp; * &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3067 &amp;nbsp; &amp;nbsp;24635646 &amp;nbsp; 83 &amp;nbsp;Linux&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;/dev/sda2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3068 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3263 &amp;nbsp; &amp;nbsp; 1574370 &amp;nbsp; 82 &amp;nbsp;Linux swap / Solaris&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Disk /dev/sdb: 10.7 GB, 10737418240 bytes&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;255 heads, 63 sectors/track, 1305 cylinders&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; Device Boot &amp;nbsp; &amp;nbsp; &amp;nbsp;Start &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End &amp;nbsp; &amp;nbsp; &amp;nbsp;Blocks &amp;nbsp; Id &amp;nbsp;System&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;/dev/sdb1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1305 &amp;nbsp; &amp;nbsp;10482381 &amp;nbsp; 83 &amp;nbsp;Linux&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Disk /dev/sdc: 10.7 GB, 10737418240 bytes&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;255 heads, 63 sectors/track, 1305 cylinders&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; Device Boot &amp;nbsp; &amp;nbsp; &amp;nbsp;Start &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End &amp;nbsp; &amp;nbsp; &amp;nbsp;Blocks &amp;nbsp; Id &amp;nbsp;System&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;/dev/sdc1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1305 &amp;nbsp; &amp;nbsp;10482381 &amp;nbsp; 83 &amp;nbsp;Linux&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Disk /dev/sdd: 10.7 GB, 10737418240 bytes&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;255 heads, 63 sectors/track, 1305 cylinders&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; Device Boot &amp;nbsp; &amp;nbsp; &amp;nbsp;Start &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End &amp;nbsp; &amp;nbsp; &amp;nbsp;Blocks &amp;nbsp; Id &amp;nbsp;System&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;/dev/sdd1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1305 &amp;nbsp; &amp;nbsp;10482381 &amp;nbsp; 83 &amp;nbsp;Linux&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Disk /dev/sde: 10.7 GB, 10737418240 bytes&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;255 heads, 63 sectors/track, 1305 cylinders&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; Device Boot &amp;nbsp; &amp;nbsp; &amp;nbsp;Start &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End &amp;nbsp; &amp;nbsp; &amp;nbsp;Blocks &amp;nbsp; Id &amp;nbsp;System&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;/dev/sde1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1305 &amp;nbsp; &amp;nbsp;10482381 &amp;nbsp; 83 &amp;nbsp;Linux&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Disk /dev/sdf: 3221 MB, 3221225472 bytes&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;100 heads, 62 sectors/track, 1014 cylinders&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Units = cylinders of 6200 * 512 = 3174400 bytes&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; Device Boot &amp;nbsp; &amp;nbsp; &amp;nbsp;Start &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End &amp;nbsp; &amp;nbsp; &amp;nbsp;Blocks &amp;nbsp; Id &amp;nbsp;System&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;/dev/sdf1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1014 &amp;nbsp; &amp;nbsp; 3143369 &amp;nbsp; 83 &amp;nbsp;Linux&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Disk /dev/sdg: 3221 MB, 3221225472 bytes&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;100 heads, 62 sectors/track, 1014 cylinders&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Units = cylinders of 6200 * 512 = 3174400 bytes&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; Device Boot &amp;nbsp; &amp;nbsp; &amp;nbsp;Start &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End &amp;nbsp; &amp;nbsp; &amp;nbsp;Blocks &amp;nbsp; Id &amp;nbsp;System&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;/dev/sdg1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1014 &amp;nbsp; &amp;nbsp; 3143369 &amp;nbsp; 83 &amp;nbsp;Linux&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;[root@jamaica nodes]#&lt;/div&gt;&lt;br /&gt;
&lt;div id="j7k." style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;&lt;img src="http://docs.google.com/File?id=ddm3dzs4_407gmv9fwf9_b" style="height: 305.523422px; width: 648px;" /&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div id="xnkb" style="margin-bottom: 0px; margin-top: 0px; text-align: left;"&gt;&lt;img src="http://docs.google.com/File?id=ddm3dzs4_408djgqfkhp_b" style="height: 304.227828px; width: 648px;" /&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;Criação dos discos para a instance &amp;nbsp;ASM&lt;/i&gt;&lt;/div&gt;&lt;i&gt;&lt;br /&gt;
&lt;/i&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;[root@jamaica nodes]#&lt;/i&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;[root@jamaica nodes]# /etc/init.d/oracleasm listdisks&lt;/i&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;VOL1&lt;/i&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;VOL2&lt;/i&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;VOL3&lt;/i&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;VOL4&lt;/i&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;[root@jamaica nodes]# /etc/init.d/oracleasm createdisk VOL5 /dev/sdf&lt;/i&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;Marking disk "VOL5" as an ASM disk: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[FAILED]&lt;/i&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;[root@jamaica nodes]#&lt;/i&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;[root@jamaica nodes]#&lt;/i&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;[root@jamaica nodes]#&lt;/i&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;[root@jamaica nodes]#&lt;/i&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;[root@jamaica nodes]# /etc/init.d/oracleasm listdisks&lt;/i&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;VOL1&lt;/i&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;VOL2&lt;/i&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;VOL3&lt;/i&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;VOL4&lt;/i&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;[root@jamaica nodes]# /etc/init.d/oracleasm createdisk VOL5 /dev/sdf1&lt;/i&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;Marking disk "VOL5" as an ASM disk: &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;OK &amp;nbsp;]&lt;/i&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;[root@jamaica nodes]#&lt;/i&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;[root@jamaica nodes]# /etc/init.d/oracleasm createdisk VOL6 /dev/sdg1&lt;/i&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;Marking disk "VOL6" as an ASM disk: &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;OK &amp;nbsp;]&lt;/i&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;[root@jamaica nodes]#&lt;/i&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;[root@jamaica nodes]# /etc/init.d/oracleasm listdisks&lt;/i&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;VOL1&lt;/i&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;VOL2&lt;/i&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;VOL3&lt;/i&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;VOL4&lt;/i&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;VOL5&lt;/i&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;VOL6&lt;/i&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;[root@jamaica nodes]#&lt;/i&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;Finalizo por aqui.Espero poder ajudar na introdução ao Openfiler.&lt;/i&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;Vou continuar testando este produto e quando tiver mais algumas novidades volto a postar aqui.&lt;/i&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;Já estou pensando em posts sobre RAID usando Openfiler!O que seria bem interessante!&lt;/i&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;Att,&lt;/i&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;i&gt;Julio Cesar Correa&lt;/i&gt;&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2523564552046105021-4489159777599877999?l=www.dbajccorrea.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.dbajccorrea.com/feeds/4489159777599877999/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2523564552046105021&amp;postID=4489159777599877999&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/4489159777599877999?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/4489159777599877999?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SimpleWrite-up/~3/uyv8Fx76DeY/editando-openfiler-storage-control.html" title="Openfiler Storage Control Center – Gerenciandor de NAS/SAN – Part 2" /><author><name>Júlio César Corrêa</name><uri>http://www.blogger.com/profile/16465498903177871508</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04550809630941347154" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.dbajccorrea.com/2010/01/editando-openfiler-storage-control.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEMERH09cCp7ImA9WxBXF08.&quot;"><id>tag:blogger.com,1999:blog-2523564552046105021.post-5832958466076353329</id><published>2010-01-28T21:46:00.000-02:00</published><updated>2010-01-28T21:46:45.368-02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-28T21:46:45.368-02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Oracle 7" /><category scheme="http://www.blogger.com/atom/ns#" term="documentacao" /><category scheme="http://www.blogger.com/atom/ns#" term="documentation" /><category scheme="http://www.blogger.com/atom/ns#" term="Oracle 8" /><category scheme="http://www.blogger.com/atom/ns#" term="database" /><category scheme="http://www.blogger.com/atom/ns#" term="oracle" /><title>Previously Released Oracle Documentation / Documentações das antigas versões do Oracle</title><content type="html">Caso alguem precise ainda de documentações das antigas versões do Oracle.&lt;br /&gt;
Existe um link das documentações no OTN.&lt;br /&gt;
&lt;br /&gt;
Acesse:&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.oracle.com/technology/documentation/index.html"&gt;http://www.oracle.com/technology/documentation/index.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Exemplo :&lt;br /&gt;
&lt;br /&gt;
Documentação do Oracle 7 :&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.oracle.com/technology/documentation/oracle7.html"&gt;http://www.oracle.com/technology/documentation/oracle7.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2523564552046105021-5832958466076353329?l=www.dbajccorrea.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.dbajccorrea.com/feeds/5832958466076353329/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2523564552046105021&amp;postID=5832958466076353329&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/5832958466076353329?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/5832958466076353329?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SimpleWrite-up/~3/b0f8sqJeA1U/previously-released-oracle.html" title="Previously Released Oracle Documentation / Documentações das antigas versões do Oracle" /><author><name>Júlio César Corrêa</name><uri>http://www.blogger.com/profile/16465498903177871508</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04550809630941347154" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.dbajccorrea.com/2010/01/previously-released-oracle.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkcFQXk7fCp7ImA9WxBXFkU.&quot;"><id>tag:blogger.com,1999:blog-2523564552046105021.post-7071126909466808132</id><published>2010-01-25T17:06:00.006-02:00</published><updated>2010-01-28T11:06:50.704-02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-28T11:06:50.704-02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="open source" /><category scheme="http://www.blogger.com/atom/ns#" term="software livre" /><category scheme="http://www.blogger.com/atom/ns#" term="vg" /><category scheme="http://www.blogger.com/atom/ns#" term="red hat" /><category scheme="http://www.blogger.com/atom/ns#" term="lvm" /><category scheme="http://www.blogger.com/atom/ns#" term="asm" /><category scheme="http://www.blogger.com/atom/ns#" term="storage" /><category scheme="http://www.blogger.com/atom/ns#" term="LINUX" /><category scheme="http://www.blogger.com/atom/ns#" term="oracle" /><title>Instalação e overview do Openfiler – Gerenciador de NAS/SAN – Part 1</title><content type="html">O objetivo deste post é mostrar a instalação do Openfiler em uma máquina virtual.&lt;br /&gt;
Nos próximos posts irei colocar como funciona o gerenciamento do storage através da sua interface web .&lt;br /&gt;
&lt;br /&gt;
Abaixo os locais de download do software usado neste post.&lt;br /&gt;
&lt;br /&gt;
Download &amp;nbsp;em :&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://sourceforge.net/projects/openfiler/"&gt;http://sourceforge.net/projects/openfiler/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Site oficial:&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.openfiler.com/"&gt;http://www.openfiler.com/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Wiki:&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://en.wikipedia.org/wiki/Openfiler"&gt;http://en.wikipedia.org/wiki/Openfiler&lt;/a&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Introdução ao Openfiler&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
O Openfiler é na verdade um sistema operacional baseado na distribuição rPath Linux .Outra coisa interessante é o fato de ele ser open source e licenciado via licença GPL.&lt;br /&gt;
O Openfiler desempenha a função de um gerenciador de Storage NAS/SAN que é pode ser muito útil principalmente para os nossos testes com o Oracle.&lt;br /&gt;
Ele suporta NFS, SMB/CIFS, HTTP/WebDAV, FTP and iSCSI (initiator and target).Mais informações sobre suporte no site oficial do produto.&lt;br /&gt;
Para podermos fazer uso deste storage em nossos hosts servidores de banco de dados devemos ter configurado o pacote iSCSI.Para Red Hat ou similar temos o pacote iscsi-initiator-utils&lt;br /&gt;
e para Solaris temos os pacotes SUNWiscsi e SUNWiscsiu.&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;
&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Criação da máquina virtual&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Crie uma máquina virtual e aponte o CD-ROM para a imagem ISO do Openfiler .&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://lh3.ggpht.com/_6N0R_bIPWFw/S13rHR0c4VI/AAAAAAAADJE/dfe6EaldwJQ/s1600-h/clip_image002%5B3%5D.jpg"&gt;&lt;img alt="clip_image002" border="0" src="http://lh4.ggpht.com/_6N0R_bIPWFw/S13rITHFh9I/AAAAAAAADJI/2q_FuvfIcOY/clip_image002_thumb.jpg?imgmax=800" style="border-bottom-color: initial; border-bottom-style: initial; border-bottom-width: 0px; border-left-color: initial; border-left-style: initial; border-left-width: 0px; border-right-color: initial; border-right-style: initial; border-right-width: 0px; border-top-color: initial; border-top-style: initial; border-top-width: 0px; display: inline;" title="clip_image002" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;
&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Iniciando a instalação&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;
&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;
&lt;/i&gt;&lt;br /&gt;
&lt;a href="http://lh6.ggpht.com/_6N0R_bIPWFw/S13rJPJYLWI/AAAAAAAADJM/p05ZW2Y4VOo/s1600-h/clip_image004%5B3%5D.jpg"&gt;&lt;img alt="clip_image004" border="0" height="185" src="http://lh3.ggpht.com/_6N0R_bIPWFw/S13rKGy56GI/AAAAAAAADJQ/SyiYuEHY4R4/clip_image004_thumb.jpg?imgmax=800" style="border-bottom-color: initial; border-bottom-style: initial; border-bottom-width: 0px; border-left-color: initial; border-left-style: initial; border-left-width: 0px; border-right-color: initial; border-right-style: initial; border-right-width: 0px; border-top-color: initial; border-top-style: initial; border-top-width: 0px; display: inline;" title="clip_image004" width="244" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Como podemos ver o Openfiler também roda em cima de um Linux:&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://lh4.ggpht.com/_6N0R_bIPWFw/S13rKgaIWEI/AAAAAAAADJU/l9xyOgcCOM0/s1600-h/clip_image006%5B3%5D.jpg"&gt;&lt;img alt="clip_image006" border="0" height="184" src="http://lh6.ggpht.com/_6N0R_bIPWFw/S13rL_G99FI/AAAAAAAADJY/CEhxPolcTPU/clip_image006_thumb.jpg?imgmax=800" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;" title="clip_image006" width="244" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Vamos fazer o test da mídia:&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://lh3.ggpht.com/_6N0R_bIPWFw/S13rMnSX46I/AAAAAAAADJc/CJpi0QR04F8/s1600-h/clip_image008%5B3%5D.jpg"&gt;&lt;img alt="clip_image008" border="0" height="186" src="http://lh3.ggpht.com/_6N0R_bIPWFw/S13rOHodpeI/AAAAAAAADJg/fEqz_QeKS_o/clip_image008_thumb.jpg?imgmax=800" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;" title="clip_image008" width="244" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://lh6.ggpht.com/_6N0R_bIPWFw/S13rO7VZ5aI/AAAAAAAADJk/-q8gKc52qUs/s1600-h/clip_image010%5B3%5D.jpg"&gt;&lt;img alt="clip_image010" border="0" height="183" src="http://lh3.ggpht.com/_6N0R_bIPWFw/S13rPgvLvCI/AAAAAAAADJo/xfFjFkxnXXI/clip_image010_thumb.jpg?imgmax=800" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;" title="clip_image010" width="244" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://lh3.ggpht.com/_6N0R_bIPWFw/S13rQpWj5CI/AAAAAAAADJs/SXGmrobFvmA/s1600-h/clip_image012%5B3%5D.jpg"&gt;&lt;img alt="clip_image012" border="0" height="183" src="http://lh6.ggpht.com/_6N0R_bIPWFw/S13rRXG7gCI/AAAAAAAADJw/DCLVTsMFPZg/clip_image012_thumb.jpg?imgmax=800" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;" title="clip_image012" width="244" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://lh5.ggpht.com/_6N0R_bIPWFw/S13rSOUTuoI/AAAAAAAADJ0/YVbfXmNpMt4/s1600-h/clip_image014%5B3%5D.jpg"&gt;&lt;img alt="clip_image014" border="0" height="183" src="http://lh3.ggpht.com/_6N0R_bIPWFw/S13rSyvGC4I/AAAAAAAADJ4/BKznR99fIEA/clip_image014_thumb.jpg?imgmax=800" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;" title="clip_image014" width="244" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Obs.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Se aparecer algum erro dizendo que o CD-ROM não está montado ,verique se ele está com status conectado a vm.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://lh3.ggpht.com/_6N0R_bIPWFw/S13rToi3moI/AAAAAAAADJ8/jr1S9r8UGng/s1600-h/clip_image016%5B3%5D.jpg"&gt;&lt;img alt="clip_image016" border="0" height="178" src="http://lh4.ggpht.com/_6N0R_bIPWFw/S13rUUy1R4I/AAAAAAAADKA/6GErgVx5U_U/clip_image016_thumb.jpg?imgmax=800" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;" title="clip_image016" width="244" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://lh5.ggpht.com/_6N0R_bIPWFw/S13rU8xUBaI/AAAAAAAADKE/Ekc-xCLPQDk/s1600-h/clip_image018%5B3%5D.jpg"&gt;&lt;img alt="clip_image018" border="0" height="152" src="http://lh6.ggpht.com/_6N0R_bIPWFw/S13rVn4WG1I/AAAAAAAADKI/Oj0rvWxjXgg/clip_image018_thumb.jpg?imgmax=800" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;" title="clip_image018" width="244" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://lh4.ggpht.com/_6N0R_bIPWFw/S13rWQAN18I/AAAAAAAADKM/TfXJaST0TFs/s1600-h/clip_image020%5B3%5D.jpg"&gt;&lt;img alt="clip_image020" border="0" height="183" src="http://lh6.ggpht.com/_6N0R_bIPWFw/S13rXBrQt4I/AAAAAAAADKQ/qosaXj0QuUw/clip_image020_thumb.jpg?imgmax=800" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;" title="clip_image020" width="244" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://lh4.ggpht.com/_6N0R_bIPWFw/S13rX2n7PQI/AAAAAAAADKU/RjuTOIC77qA/s1600-h/clip_image022%5B3%5D.jpg"&gt;&lt;img alt="clip_image022" border="0" height="184" src="http://lh3.ggpht.com/_6N0R_bIPWFw/S13rYoRL4iI/AAAAAAAADKY/nIJrGmE5cKU/clip_image022_thumb.jpg?imgmax=800" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;" title="clip_image022" width="244" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://lh6.ggpht.com/_6N0R_bIPWFw/S13rZhiCwHI/AAAAAAAADKc/hamnocZytL0/s1600-h/clip_image024%5B3%5D.jpg"&gt;&lt;img alt="clip_image024" border="0" height="183" src="http://lh4.ggpht.com/_6N0R_bIPWFw/S13raIH2BBI/AAAAAAAADKg/M1x-TbLgWNY/clip_image024_thumb.jpg?imgmax=800" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;" title="clip_image024" width="244" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://lh3.ggpht.com/_6N0R_bIPWFw/S13rbA3NKDI/AAAAAAAADKk/1B9XzoY4Fi0/s1600-h/clip_image026%5B3%5D.jpg"&gt;&lt;img alt="clip_image026" border="0" height="184" src="http://lh6.ggpht.com/_6N0R_bIPWFw/S13rbwKhfkI/AAAAAAAADKo/ueH2TCN3fno/clip_image026_thumb.jpg?imgmax=800" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;" title="clip_image026" width="244" /&gt;&lt;/a&gt;&lt;br /&gt;
Obs.O partionamento manual é opcional.&lt;br /&gt;
&lt;a href="http://lh5.ggpht.com/_6N0R_bIPWFw/S13rcyyY5oI/AAAAAAAADKs/z0JIizL0KZM/s1600-h/clip_image028%5B3%5D.jpg"&gt;&lt;img alt="clip_image028" border="0" height="184" src="http://lh6.ggpht.com/_6N0R_bIPWFw/S13rd8TFItI/AAAAAAAADKw/1iVlL_b7Pes/clip_image028_thumb.jpg?imgmax=800" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;" title="clip_image028" width="244" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Ativando o swap .Clique em Yes.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://lh5.ggpht.com/_6N0R_bIPWFw/S13retTFRkI/AAAAAAAADK0/gYrVt2fzpuk/s1600-h/clip_image030%5B3%5D.jpg"&gt;&lt;img alt="clip_image030" border="0" height="184" src="http://lh3.ggpht.com/_6N0R_bIPWFw/S13rfbwwDiI/AAAAAAAADK4/hAgKspIj7t0/clip_image030_thumb.jpg?imgmax=800" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;" title="clip_image030" width="244" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;
&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Configuração de rede&amp;nbsp;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Edite a sua interface de rede.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://lh4.ggpht.com/_6N0R_bIPWFw/S13rgZFNVBI/AAAAAAAADK8/AXD-eDl32c4/s1600-h/clip_image032%5B3%5D.jpg"&gt;&lt;img alt="clip_image032" border="0" height="184" src="http://lh5.ggpht.com/_6N0R_bIPWFw/S13rhESHAkI/AAAAAAAADLA/MaycFyrkxLc/clip_image032_thumb.jpg?imgmax=800" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;" title="clip_image032" width="244" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://lh4.ggpht.com/_6N0R_bIPWFw/S13rh4bblhI/AAAAAAAADLE/inFvwoCd078/s1600-h/clip_image034%5B3%5D.jpg"&gt;&lt;img alt="clip_image034" border="0" height="184" src="http://lh3.ggpht.com/_6N0R_bIPWFw/S13rigZfnYI/AAAAAAAADLI/3cq6hxfTg4c/clip_image034_thumb.jpg?imgmax=800" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;" title="clip_image034" width="244" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://lh4.ggpht.com/_6N0R_bIPWFw/S13rjXmhxkI/AAAAAAAADLM/Dwv9HFi9Fzk/s1600-h/clip_image036%5B3%5D.jpg"&gt;&lt;img alt="clip_image036" border="0" height="184" src="http://lh5.ggpht.com/_6N0R_bIPWFw/S13rkcYiKmI/AAAAAAAADLQ/OWhMFOisQ0U/clip_image036_thumb.jpg?imgmax=800" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;" title="clip_image036" width="244" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://lh4.ggpht.com/_6N0R_bIPWFw/S13rlAf-X4I/AAAAAAAADLU/tX6ywtJOxTI/s1600-h/clip_image038%5B3%5D.jpg"&gt;&lt;img alt="clip_image038" border="0" height="184" src="http://lh6.ggpht.com/_6N0R_bIPWFw/S13rlx_Ru_I/AAAAAAAADLY/PrOtf1uzcAQ/clip_image038_thumb.jpg?imgmax=800" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;" title="clip_image038" width="244" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://lh5.ggpht.com/_6N0R_bIPWFw/S13rmzs45gI/AAAAAAAADLc/8ab8jjzdrLg/s1600-h/clip_image040%5B3%5D.jpg"&gt;&lt;img alt="clip_image040" border="0" height="184" src="http://lh4.ggpht.com/_6N0R_bIPWFw/S13rnZ2pvHI/AAAAAAAADLg/fn5pzT2pH-Y/clip_image040_thumb.jpg?imgmax=800" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;" title="clip_image040" width="244" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://lh4.ggpht.com/_6N0R_bIPWFw/S13roJFy2QI/AAAAAAAADLk/om7Zs7fFYAU/s1600-h/clip_image042%5B3%5D.jpg"&gt;&lt;img alt="clip_image042" border="0" height="184" src="http://lh5.ggpht.com/_6N0R_bIPWFw/S13ro4MYHrI/AAAAAAAADLo/WR32I6K3A5E/clip_image042_thumb.jpg?imgmax=800" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;" title="clip_image042" width="244" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Dependendo da quantidade de memória do host onde a instalação está sendo feita ou caso deseje usar como servidor virtualizado como no meu caso a instalação pode demorar um pouco.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://lh5.ggpht.com/_6N0R_bIPWFw/S13rptNJhnI/AAAAAAAADLs/tzO5em-vZik/s1600-h/clip_image044%5B3%5D.jpg"&gt;&lt;img alt="clip_image044" border="0" height="184" src="http://lh6.ggpht.com/_6N0R_bIPWFw/S13rqdu7x2I/AAAAAAAADLw/I_ycMvabtcY/clip_image044_thumb.jpg?imgmax=800" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;" title="clip_image044" width="244" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://lh4.ggpht.com/_6N0R_bIPWFw/S13rrUthf3I/AAAAAAAADL0/0lxTyMXFmfg/s1600-h/clip_image046%5B3%5D.jpg"&gt;&lt;img alt="clip_image046" border="0" height="138" src="http://lh6.ggpht.com/_6N0R_bIPWFw/S13rsBmgTAI/AAAAAAAADL4/EGPz6W5_QCg/clip_image046_thumb.jpg?imgmax=800" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;" title="clip_image046" width="244" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://lh4.ggpht.com/_6N0R_bIPWFw/S13rs4CnB5I/AAAAAAAADL8/CBfzrUQRK3U/s1600-h/clip_image048%5B3%5D.jpg"&gt;&lt;img alt="clip_image048" border="0" height="185" src="http://lh4.ggpht.com/_6N0R_bIPWFw/S13rttpEaeI/AAAAAAAADMA/0DyAn1UYI9A/clip_image048_thumb.jpg?imgmax=800" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;" title="clip_image048" width="244" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Este foi o post sobre instalação do Openfiler.&lt;br /&gt;
&lt;br /&gt;
No próximo post vamos acessar a interface de gerenciamento , criar os VG's e LV's e conceder permissão de acesso aos hosts que irão usar os LV's .&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Este era para ser o segundo post...&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;
&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Depois de instalar o Openfiler podemos tanto gerenciar através da sua interface gráfica via web(HTTPS) .&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Há várias opções de linha de comandos no sistema do Openfiler ao longo dos posts vou deixar mais informações.&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Iniciando a interface web :&amp;nbsp;&lt;a href="https://192.168.79.140:446/"&gt;https://192.168.79.140:446/&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;a href="http://lh4.ggpht.com/_6N0R_bIPWFw/S15aZEhZ7oI/AAAAAAAADME/uMuWYY-KY0c/s1600-h/clip_image002%5B3%5D.jpg"&gt;&lt;img alt="clip_image002" border="0" height="175" src="http://lh4.ggpht.com/_6N0R_bIPWFw/S15aZ0Xe5LI/AAAAAAAADMI/iDqKccgEbZ8/clip_image002_thumb.jpg?imgmax=800" style="border-bottom-color: initial; border-bottom-style: initial; border-bottom-width: 0px; border-left-color: initial; border-left-style: initial; border-left-width: 0px; border-right-color: initial; border-right-style: initial; border-right-width: 0px; border-top-color: initial; border-top-style: initial; border-top-width: 0px; display: inline;" title="clip_image002" width="244" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;b&gt;&lt;i&gt;Credenciais&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;
&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;O usuário default é&amp;nbsp;&lt;b&gt;&lt;i&gt;openfiler&lt;/i&gt;&lt;/b&gt;&amp;nbsp;e a senha é&amp;nbsp;&lt;b&gt;&lt;i&gt;password&lt;/i&gt;&lt;/b&gt;.Você também consegue logar como root,mas não terá acesso ao Openfile Storage Control Center .&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Após iniciar com o usuário padrão você pode trocar a senha e gerenciar os privilégios .&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;a href="http://lh4.ggpht.com/_6N0R_bIPWFw/S15aahAfy9I/AAAAAAAADMM/n-gegCkPYI0/s1600-h/clip_image004%5B3%5D.jpg"&gt;&lt;img alt="clip_image004" border="0" height="172" src="http://lh4.ggpht.com/_6N0R_bIPWFw/S15abbgg2BI/AAAAAAAADMQ/xnYP6UmA_8I/clip_image004_thumb.jpg?imgmax=800" style="border-bottom-color: initial; border-bottom-style: initial; border-bottom-width: 0px; border-left-color: initial; border-left-style: initial; border-left-width: 0px; border-right-color: initial; border-right-style: initial; border-right-width: 0px; border-top-color: initial; border-top-style: initial; border-top-width: 0px; display: inline;" title="clip_image004" width="244" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Abaixo o acesso ao sistema gerenciador do storage.&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;a href="http://lh5.ggpht.com/_6N0R_bIPWFw/S15acBOKAmI/AAAAAAAADMU/1CidzMZ5Yb4/s1600-h/clip_image006%5B4%5D.jpg"&gt;&lt;img alt="clip_image006" border="0" height="198" src="http://lh6.ggpht.com/_6N0R_bIPWFw/S15ae8jItbI/AAAAAAAADMY/qyYmzsZCbCM/clip_image006_thumb%5B1%5D.jpg?imgmax=800" style="border-bottom-color: initial; border-bottom-style: initial; border-bottom-width: 0px; border-left-color: initial; border-left-style: initial; border-left-width: 0px; border-right-color: initial; border-right-style: initial; border-right-width: 0px; border-top-color: initial; border-top-style: initial; border-top-width: 0px; display: inline;" title="clip_image006" width="400" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;De cara vamos alterar a senha do usuário openfiler .&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Visualizando a imagem acima siga até a aba Accounts,depois procure na barra lateral direita a opção Admin Password :&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_6N0R_bIPWFw/S2GGSVXgxII/AAAAAAAADMk/D5B6WlL7fkE/s1600-h/ScreenShot209.gif" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="190" src="http://1.bp.blogspot.com/_6N0R_bIPWFw/S2GGSVXgxII/AAAAAAAADMk/D5B6WlL7fkE/s400/ScreenShot209.gif" width="400" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Prestar bastante atenção na barra de status do navegados pois ele não informa nenhuma mensagem de "senha alterada com sucesso".Pelo menos eu não achei!&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Eu adicionei 2 discos a minha VM do Openfiler .No caso quero disponibilizar estes discos para uma instancia ASM de um dos meus servidores com Red Hat.Temos um trabalho a fazer que é instalar os pacotes iscsi no Red Hat.&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Vou dividir em outro posts a configuração do pacote iscsi-initiator-utils&amp;nbsp;Red Hat e depois voltamos a segunda &amp;nbsp;parte do gerenciamento do Openfiler.&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2523564552046105021-7071126909466808132?l=www.dbajccorrea.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.dbajccorrea.com/feeds/7071126909466808132/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2523564552046105021&amp;postID=7071126909466808132&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/7071126909466808132?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/7071126909466808132?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SimpleWrite-up/~3/_Z2FYMB4J1I/em-edicao-introducao-ao-openfiler_25.html" title="Instalação e overview do Openfiler – Gerenciador de NAS/SAN – Part 1" /><author><name>Júlio César Corrêa</name><uri>http://www.blogger.com/profile/16465498903177871508</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04550809630941347154" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_6N0R_bIPWFw/S2GGSVXgxII/AAAAAAAADMk/D5B6WlL7fkE/s72-c/ScreenShot209.gif" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.dbajccorrea.com/2010/01/em-edicao-introducao-ao-openfiler_25.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0UFQHgzfSp7ImA9WxBXFEw.&quot;"><id>tag:blogger.com,1999:blog-2523564552046105021.post-7963923837339402114</id><published>2010-01-24T17:53:00.004-02:00</published><updated>2010-01-25T08:26:51.685-02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-25T08:26:51.685-02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="open source" /><category scheme="http://www.blogger.com/atom/ns#" term="software livre" /><category scheme="http://www.blogger.com/atom/ns#" term="livre" /><category scheme="http://www.blogger.com/atom/ns#" term="repositorio" /><title>Repositório de código/softwares - SourceForge</title><content type="html">&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Resolvi postar esta informação em virtude de conversar com vários profissionais de tecnologia e muitos me diziam não conhecer este repositório de software livre chamado Source Forge.Lógico que com milhões de sites espalhados pela Web fica difícil conhecer todos os melhores,mas sempre que pudermos destacá-los será mais fácil para outros encontrarem o que desejam.&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Você pode acessar pelo link &amp;nbsp;:&amp;nbsp;&lt;a href="http://sourceforge.net/"&gt;http://sourceforge.net/&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Ele armazena muitos projetos open source e você mesmo pode cadastrar o seu projeto para que fique disponível ao público.&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Eu mesmo já baixei vários softwares para testar como software para time tracking,banco de dados entre outros.&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Mais &amp;nbsp;informações :&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;a href="http://en.wikipedia.org/wiki/SourceForge"&gt;http://en.wikipedia.org/wiki/SourceForge&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2523564552046105021-7963923837339402114?l=www.dbajccorrea.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.dbajccorrea.com/feeds/7963923837339402114/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2523564552046105021&amp;postID=7963923837339402114&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/7963923837339402114?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/7963923837339402114?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SimpleWrite-up/~3/G62a0Fv1jmE/repositorio-de-softwares-sourceforge.html" title="Repositório de código/softwares - SourceForge" /><author><name>Júlio César Corrêa</name><uri>http://www.blogger.com/profile/16465498903177871508</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04550809630941347154" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.dbajccorrea.com/2010/01/repositorio-de-softwares-sourceforge.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUMCSHsycSp7ImA9WxBQGEs.&quot;"><id>tag:blogger.com,1999:blog-2523564552046105021.post-8175309442221131435</id><published>2010-01-18T12:50:00.004-02:00</published><updated>2010-01-18T23:11:09.599-02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-18T23:11:09.599-02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="parameters" /><category scheme="http://www.blogger.com/atom/ns#" term="data pump" /><category scheme="http://www.blogger.com/atom/ns#" term="export" /><category scheme="http://www.blogger.com/atom/ns#" term="estimate" /><category scheme="http://www.blogger.com/atom/ns#" term="oracle" /><title>Oracle Data Pump  - Parameters : ESTIMATE_ONLY e ESTIMATE</title><content type="html">Me pediram para fazer &amp;nbsp;uma estimativa de tamanho de arquivo de dump extraído &amp;nbsp;Oracle do Data Pump para dois schemas em um DW.&lt;br /&gt;
&lt;br /&gt;
Rapidamente lembrei que existe a opção de "estimar" Export Data Pump.&lt;br /&gt;
&lt;br /&gt;
Usando os parâmetros ESTIMATE_ONLY=y e ESTIMATE=block ou statistics você consegue se antecipar &amp;nbsp;e saber quanto de tamanho irá precisar para armazenar o arquivo.&lt;br /&gt;
&lt;br /&gt;
Detalhe: Não é necessário especificar os parâmetros DIRECTORY e DUMPFILE.O resultado aparece ali na sua tela de execução mesmo.&lt;br /&gt;
&lt;br /&gt;
É isso .&lt;br /&gt;
&lt;br /&gt;
Vou deixar aqui um código de exemplo :&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-size: small; font-weight: normal;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;e&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;xpdp directory=data_pump_dir schemas=MY_AREAS,BI_JULIO estimate_only=y estimate=blocks&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;Username: "DBAJCCORREA"&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;Password:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;Connected to: Oracle Database 10g Release 10.2.0.4.0 - Production&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;Starting ""DBAJCCORREA""."SYS_EXPORT_SCHEMA_02": &amp;nbsp;"DBAJCCORREA"/******** directory&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;=data_pump_dir schemas=MY_AREAS,BI_JULIO estimate_only=y estimate=blocks&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;Estimate in progress using BLOCKS method...&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;. &amp;nbsp;estimated "BI_JULIO"."VENDAS" &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;1.5 GB&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;. &amp;nbsp;estimated "BI_JULIO"."SALES_REPORT" &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;844.1 MB&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;. &amp;nbsp;estimated "BI_JULIO"."RETORNO" &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; 200 MB&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;. &amp;nbsp;estimated "BI_JULIO"."CORTE" &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; 136 MB&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;. &amp;nbsp;estimated "BI_JULIO"."SITUACAO_CLIENTE" &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;112 MB&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;. &amp;nbsp;estimated "BI_JULIO"."CLIENTE" &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 63.12 MB&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;. &amp;nbsp;estimated "BI_JULIO"."CLIENTE_ABCDEFG" &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;46 MB&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;. &amp;nbsp;estimated "BI_JULIO"."OBJETIVO" &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; 40 MB&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;. &amp;nbsp;estimated "BI_JULIO"."PRODUTO" &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10.87 MB&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;. &amp;nbsp;estimated "BI_JULIO"."CMV" &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; 960 KB&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;. &amp;nbsp;estimated "BI_JULIO"."FILIAL" &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;960 KB&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;. &amp;nbsp;estimated "BI_JULIO"."PERIODO_DIA_OWB" &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 832 KB&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;. &amp;nbsp;estimated "BI_JULIO"."MOTIVO_CORTE" &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;704 KB&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;. &amp;nbsp;estimated "BI_JULIO"."PERIODO_DIA" &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 576 KB&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;. &amp;nbsp;estimated "BI_JULIO"."PRODUTO_ABCDEFG" &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 576 KB&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;. &amp;nbsp;estimated "BI_JULIO"."MOTIVO_RETORNO" &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;512 KB&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;. &amp;nbsp;estimated "BI_JULIO"."PERIODO" &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; 256 KB&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;. &amp;nbsp;estimated "BI_JULIO"."TIPO_LANCAMENTO" &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 128 KB&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;. &amp;nbsp;estimated "BI_JULIO"."WB_RT_VERSION_FLAG" &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 64 KB&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;Total estimation using BLOCKS method: 2.923 GB&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;Job ""DBAJCCORREA""."SYS_EXPORT_SCHEMA_02" successfully completed at 12:35:43&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Vou almoçar!Fui!&lt;br /&gt;
&lt;br /&gt;
Abs,&lt;br /&gt;
&lt;br /&gt;
Julio Cesar Correa&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2523564552046105021-8175309442221131435?l=www.dbajccorrea.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.dbajccorrea.com/feeds/8175309442221131435/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2523564552046105021&amp;postID=8175309442221131435&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/8175309442221131435?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/8175309442221131435?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SimpleWrite-up/~3/HQXQb0RAkgc/oracle-data-pump-parameters.html" title="Oracle Data Pump  - Parameters : ESTIMATE_ONLY e ESTIMATE" /><author><name>Júlio César Corrêa</name><uri>http://www.blogger.com/profile/16465498903177871508</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04550809630941347154" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.dbajccorrea.com/2010/01/oracle-data-pump-parameters.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEADSHw5fSp7ImA9WxBQFEQ.&quot;"><id>tag:blogger.com,1999:blog-2523564552046105021.post-1403774551841239341</id><published>2010-01-14T12:09:00.023-02:00</published><updated>2010-01-14T17:19:39.225-02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-14T17:19:39.225-02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="index" /><category scheme="http://www.blogger.com/atom/ns#" term="CREATE_INDEX_COST" /><category scheme="http://www.blogger.com/atom/ns#" term="capacity planning" /><title>Oracle 10g - Capacity Planning for Database Objects - Oracle 10g and later - Part 2</title><content type="html">Continuando o post anterior sobre Capacity Planning , vamos hoje fazer os cálculos para índice usando PL/SQL e ver como se faz isso via EM para índice e tabela.   &lt;br /&gt;
&lt;strong&gt;&lt;em&gt;&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div align="left"&gt;&lt;strong&gt;&lt;em&gt;Estimando tamanho do índice antes de sua criação&lt;/em&gt;&lt;/strong&gt;    &lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;&lt;span style="font-style: normal; font-weight: normal;"&gt;Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production&lt;/span&gt;        &lt;br /&gt;
&lt;span style="font-style: normal; font-weight: normal;"&gt;With the Partitioning, OLAP, Data Mining and Real Application Testing options&lt;/span&gt;        &lt;br /&gt;
&lt;span style="font-style: normal; font-weight: normal;"&gt;[oracle@jamaica ~]$ sqlplus dbajcc&lt;/span&gt;        &lt;br /&gt;
&lt;span style="font-style: normal; font-weight: normal;"&gt;         &lt;br /&gt;
&lt;/span&gt;&lt;span style="font-style: normal; font-weight: normal;"&gt;SQL*Plus: Release 10.2.0.4.0 - Production on Wed Jan 13 21:59:31 2010&lt;/span&gt;        &lt;br /&gt;
&lt;span style="font-style: normal; font-weight: normal;"&gt;Copyright (c) 1982, 2007, Oracle. All Rights Reserved.&lt;/span&gt;        &lt;br /&gt;
&lt;span style="font-style: normal; font-weight: normal;"&gt;Enter password:&lt;/span&gt;        &lt;br /&gt;
&lt;span style="font-style: normal; font-weight: normal;"&gt;Connected to:&lt;/span&gt;        &lt;br /&gt;
&lt;span style="font-style: normal; font-weight: normal;"&gt;Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production&lt;/span&gt;        &lt;br /&gt;
&lt;span style="font-style: normal; font-weight: normal;"&gt;With the Partitioning, OLAP, Data Mining and Real Application Testing options&lt;/span&gt;        &lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-style: normal; font-weight: normal;"&gt;dbajcc@OCADB on 13-JAN-10 &amp;gt;create table tst_index_cost as select owner,index_name,index_type from dba_indexes ;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left"&gt;&lt;strong&gt;&lt;em&gt;&lt;span style="font-style: normal; font-weight: normal;"&gt;Table created.&lt;/span&gt;        &lt;br /&gt;
&lt;span style="font-style: normal; font-weight: normal;"&gt;Elapsed: 00:00:03.29&lt;/span&gt;        &lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-style: normal; font-weight: normal;"&gt;dbajcc@OCADB on 13-JAN-10 &amp;gt;&lt;/span&gt;        &lt;br /&gt;
&lt;span style="font-style: normal; font-weight: normal;"&gt;dbajcc@OCADB on 13-JAN-10 &amp;gt;exec dbms_stats.gather_table_stats(ownname =&amp;gt; 'DBAJCC', tabname =&amp;gt; 'TST_INDEX_COST' , estimate_percent =&amp;gt; 100);&lt;/span&gt;        &lt;br /&gt;
&lt;/em&gt;&lt;span style="font-style: normal; font-weight: normal;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left"&gt;&lt;strong&gt;&lt;em&gt;&lt;span style="font-style: normal; font-weight: normal;"&gt;PL/SQL procedure successfully completed.&lt;/span&gt;        &lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-style: normal; font-weight: normal;"&gt;Elapsed: 00:00:00.12&lt;/span&gt;        &lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-style: normal; font-weight: normal;"&gt;dbajcc@OCADB on 13-JAN-10 &amp;gt;&lt;/span&gt;        &lt;br /&gt;
&lt;span style="font-style: normal; font-weight: normal;"&gt;&lt;a href="mailto:dbajcc@OCADB"&gt;dbajcc@OCADB&lt;/a&gt; on 13-JAN-10 &amp;gt;&lt;/span&gt;        &lt;br /&gt;
&lt;span style="font-style: normal; font-weight: normal;"&gt;&lt;a href="mailto:dbajcc@OCADB"&gt;dbajcc@OCADB&lt;/a&gt; on 13-JAN-10 &amp;gt;&lt;/span&gt;        &lt;br /&gt;
&lt;span style="font-style: normal; font-weight: normal;"&gt;&lt;a href="mailto:dbajcc@OCADB"&gt;dbajcc@OCADB&lt;/a&gt; on 13-JAN-10 &amp;gt;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;&lt;span style="font-style: normal; font-weight: normal;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;&lt;span style="font-style: normal; font-weight: normal;"&gt;declare&lt;/span&gt;        &lt;br /&gt;
&lt;span style="font-style: normal; font-weight: normal;"&gt;2&lt;/span&gt;        &lt;br /&gt;
&lt;span style="font-style: normal; font-weight: normal;"&gt;3 ub number;&lt;/span&gt;        &lt;br /&gt;
&lt;span style="font-style: normal; font-weight: normal;"&gt;4 ab number;&lt;/span&gt;        &lt;br /&gt;
&lt;span style="font-style: normal; font-weight: normal;"&gt;5&lt;/span&gt;        &lt;br /&gt;
&lt;span style="font-style: normal; font-weight: normal;"&gt;begin&lt;/span&gt;        &lt;br /&gt;
&lt;span style="font-style: normal; font-weight: normal;"&gt;6 DBMS_SPACE.CREATE_INDEX_COST ('create unique index tst_idx001 on dbajcc.tst_index_cost(owner,index_name) tablespace users_ind ',ub,ab) ;&lt;/span&gt;        &lt;br /&gt;
&lt;span style="font-style: normal; font-weight: normal;"&gt;7&lt;/span&gt;        &lt;br /&gt;
&lt;span style="font-style: normal; font-weight: normal;"&gt;DBMS_OUTPUT.PUT_LINE('Used Bytes: ' || TO_CHAR(ub));&lt;/span&gt;        &lt;br /&gt;
&lt;span style="font-style: normal; font-weight: normal;"&gt;8 DBMS_OUTPUT.PUT_LINE('Alloc Bytes: ' || TO_CHAR(ab));&lt;/span&gt;        &lt;br /&gt;
&lt;span style="font-style: normal; font-weight: normal;"&gt;9 10 end ;&lt;/span&gt;        &lt;br /&gt;
&lt;span style="font-style: normal; font-weight: normal;"&gt;11 12 / 13&lt;/span&gt;        &lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-style: normal; font-weight: normal;"&gt;Used Bytes: 64179&lt;/span&gt;        &lt;br /&gt;
&lt;span style="font-style: normal; font-weight: normal;"&gt;Alloc Bytes: 131072&lt;/span&gt;        &lt;br /&gt;
&lt;span style="font-style: normal; font-weight: normal;"&gt;         &lt;br /&gt;
&lt;/span&gt;&lt;span style="font-style: normal; font-weight: normal;"&gt;PL/SQL procedure successfully completed.&lt;/span&gt;        &lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-style: normal; font-weight: normal;"&gt;Elapsed: 00:00:01.21&lt;/span&gt;        &lt;br /&gt;
&lt;span style="font-style: normal; font-weight: normal;"&gt;&lt;a href="mailto:dbajcc@OCADB"&gt;dbajcc@OCADB&lt;/a&gt; on 13-JAN-10 &amp;gt;&lt;/span&gt;        &lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-style: normal; font-weight: normal;"&gt;Como visto o nosso índice&amp;nbsp;&lt;strong&gt;&lt;em&gt;&lt;span style="font-style: normal; font-weight: normal;"&gt;&lt;span style="font-style: normal; font-weight: normal;"&gt;&lt;em&gt;&lt;strong&gt;tst_idx001&amp;nbsp;&lt;span style="font-style: normal; font-weight: normal;"&gt;&lt;em&gt;&lt;strong&gt;&lt;span style="font-style: normal; font-weight: normal;"&gt;para a tabela&amp;nbsp;&lt;strong&gt;&lt;em&gt;tst_index_cost &lt;span style="font-style: normal; font-weight: normal;"&gt;usará&amp;nbsp;&lt;strong&gt;&lt;em&gt;&lt;span style="font-style: normal;"&gt;64179&lt;/span&gt; &lt;span style="font-style: normal;"&gt;bytes ou 62,7KB&lt;/span&gt; &lt;span style="font-style: normal; font-weight: normal;"&gt;para dados e ocupará&amp;nbsp;&lt;strong&gt;&lt;em&gt;&lt;span style="font-style: normal;"&gt;131072&lt;/span&gt; &lt;span style="font-style: normal;"&gt;bytes ou 128 KB&lt;/span&gt; &lt;span style="font-style: normal; font-weight: normal;"&gt;dentro da tablespace&amp;nbsp;&lt;strong&gt;&lt;em&gt;users_ind &lt;span style="font-style: normal; font-weight: normal;"&gt;.&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="display: inline !important; margin: 0px;"&gt;&lt;div style="display: inline !important;"&gt;&lt;div style="display: inline !important; margin: 0px;"&gt;&lt;div style="display: inline !important; margin: 0px;"&gt;&lt;div style="display: inline !important; margin: 0px;"&gt;&lt;div style="display: inline !important; margin: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="display: inline !important;"&gt;&lt;strong&gt;&lt;em&gt;&lt;span style="font-style: normal; font-weight: normal;"&gt;&lt;span style="font-style: normal; font-weight: normal;"&gt;Oks?!&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;span style="font-style: normal; font-weight: normal;"&gt;&lt;strong&gt;&lt;em&gt;Estimando tamanho do índice via EM&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-style: normal; font-weight: normal;"&gt;&lt;strong&gt;&lt;em&gt;&lt;br /&gt;
&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-style: normal; font-weight: normal;"&gt;No EM é muito simples também :&lt;/span&gt;    &lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://1.bp.blogspot.com/_6N0R_bIPWFw/S08dpMATn-I/AAAAAAAADG8/PNIKf2hlEvo/s1600-h/ScreenShot194.gif" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="258" src="http://1.bp.blogspot.com/_6N0R_bIPWFw/S08dpMATn-I/AAAAAAAADG8/PNIKf2hlEvo/s640/ScreenShot194.gif" width="640" /&gt;&lt;/a&gt; &lt;a href="http://1.bp.blogspot.com/_6N0R_bIPWFw/S08dpMATn-I/AAAAAAAADG8/PNIKf2hlEvo/s1600-h/ScreenShot194.gif" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;     &lt;br /&gt;
&lt;/a&gt;&lt;a href="http://1.bp.blogspot.com/_6N0R_bIPWFw/S08dpMATn-I/AAAAAAAADG8/PNIKf2hlEvo/s1600-h/ScreenShot194.gif" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;     &lt;br /&gt;
&lt;/a&gt;&lt;a href="http://1.bp.blogspot.com/_6N0R_bIPWFw/S08dpMATn-I/AAAAAAAADG8/PNIKf2hlEvo/s1600-h/ScreenShot194.gif" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;     &lt;br /&gt;
&lt;/a&gt;&lt;a href="http://1.bp.blogspot.com/_6N0R_bIPWFw/S08dpMATn-I/AAAAAAAADG8/PNIKf2hlEvo/s1600-h/ScreenShot194.gif" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;     &lt;br /&gt;
&lt;/a&gt;&lt;a href="http://1.bp.blogspot.com/_6N0R_bIPWFw/S08dpMATn-I/AAAAAAAADG8/PNIKf2hlEvo/s1600-h/ScreenShot194.gif" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;     &lt;br /&gt;
&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;img border="0" height="334" src="http://2.bp.blogspot.com/_6N0R_bIPWFw/S08fe0ExsrI/AAAAAAAADHE/bbqG58CtAx8/s640/ScreenShot195.gif" width="632" /&gt;    &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Dentro da seção acima seguir acessando a tab SCHEMA ,dentro de SCHEMA procurar por INDEXES :&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_6N0R_bIPWFw/S08i1k62BjI/AAAAAAAADHM/EyAhlE11ZGU/s1600-h/ScreenShot196.gif" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="299" src="http://2.bp.blogspot.com/_6N0R_bIPWFw/S08i1k62BjI/AAAAAAAADHM/EyAhlE11ZGU/s640/ScreenShot196.gif" width="640" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
Agora vamos fazer o mesmo que fizemos usando PL/SQL para estimar o tamanho do Index&amp;nbsp;&lt;strong&gt;&lt;em&gt;&lt;span style="font-style: normal; font-weight: normal;"&gt;&lt;em&gt;&lt;strong&gt;tst_idx001 :&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;div style="display: inline !important; margin: 0px;"&gt;&lt;em&gt;&lt;span style="font-style: normal;"&gt;&lt;em&gt;Observe o passo-a-passo de cada tela :&lt;/em&gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="display: inline !important; margin: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_6N0R_bIPWFw/S08jZXZubHI/AAAAAAAADHU/4bQ2E-XOwxo/s1600-h/ScreenShot197.gif" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="255" src="http://1.bp.blogspot.com/_6N0R_bIPWFw/S08jZXZubHI/AAAAAAAADHU/4bQ2E-XOwxo/s640/ScreenShot197.gif" width="640" /&gt;&lt;/a&gt; &lt;a href="http://1.bp.blogspot.com/_6N0R_bIPWFw/S08jZXZubHI/AAAAAAAADHU/4bQ2E-XOwxo/s1600-h/ScreenShot197.gif" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;         &lt;br /&gt;
&lt;/a&gt;&lt;a href="http://1.bp.blogspot.com/_6N0R_bIPWFw/S08jZXZubHI/AAAAAAAADHU/4bQ2E-XOwxo/s1600-h/ScreenShot197.gif" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;         &lt;br /&gt;
&lt;/a&gt;&lt;a href="http://1.bp.blogspot.com/_6N0R_bIPWFw/S08jZXZubHI/AAAAAAAADHU/4bQ2E-XOwxo/s1600-h/ScreenShot197.gif" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;         &lt;br /&gt;
&lt;/a&gt;&lt;a href="http://1.bp.blogspot.com/_6N0R_bIPWFw/S08jZXZubHI/AAAAAAAADHU/4bQ2E-XOwxo/s1600-h/ScreenShot197.gif" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;         &lt;br /&gt;
&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Voltando a tab "General" usar o botão bem sugestivo "Estimate Index Size" :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin: 0px;"&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_6N0R_bIPWFw/S08kj144HfI/AAAAAAAADHs/bNEhmlR4eXw/s1600-h/ScreenShot201.gif" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="318" src="http://1.bp.blogspot.com/_6N0R_bIPWFw/S08kj144HfI/AAAAAAAADHs/bNEhmlR4eXw/s640/ScreenShot201.gif" width="640" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;Vamos ver o que foi gerado :&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_6N0R_bIPWFw/S08kvRtqcSI/AAAAAAAADH0/FCnrZl2cF2g/s1600-h/ScreenShot202.gif" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="200" src="http://1.bp.blogspot.com/_6N0R_bIPWFw/S08kvRtqcSI/AAAAAAAADH0/FCnrZl2cF2g/s640/ScreenShot202.gif" width="640" /&gt;&lt;/a&gt; &lt;a href="http://1.bp.blogspot.com/_6N0R_bIPWFw/S08kvRtqcSI/AAAAAAAADH0/FCnrZl2cF2g/s1600-h/ScreenShot202.gif" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;           &lt;br /&gt;
&lt;/a&gt;&lt;a href="http://1.bp.blogspot.com/_6N0R_bIPWFw/S08kvRtqcSI/AAAAAAAADH0/FCnrZl2cF2g/s1600-h/ScreenShot202.gif" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;           &lt;br /&gt;
&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Podem ver que é o mesmo resultado da etapa anterior usando o bloco PL/SQL &lt;strong&gt;62,67KB&lt;/strong&gt; ou &lt;strong&gt;62,7KB .&lt;/strong&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;Para estimar o tamanho de uma tabela é tão simples como fazer paara índices :&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;- preencha as informações na tab TABLES dentro da seção SCHEMA e acesse o botão "Estimate table size" .&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;Não vou colocar o exemplo para não ficar extenso demais.&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;É isso.&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;Julio Cesar Correa&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2523564552046105021-1403774551841239341?l=www.dbajccorrea.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.dbajccorrea.com/feeds/1403774551841239341/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2523564552046105021&amp;postID=1403774551841239341&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/1403774551841239341?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/1403774551841239341?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SimpleWrite-up/~3/kQZSt-wD9-E/oracle-10g-capacity-planning-for_14.html" title="Oracle 10g - Capacity Planning for Database Objects - Oracle 10g and later - Part 2" /><author><name>Júlio César Corrêa</name><uri>http://www.blogger.com/profile/16465498903177871508</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04550809630941347154" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_6N0R_bIPWFw/S08dpMATn-I/AAAAAAAADG8/PNIKf2hlEvo/s72-c/ScreenShot194.gif" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.dbajccorrea.com/2010/01/oracle-10g-capacity-planning-for_14.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D04GRXk-eip7ImA9WxBQFUg.&quot;"><id>tag:blogger.com,1999:blog-2523564552046105021.post-5529318951530639454</id><published>2010-01-14T10:42:00.001-02:00</published><updated>2010-01-15T09:45:24.752-02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-15T09:45:24.752-02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ORACLE_HOME_LISTNER" /><category scheme="http://www.blogger.com/atom/ns#" term="Listener" /><category scheme="http://www.blogger.com/atom/ns#" term="ORACLE_HOME_LISTNER is not SET" /><category scheme="http://www.blogger.com/atom/ns#" term="dbshut" /><category scheme="http://www.blogger.com/atom/ns#" term="error" /><category scheme="http://www.blogger.com/atom/ns#" term="dbstart" /><category scheme="http://www.blogger.com/atom/ns#" term="database" /><category scheme="http://www.blogger.com/atom/ns#" term="oracle" /><title>Solucionando a falha do dbstart e dbshut : " ORACLE_HOME_LISTNER is not SET, unable to auto-stop Oracle Net Listener "</title><content type="html">&lt;p&gt;Uma dica que já deveria ter postado é como solucionar o problema do dbstart e do dbshut quando ocorre o erro : ORACLE_HOME_LISTNER is not SET, unable to auto-stop Oracle Net Listener .&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;Partindo de que o /etc/oratab já está Ok e com a opção "Y" edite os arquivos $ORACLE/bin/dbstart e $ORACLE/bin/dbshut com o editor vi e procure logo no começo do arquivo pela entrada :&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;# The this to bring down Oracle Net Listener&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;&lt;strong&gt;ORACLE_HOME_LISTNER=$1&lt;/strong&gt;&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;No lugar de &lt;strong&gt;$1&lt;/strong&gt; altere para $ORACLE_HOME ,com isto a entrada ficará assim :&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;&lt;strong&gt;# The this to bring down Oracle Net Listener&lt;/strong&gt;&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;&lt;strong&gt;ORACLE_HOME_LISTNER=$ORACLE_HOME&lt;/strong&gt;&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;Obs.Tenha a sua variável $ORACLE_HOME no seu arquivo .profile/.bash_profile ou terá que colocar manualmente no shell na hora da execução.&lt;/p&gt;&lt;br /&gt;&lt;div&gt;Teste novamente os scripts .&lt;/div&gt;&lt;br /&gt;&lt;div&gt;Espero que este post seja útil.&lt;/div&gt;&lt;br /&gt;&lt;div&gt;Julio Cesar Correa&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;strong&gt;&lt;br/&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2523564552046105021-5529318951530639454?l=www.dbajccorrea.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.dbajccorrea.com/feeds/5529318951530639454/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2523564552046105021&amp;postID=5529318951530639454&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/5529318951530639454?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/5529318951530639454?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SimpleWrite-up/~3/oO6r7Xbxv0o/oracle-database-solucionando-falha-do.html" title="Solucionando a falha do dbstart e dbshut : &amp;quot; ORACLE_HOME_LISTNER is not SET, unable to auto-stop Oracle Net Listener &amp;quot;" /><author><name>Júlio César Corrêa</name><uri>http://www.blogger.com/profile/16465498903177871508</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04550809630941347154" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.dbajccorrea.com/2010/01/oracle-database-solucionando-falha-do.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEcDSH47eSp7ImA9WxBQFEo.&quot;"><id>tag:blogger.com,1999:blog-2523564552046105021.post-7546803151367821342</id><published>2010-01-13T15:02:00.005-02:00</published><updated>2010-01-14T10:27:59.001-02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-14T10:27:59.001-02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="dbms_space" /><category scheme="http://www.blogger.com/atom/ns#" term="enterprise manager" /><category scheme="http://www.blogger.com/atom/ns#" term="table cost" /><category scheme="http://www.blogger.com/atom/ns#" term="pl/sql" /><category scheme="http://www.blogger.com/atom/ns#" term="database" /><category scheme="http://www.blogger.com/atom/ns#" term="estimate" /><category scheme="http://www.blogger.com/atom/ns#" term="oracle" /><category scheme="http://www.blogger.com/atom/ns#" term="capacity planning" /><title>Oracle 10g - Capacity Planning for Database Objects - Oracle 10g and later - Part 1</title><content type="html">&lt;b&gt;&lt;i&gt;Introdução&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
Segundo a documentação da Oracle existe duas formas de fazer o "Capacity Planning" usando o próprio Oracle Database :&lt;br /&gt;
&lt;br /&gt;
- Usando a package DBMS_SPACE via código PL/SQL ou&lt;br /&gt;
- EM Database Control ou Grid Control&lt;br /&gt;
&lt;br /&gt;
Na própria documentação do Oracle 10g ou 11g temos &amp;nbsp;exemplos de como fazer isso.&lt;br /&gt;
&lt;br /&gt;
Vamos abordar primeiro via PL/SQL no Oracle 10gr2 - 10.2.0.4 .&lt;br /&gt;
&lt;br /&gt;
É possível estimar tamanho para Tabela e Índice mas para ser prático faremos somente de tabelas,que é normalmente onde se concentrará os esforços para estimar tamanho de schemas e de banco de dados que residirão nos tablespaces.Isto facilitará a organização nos tablespaces e arquivos de dados.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;i&gt;Estimativa para tabelas&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Vamos usar um exemplo de uma tabela de pedidos com 7.000 pedidos diários.&lt;br /&gt;
A nossa tabela MY_ORDERS(qualquer semelhança é mera coincidência) tem a seguinte estrutura :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;ORDER_ID &amp;nbsp; &amp;nbsp; NOT NULL NUMBER(12)&lt;br /&gt;
&amp;nbsp;ORDER_DATE &amp;nbsp; NOT NULL TIMESTAMP(6) WITH LOCAL TIME ZONE&lt;br /&gt;
&amp;nbsp;ORDER_MODE &amp;nbsp; VARCHAR2(8)&lt;br /&gt;
&amp;nbsp;CUSTOMER_ID &amp;nbsp;NOT NULL NUMBER(6)&lt;br /&gt;
&amp;nbsp;ORDER_STATUS NUMBER(2)&lt;br /&gt;
&amp;nbsp;ORDER_TOTAL &amp;nbsp;NUMBER(8,2)&lt;br /&gt;
&amp;nbsp;SALES_REP_ID NUMBER(6)&lt;br /&gt;
&amp;nbsp;PROMOTION_ID NUMBER(6)&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;Abaixo o resultado para o nosso teste :&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_6N0R_bIPWFw/S036fXZWcPI/AAAAAAAADG0/h3Z-208jcdw/s1600-h/ScreenShot193.gif" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="485" src="http://3.bp.blogspot.com/_6N0R_bIPWFw/S036fXZWcPI/AAAAAAAADG0/h3Z-208jcdw/s640/ScreenShot193.gif" width="640" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Podemos ver na imagem acima que esta tabela crescerá &amp;nbsp;303104 bytes por dia segundo a média de pedidos/dia e considerando &amp;nbsp;que este numero de pedidos diários não mudará teremos 8,67MB ou 9MB por mês a mais em dados.O tamanho total ocupado pela nossa tabela ORDERS na tablespace será de 327680 bytes inicialmente ou 320 KB .Relativamente pequeno.Mas se olharmos para um modelos de dados digamos que de médio porte veremos que fica mais trabalhoso fazer as estimativas para um determinado banco de dados.&lt;br /&gt;
&lt;br /&gt;
No próximo exemplo faremos a estimativa de índices usando PL/SQL &amp;nbsp;e estimativa de tabela e índice usando EM.&lt;br /&gt;
&lt;br /&gt;
Abs,&lt;br /&gt;
&lt;br /&gt;
Julio Cesar Correa&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2523564552046105021-7546803151367821342?l=www.dbajccorrea.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.dbajccorrea.com/feeds/7546803151367821342/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2523564552046105021&amp;postID=7546803151367821342&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/7546803151367821342?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/7546803151367821342?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SimpleWrite-up/~3/ERrAwGkA_I0/oracle-10g-capacity-planning-for.html" title="Oracle 10g - Capacity Planning for Database Objects - Oracle 10g and later - Part 1" /><author><name>Júlio César Corrêa</name><uri>http://www.blogger.com/profile/16465498903177871508</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04550809630941347154" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_6N0R_bIPWFw/S036fXZWcPI/AAAAAAAADG0/h3Z-208jcdw/s72-c/ScreenShot193.gif" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.dbajccorrea.com/2010/01/oracle-10g-capacity-planning-for.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C08AQ3ozcSp7ImA9WxBQE0U.&quot;"><id>tag:blogger.com,1999:blog-2523564552046105021.post-4955966452712956497</id><published>2010-01-13T09:24:00.000-02:00</published><updated>2010-01-13T09:24:02.489-02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-13T09:24:02.489-02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="alter table" /><category scheme="http://www.blogger.com/atom/ns#" term="set unused" /><category scheme="http://www.blogger.com/atom/ns#" term="drop table" /><category scheme="http://www.blogger.com/atom/ns#" term="oracle" /><title>1Z0-047 - SQL Expert - ALTER TABLE SET UNUSED</title><content type="html">Nos estudos deste exame notei que caiu várias questões sobre o assunto do comando ALTER TABLE com a opção SET UNSED.Outra dica é estudar além do óbivio.Como assim além do óbivio?Pois bem &amp;nbsp;percebo que nos exames é que as questões não visam somente avaliar se conhecemos o básicos como comandos,mas sim o que eles fazem além daquilo,se tem volta,o causam,o que é possívem reverter o que não é,existe outra forma de fazer tal coisa?É isso que percebi que eles exigem.&lt;br /&gt;
&lt;br /&gt;
Pensando nisso vou escrever posts relacionados ao com as questões mais intrigantes do exame e fazer a prova prática que pro sinal é o mais interessante.&lt;br /&gt;
&lt;br /&gt;
Vamos ao que interessa :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--Cria tabela com constraint CHECK em uma das colunas&lt;br /&gt;
&lt;br /&gt;
[oracle@jamaica ~]$ sqlplus dbajcc&lt;br /&gt;
&lt;br /&gt;
SQL*Plus: Release 10.2.0.4.0 - Production on Tue Jan 12 07:16:32 2010&lt;br /&gt;
&lt;br /&gt;
Copyright (c) 1982, 2007, Oracle. &amp;nbsp;All Rights Reserved.&lt;br /&gt;
&lt;br /&gt;
Enter password:&lt;br /&gt;
&lt;br /&gt;
Connected to:&lt;br /&gt;
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production&lt;br /&gt;
With the Partitioning, OLAP, Data Mining and Real Application Testing options&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
dbajcc@OCADB on 12-JAN-10 &amp;gt;create table tst_column_unused (col1 number,col2 varchar2(40),col3 number(3)&lt;br /&gt;
constraint check_col3 check (col3 &amp;gt; 4)) ;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;2&lt;br /&gt;
-- insere dados na tabela tst_column_unused&lt;br /&gt;
insert into tst_column_unused select 1,'primeira linha',6 from dual ;&lt;br /&gt;
&lt;br /&gt;
insert into tst_column_unused select 1,'segunda linha',7 from dual;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-- Cria tabela com campo LONG&lt;br /&gt;
&lt;br /&gt;
create table tst_column_unused2(col1 number,col2 long,col3 number(2)) ;&lt;br /&gt;
&lt;br /&gt;
--insere dados na tabela tst_column_unused2&lt;br /&gt;
&lt;br /&gt;
insert into tst_column_unused2 values(1,'texto muito longo',1) ;&lt;br /&gt;
&lt;br /&gt;
commit ;&lt;br /&gt;
Table created.&lt;br /&gt;
&lt;br /&gt;
Elapsed: 00:00:00.06&lt;br /&gt;
dbajcc@OCADB on 12-JAN-10 &amp;gt;dbajcc@OCADB on 12-JAN-10 &amp;gt;dbajcc@OCADB on 12-JAN-10 &amp;gt;&lt;br /&gt;
1 row created.&lt;br /&gt;
&lt;br /&gt;
Elapsed: 00:00:00.02&lt;br /&gt;
dbajcc@OCADB on 12-JAN-10 &amp;gt;dbajcc@OCADB on 12-JAN-10 &amp;gt;&lt;br /&gt;
1 row created.&lt;br /&gt;
&lt;br /&gt;
Elapsed: 00:00:00.01&lt;br /&gt;
dbajcc@OCADB on 12-JAN-10 &amp;gt;dbajcc@OCADB on 12-JAN-10 &amp;gt;dbajcc@OCADB on 12-JAN-10 &amp;gt;dbajcc@OCADB on 12-JAN-10 &amp;gt;dbajcc@OCADB on 12-JAN-10 &amp;gt;&lt;br /&gt;
Table created.&lt;br /&gt;
&lt;br /&gt;
Elapsed: 00:00:00.04&lt;br /&gt;
dbajcc@OCADB on 12-JAN-10 &amp;gt;dbajcc@OCADB on 12-JAN-10 &amp;gt;dbajcc@OCADB on 12-JAN-10 &amp;gt;dbajcc@OCADB on 12-JAN-10 &amp;gt;&lt;br /&gt;
1 row created.&lt;br /&gt;
&lt;br /&gt;
Elapsed: 00:00:00.02&lt;br /&gt;
dbajcc@OCADB on 12-JAN-10 &amp;gt;dbajcc@OCADB on 12-JAN-10 &amp;gt;&lt;br /&gt;
&lt;br /&gt;
Commit complete.&lt;br /&gt;
&lt;br /&gt;
Elapsed: 00:00:00.01&lt;br /&gt;
dbajcc@OCADB on 12-JAN-10 &amp;gt;&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Após o SET &amp;nbsp;UNUSED :&lt;br /&gt;
&lt;br /&gt;
1) Quando você faz um SET UNUSED em uma columa não existe a opção SET USED,como é um DDL so sorry.Você também não consegue mais visualizá-la com o comando DESCRIBE&lt;br /&gt;
&lt;br /&gt;
2)Depois de executar SET UNUSED os dados continuam lá na coluna porém&amp;nbsp;inacessível&amp;nbsp;até você executar um DROP.O espaço utilizado pela coluna na tabela também não é liberado até o DROP COLUMN.&lt;br /&gt;
&lt;br /&gt;
3)Você consegue criar uma coluna com o mesmo nome da anterior exceto se a coluna que está com o SET UNUSED for do tipo LONG&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
dbajcc@OCADB on 12-JAN-10 &amp;gt;select * from tst_column_unused ;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;COL1 COL2 &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; COL3&lt;br /&gt;
---------- ---------------------------------------- ----------&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 primeira linha &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; &amp;nbsp; &amp;nbsp;6&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 segunda linha &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; &amp;nbsp; &amp;nbsp; 7&lt;br /&gt;
&lt;br /&gt;
Elapsed: 00:00:00.02&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
dbajcc@OCADB on 12-JAN-10 &amp;gt;select constraint_name,constraint_type ,table_name,status&lt;br /&gt;
from user_constraints&lt;br /&gt;
where table_name = upper('tst_column_unused') ; &amp;nbsp;2 &amp;nbsp; &amp;nbsp;3&lt;br /&gt;
&lt;br /&gt;
CONSTRAINT_NAME &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;C TABLE_NAME &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; STATUS&lt;br /&gt;
------------------------------ - ------------------------------ --------&lt;br /&gt;
CHECK_COL3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C TST_COLUMN_UNUSED &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ENABLED&lt;br /&gt;
&lt;br /&gt;
Elapsed: 00:00:00.01&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
dbajcc@OCADB on 12-JAN-10 &amp;gt;select * from tst_column_unused2;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;COL1 COL2 &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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; COL3&lt;br /&gt;
---------- -------------------------------------------------------------------------------- ----------&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 texto muito longo &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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;br /&gt;
&lt;br /&gt;
Elapsed: 00:00:00.03&lt;br /&gt;
dbajcc@OCADB on 12-JAN-10 &amp;gt;&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Vamos colocar a columa col3 da tabela&amp;nbsp;tst_column_unused como UNUSED :&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;div&gt;dbajcc@OCADB on 12-JAN-10 &amp;gt;alter table tst_column_unused set unused column col3 ;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Table altered.&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Elapsed: 00:00:00.29&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;dbajcc@OCADB on 12-JAN-10 &amp;gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Neste momento a coluna está pronta para DROP.O DROP também se torna mais rápido que se fossemos executar o DROP diretamente.&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Vamos executar um DESCRIBE&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;dbajcc@OCADB on 12-JAN-10 &amp;gt;describe tst_column_unused ;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&amp;nbsp;Name &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; &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; &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; &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; &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; Null? &amp;nbsp; &amp;nbsp; Type&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&amp;nbsp;----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------- --------------------------------------------------------------------------------------------------------------------&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&amp;nbsp;COL1 &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; &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; &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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NUMBER&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&amp;nbsp;COL2 &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; &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; &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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;VARCHAR2(40)&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Como visto ela não está mais disponível.&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Vamos ver a constraint que tinhamos nesta coluna :&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;div&gt;dbajcc@OCADB on 12-JAN-10 &amp;gt;select constraint_name,constraint_type ,table_name,status&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;from user_constraints&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;where table_name = upper('tst_column_unused') ; &amp;nbsp;2 &amp;nbsp; &amp;nbsp;3&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;no rows selected&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Elapsed: 00:00:00.01&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;dbajcc@OCADB on 12-JAN-10 &amp;gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Nervoso hein?&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Vamos criar uma coluna com o mesmo nome :&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;div&gt;dbajcc@OCADB on 12-JAN-10 &amp;gt;alter table tst_column_unused add &amp;nbsp;col3 number(3) ;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Table altered.&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Elapsed: 00:00:00.02&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Agora vamos fazer o DROP da coluna que está com SET UNUSED :&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;div&gt;dbajcc@OCADB on 12-JAN-10 &amp;gt;select * from user_unused_col_tabs ;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;TABLE_NAME &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;COUNT&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;------------------------------ ----------&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;TESTE_DEL &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; 1&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;TST_COLUMN_UNUSED &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Elapsed: 00:00:00.02&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Temos duas tabelas entre elas a que estamos fazendo o teste.&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;div&gt;dbajcc@OCADB on 12-JAN-10 &amp;gt;alter table tst_column_unused drop unused columns ;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Table altered.&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Elapsed: 00:00:00.62&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;dbajcc@OCADB on 12-JAN-10 &amp;gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;div&gt;dbajcc@OCADB on 12-JAN-10 &amp;gt;select * from user_unused_col_tabs ;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;TABLE_NAME &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;COUNT&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;------------------------------ ----------&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;TESTE_DEL &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; 1&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Elapsed: 00:00:00.01&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;dbajcc@OCADB on 12-JAN-10 &amp;gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&amp;nbsp;Ok.&lt;br /&gt;
&lt;br /&gt;
Outra coisa interessante é sobre as tabelas com &amp;nbsp;colunas com datatype LONG &amp;nbsp;que depois de ter marcado ela como UNUSED você não consegue adicionar outra coluna no lugar dela.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
dbajcc@OCADB on 12-JAN-10 &amp;gt;alter table tst_column_unused2 set unused column col2;&lt;br /&gt;
&lt;br /&gt;
Table altered.&lt;br /&gt;
&lt;br /&gt;
Elapsed: 00:00:00.31&lt;br /&gt;
dbajcc@OCADB on 12-JAN-10 &amp;gt;select * from user_unused_col_tabs ;&lt;br /&gt;
&lt;br /&gt;
TABLE_NAME &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;COUNT&lt;br /&gt;
------------------------------ ----------&lt;br /&gt;
TESTE_DEL &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; 1&lt;br /&gt;
TST_COLUMN_UNUSED2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;br /&gt;
&lt;br /&gt;
Elapsed: 00:00:00.07&lt;br /&gt;
dbajcc@OCADB on 12-JAN-10 &amp;gt;alter table tst_column_unused2 add col4 long ;&lt;br /&gt;
alter table tst_column_unused2 add col4 long&lt;br /&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; &amp;nbsp; &amp;nbsp; *&lt;br /&gt;
ERROR at line 1:&lt;br /&gt;
ORA-01754: a table may contain only one column of type LONG&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Elapsed: 00:00:00.01&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;div&gt;dbajcc@OCADB on 12-JAN-10 &amp;gt;alter table tst_column_unused2 drop unused columns ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Table altered.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Elapsed: 00:00:00.26&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;div&gt;dbajcc@OCADB on 12-JAN-10 &amp;gt;select * from user_unused_col_tabs ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;TABLE_NAME &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;COUNT&lt;/div&gt;&lt;div&gt;------------------------------ ----------&lt;/div&gt;&lt;div&gt;TESTE_DEL &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; 1&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Elapsed: 00:00:00.01&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;div&gt;dbajcc@OCADB on 12-JAN-10 &amp;gt;drop table tst_column_unused ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Table dropped.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Elapsed: 00:00:00.17&lt;/div&gt;&lt;div&gt;dbajcc@OCADB on 12-JAN-10 &amp;gt;drop table tst_column_unused2 ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Table dropped.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Elapsed: 00:00:00.04&lt;/div&gt;&lt;div&gt;dbajcc@OCADB on 12-JAN-10 &amp;gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Encontrei muitas questões nos simulados sobre SET UNSED,porém particularmente eu não gosto muito desta opção!&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Abs,&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Julio Cesar Correa&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2523564552046105021-4955966452712956497?l=www.dbajccorrea.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.dbajccorrea.com/feeds/4955966452712956497/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2523564552046105021&amp;postID=4955966452712956497&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/4955966452712956497?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/4955966452712956497?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SimpleWrite-up/~3/SuVdkI3fAho/1z0-047-sql-expert-alter-table-set.html" title="1Z0-047 - SQL Expert - ALTER TABLE SET UNUSED" /><author><name>Júlio César Corrêa</name><uri>http://www.blogger.com/profile/16465498903177871508</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04550809630941347154" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.dbajccorrea.com/2010/01/1z0-047-sql-expert-alter-table-set.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0QER3w5eCp7ImA9WxBQE0w.&quot;"><id>tag:blogger.com,1999:blog-2523564552046105021.post-2290078146322688215</id><published>2010-01-12T01:05:00.004-02:00</published><updated>2010-01-12T13:48:26.220-02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-12T13:48:26.220-02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="comandos" /><category scheme="http://www.blogger.com/atom/ns#" term="alias" /><category scheme="http://www.blogger.com/atom/ns#" term="unix" /><category scheme="http://www.blogger.com/atom/ns#" term="LINUX" /><title>Abreviando comandos no Linux - Alias</title><content type="html">Uma opção bem legal para quem ainda não conhece são o uso de &lt;strong&gt;aliases&lt;/strong&gt; no Linux.&lt;br /&gt;
&lt;br /&gt;
Usando &lt;em&gt;alias&lt;/em&gt; temos a possibilidade  de reduzir enormemente o numero  de comandos  que digitamos no shell bem como o tempo de acesso a determinado arquivo ou diretório.&lt;br /&gt;
&lt;br /&gt;
Ex. Os comandos como ls,cd rm sao abreviações de comandos maiores!!&lt;br /&gt;
&lt;br /&gt;
Para mim o uso é bem aproveitado quando usamos ou acessamos determinados diretorio,variaveis de ambiente muitas vezes ao dia ou durante a nossa semana de trabalho.&lt;br /&gt;
&lt;br /&gt;
No meu caso como não sou especialista em Linux todas as funções que uso são normalmente para me auxiliar na administração de banco de dados Oracle ou em casa usando o Ubuntu,com estou fazendo agora!!&lt;br /&gt;
&lt;br /&gt;
Faço o &amp;nbsp;seguinte para criar &lt;em&gt;alias&lt;/em&gt; :&lt;br /&gt;
&lt;br /&gt;
Edito o meu arquivo &lt;em&gt;.bash_profile&lt;/em&gt; que fica na home do meu usuário para que toda vez que entre no shell possa acessá-los.&lt;br /&gt;
&lt;br /&gt;
Vamos a um exemplo .Digamos que eu fosse acessar meu diretório Documents desta forma :&lt;br /&gt;
&lt;br /&gt;
je@ubuntu:~$ ls&lt;br /&gt;
&lt;br /&gt;
Desktop  Documents  Downloads  examples.desktop  Music  Pictures  Public  Templates  Videos&lt;br /&gt;
&lt;br /&gt;
je@ubuntu:~$ cd Documents/&lt;br /&gt;
&lt;br /&gt;
je@ubuntu:~/Documents$ ls&lt;br /&gt;
&lt;br /&gt;
je@ubuntu:~/Documents$ pwd&lt;br /&gt;
&lt;br /&gt;
/home/je/Documents&lt;br /&gt;
&lt;br /&gt;
je@ubuntu:~/Documents$ &lt;br /&gt;
&lt;br /&gt;
Neste caso poderia criar o alias mydoc assim :&lt;br /&gt;
&lt;br /&gt;
alias mydoc ='cd /home/je/Documents'&lt;br /&gt;
&lt;br /&gt;
Depois coloco este código dentro do meu .bashrc,.bash_profile ou  o .profile usando o editor vi por exemplo.&lt;br /&gt;
&lt;br /&gt;
ex.&lt;br /&gt;
&lt;br /&gt;
vi /home/je/.bashrc&lt;br /&gt;
...&lt;br /&gt;
je@ubuntu:~$ more .bashrc&lt;br /&gt;
...&lt;br /&gt;
alias mydoc='cd /home/je/Documents'&lt;br /&gt;
&lt;div&gt;...&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
je@ubuntu:~$ &lt;br /&gt;
&lt;br /&gt;
Abrindo um novo shell já  posso acessar desta forma :&lt;br /&gt;
&lt;br /&gt;
je@ubuntu:~/Documents$ pwd&lt;br /&gt;
&lt;br /&gt;
/home/je/Documents&lt;br /&gt;
&lt;br /&gt;
je@ubuntu:~/Documents$ &lt;br /&gt;
&lt;br /&gt;
Para navegar entre as Homes do Oracle é show de bola!&lt;br /&gt;
&lt;br /&gt;
Essa é a dica!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Abs,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Julio Cesar Correa&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2523564552046105021-2290078146322688215?l=www.dbajccorrea.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.dbajccorrea.com/feeds/2290078146322688215/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2523564552046105021&amp;postID=2290078146322688215&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/2290078146322688215?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/2290078146322688215?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SimpleWrite-up/~3/S6LAVGUfCd8/abreviando-comando-no-linux-alias.html" title="Abreviando comandos no Linux - Alias" /><author><name>Júlio César Corrêa</name><uri>http://www.blogger.com/profile/16465498903177871508</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04550809630941347154" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.dbajccorrea.com/2010/01/abreviando-comando-no-linux-alias.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkMFSHY-fyp7ImA9WxBQEk4.&quot;"><id>tag:blogger.com,1999:blog-2523564552046105021.post-5626565813013417875</id><published>2010-01-11T15:50:00.000-02:00</published><updated>2010-01-11T16:26:59.857-02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-11T16:26:59.857-02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="plsql" /><category scheme="http://www.blogger.com/atom/ns#" term="types" /><category scheme="http://www.blogger.com/atom/ns#" term="orientação" /><category scheme="http://www.blogger.com/atom/ns#" term="class" /><category scheme="http://www.blogger.com/atom/ns#" term="pl/sql" /><category scheme="http://www.blogger.com/atom/ns#" term="objects" /><category scheme="http://www.blogger.com/atom/ns#" term="classes" /><category scheme="http://www.blogger.com/atom/ns#" term="object tables" /><category scheme="http://www.blogger.com/atom/ns#" term="oracle" /><title>Object Tables - Exemplos usando Oracle 10gR2(10.2.0.4)</title><content type="html">&lt;p&gt;Alguém já usou &lt;em&gt;&lt;strong&gt;object tables&lt;/strong&gt;&lt;/em&gt; no Oracle?&lt;/p&gt;  &lt;p&gt;Vou mostrar alguns exemplos&amp;#160; usando Oracle 10g.&lt;/p&gt;  &lt;p&gt;&lt;em&gt;Object table &lt;/em&gt;nada mais é que uma tabela criada com base em um tipo definido pelo usuário ou user-defined types um conceito bem conhecido das famosas Classes em Orientação a Objetos popular OO.&lt;/p&gt;  &lt;div style="margin: 0px"&gt;Desde a versão 8 do Oracle é possível trabalhar com OO nos códigos PL/SQL e armazenamento dentro do banco de dados.Da versão 8 até a versão atual 11g estas características foram melhoradas.Podemos trabalhar com conceito de classe,atributos e métodos bem como herança ,funções e contrutores dentre outras.   &lt;br /&gt;    &lt;br /&gt;Uma vez definido um TYPE podemos utilizá-los de várias formas e&amp;#160; entre elas a de criar tabelas com base em tipos.    &lt;br /&gt;    &lt;br /&gt;Criando um object type :    &lt;br /&gt;    &lt;br /&gt;&lt;a href="mailto:dbajcc@OCADB"&gt;&lt;em&gt;dbajcc@OCADB&lt;/em&gt;&lt;/a&gt;&lt;em&gt; on 11-JAN-10 &amp;gt;create type t_dbf as object(file_name varchar2(50),tablespace_name varchar2(30));     &lt;br /&gt;&amp;#160; 2&amp;#160; /      &lt;br /&gt;Type created.      &lt;br /&gt;Elapsed: 00:00:00.38&lt;/em&gt;    &lt;br /&gt;    &lt;br /&gt;Criando uma object table :    &lt;br /&gt;    &lt;br /&gt;&lt;em&gt;dbajcc@OCADB on 11-JAN-10 &amp;gt;create table tst_dbf_obj of t_dbf ;     &lt;br /&gt;Table created.      &lt;br /&gt;Elapsed: 00:00:00.70&lt;/em&gt;&lt;/div&gt;  &lt;div style="margin: 0px"&gt;   &lt;br /&gt;Inserindo dados em uma object table :    &lt;br /&gt;    &lt;br /&gt;&lt;a href="mailto:dbajcc@OCADB"&gt;&lt;em&gt;dbajcc@OCADB&lt;/em&gt;&lt;/a&gt;&lt;em&gt; on 11-JAN-10 &amp;gt;insert into tst_dbf_obj select file_name,tablespace_name from dba_data_files ;     &lt;br /&gt;6 rows created.      &lt;br /&gt;Elapsed: 00:00:00.04&lt;/em&gt;&lt;/div&gt;  &lt;div style="margin: 0px"&gt;   &lt;br /&gt;&lt;em&gt;dbajcc@OCADB on 11-JAN-10 &amp;gt;commit;     &lt;br /&gt;Commit complete.      &lt;br /&gt;Elapsed: 00:00:00.02&lt;/em&gt;    &lt;br /&gt;    &lt;br /&gt;    &lt;br /&gt;&lt;em&gt;dbajcc@OCADB on 11-JAN-10 &amp;gt;select * from tst_dbf_obj ;&lt;/em&gt;&lt;/div&gt;  &lt;div style="margin: 0px"&gt;&lt;em&gt;     &lt;br /&gt;FILE_NAME&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; TABLESPACE_NAME      &lt;br /&gt;-------------------------------------------------- ---------------      &lt;br /&gt;+DATA/ocadb/datafile/users.263.703360157&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; USERS      &lt;br /&gt;+DATA/ocadb/datafile/sysaux.259.703360021&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; SYSAUX      &lt;br /&gt;+DATA/ocadb/datafile/undotbs1.260.703360021&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; UNDOTBS1      &lt;br /&gt;+DATA/ocadb/datafile/system.257.703360021&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; SYSTEM      &lt;br /&gt;+DATA/ocadb/datafile/example.261.703360021&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; EXAMPLE      &lt;br /&gt;+DATA/ocadb/datafile/teste_rename.262.703360117&amp;#160;&amp;#160;&amp;#160; TESTE_RENAME      &lt;br /&gt;      &lt;br /&gt;6 rows selected.      &lt;br /&gt;Elapsed: 00:00:00.01&lt;/em&gt;    &lt;br /&gt;&lt;/div&gt;  &lt;div&gt;Também é possível criar &lt;em&gt;constraints&lt;/em&gt; em object tables tais como Primary Keys (PK's) e &lt;em&gt;Check constraints&lt;/em&gt; .&lt;/div&gt;  &lt;div&gt;   &lt;br /&gt;&lt;/div&gt;  &lt;div&gt;No exemplo abaixo vamos criar uma &lt;em&gt;object table&lt;/em&gt; com uma coluna identificadora :&lt;/div&gt;  &lt;div&gt;   &lt;br /&gt;&lt;/div&gt;  &lt;div&gt;   &lt;div&gt;&lt;em&gt;dbajcc@OCADB on 11-JAN-10 &amp;gt;create type t_automovel as object (id number(2),nome varchar2(10),marca varchar2(15));&lt;/em&gt;&lt;/div&gt;    &lt;div&gt;&lt;em&gt;&amp;#160; 2&amp;#160; /&lt;/em&gt;&lt;/div&gt;    &lt;div&gt;&lt;em&gt;Type created.&lt;/em&gt;&lt;/div&gt;    &lt;div&gt;&lt;em&gt;Elapsed: 00:00:00.05&lt;/em&gt;&lt;/div&gt;    &lt;div&gt;&amp;#160;&lt;/div&gt;    &lt;div&gt;&lt;em&gt;dbajcc@OCADB on 11-JAN-10 &amp;gt;&lt;/em&gt;&lt;/div&gt;    &lt;div&gt;     &lt;div&gt;&lt;em&gt;dbajcc@OCADB on 11-JAN-10 &amp;gt;create table frota_taxi of t_automovel (id PRIMARY KEY)&lt;/em&gt;&lt;/div&gt;      &lt;div&gt;&lt;em&gt;&amp;#160; 2&amp;#160; object identifier is primary key ;         &lt;br /&gt;Table created.&lt;/em&gt;&lt;/div&gt;      &lt;div&gt;&lt;em&gt;Elapsed: 00:00:00.13&lt;/em&gt;&lt;/div&gt;      &lt;div&gt;&lt;a href="mailto:dbajcc@OCADB"&gt;&lt;em&gt;dbajcc@OCADB&lt;/em&gt;&lt;/a&gt;&lt;em&gt; on 11-JAN-10 &amp;gt;&lt;/em&gt;&lt;/div&gt;      &lt;div&gt;       &lt;br /&gt;&lt;/div&gt;      &lt;div&gt;Você NÃO PODE excluir um TYPE caso exista um outro objeto definido com base nele :&lt;/div&gt;      &lt;div&gt;       &lt;br /&gt;&lt;/div&gt;      &lt;div&gt;       &lt;div&gt;&lt;em&gt;dbajcc@OCADB on 11-JAN-10 &amp;gt;drop type t_automovel ;&lt;/em&gt;&lt;/div&gt;        &lt;div&gt;&lt;em&gt;drop type t_automovel&lt;/em&gt;&lt;/div&gt;        &lt;div&gt;&lt;em&gt;*&lt;/em&gt;&lt;/div&gt;        &lt;div&gt;&lt;em&gt;ERROR at line 1:&lt;/em&gt;&lt;/div&gt;        &lt;div&gt;&lt;em&gt;ORA-02303: cannot drop or replace a type with type or table dependents&lt;/em&gt;&lt;/div&gt;        &lt;div&gt;&lt;em&gt;Elapsed: 00:00:00.02&lt;/em&gt;&lt;/div&gt;        &lt;div&gt;         &lt;br /&gt;&lt;/div&gt;        &lt;div&gt;Pirmeiro excluímos os dependentes e depois&amp;#160; eliminamos&amp;#160; o tipo:&lt;/div&gt;        &lt;div&gt;         &lt;br /&gt;&lt;/div&gt;        &lt;div&gt;         &lt;div&gt;&lt;em&gt;dbajcc@OCADB on 11-JAN-10 &amp;gt;drop table frota_taxi ;&lt;/em&gt;&lt;/div&gt;          &lt;div&gt;&lt;em&gt;Table dropped.&lt;/em&gt;&lt;/div&gt;          &lt;div&gt;&lt;em&gt;Elapsed: 00:00:00.81&lt;/em&gt;&lt;/div&gt;          &lt;div&gt;&lt;em&gt;&lt;/em&gt;&lt;/div&gt;          &lt;div&gt;&lt;em&gt;dbajcc@OCADB on 11-JAN-10 &amp;gt;drop type t_automovel ;&lt;/em&gt;&lt;/div&gt;          &lt;div&gt;&lt;em&gt;Type dropped.&lt;/em&gt;&lt;/div&gt;          &lt;div&gt;&lt;em&gt;Elapsed: 00:00:00.58&lt;/em&gt;&lt;/div&gt;          &lt;div&gt;&lt;em&gt;dbajcc@OCADB on 11-JAN-10 &amp;gt;&lt;/em&gt;&lt;/div&gt;          &lt;div&gt;           &lt;br /&gt;&lt;/div&gt;          &lt;div&gt;Podemos fazer o uso das object tables que possuem colunas que também&amp;#160; são objetc types&amp;#160;&amp;#160; :&lt;/div&gt;          &lt;div&gt;           &lt;br /&gt;&lt;/div&gt;          &lt;div&gt;           &lt;div&gt;&lt;em&gt;dbajcc@OCADB on 11-JAN-10 &amp;gt;create type t_bolas_sena&lt;/em&gt;&lt;/div&gt;            &lt;div&gt;&lt;em&gt;as object (first number(2),second number(2),third number(2),&lt;/em&gt;&lt;/div&gt;            &lt;div&gt;&lt;em&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; fourth number(2),fifth number(2),sixth number(2)) ;&lt;/em&gt;&lt;/div&gt;            &lt;div&gt;&lt;em&gt;/&amp;#160; 2&amp;#160;&amp;#160;&amp;#160; 3&amp;#160;&amp;#160;&amp;#160; 4&lt;/em&gt;&lt;/div&gt;            &lt;div&gt;&lt;em&gt;Type created.&lt;/em&gt;&lt;/div&gt;            &lt;div&gt;&lt;em&gt;Elapsed: 00:00:00.06&lt;/em&gt;&lt;/div&gt;            &lt;div&gt;&lt;em&gt;dbajcc@OCADB on 11-JAN-10 &amp;gt;&lt;/em&gt;&lt;/div&gt;            &lt;div&gt;&lt;em&gt;&lt;/em&gt;&lt;/div&gt;            &lt;div&gt;--criar um objeto com os atributos de um resultado de jogo da mega sena&lt;/div&gt;            &lt;div&gt;&amp;#160;&lt;/div&gt;            &lt;div&gt;&lt;em&gt;dbajcc@OCADB on 11-JAN-10 &lt;/em&gt;&lt;/div&gt;            &lt;div&gt;&lt;em&gt;create type t_resultado_sena&lt;/em&gt;&lt;/div&gt;            &lt;div&gt;&lt;em&gt;as object( concurso number(4),&lt;/em&gt;&lt;/div&gt;            &lt;div&gt;&lt;em&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; local_sorteio varchar2(50),&lt;/em&gt;&lt;/div&gt;            &lt;div&gt;&lt;em&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; bolas_sena&amp;#160; t_bolas_sena ) ;&lt;/em&gt;&lt;/div&gt;            &lt;div&gt;&lt;em&gt;/dbajcc@OCADB on 11-JAN-10 &amp;gt;dbajcc@OCADB on 11-JAN-10 &amp;gt;&amp;#160; 2&amp;#160;&amp;#160;&amp;#160; 3&amp;#160;&amp;#160;&amp;#160; 4&amp;#160;&amp;#160;&amp;#160; 5&lt;/em&gt;&lt;/div&gt;            &lt;div&gt;&lt;em&gt;Type created.&lt;/em&gt;&lt;/div&gt;            &lt;div&gt;&lt;em&gt;Elapsed: 00:00:00.05&lt;/em&gt;&lt;/div&gt;            &lt;div&gt;&lt;em&gt;dbajcc@OCADB on 11-JAN-10 &amp;gt;&lt;/em&gt;&lt;/div&gt;            &lt;div&gt;&amp;#160;&lt;/div&gt;            &lt;div&gt;--criação de uma object table que armazena o type&amp;#160; t_resultado_sena&lt;/div&gt;            &lt;div&gt;&amp;#160;&lt;/div&gt;            &lt;div&gt;&lt;em&gt;dbajcc@OCADB on 11-JAN-10 &amp;gt;&lt;/em&gt;&lt;/div&gt;            &lt;div&gt;&lt;em&gt;create table tb_resultado_sena of t_resultado_sena ;&lt;/em&gt;&lt;/div&gt;            &lt;div&gt;&lt;a&gt;&lt;em&gt;/dbajcc@OCADB&lt;/em&gt;&lt;/a&gt;&lt;em&gt; on 11-JAN-10 &amp;gt;dbajcc@OCADB on 11-JAN-10 &amp;gt;&lt;/em&gt;&lt;/div&gt;            &lt;div&gt;&lt;em&gt;Table created.&lt;/em&gt;&lt;/div&gt;            &lt;div&gt;&lt;em&gt;Elapsed: 00:00:00.05&lt;/em&gt;&lt;/div&gt;            &lt;div&gt;             &lt;br /&gt;&lt;/div&gt;         &lt;/div&gt;          &lt;div&gt;&lt;a href="mailto:dbajcc@OCADB"&gt;&lt;em&gt;dbajcc@OCADB&lt;/em&gt;&lt;/a&gt;&lt;em&gt; on 11-JAN-10 &amp;gt;insert into&amp;#160; tb_resultado_sena&lt;/em&gt;&lt;/div&gt;          &lt;div&gt;           &lt;div&gt;&lt;em&gt;values(t_resultado_sena(1141,&lt;/em&gt;&lt;/div&gt;            &lt;div&gt;&lt;em&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 'TRAMANDAI/RS',&lt;/em&gt;&lt;/div&gt;            &lt;div&gt;&lt;em&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; t_bolas_sena(09,37,40,50,58,60)&lt;/em&gt;&lt;/div&gt;            &lt;div&gt;&lt;em&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; )&lt;/em&gt;&lt;/div&gt;            &lt;div&gt;&lt;em&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ) ;&amp;#160; 2&amp;#160;&amp;#160;&amp;#160; 3&amp;#160;&amp;#160;&amp;#160; 4&amp;#160;&amp;#160;&amp;#160; 5&amp;#160;&amp;#160;&amp;#160; 6&lt;/em&gt;&lt;/div&gt;            &lt;div&gt;&lt;em&gt;1 row created.&lt;/em&gt;&lt;/div&gt;            &lt;div&gt;&lt;em&gt;Elapsed: 00:00:00.01&lt;/em&gt;&lt;/div&gt;            &lt;div&gt;&amp;#160;&lt;/div&gt;            &lt;div&gt;&lt;em&gt;dbajcc@OCADB on 11-JAN-10 &amp;gt;insert into&amp;#160; tb_resultado_sena&lt;/em&gt;&lt;/div&gt;            &lt;div&gt;&lt;em&gt;(concurso,local_sorteio,bolas_sena)&lt;/em&gt;&lt;/div&gt;            &lt;div&gt;&lt;em&gt;values(1142,'PENEDO/AL',&lt;/em&gt;&lt;/div&gt;            &lt;div&gt;&lt;em&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; t_bolas_sena(03,15,26,28,31,58)&lt;/em&gt;&lt;/div&gt;            &lt;div&gt;&lt;em&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ) ;&amp;#160; 2&amp;#160;&amp;#160;&amp;#160; 3&amp;#160;&amp;#160;&amp;#160; 4&amp;#160;&amp;#160;&amp;#160; 5&lt;/em&gt;&lt;/div&gt;            &lt;div&gt;&lt;em&gt;1 row created.&lt;/em&gt;&lt;/div&gt;            &lt;div&gt;&lt;em&gt;Elapsed: 00:00:00.00&lt;/em&gt;&lt;/div&gt;            &lt;div&gt;&amp;#160;&lt;/div&gt;            &lt;div&gt;&amp;#160;&lt;/div&gt;            &lt;div&gt;&lt;em&gt;dbajcc@OCADB on 11-JAN-10 &amp;gt;&lt;/em&gt;&lt;/div&gt;            &lt;div&gt;&lt;em&gt;dbajcc@OCADB on 11-JAN-10 &amp;gt;commit ;&lt;/em&gt;&lt;/div&gt;            &lt;div&gt;&lt;em&gt;Commit complete.&lt;/em&gt;&lt;/div&gt;            &lt;div&gt;&lt;em&gt;Elapsed: 00:00:00.01&lt;/em&gt;&lt;/div&gt;            &lt;div&gt;&lt;em&gt;dbajcc@OCADB on 11-JAN-10 &amp;gt;&lt;/em&gt;&lt;/div&gt;            &lt;div&gt;             &lt;br /&gt;&lt;/div&gt;            &lt;div&gt;             &lt;div&gt;&lt;em&gt;dbajcc@OCADB on 11-JAN-10 &amp;gt;select * from tb_resultado_sena tbs where tbs.concurso = 1142 ;&lt;/em&gt;&lt;/div&gt;              &lt;div&gt;&lt;em&gt;&lt;/em&gt;&lt;/div&gt;              &lt;div&gt;&lt;em&gt;&amp;#160; CONCURSO LOCAL_SORTEIO&lt;/em&gt;&lt;/div&gt;              &lt;div&gt;&lt;em&gt;---------- --------------------------------------------------&lt;/em&gt;&lt;/div&gt;              &lt;div&gt;&lt;em&gt;BOLAS_SENA(FIRST, SECOND, THIRD, FOURTH, FIFTH, SIXTH)&lt;/em&gt;&lt;/div&gt;              &lt;div&gt;&lt;em&gt;------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/em&gt;&lt;/div&gt;              &lt;div&gt;&lt;em&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 1142 PENEDO/AL&lt;/em&gt;&lt;/div&gt;              &lt;div&gt;&lt;em&gt;T_BOLAS_SENA(3, 15, 26, 28, 31, 58)&lt;/em&gt;&lt;/div&gt;              &lt;div&gt;&lt;em&gt;&lt;/em&gt;&lt;/div&gt;              &lt;div&gt;&lt;em&gt;Elapsed: 00:00:00.03&lt;/em&gt;&lt;/div&gt;              &lt;div&gt;&lt;em&gt;                 &lt;br /&gt;&lt;/em&gt;&lt;/div&gt;              &lt;div&gt;               &lt;div&gt;&lt;em&gt;dbajcc@OCADB on 11-JAN-10 &amp;gt;select * from tb_resultado_sena ;&lt;/em&gt;&lt;/div&gt;                &lt;div&gt;&lt;em&gt;                   &lt;br /&gt;&lt;/em&gt;&lt;/div&gt;                &lt;div&gt;&lt;em&gt;&amp;#160; CONCURSO LOCAL_SORTEIO&lt;/em&gt;&lt;/div&gt;                &lt;div&gt;&lt;em&gt;---------- --------------------------------------------------&lt;/em&gt;&lt;/div&gt;                &lt;div&gt;&lt;em&gt;BOLAS_SENA(FIRST, SECOND, THIRD, FOURTH, FIFTH, SIXTH)&lt;/em&gt;&lt;/div&gt;                &lt;div&gt;&lt;em&gt;------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/em&gt;&lt;/div&gt;                &lt;div&gt;&lt;em&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 1141 TRAMANDAI/RS&lt;/em&gt;&lt;/div&gt;                &lt;div&gt;&lt;em&gt;T_BOLAS_SENA(9, 37, 40, 50, 58, 60)&lt;/em&gt;&lt;/div&gt;                &lt;div&gt;&lt;em&gt;                   &lt;br /&gt;&lt;/em&gt;&lt;/div&gt;                &lt;div&gt;&lt;em&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 1142 PENEDO/AL&lt;/em&gt;&lt;/div&gt;                &lt;div&gt;&lt;em&gt;T_BOLAS_SENA(3, 15, 26, 28, 31, 58)&lt;/em&gt;&lt;/div&gt;                &lt;div&gt;&lt;em&gt;&lt;/em&gt;&lt;/div&gt;                &lt;div&gt;&lt;em&gt;Elapsed: 00:00:00.02&lt;/em&gt;&lt;/div&gt;                &lt;div&gt;                 &lt;br /&gt;&lt;/div&gt;                &lt;div&gt;Dúvidas ou sugestões ?Poste o seus comentários!&lt;/div&gt;                &lt;div&gt;                 &lt;br /&gt;&lt;/div&gt;                &lt;div&gt;Abs,&lt;/div&gt;                &lt;div&gt;                 &lt;br /&gt;&lt;/div&gt;                &lt;div&gt;Julio Cesar Correa&lt;/div&gt;             &lt;/div&gt;           &lt;/div&gt;         &lt;/div&gt;       &lt;/div&gt;     &lt;/div&gt;   &lt;/div&gt; &lt;/div&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2523564552046105021-5626565813013417875?l=www.dbajccorrea.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.dbajccorrea.com/feeds/5626565813013417875/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2523564552046105021&amp;postID=5626565813013417875&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/5626565813013417875?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/5626565813013417875?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SimpleWrite-up/~3/RavatM3apLg/object-tables-exemplos-usando-oracle.html" title="Object Tables - Exemplos usando Oracle 10gR2(10.2.0.4)" /><author><name>Júlio César Corrêa</name><uri>http://www.blogger.com/profile/16465498903177871508</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04550809630941347154" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.dbajccorrea.com/2010/01/object-tables-exemplos-usando-oracle.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A04DQHkyfCp7ImA9WxBQE0o.&quot;"><id>tag:blogger.com,1999:blog-2523564552046105021.post-3550069205943564236</id><published>2010-01-08T13:30:00.002-02:00</published><updated>2010-01-13T08:52:51.794-02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-13T08:52:51.794-02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="enterprise" /><category scheme="http://www.blogger.com/atom/ns#" term="10g" /><category scheme="http://www.blogger.com/atom/ns#" term="manager" /><category scheme="http://www.blogger.com/atom/ns#" term="grid" /><category scheme="http://www.blogger.com/atom/ns#" term="LINUX" /><category scheme="http://www.blogger.com/atom/ns#" term="agent" /><title>Instalação do Oracle EM Grid Control 10.2.0.5 em Linux x86 – Part 3</title><content type="html">&lt;b&gt;Instalação do Agent 10.2.0.5 em&amp;nbsp; Linux x86&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;i&gt;Software para download&amp;nbsp; em :&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;a href="http://www.oracle.com/technology/software/products/oem/htdocs/agentsoft.html"&gt;http://www.oracle.com/technology/software/products/oem/htdocs/agentsoft.html&lt;/a&gt;&lt;br /&gt;
Documentação de instalação :&lt;br /&gt;
&lt;a href="http://www.oracle.com/technology/software/products/oem/files/agent-files/32-bit/linux-32-10.2.0.5.-instructions.txt"&gt;http://www.oracle.com/technology/software/products/oem/files/agent-files/32-bit/linux-32-10.2.0.5.-instructions.txt&lt;/a&gt;&lt;br /&gt;
&lt;i&gt;&lt;b&gt;Configurando o etc/hosts &lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
Configurar o etc/hosts para o servidor target poder enchergar o Grid Control server.&lt;br /&gt;
[oracle@jamaica oracle]$ more /etc/hosts&lt;br /&gt;
# Do not remove the following line, or various programs&lt;br /&gt;
# that require network functionality will fail.&lt;br /&gt;
192.168.79.130&amp;nbsp; jamaica jamaica&lt;br /&gt;
127.0.0.1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; localhost.localdomain&amp;nbsp;&amp;nbsp; localhost&lt;br /&gt;
192.168.79.134&amp;nbsp; suecia&amp;nbsp; suecia&lt;br /&gt;
[oracle@jamaica oracle]$&lt;br /&gt;
Teste de conectividade :&lt;br /&gt;
[root@jamaica ~]# ping suecia&lt;br /&gt;
PING suecia (192.168.79.134) 56(84) bytes of data.&lt;br /&gt;
64 bytes from suecia (192.168.79.134): icmp_seq=1 ttl=64 time=15.9 ms&lt;br /&gt;
64 bytes from suecia (192.168.79.134): icmp_seq=2 ttl=64 time=0.178 ms&lt;br /&gt;
64 bytes from suecia (192.168.79.134): icmp_seq=3 ttl=64 time=0.075 ms&lt;br /&gt;
64 bytes from suecia (192.168.79.134): icmp_seq=4 ttl=64 time=0.164 ms&lt;br /&gt;
&lt;b&gt;Desbloqueando a conta DBSNMP do banco de dados target&lt;/b&gt;&lt;br /&gt;
[oracle@jamaica oracle]$ sqlplus "/ as sysdba"&lt;br /&gt;
SQL*Plus: Release 10.2.0.4.0 - Production on Fri Jan 8 06:27:20 2010&lt;br /&gt;
Copyright (c) 1982, 2007, Oracle.&amp;nbsp; All Rights Reserved.&lt;br /&gt;
Connected to:&lt;br /&gt;
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production&lt;br /&gt;
With the Partitioning, OLAP, Data Mining and Real Application Testing options&lt;br /&gt;
sys@OCADB on 08-JAN-10 &amp;gt;set lines 300 pages 1000 timing on serveroutput on&lt;br /&gt;
sys@OCADB on 08-JAN-10 &amp;gt;select username,account_status from dba_users where username='DBSNMP';&lt;br /&gt;
USERNAME&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ACCOUNT_STATUS&lt;br /&gt;
------------------------------ --------------------------------&lt;br /&gt;
DBSNMP&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OPEN&lt;br /&gt;
Elapsed: 00:00:00.19&lt;br /&gt;
sys@OCADB on 08-JAN-10 &amp;gt;alter user DBSNMP identified by DBSNMP;&lt;br /&gt;
User altered.&lt;br /&gt;
Elapsed: 00:00:00.22&lt;br /&gt;
sys@OCADB on 08-JAN-10 &amp;gt;&lt;br /&gt;
No caso o meu já estava desbloqueado,mas caso não estivesse era só adicionar as palavras-chave &lt;i&gt;account unlock&lt;/i&gt; no &lt;i&gt;alter user&lt;/i&gt; .&lt;br /&gt;
Na máquina target tenho um banco de dados com o SID ocadb,uma instância ASM e o Listener :&lt;br /&gt;
[oracle@jamaica sw]$ ps -ef|grep pmon&lt;br /&gt;
oracle&amp;nbsp;&amp;nbsp;&amp;nbsp; 3277&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp; 0 06:18 ?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00:00:00 asm_pmon_+ASM&lt;br /&gt;
oracle&amp;nbsp;&amp;nbsp;&amp;nbsp; 3457&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp; 0 06:22 ?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00:00:00 ora_pmon_ocadb&lt;br /&gt;
oracle&amp;nbsp;&amp;nbsp;&amp;nbsp; 3731&amp;nbsp; 3241&amp;nbsp; 0 06:42 pts/1&amp;nbsp;&amp;nbsp;&amp;nbsp; 00:00:00 grep pmon&lt;br /&gt;
[oracle@jamaica sw]$ ps -ef|grep tns&lt;br /&gt;
oracle&amp;nbsp;&amp;nbsp;&amp;nbsp; 3538&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp; 0 06:23 ?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00:00:00 /u01/app/oracle/product/10.2.0/bin/tnslsnr LISTENER -inherit&lt;br /&gt;
oracle&amp;nbsp;&amp;nbsp;&amp;nbsp; 3733&amp;nbsp; 3241&amp;nbsp; 0 06:42 pts/1&amp;nbsp;&amp;nbsp;&amp;nbsp; 00:00:00 grep tns&lt;br /&gt;
[oracle@jamaica sw]$&lt;br /&gt;
&lt;b&gt;Descompactação do software&lt;/b&gt;&lt;br /&gt;
Fiz um unzip do arquivo Linux_Grid_Control_agent_download_10_2_0_5_0.zip e os arquivos estraídos foram :&lt;br /&gt;
[oracle@jamaica sw]$ ls -l&lt;br /&gt;
total 368008&lt;br /&gt;
-rwxrwxr-x 1 oracle oinstall&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1874 Jun 22&amp;nbsp; 2007 agentdeployroot.sh&lt;br /&gt;
-rwxrwxr-x 1 oracle oinstall&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 23372 Sep 29&amp;nbsp; 2008 agent_download.rsp.bak&lt;br /&gt;
-rwxrwxr-x 1 oracle oinstall&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9532 Feb 23&amp;nbsp; 2009 instructions.txt&lt;br /&gt;
drwxrwxr-x 8 oracle oinstall&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4096 Feb 20&amp;nbsp; 2009 linux&lt;br /&gt;
-rw-r--r-- 1 oracle oinstall 376420365 Jan&amp;nbsp; 7 18:11 Linux_Grid_Control_agent_download_10_2_0_5_0.zip&lt;br /&gt;
[oracle@jamaica sw]$&lt;br /&gt;
&lt;b&gt;Instalação do Management Agent 10.2.0.5&lt;/b&gt;&lt;br /&gt;
Localização dos arquivos depois da descompactação : &lt;br /&gt;
[oracle@jamaica agent]$ pwd&lt;br /&gt;
/u02/sw/linux/agent&lt;br /&gt;
[oracle@jamaica agent]$ ls -l&lt;br /&gt;
total 16&lt;br /&gt;
drwxrwxr-x&amp;nbsp; 5 oracle oinstall 4096 Feb 20&amp;nbsp; 2009 install&lt;br /&gt;
-rwxrwxr-x&amp;nbsp; 1 oracle oinstall 5281 Dec 18&amp;nbsp; 2008 runInstaller&lt;br /&gt;
drwxrwxr-x 11 oracle oinstall 4096 Feb 20&amp;nbsp; 2009 stage&lt;br /&gt;
[oracle@jamaica agent]$&lt;br /&gt;
Executando o runInstaller :&lt;br /&gt;
&amp;nbsp; Additional Management Agent&lt;br /&gt;
&lt;img src="http://docs.google.com/File?id=ddm3dzs4_340g4msvdg5_b" /&gt;&lt;br /&gt;
Escolha da home do Agent :&lt;br /&gt;
&lt;img src="http://docs.google.com/File?id=ddm3dzs4_341cxjvpkg9_b" /&gt;&lt;br /&gt;
&lt;img src="http://docs.google.com/File?id=ddm3dzs4_342dhtg3mfd_b" /&gt;&lt;br /&gt;
&lt;img src="http://docs.google.com/File?id=ddm3dzs4_343f2fvtqf6_b" /&gt;&lt;br /&gt;
&lt;img src="http://docs.google.com/File?id=ddm3dzs4_344c97r54fr_b" /&gt;&lt;br /&gt;
&lt;img src="http://docs.google.com/File?id=ddm3dzs4_345c7hgbm3k_b" /&gt;&lt;br /&gt;
&lt;img src="http://docs.google.com/File?id=ddm3dzs4_346c8tw2xcw_b" /&gt;&lt;br /&gt;
&lt;img src="http://docs.google.com/File?id=ddm3dzs4_34744f6t9c2_b" /&gt;&lt;br /&gt;
&lt;img src="http://docs.google.com/File?id=ddm3dzs4_3483wt3g3cg_b" /&gt;&lt;br /&gt;
&lt;i&gt;Executar o script roor.sh&amp;nbsp; :&lt;/i&gt;&lt;br /&gt;
[root@jamaica ~]# /u02/app/agent10g/root.sh&lt;br /&gt;
Running Oracle10 root.sh script...&lt;br /&gt;
The following environment variables are set as:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; ORACLE_OWNER= oracle&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; ORACLE_HOME=&amp;nbsp; /u02/app/agent10g&lt;br /&gt;
Enter the full pathname of the local bin directory: [/usr/local/bin]:&lt;br /&gt;
The file "dbhome" already exists in /usr/local/bin.&amp;nbsp; Overwrite it? (y/n)&lt;br /&gt;
[n]: y&lt;br /&gt;
&amp;nbsp;&amp;nbsp; Copying dbhome to /usr/local/bin ...&lt;br /&gt;
The file "oraenv" already exists in /usr/local/bin.&amp;nbsp; Overwrite it? (y/n)&lt;br /&gt;
[n]: y&lt;br /&gt;
&amp;nbsp;&amp;nbsp; Copying oraenv to /usr/local/bin ...&lt;br /&gt;
The file "coraenv" already exists in /usr/local/bin.&amp;nbsp; Overwrite it? (y/n)&lt;br /&gt;
[n]: y&lt;br /&gt;
&amp;nbsp;&amp;nbsp; Copying coraenv to /usr/local/bin ...&lt;br /&gt;
Entries will be added to the /etc/oratab file as needed by&lt;br /&gt;
Database Configuration Assistant when a database is created&lt;br /&gt;
Finished running generic part of root.sh script.&lt;br /&gt;
Now product-specific root actions will be performed.&lt;br /&gt;
Finished product-specific root actions.&lt;br /&gt;
[root@jamaica ~]#&lt;br /&gt;
&lt;i&gt;No OUI :&lt;/i&gt;&lt;br /&gt;
&lt;img src="http://docs.google.com/File?id=ddm3dzs4_349gg3xxnvc_b" /&gt;&lt;br /&gt;
&lt;img src="http://docs.google.com/File?id=ddm3dzs4_350j6p88xcm_b" /&gt;&lt;br /&gt;
A instalação dos binários ocorreu sem problemas , mas ainda vamos verificar se realmente está funcionando&amp;nbsp; corretamente!&lt;br /&gt;
[oracle@jamaica bin]$ ./emctl status agent&lt;br /&gt;
Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.&lt;br /&gt;
Copyright (c) 1996, 2009 Oracle Corporation.&amp;nbsp; All rights reserved.&lt;br /&gt;
---------------------------------------------------------------&lt;br /&gt;
Agent Version&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 10.2.0.5.0&lt;br /&gt;
OMS Version&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 10.2.0.5.0&lt;br /&gt;
Protocol Version&amp;nbsp; : 10.2.0.5.0&lt;br /&gt;
Agent Home&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : /u02/app/agent10g&lt;br /&gt;
Agent binaries&amp;nbsp;&amp;nbsp;&amp;nbsp; : /u02/app/agent10g&lt;br /&gt;
Agent Process ID&amp;nbsp; : 11513&lt;br /&gt;
Parent Process ID : 11488&lt;br /&gt;
Agent URL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : https://jamaica.riversideti.com.br:3872/emd/main/&lt;br /&gt;
Repository URL&amp;nbsp;&amp;nbsp;&amp;nbsp; : https://suecia:1159/em/upload&lt;br /&gt;
Started at&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 2010-01-08 07:01:42&lt;br /&gt;
Started by user&amp;nbsp;&amp;nbsp; : oracle&lt;br /&gt;
Last Reload&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 2010-01-08 07:01:42&lt;br /&gt;
Last successful upload&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 2010-01-08 07:02:51&lt;br /&gt;
Total Megabytes of XML files uploaded so far :&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9.50&lt;br /&gt;
Number of XML files pending upload&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;&amp;nbsp; 0&lt;br /&gt;
Size of XML files pending upload(MB)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00&lt;br /&gt;
Available disk space on upload filesystem&amp;nbsp;&amp;nbsp;&amp;nbsp; :&amp;nbsp;&amp;nbsp;&amp;nbsp; 19.41%&lt;br /&gt;
Last successful heartbeat to OMS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 2010-01-08 07:02:50&lt;br /&gt;
---------------------------------------------------------------&lt;br /&gt;
Agent is Running and Ready&lt;br /&gt;
[oracle@jamaica bin]$ ./emctl status agent&lt;br /&gt;
Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.&lt;br /&gt;
Copyright (c) 1996, 2009 Oracle Corporation.&amp;nbsp; All rights reserved.&lt;br /&gt;
---------------------------------------------------------------&lt;br /&gt;
Agent Version&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 10.2.0.5.0&lt;br /&gt;
OMS Version&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 10.2.0.5.0&lt;br /&gt;
Protocol Version&amp;nbsp; : 10.2.0.5.0&lt;br /&gt;
Agent Home&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : /u02/app/agent10g&lt;br /&gt;
Agent binaries&amp;nbsp;&amp;nbsp;&amp;nbsp; : /u02/app/agent10g&lt;br /&gt;
Agent Process ID&amp;nbsp; : 11513&lt;br /&gt;
Parent Process ID : 11488&lt;br /&gt;
Agent URL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : https://jamaica.riversideti.com.br:3872/emd/main/&lt;br /&gt;
Repository URL&amp;nbsp;&amp;nbsp;&amp;nbsp; : https://suecia:1159/em/upload&lt;br /&gt;
Started at&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 2010-01-08 07:01:42&lt;br /&gt;
Started by user&amp;nbsp;&amp;nbsp; : oracle&lt;br /&gt;
Last Reload&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 2010-01-08 07:01:42&lt;br /&gt;
Last successful upload&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 2010-01-08 07:02:51&lt;br /&gt;
Total Megabytes of XML files uploaded so far :&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9.50&lt;br /&gt;
Number of XML files pending upload&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;&amp;nbsp; 0&lt;br /&gt;
Size of XML files pending upload(MB)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00&lt;br /&gt;
Available disk space on upload filesystem&amp;nbsp;&amp;nbsp;&amp;nbsp; :&amp;nbsp;&amp;nbsp;&amp;nbsp; 19.41%&lt;br /&gt;
Last successful heartbeat to OMS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 2010-01-08 07:02:50&lt;br /&gt;
---------------------------------------------------------------&lt;br /&gt;
Agent is Running and Ready&lt;br /&gt;
[oracle@jamaica bin]$&lt;br /&gt;
[oracle@jamaica bin]$&lt;br /&gt;
[oracle@jamaica bin]$&lt;br /&gt;
[oracle@jamaica bin]$ ./emctl upload&lt;br /&gt;
Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.&lt;br /&gt;
Copyright (c) 1996, 2009 Oracle Corporation.&amp;nbsp; All rights reserved.&lt;br /&gt;
---------------------------------------------------------------&lt;br /&gt;
EMD upload completed successfully&lt;br /&gt;
[oracle@jamaica bin]$&lt;br /&gt;
[oracle@jamaica bin]$&lt;br /&gt;
Ele parece estar se comunicando com o OMS no Grid Server .&lt;br /&gt;
Obs :&lt;br /&gt;
&lt;i&gt;Caso ele não mostre a frase “EMD upload completed successfully”,temos algum problema na comunicação entre o Management Agent e o OMS.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;No &lt;a href="http://metalink.oracle.com/"&gt;Metalink&lt;/a&gt; existem algumas notas a respeito do assunto.Use a mensagem de erro&amp;nbsp; para encontrar a melhor solução do problema.Também faça a procura em blogs e sites de profissionais Oracle que você provavelmente vai encontrar soluções para estes erros.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Algumas notas :&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;b&gt;283091.1&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;b&gt;787551.1&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;b&gt;604495.1&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;
Vamos ver no console de gerenciamento do Grid .&lt;br /&gt;
Podemos ver que na aba Targets ele já adicionou o host JAMAICA onde fizemos a instalação do Mnagement Agent .&lt;br /&gt;
&lt;img src="http://docs.google.com/File?id=ddm3dzs4_351cph2hmcd_b" /&gt;&lt;br /&gt;
Clicando no Hots Jamaica entramos em outra tela do Grid,onde mostra algumas abas/menus :&lt;br /&gt;
&lt;img src="http://docs.google.com/File?id=ddm3dzs4_352c8zrtt6r_b" /&gt;&lt;br /&gt;
Na aba Targets dentro do Host Jamaica temos os alvos a serem monitorados :&lt;br /&gt;
&lt;img src="http://docs.google.com/File?id=ddm3dzs4_353gr3b7fd2_b" /&gt;&lt;br /&gt;
Vamos ver umas das telas de monitoramento do banco de dados &lt;b&gt;ocadb :&lt;/b&gt;&lt;br /&gt;
&lt;img src="http://docs.google.com/File?id=ddm3dzs4_354gzrkx9hb_b" /&gt;&lt;br /&gt;
&lt;img src="http://docs.google.com/File?id=ddm3dzs4_355zf875fd5_b" /&gt;&lt;br /&gt;
&lt;i&gt;Obs.Caso receba mensagem de erro como esta abaixo :&lt;/i&gt;&lt;br /&gt;
&lt;img src="http://docs.google.com/File?id=ddm3dzs4_357g7tw493z_b" /&gt;&lt;br /&gt;
&lt;i&gt;Provavelmente o Grid Server não consegue ter conectividade até o target,portanto verifique o /etc/hosts do Grid e add o IP e Hostname do servidor target.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Continuando...&lt;/i&gt;&lt;br /&gt;
&lt;img src="http://docs.google.com/File?id=ddm3dzs4_358g7skx2hb_b" /&gt;&lt;br /&gt;
Acima a área de gerenciamento do target.&lt;br /&gt;
Monitoramento da ASM instance :&lt;br /&gt;
&lt;img src="http://docs.google.com/File?id=ddm3dzs4_359czbg5qch_b" /&gt;&lt;br /&gt;
Monitorando o Listener :&lt;br /&gt;
&lt;img src="http://docs.google.com/File?id=ddm3dzs4_356685tjshh_b" /&gt;&lt;br /&gt;
Bom chega ao fim este nosso how-to!&lt;br /&gt;
Abs,&lt;br /&gt;
Julio Cesar Correa&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2523564552046105021-3550069205943564236?l=www.dbajccorrea.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.dbajccorrea.com/feeds/3550069205943564236/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2523564552046105021&amp;postID=3550069205943564236&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/3550069205943564236?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2523564552046105021/posts/default/3550069205943564236?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SimpleWrite-up/~3/ojyeB4N1S5k/instalacao-do-oracle-em-grid-control_08.html" title="Instalação do Oracle EM Grid Control 10.2.0.5 em Linux x86 – Part 3" /><author><name>Júlio César Corrêa</name><uri>http://www.blogger.com/profile/16465498903177871508</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04550809630941347154" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.dbajccorrea.com/2010/01/instalacao-do-oracle-em-grid-control_08.html</feedburner:origLink></entry></feed>
