<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Database on Café Com Cloud</title><link>https://blog.cafecomcloud.com.br/categories/database/</link><description>Recent content in Database on Café Com Cloud</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Thu, 16 Aug 2018 16:54:11 -0300</lastBuildDate><atom:link href="https://blog.cafecomcloud.com.br/categories/database/index.xml" rel="self" type="application/rss+xml"/><item><title>Patching an Engineered System</title><link>https://blog.cafecomcloud.com.br/2018/08/16/patching-an-engineered-system/</link><pubDate>Thu, 16 Aug 2018 16:54:11 -0300</pubDate><guid>https://blog.cafecomcloud.com.br/2018/08/16/patching-an-engineered-system/</guid><description>&lt;p&gt;Everyone in Oracle DBA world knows the key value of use an Engineered System, such as Exadata or Supercluster.&lt;/p&gt;
&lt;p&gt;In a mission critical on premises database, as a DBA we need to consolidate many databases, plataform in different versions into an Engeneed system.&lt;/p&gt;
&lt;p&gt;In a Engeneered System world we have different types of patch deployment that consists in a group of many other patches for differents versions of databases / applications / system /services. They are called Oracle Engineered Systems Quarterly Patch Deployment (QPD).&lt;/p&gt;
&lt;p&gt;The key advantage of using QPD is stay with best practices patches that was recommeded by Oracle. The QDP are available for download every 4 months and if you have a contract, you can let Oracle apply for you via ACS / platinum contract. More information, you can see in &lt;a class="link" href="https://www.oracle.com/assets/as-quarterly-patch-deployment-3042102.pdf" target="_blank" rel="noopener"
 &gt;https://www.oracle.com/assets/as-quarterly-patch-deployment-3042102.pdf&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Personal experiences on Engineered Systems(Exadata, Supercluster) patch apply&lt;/strong&gt; I have some few experiences on patch apply in many enviroments even Exadata or Supercluster systems.&lt;/p&gt;
&lt;p&gt;First, I always take an exachk. It&amp;rsquo;s extremely important to compare how health your environment are before apply. Always download the last available on MOS &amp;ldquo;Oracle Exadata Database Machine exachk or HealthCheck (Doc ID 1070954.1)&amp;rdquo;&lt;/p&gt;
&lt;p&gt;Second, I recommend this note lecture:&lt;/p&gt;
&lt;p&gt;Exadata Database Machine and Exadata Storage Server Supported Versions (Doc ID 888828.1)&lt;/p&gt;
&lt;p&gt;Oracle SuperCluster Supported Software Versions - All Hardware Types (Doc ID 1567979.1)&lt;/p&gt;
&lt;p&gt;PS. in this notes there are some references to others Engeneered Systems. If you have on your enviroment, please take a look on MOS.&lt;/p&gt;
&lt;p&gt;So before download, as every patch I extremaly recomments read the README of each patch before start (it seems obvious, but I knew many DBAs that don&amp;rsquo;t follow this secret rule) and follow the prechecks as Oracle recommendations such as space, check if there are any conflict with another patch, etc.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Some tips based on my personal experience&lt;/strong&gt; - In most of cases, during patching some errors related by datapatch (on Database apply) occurs. Don&amp;rsquo;t be affraid and take a look at:&lt;/p&gt;
&lt;p&gt;Queryable Patch Inventory - Issues/Solutions for ORA-20001: Latest xml inventory is not loaded into table (Doc ID 1602089.1)&lt;/p&gt;
&lt;p&gt;12.1 : Datapatch Fails with ERROR &amp;ldquo;KUP-04004,KUP-04017,KUP-04118,KUP-04095,ORA-29913&amp;rdquo;,&amp;quot; fatal: libjli.so or libpicl.so.1: open failed&amp;quot; (Doc ID 2085653.1)&lt;/p&gt;
&lt;p&gt;- If you have a segregated environment, always apply patches on DEV or UAT environment.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Examples of database patch apply&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;=====&lt;/p&gt;
&lt;p&gt;Don&amp;rsquo;t be affraid if you get an error. It&amp;rsquo;s happen with everyone:&lt;/p&gt;
&lt;p&gt;./datapatch -verbose SQL Patching tool version 12.1.0.2.0 Production on Thu Aug 16 14:39:41 2018 Copyright (c) 2012, 2017, Oracle. All rights reserved.&lt;/p&gt;
&lt;p&gt;Log file for this invocation: /u01/app/grid/cfgtoollogs/sqlpatch/sqlpatch_2278_2018_08_16_14_39_41/sqlpatch_invocation.log&lt;/p&gt;
&lt;p&gt;Connecting to database&amp;hellip;OK Note: Datapatch will only apply or rollback SQL fixes for PDBs that are in an open state, no patches will be applied to closed PDBs. Please refer to Note: Datapatch: Database 12c Post Patch SQL Automation (Doc ID 1585822.1) Bootstrapping registry and package to current versions&amp;hellip;done&lt;/p&gt;
&lt;p&gt;Queryable inventory could not determine the current opatch status. Execute &amp;lsquo;select dbms_sqlpatch.verify_queryable_inventory from dual&amp;rsquo; and/or check the invocation log /u01/app/grid/cfgtoollogs/sqlpatch/sqlpatch_2278_2018_08_16_14_39_41/sqlpatch_invocation.log for the complete error. Prereq check failed, exiting without installing any patches.&lt;/p&gt;
&lt;p&gt;Please refer to MOS Note 1609718.1 and/or the invocation log /u01/app/grid/cfgtoollogs/sqlpatch/sqlpatch_2278_2018_08_16_14_39_41/sqlpatch_invocation.log for information on how to resolve the above errors.&lt;/p&gt;
&lt;p&gt;SQL Patching tool complete on Thu Aug 16 14:39:59 2018&lt;/p&gt;
&lt;p&gt;=====&lt;/p&gt;
&lt;p&gt;It&amp;rsquo;s so good when everything was work as design:&lt;/p&gt;
&lt;p&gt;./datapatch -verbose SQL Patching tool version 12.1.0.2.0 Production on Thu Aug 16 14:47:57 2018 Copyright (c) 2012, 2017, Oracle. All rights reserved.&lt;/p&gt;
&lt;p&gt;Log file for this invocation: /u01/app/grid/cfgtoollogs/sqlpatch/sqlpatch_23787_2018_08_16_14_47_57/sqlpatch_invocation.log&lt;/p&gt;
&lt;p&gt;Connecting to database&amp;hellip;OK Note: Datapatch will only apply or rollback SQL fixes for PDBs that are in an open state, no patches will be applied to closed PDBs. Please refer to Note: Datapatch: Database 12c Post Patch SQL Automation (Doc ID 1585822.1) Bootstrapping registry and package to current versions&amp;hellip;done Determining current state&amp;hellip;done&lt;/p&gt;
&lt;p&gt;Current state of SQL patches: Bundle series DBBP: ID 180717 in the binary registry and not installed in any PDB&lt;/p&gt;
&lt;p&gt;Adding patches to installation queue and performing prereq checks&amp;hellip; Installation queue: For the following PDBs: CDB$ROOT PDB$SEED Nothing to roll back The following patches will be applied: 27547374 (DATABASE BUNDLE PATCH 12.1.0.2.180717)&lt;/p&gt;
&lt;p&gt;Installing patches&amp;hellip; Patch installation complete. Total patches installed: 2&lt;/p&gt;
&lt;p&gt;Validating logfiles&amp;hellip; Patch 27547374 apply (pdb CDB$ROOT): SUCCESS logfile: /u01/app/grid/cfgtoollogs/sqlpatch/27547374/22329708/27547374_apply__MGMTDB_CDBROOT_2018Aug16_14_48_44.log (no errors) Patch 27547374 apply (pdb PDB$SEED): SUCCESS logfile: /u01/app/grid/cfgtoollogs/sqlpatch/27547374/22329708/27547374_apply__MGMTDB_PDBSEED_2018Aug16_14_52_35.log (no errors) SQL Patching tool complete on Thu Aug 16 14:55:29 2018&lt;/p&gt;
&lt;p&gt;=====&lt;/p&gt;
&lt;p&gt;See you soon! :-)&lt;/p&gt;</description></item><item><title>First impression on 12cR2 Oracle Clusterware install</title><link>https://blog.cafecomcloud.com.br/2017/03/30/first-impression-on-12cr2-oracle-clusterware-install/</link><pubDate>Thu, 30 Mar 2017 15:51:24 -0300</pubDate><guid>https://blog.cafecomcloud.com.br/2017/03/30/first-impression-on-12cr2-oracle-clusterware-install/</guid><description>&lt;p&gt;Today we will gonna discuss about first impression on fresh install of Oracle Clusterware 12cR2 (for database, you could found some considerations &lt;a class="link" href="https://dbdebug.wordpress.com/2017/03/16/first-impression-on-12cr2-install/" target="_blank" rel="noopener"
 &gt;here&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;I install on new Oracle Linux 6.9 on Virtualbox 5.1.18 and I observe some points:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Like database install, the grid software has only one file to download (take care with uncompress the zip file. You need to uncompress on the location that you need to use the cluster software).&lt;/li&gt;
&lt;li&gt;Oracle has added 2 diskgroups types (in 11gR2 its doesn&amp;rsquo;t are present): Flex and Extended (more information you could found &lt;a class="link" href="https://docs.oracle.com/database/122/OSTMG/mirroring-diskgroup-redundancy.htm#OSTMG13711" target="_blank" rel="noopener"
 &gt;here&lt;/a&gt;).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img alt="Screen Shot 2017-03-30 at 14.38.17" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://blog.cafecomcloud.com.br/images/screen-shot-2017-03-30-at-14-38-17.png"&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Pay attention with pre-requisites and space: at least, almost 40 GB was necessary for grid diskgroup if you have less than 4 nodes clusterware.&lt;/li&gt;
&lt;li&gt;Gavin Soorma has upgrade a 12R1 Cluster. If you are planning to upgrade your cluster, consider to read &lt;a class="link" href="http://gavinsoorma.com/2017/03/oracle-12c-release-2-12-2-0-1-0-grid-infrastructure-upgrade/" target="_blank" rel="noopener"
 &gt;this post&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;I install with old way Oracle ASMLIB for test purposes and it&amp;rsquo;s works! :-)&lt;/li&gt;
&lt;li&gt;If you install on graphical mode be aware in unzip the cluster software where ORACLE_HOME grid software resides because you can not change the location of install home, as you could see below:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img alt="Screen Shot 2017-04-12 at 17.44.12" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://blog.cafecomcloud.com.br/images/screen-shot-2017-04-12-at-17-44-12.png"&gt;&lt;/p&gt;
&lt;p&gt;So, I&amp;rsquo;ll perform more tests in this test cluster. So, if you are planning to construct your own test cluster, i recommend:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a class="link" href="https://oracle-base.com/articles/12c/oracle-db-12cr2-rac-installation-on-oracle-linux-6-using-virtualbox" target="_blank" rel="noopener"
 &gt;Oracle RAC 12cR2 on Linux 6 using VirtualBox, by Oracle Base Tim Hall&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>Release schedules dates document was updated!!</title><link>https://blog.cafecomcloud.com.br/2017/03/13/release-schedules-dates-document-was-updated/</link><pubDate>Mon, 13 Mar 2017 18:33:13 -0300</pubDate><guid>https://blog.cafecomcloud.com.br/2017/03/13/release-schedules-dates-document-was-updated/</guid><description>&lt;p&gt;Continue Hanganalyze&amp;rsquo;s post: &lt;a class="link" href="https://dbdebug.wordpress.com/2017/03/02/84/" target="_blank" rel="noopener"
 &gt;12.2 on-prem available for download&lt;/a&gt;, we see that realease date document was update on MOS (742060.1).&lt;/p&gt;
&lt;p&gt;Basically Oracle 12.2 was released for cloud (in March 2017 for premises) and 12.2 have been supported until 2021.&lt;/p&gt;
&lt;p&gt;&lt;img alt="roadmap" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://blog.cafecomcloud.com.br/images/roadmap.jpg"&gt;&lt;/p&gt;
&lt;p&gt;So, now it&amp;rsquo;s time to think about and plan to upgrade databases 11.2.0.4 and 12.1.0.2, of course if  application was compatible too! :-)&lt;/p&gt;
&lt;p&gt;Remember, now Oracle Recertification program follow the schedules date (more information you could see in this &lt;a class="link" href="https://www.youtube.com/watch?v=Fk94YhBFZS8" target="_blank" rel="noopener"
 &gt;video&lt;/a&gt;).&lt;/p&gt;</description></item></channel></rss>