<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Archives des Oracle Enterprise Manager Cloud 12c - dbi Blog</title>
	<atom:link href="https://www.dbi-services.com/blog/tag/oracle-enterprise-manager-cloud-12c/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbi-services.com/blog/tag/oracle-enterprise-manager-cloud-12c/</link>
	<description></description>
	<lastBuildDate>Mon, 18 Mar 2019 07:30:17 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2025/05/cropped-favicon_512x512px-min-32x32.png</url>
	<title>Archives des Oracle Enterprise Manager Cloud 12c - dbi Blog</title>
	<link>https://www.dbi-services.com/blog/tag/oracle-enterprise-manager-cloud-12c/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>When you change the UNDO_RETENTION parameter, the LOB segment’s retention value is not modified</title>
		<link>https://www.dbi-services.com/blog/when-you-change-the-undo_retention-parameter-the-lob-segments-retention-value-is-not-modified/</link>
					<comments>https://www.dbi-services.com/blog/when-you-change-the-undo_retention-parameter-the-lob-segments-retention-value-is-not-modified/#respond</comments>
		
		<dc:creator><![CDATA[Oracle Team]]></dc:creator>
		<pubDate>Mon, 18 Mar 2019 07:30:17 +0000</pubDate>
				<category><![CDATA[Database Administration & Monitoring]]></category>
		<category><![CDATA[Database management]]></category>
		<category><![CDATA[Development & Performance]]></category>
		<category><![CDATA[Hardware & Storage]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[12.2]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[High availability]]></category>
		<category><![CDATA[Oracle 11g]]></category>
		<category><![CDATA[Oracle 12.2]]></category>
		<category><![CDATA[Oracle 12c]]></category>
		<category><![CDATA[Oracle 18c]]></category>
		<category><![CDATA[Oracle Enterprise Manager Cloud 12c]]></category>
		<category><![CDATA[Performance]]></category>
		<guid isPermaLink="false">https://www.dbi-services.com/blog/when-you-change-the-undo_retention-parameter-the-lob-segments-retention-value-is-not-modified/</guid>

					<description><![CDATA[<p>Below, I will try to explain, a particular case for the general error : ORA-01555 snapshot too old error.. Normally, when we have this error, we are trying to adapt the retention parameters or to tune our queries. SQL&#62; show parameter undo; NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ temp_undo_enabled boolean FALSE undo_management string AUTO undo_retention [&#8230;]</p>
<p>L’article <a href="https://www.dbi-services.com/blog/when-you-change-the-undo_retention-parameter-the-lob-segments-retention-value-is-not-modified/">When you change the UNDO_RETENTION parameter, the LOB segment’s retention value is not modified</a> est apparu en premier sur <a href="https://www.dbi-services.com/blog">dbi Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Below, I will try to explain, a particular case for the general error : <strong>ORA-01555 snapshot too old error..</strong></p>
<p>Normally, when we have this error, we are trying to adapt the retention parameters or to tune our queries.</p>
<pre class="brush: sql; gutter: true; first-line: 1">SQL&gt; show parameter undo;

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
temp_undo_enabled                    boolean     FALSE
undo_management                      string      AUTO
undo_retention                       integer     3600 --extended from 900,
undo_tablespace                      string      UNDOTBS1
</pre>
<p>But, are some scenarios where the above rule is not working .</p>
<p>We got from the alert log file of the DB the sql id which caused the issue : <strong>pmrbk5fdfd665</strong></p>
<p>But, when you want to search for it, in <strong>V$SQL/V$SQLAREA</strong>  is not there</p>
<pre class="brush: sql; gutter: true; first-line: 1">SQL&gt; select sql_fulltext from v$sql where sql_id like '%pmrbk5fdfd665%';

no rows selected
</pre>
<p><strong>Why?</strong></p>
<p>Seems that, sql_id is present in <strong>V$OPEN_CURSOR</strong>, with an input into the <strong>sqltext</strong> column.<br />
The issue is coming from the fact that the statement is accessing a LOB column, which causes to Oracle to generate a new sql id.<br />
The execution part related to the LOBs will not appear into V$SQL/V$SQLAREA and is not captured into the AWR reports.</p>
<pre class="brush: sql; gutter: true; first-line: 1">SQL&gt;  select distinct * from v$open_cursor
  2     where rownum &lt; 25
  3     and sql_id like '%pmrbk5fdfd665%';

SADDR                   SID USER_NAME                      ADDRESS          HASH_VALUE SQL_ID        SQL_TEXT                                                     LAST_SQL SQL_EXEC_ID CURSOR_TYPE
---------------- ---------- ------------------------------ ---------------- ---------- ------------- ------------------------------------------------------------ -------- ----------- ---------------
0000000670A19780         74 my_user                   00000002EB91F1F0 3831220380 pmrbk5fdfd665 table_104_11_XYZT_0_0_0
00000006747F0478        131 my_user                   00000002EB91F1F0 3831220380 pmrbk5fdfd665 table_104_11_XYZT_0_0_0
</pre>
<p>Apparently, the string into the sql_text column is  a  HEX representation of the object_id that is being accessed.<br />
In our case is :<strong>XYZT</strong></p>
<pre class="brush: sql; gutter: true; first-line: 1">SQL&gt;    select owner, object_name, object_type
  2    from dba_objects
  3    where object_id = (select to_number('&amp;hex_value','XXXXXX') from dual);
Enter value for hex_value: XYZT
old   3:   where object_id = (select to_number('&amp;hex_value','XXXXXX') from dual)
new   3:   where object_id = (select to_number('XYZT','XXXXXX') from dual)

                                                                                                                    
OWNER                  OBJECT_TYPE                                               OBJECT_NAME
---------------------- --------------------------------------------------------------------------
my_user                TABLE                                                     my_table


SQL&gt; desc my_user.my_table;
 Name                  Type
 -------------------   ----------------
 EXPERIMENT_ID          VARCHAR2(20)
 DOCUMENT               BLOB
............….
</pre>
<p>If we are looking for the retention on the &#8221; DOCUMENT &#8221; column, we will see :</p>
<pre class="brush: sql; gutter: true; first-line: 1">SQL&gt; select table_name, pctversion, retention,segment_name from dba_lobs where table_name in ('my_table');

TABLE_NAME                                                                               
                                                  PCTVERSION  RETENTION                  SEGMENT_NAME
---------------------------------------------------------------------------------------- ------------------------------------
my_table                                                       900                       SYS_LOB0000027039C00002$$</pre>
<p>In order to fix it , try to run this column to adapt the retention of the blob column, related to the new value of the UNDO_RETENTION parameter,</p>
<pre class="brush: sql; gutter: true; first-line: 1">ALTER TABLE my_table MODIFY LOB (DOCUMENT) (3600);</pre>
<p>L’article <a href="https://www.dbi-services.com/blog/when-you-change-the-undo_retention-parameter-the-lob-segments-retention-value-is-not-modified/">When you change the UNDO_RETENTION parameter, the LOB segment’s retention value is not modified</a> est apparu en premier sur <a href="https://www.dbi-services.com/blog">dbi Blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbi-services.com/blog/when-you-change-the-undo_retention-parameter-the-lob-segments-retention-value-is-not-modified/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Upgrade to Enterprise Manager 13.2</title>
		<link>https://www.dbi-services.com/blog/upgrade-to-enterprise-manager-13-2/</link>
					<comments>https://www.dbi-services.com/blog/upgrade-to-enterprise-manager-13-2/#respond</comments>
		
		<dc:creator><![CDATA[Oracle Team]]></dc:creator>
		<pubDate>Tue, 13 Dec 2016 13:11:44 +0000</pubDate>
				<category><![CDATA[Database Administration & Monitoring]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Oracle Enterprise Manager]]></category>
		<category><![CDATA[Oracle Enterprise Manager Cloud 12c]]></category>
		<guid isPermaLink="false">https://www.dbi-services.com/blog/upgrade-to-enterprise-manager-13-2/</guid>

					<description><![CDATA[<p>I will describe how to upgrade Enterprise Manager 13.1.0.0 to the new 13.2.0.0 version. At the beginning we have to ensure that we applied the latest PSU on the repository database. It is mandatory to apply the following patch before upgrading to Enterprise Manager Cloud Control 13.2.0.0: DATABASE PATCH SET UPDATE 12.1.0.2.160419 To install the [&#8230;]</p>
<p>L’article <a href="https://www.dbi-services.com/blog/upgrade-to-enterprise-manager-13-2/">Upgrade to Enterprise Manager 13.2</a> est apparu en premier sur <a href="https://www.dbi-services.com/blog">dbi Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I will describe how to upgrade Enterprise Manager 13.1.0.0 to the new 13.2.0.0 version.</p>
<p>At the beginning we have to ensure that we applied the latest PSU on the repository database.</p>
<p>It is mandatory to apply the following patch before upgrading to Enterprise Manager Cloud Control 13.2.0.0:</p>
<p>DATABASE PATCH SET UPDATE 12.1.0.2.160419</p>
<p>To install the patch you have to check the following point:</p>
<p class="dbiNormal">&#8211; you have to use <span lang="EN-US">Oracle Interim Patch Installer version 12.2.0.1.8</span></p>
<p class="dbiNormal">Once you have downloaded the patch and unzipped it, you can check for potential conflicts:</p>
<pre class="brush: sql; gutter: false; first-line: 1">oracle@vmCC13c:/u01/app/oracle/ [EMREP13C] opatch prereq 
CheckConflictAgainstOHWithDetail 
-phBaseDir /oracle/u01/app/oracle/software/22899531/22806133
Oracle Interim Patch Installer version 12.2.0.1.8
Copyright (c) 2016, Oracle Corporation.  All rights reserved.
PREREQ session
Oracle Home       : /u01/app/oracle/product/12.1.0/dbhome_1
Central Inventory : /u01/app/oraInventory
   from           : /u01/app/oracle/product/12.1.0/dbhome_1/oraInst.loc
OPatch version    : 12.2.0.1.8
OUI version       : 12.1.0.2.0
Invoking prereq "checkconflictagainstohwithdetail"
Prereq "checkConflictAgainstOHWithDetail" passed. 
OPatch succeeded.</pre>
<p>&nbsp;</p>
<pre class="brush: sql; gutter: false; first-line: 1">oracle@vmCC13c:/u01/app/oracle/ [EMREP13C] opatch prereq 
CheckConflictAgainstOHWithDetail -phBaseDir 
/oracle/u01/app/oracle/software/22899531/23006522
Oracle Interim Patch Installer version 12.2.0.1.8
Copyright (c) 2016, Oracle Corporation.  All rights reserved.
PREREQ session
Oracle Home       : /u01/app/oracle/product/12.1.0/dbhome_1
Central Inventory : /u01/app/oraInventory
   from           : /u01/app/oracle/product/12.1.0/dbhome_1/oraInst.loc
OPatch version    : 12.2.0.1.8
OUI version       : 12.1.0.2.0
Invoking prereq "checkconflictagainstohwithdetail"
Prereq "checkConflictAgainstOHWithDetail" passed.
OPatch succeeded.</pre>
<p>And finally, you check for the system space available:</p>
<pre class="brush: sql; gutter: false; first-line: 1">oracle@vmCC13c:/u01/app/oracle/ [EMREP13C] $ORACLE_HOME/OPatch/opatch prereq 
CheckSystemSpace -phBaseFile /oracle/u01/app/oracle/software/patch_list_dbhome.txt
Oracle Interim Patch Installer version 12.2.0.1.8
Copyright (c) 2016, Oracle Corporation.  All rights reserved.
PREREQ session
Oracle Home       : /u01/app/oracle/product/12.1.0/dbhome_1
Central Inventory : /u01/app/oraInventory
   from           : /u01/app/oracle/product/12.1.0/dbhome_1/oraInst.loc
OPatch version    : 12.2.0.1.8
OUI version       : 12.1.0.2.0
Invoking prereq "checksystemspace"
Prereq "checkSystemSpace" passed.
OPatch succeeded.</pre>
<p>Then once the pre requisites are ok, you stop the repository database, and you run the classical opatch apply command from the directory where you have unzipped the PSU.</p>
<p>You finally check the Oracle inventory:</p>
<pre class="brush: sql; gutter: false; first-line: 1">oracle@vmtestoraCC13c:/home/oracle/ [EMREP13C] opatch lsinventory
Oracle Interim Patch Installer version 12.2.0.1.8
Copyright (c) 2016, Oracle Corporation.  All rights reserved.
Oracle Home       : /u01/app/oracle/product/12.1.0/dbhome_1
Central Inventory : /u01/app/oraInventory
   from           : /u01/app/oracle/product/12.1.0/dbhome_1/oraInst.loc
OPatch version    : 12.2.0.1.8
OUI version       : 12.1.0.2.0
--------------------------------------------------------------------------------
Local Machine Information:
ARU platform id: 226
ARU platform description:: Linux x86-64
Installed Top-level Products (1):
Oracle Database 12c                                      12.1.0.2.0
There are 1 products installed in this Oracle Home. 
Interim patches (1) : 
Patch  22806133     : applied on Tue Nov 22 11:19:55 CET 2016
Unique Patch ID:  19983161
Patch description:  "DATABASE BUNDLE PATCH: 12.1.0.2.160419 (22806133)"</pre>
<p>Secondly you have to disable the optimizer_adaptive_features parameter in the repository database:</p>
<pre class="brush: sql; gutter: false; first-line: 1">SQL&gt; alter system set optimizer_adaptive_features=false scope=both;</pre>
<p class="dbiNormal"><span lang="EN-US">System altered.</span></p>
<p>Then we have to ensure that the tables in the Management Repository do not have any snapshots created:</p>
<pre class="brush: sql; gutter: false; first-line: 1">SQL&gt; select master , log_table from all_mview_logs where log_owner='SYSMAN';</pre>
<pre class="brush: sql; gutter: false; first-line: 1">no rows selected</pre>
<p>Then we have to ensure that the tables in the Management Repository do not have any snapshots created:</p>
<pre class="brush: sql; gutter: false; first-line: 1">SQL&gt; select master , log_table from all_mview_logs where log_owner='SYSMAN';</pre>
<pre class="brush: sql; gutter: true; first-line: 1">no rows selected</pre>
<p>We verify if any login triggers are set:</p>
<pre class="brush: sql; gutter: false; first-line: 1">SQL&gt; SELECT COUNT (trigger_name) FROM sys.dba_triggers 
WHERE TRIGGERING_EVENT LIKE 'LOGON%' AND status='ENABLED';
SQL&gt; SELECT trigger_name FROM sys.dba_triggers 
WHERE TRIGGERING_EVENT LIKE 'LOGON%' AND status='ENABLED';</pre>
<p>We verify if any logoff triggers are set:</p>
<pre class="brush: sql; gutter: false; first-line: 1">SQL&gt; SELECT COUNT (trigger_name) FROM sys.dba_triggers
WHERE TRIGGERING_EVENT LIKE 'LOGOFF%' AND status='ENABLED';
SQL&gt; SELECT trigger_name FROM sys.dba_triggers
WHERE TRIGGERING_EVENT LIKE 'LOGOFF%' AND status='ENABLED';</pre>
<p>If we find a trigger enabled, we disable it:</p>
<pre class="brush: sql; gutter: false; first-line: 1">SQL&gt; SELECT trigger_name, owner from sys.dba_triggers 
WHERE TRIGGERING_EVENT LIKE 'LOGOFF%' AND status='ENABLED';
 
TRIGGER_NAME         OWNER
GSMLOGOFF            GSMADMIN_INTERNAL
 
SQL&gt; alter trigger gsmadmin_internal.gsmlogoff disable;</pre>
<p>Then you have to copy the EMKEY to the repository database:</p>
<pre class="brush: sql; gutter: false; first-line: 1">oracle@vmCC13c:/u03/app/oracle/oms13c/bin/ [oms13c] emctl config emkey 
-copy_to_repos -sysman_pwd dbi05manager
Oracle Enterprise Manager Cloud Control 13c Release 1
Copyright (c) 1996, 2015 Oracle Corporation.  All rights reserved.
The EMKey has been copied to the Management Repository. 
This operation will cause the EMKey to become unsecure.
After the required operation has been completed, 
secure the EMKey by running "emctl config emkey -remove_from_repos".</pre>
<p>Concerning the OMS shutdown we follow the following procedure:</p>
<p>We stop the JVMD and ADP engines explicitly:</p>
<pre class="brush: sql; gutter: false; first-line: 1">oracle@vmCC13c:/u03/app/oracle/oms13c/bin/ [oms13c] emctl extended oms jvmd stop -all
Oracle Enterprise Manager Cloud Control 13c Release 1
Copyright (c) 1996, 2015 Oracle Corporation.  All rights reserved.
No verb found to be registered with emctl extensibles framework
 
oracle@vmCC13c:/u03/app/oracle/oms13c/bin/ [oms13c] emctl extended oms adp stop -all
Oracle Enterprise Manager Cloud Control 13c Release 1
Copyright (c) 1996, 2015 Oracle Corporation.  All rights reserved.
No verb found to be registered with emctl extensibles framework</pre>
<p>Then we shut down completely the OMS:</p>
<pre class="brush: sql; gutter: false; first-line: 1">oracle@v333:/home/oracle/ [oms13c] emctl stop oms -all
Oracle Enterprise Manager Cloud Control 13c Release 1
Copyright (c) 1996, 2015 Oracle Corporation.  All rights reserved.
Stopping Oracle Management Server...
WebTier Successfully Stopped
Oracle Management Server Successfully Stopped
Oracle Management Server is Down
JVMD Engine is Down
Stopping BI Publisher Server...
BI Publisher Server Successfully Stopped
AdminServer Successfully Stopped
BI Publisher Server is Down</pre>
<p>It is mandatory to stop the management agent in order to avoid errors during the migration phase:</p>
<pre class="brush: sql; gutter: false; first-line: 1">oracle@vmtestoraCC13c:/home/oracle/ [agent13c] emctl stop agent
Oracle Enterprise Manager Cloud Control 13c Release 1
Copyright (c) 1996, 2015 Oracle Corporation.  All rights reserved.
Stopping agent ... stopped.</pre>
<p>WATCH OUT: before running the installer unset PERLLIB and PERL5LIB variables (if for example you have environment variables defined for your oracle user) otherwise you will get the following error:</p>
<pre class="brush: sql; gutter: false; first-line: 1">/opt/oracle/Middleware13c/perl/lib/5.10.0/x86_64-linux-thread-multi/auto/Cwd/Cwd.so: 
undefined symbol: Perl_Gthr_key_ptr
ERROR: Unable to continue with the installation 
because some one-off patches could not be applied successfully.</pre>
<p>Then once the oms and the management agent are stopped you can run:</p>
<pre class="brush: sql; gutter: false; first-line: 1">oracle@v333:/opt/software/ [oms13c] ./em13200_linux64.bin
Checking monitor: must be configured to display at least 256 colors.   
Actual 16777216    Passed
Checking swap space: must be greater than 512 MB.   Actual 7999 MB    Passed
Checking if this platform requires a 64-bit JVM.   Actual 64    
Passed (64-bit not required)
Preparing to launch the Oracle Universal Installer 
from /tmp/OraInstall2016-11-18_10-07-45AM
====Prereq Config Location main===
/tmp/OraInstall2016-11-18_10-07-45AM/stage/prereq
EMGCInstaller args -scratchPath
EMGCInstaller args /tmp/OraInstall2016-11-18_10-07-45AM
EMGCInstaller args -sourceType
EMGCInstaller args network
EMGCInstaller args -timestamp
EMGCInstaller args 2016-11-18_10-07-45AM
EMGCInstaller args -paramFile
EMGCInstaller args /tmp/sfx_f8wrWz/Disk1/install/linux64/oraparam.ini
EMGCInstaller args -nocleanUpOnExit
DiskLoc inside SourceLoc/opt/software
EMFileLoc:/tmp/OraInstall2016-11-18_10-07-45AM/oui/em/
ScratchPathValue :/tmp/OraInstall2016-11-18_10-07-45AM</pre>
<p>The first installer screen appears:</p>
<p><a href="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/em1.png"><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-13582" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/em1.png" alt="em1" width="472" height="366" /></a></p>
<p>I choosed not to receive Security alerts then I Select Next:</p>
<p><a href="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/em2.png"><img decoding="async" class="alignnone size-full wp-image-13583" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/em2.png" alt="em2" width="476" height="370" /></a></p>
<p>I select Next, I skip the software Updates</p>
<p><a href="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/em3.png"><img decoding="async" class="alignnone size-full wp-image-13584" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/em3.png" alt="em3" width="483" height="375" /></a></p>
<p>We check the prerequisites are ok</p>
<p><a href="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/em4.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-13585" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/em4.png" alt="em4" width="484" height="382" /></a></p>
<p>We choose to upgrade an existing Enterprise Manager system, we enter the old Middleware home, and we select Next</p>
<p><a href="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/em5.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-13586" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/em5.png" alt="em5" width="482" height="379" /></a></p>
<p>We enter the new Middleware home, and we select Next</p>
<p><a href="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/em6.png"><img loading="lazy" decoding="async" class="alignnone  wp-image-13587" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/em6.png" alt="em6" width="480" height="380" /></a></p>
<p>We enter the repository connection details, the sys and sysman passords, we confirm we have a correct repository backupm we disable the DDMP jobs and we select Next</p>
<p><a href="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/em7.png"><img loading="lazy" decoding="async" class="alignnone  wp-image-13588" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/em7.png" alt="em7" width="385" height="221" /></a></p>
<p>We select Yes to fix the issues</p>
<p><a href="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/em8.png"><img loading="lazy" decoding="async" class="alignnone  wp-image-13589" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/em8.png" alt="em8" width="463" height="366" /></a></p>
<p>We review the plugins and we select Next</p>
<p><a href="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/em9.png"><img loading="lazy" decoding="async" class="alignnone  wp-image-13590" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/em9.png" alt="em9" width="464" height="360" /></a></p>
<p>We have the possibility to add plugins we want to deploy while upgrading to EM 13.2</p>
<p><a href="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/em10.png"><img loading="lazy" decoding="async" class="alignnone  wp-image-13591" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/em10.png" alt="em10" width="472" height="375" /></a></p>
<p>We enter the weblogic username and password and we select Next</p>
<p><a href="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/em11.png"><img loading="lazy" decoding="async" class="alignnone  wp-image-13592" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/em11.png" alt="em11" width="473" height="368" /></a></p>
<p>I choosed not to configure a shared location for Oracle BI publisher</p>
<p><a href="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/em121.png"><img loading="lazy" decoding="async" class="alignnone  wp-image-13594" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/em121.png" alt="em12" width="478" height="371" /></a></p>
<p>We choose the default ports and we select Next</p>
<p><a href="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/em13.png"><img loading="lazy" decoding="async" class="alignnone  wp-image-13596" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/em13.png" alt="em13" width="477" height="378" /></a></p>
<p>We select Upgrade:</p>
<p><a href="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/em14.png"><img loading="lazy" decoding="async" class="alignnone  wp-image-13597" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/em14.png" alt="em14" width="482" height="376" /></a></p>
<p>The upgrade is running fine:=)</p>
<p>At the end of the upgrade, you have to run connected as root from the new OMS home the shell root.sh:</p>
<pre class="brush: sql; gutter: false; first-line: 1">root@vmCC13c oms13cr2]# . root.sh
/etc exist
/u03/app/oracle/oms13cr2</pre>
<p>Finally you have successfully upgraded to EM 13.2:</p>
<p><a href="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/em15.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-13598" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/em15.png" alt="em15" width="358" height="207" /></a></p>
<p>Once the OMs is upgraded, you have to upgrade the management agents with the classical procedure. From the EM console you select upgrade agent as follows:</p>
<p><a href="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/em16.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-13599" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/em16.png" alt="em16" width="256" height="279" /></a></p>
<p><a href="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/em17.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-13600" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/em17.png" alt="em17" width="627" height="220" /></a></p>
<p>You add the management agent, and you select Submit</p>
<p><a href="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/em18.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-13601" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/em18.png" alt="em18" width="627" height="199" /></a></p>
<p>You can follow the upgrade phase, finally you have to run the root.sh script on the management agent and cleanup the old agent environment with the EM console as follows:</p>
<p>You select the Post Agent Upgrade Tasks, you select the agent previously migrated:</p>
<p><a href="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/em19.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-13602" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/em19.png" alt="em19" width="627" height="215" /></a></p>
<p>And you select Submit</p>
<p>The old agent home will be removed; you will just have to adapt your /etc/oratab file to give the new ORACLE_HOME for your agent 13.2</p>
<p>The last phase consists in deleting the old OMS home. As we were in 13.1 version, we only have to check nothing is running with the old environment, then delete the old home.</p>
<pre class="brush: sql; gutter: false; first-line: 1">oracle@vmCC13c:/u03/app/oracle/oms13cr2/ [oms13c] ps -ef | grep oms | grep -v 13cr2
oracle   28463 27736  0 15:52 pts/5    00:00:00 grep --color=auto oms
 
oracle@vmCC13c:/u03/app/oracle/ [oms13c] ls
agent13c  CC13c_setupinfo.txt  gc_inst  gc_inst1  oms13c  oms13cr2  swlib
oracle@vmCC13c:/u03/app/oracle/ [oms13c] rm -rf oms13c

</pre>
<p class="dbiNormal"><span lang="EN-US">The new features are listed in the following URL and mainly concern the virtualization, the Middleware and Cloud Management, and some new features about incident management (always on monitoring installed on a different host for example).</span></p>
<p class="dbiNormal"><span lang="EN-US"><a href="http://docs.oracle.com/cd/E73210_01/EMCON/GUID-503991BC-D1CD-46EC-8373-8423B2D43437.htm#EMCON-GUID-503991BC-D1CD-46EC-8373-8423B2D43437">http://docs.oracle.com/cd/E73210_01/EMCON/GUID-503991BC-D1CD-46EC-8373-8423B2D43437.htm#EMCON-GUID-503991BC-D1CD-46EC-8373-8423B2D43437</a></span></p>
<p class="dbiNormal">Finally the upgrade phase to EM 13.2 is finished in a couple of hours and did not present any errors.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>L’article <a href="https://www.dbi-services.com/blog/upgrade-to-enterprise-manager-13-2/">Upgrade to Enterprise Manager 13.2</a> est apparu en premier sur <a href="https://www.dbi-services.com/blog">dbi Blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbi-services.com/blog/upgrade-to-enterprise-manager-13-2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to rename listener target in EM Cloud 12c ?</title>
		<link>https://www.dbi-services.com/blog/how-to-rename-listener-target-in-em-cloud-12c/</link>
					<comments>https://www.dbi-services.com/blog/how-to-rename-listener-target-in-em-cloud-12c/#respond</comments>
		
		<dc:creator><![CDATA[Oracle Team]]></dc:creator>
		<pubDate>Fri, 27 Nov 2015 10:57:47 +0000</pubDate>
				<category><![CDATA[Database Administration & Monitoring]]></category>
		<category><![CDATA[Oracle Enterprise Manager Cloud 12c]]></category>
		<guid isPermaLink="false">https://www.dbi-services.com/blog/how-to-rename-listener-target-in-em-cloud-12c/</guid>

					<description><![CDATA[<p>Sometimes it is necessary to rename targets in Enterprise Manager Cloud Control 12c. In my case I have listener targets discovered by EM12c with the hostname at the end of the target name: TESTDBA_LSN_dbserver1 As I work in a Veritas clustered environment, when the target switches to the other node (dbserver2) the listener target is [&#8230;]</p>
<p>L’article <a href="https://www.dbi-services.com/blog/how-to-rename-listener-target-in-em-cloud-12c/">How to rename listener target in EM Cloud 12c ?</a> est apparu en premier sur <a href="https://www.dbi-services.com/blog">dbi Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<pre class="brush: actionscript3; gutter: false; first-line: 1"></pre>
<pre class="brush: html; gutter: false; first-line: 1"></pre>
<pre class="brush: html; gutter: false; first-line: 1"></pre>
<pre class="brush: html; gutter: false; first-line: 1"></pre>
<pre class="brush: html; gutter: false; first-line: 1">
</pre>
<p>Sometimes it is necessary to rename targets in Enterprise Manager Cloud Control 12c. In my case I have listener targets discovered by EM12c with the hostname at the end of the target name: TESTDBA_LSN_dbserver1</p>
<p>As I work in a Veritas clustered environment, when the target switches to the other node (dbserver2) the listener target is relocated, but its name is always TESTDBA_LSN_dbserver1.</p>
<p>How to rename a listener target in EM Cloud Control 12c?</p>
<p>We use emcli to list the agent’s targets:</p>
<pre class="brush: actionscript3; gutter: false; first-line: 1">oracle@dbserver1:/opt/oracle/agent12c/core/12.1.0.4.0/bin/ [agent12c] ./emctl config agent 
listtargets | grep TESTDBA

[TESTDBA_SITE1.domain.com, oracle_database]

[TESTDBA_LSN_dbserver1, oracle_listener]</pre>
<p>From the Oracle Management Repository, we can also run the query:</p>
<pre class="brush: actionscript3; gutter: false; first-line: 1">SQL&gt;SELECT ENTITY_TYPE,ENTITY_NAME,DISPLAY_NAME
FROM SYSMAN.EM_MANAGEABLE_ENTITIES
WHERE MANAGE_STATUS = 2
and DISPLAY_NAME like '%TESTDBA%'
ORDER BY 1;</pre>
<pre class="brush: actionscript3; gutter: false; first-line: 1">ENTITY_TYPE           ENTITY_NAME                          DISPLAY_NAME
oracle_database    TESTDBA_SITE1.domain.com             TESTDBA_SITE1.domain.com
oracle_dbsys       TESTDBA_SITE1.domain.com_sys         TESTDBA_SITE1.domain.com_sys
oracle_listener    TESTDBA_LSN_dbserver1                TESTDBA_LSN_dbserver1</pre>
<p>Then from OMS server you can change the display_name:</p>
<pre class="brush: actionscript3; gutter: false; first-line: 1">oracle@omsserver:/home/oracle/[oms12c] emcli modify_target 
-name="TESTDBA_LSN_dbserver1" -type="oracle_listener" -display_name="TESTDBA_LSN"

Target "TESTDBA_LSN_dbserver1:oracle_listener" modified successfully</pre>
<p>If we run again the previous query the display name is modified in the repository, and the Cloud 12c console display the name correctly:</p>
<pre class="brush: actionscript3; gutter: false; first-line: 1">SQL&gt;SELECT ENTITY_TYPE,ENTITY_NAME,DISPLAY_NAME
FROM SYSMAN.EM_MANAGEABLE_ENTITIES
WHERE MANAGE_STATUS = 2
and DISPLAY_NAME like '%TESTDBA%'
ORDER BY 1;

</pre>
<pre class="brush: actionscript3; gutter: false; first-line: 1">ENTITY_TYPE           ENTITY_NAME                       DISPLAY_NAME 
oracle_database    TESTDBA_SITE1.domain.com          TESTDBA_SITE1.domain.com 
oracle_dbsys       TESTDBA_SITE1.domain.com_sys      TESTDBA_SITE1.domain.com_sys 
oracle_listener    TESTDBA_LSN_dbserver1             TESTDBA_LSN</pre>
<p>&nbsp;</p>
<p><img loading="lazy" decoding="async" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/ren1.png" alt="ren1" width="300" height="93" /></p>
<p>&nbsp;</p>
<p>By the way, we need now to change the target name, we use emcli to rename the target from the OMS server but what a surprise the operation is not allowed and we get the following error message:</p>
<pre class="brush: actionscript3; gutter: false; first-line: 1">oracle@omsserver:/home/oracle/ [oms12c] emcli rename_target -target_type="oracle_listener"
 -target_name="TESTDBA_LSN_dbserver1" -new_target_name="TESTDBA_LSN"

Rename not supported for the given Target Type.</pre>
<p>&nbsp;</p>
<p>If we try to run the procedure from the Oracle Management Repository, we notice we have more details in the error message:</p>
<pre class="brush: actionscript3; gutter: false; first-line: 1">SQL&gt; exec em_target.rename_target('oracle_listener','TESTDBA_LSN_dbserver1','TESTDBA_LSN', 'TESTBA_LSN');
BEGIN 
em_target.rename_target('oracle_listener','TESTDBA_LSN_dbserver1','TESTDBA_LSN', 'TESTBA_LSN'); 
END;
*ERROR at line 1:
ORA-20233: -20233 Not allowed
ORA-06512: at "SYSMAN.EM_TARGET", line 8033
ORA-06512: at line 1</pre>
<p>I we look more precisely in the sysman em_target package body source code:</p>
<pre class="brush: actionscript3; gutter: false; first-line: 1">-- we will implement rename of agent side targets when it is fully
-- supported by agent
IF ( l_trec.manage_status = MANAGE_STATUS_MANAGED AND
l_trec.emd_url IS NOT NULL)
THEN
raise_application_error(MGMT_GLOBAL.INVALID_PARAMS_ERR,
MGMT_GLOBAL.INVALID_PARAMS_ERR||' Not allowed') ;
END IF ;</pre>
<p>&nbsp;</p>
<p>I decided to test the following modification; I put the code in comment and recreate and recompile the em_target package body:</p>
<pre class="brush: actionscript3; gutter: false; first-line: 1">-- we will implement rename of agent side targets when it is fully     
-- supported by agent  
-- IF ( l_trec.manage_status = MANAGE_STATUS_MANAGED AND   
--     l_trec.emd_url IS NOT NULL)   
-- THEN     
-- raise_application_error(MGMT_GLOBAL.INVALID_PARAMS_ERR,       
--   MGMT_GLOBAL.INVALID_PARAMS_ERR||' Not allowed') ;   
-- END IF ;</pre>
<p>And now the target entity rename is working fine:</p>
<pre class="brush: actionscript3; gutter: false; first-line: 1">Oracle@omsserver:/home/oracle/ [oms12c] emcli rename_target 
-target_type="oracle_listener" -target_name="TESTDBA_LSN_dbserver1" 
-new_target_name="TESTDBA_LSN"

Target TESTDBA_LSN_dbserver1 successfully renamed to TESTDBA_LSN.</pre>
<p>Finally my listener target has now a correct name:</p>
<pre class="brush: actionscript3; gutter: false; first-line: 1">SQL&gt;SELECT ENTITY_TYPE,ENTITY_NAME,DISPLAY_NAME
FROM SYSMAN.EM_MANAGEABLE_ENTITIES
WHERE MANAGE_STATUS = 2
and DISPLAY_NAME like '%TESTDBA%'
ORDER BY 1;</pre>
<pre class="brush: actionscript3; gutter: false; first-line: 1">ENTITY_TYPE          ENTITY_NAME                         DISPLAY_NAME
oracle_database   TESTDBA_SITE1.domain.com            TESTDBA_SITE1.domain.com
oracle_dbsys      TESTDBA_SITE1.domain.com_sys        TESTDBA_SITE1.domain.com_sys
oracle_listener   TESTDBA_LSN                         TESTDBA_LSN</pre>
<p>&nbsp;</p>
<p>Conclusion:</p>
<p><span style="font-size: 11pt;line-height: 107%;font-family: 'Calibri','sans-serif'">Don’t forget to back up your Oracle Management Repository database before any modifications in the EM_TARGET package, and once you have done your target name modification, uncomment the code you have modified to return to the original situation.</span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>L’article <a href="https://www.dbi-services.com/blog/how-to-rename-listener-target-in-em-cloud-12c/">How to rename listener target in EM Cloud 12c ?</a> est apparu en premier sur <a href="https://www.dbi-services.com/blog">dbi Blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbi-services.com/blog/how-to-rename-listener-target-in-em-cloud-12c/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Querying the Oracle Management Repository</title>
		<link>https://www.dbi-services.com/blog/querying-the-oracle-management-repository/</link>
					<comments>https://www.dbi-services.com/blog/querying-the-oracle-management-repository/#respond</comments>
		
		<dc:creator><![CDATA[Oracle Team]]></dc:creator>
		<pubDate>Wed, 25 Nov 2015 09:07:59 +0000</pubDate>
				<category><![CDATA[Database management]]></category>
		<category><![CDATA[Oracle Enterprise Manager Cloud 12c]]></category>
		<guid isPermaLink="false">https://www.dbi-services.com/blog/querying-the-oracle-management-repository/</guid>

					<description><![CDATA[<p>The Enterprise Manager Cloud Control 12c is an amazing tool allowing the DBA to display a lot of informations from the console . But there are also a lot of repository views that may be consulted by the DBA to build a lot of various reports. The Oracle Management Service collects a huge amount of [&#8230;]</p>
<p>L’article <a href="https://www.dbi-services.com/blog/querying-the-oracle-management-repository/">Querying the Oracle Management Repository</a> est apparu en premier sur <a href="https://www.dbi-services.com/blog">dbi Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<pre class="brush: actionscript3; gutter: false; first-line: 1"></pre>
<p>The Enterprise Manager Cloud Control 12c is an amazing tool allowing the DBA to display a lot of informations from the console . But there are also a lot of repository views that may be consulted by the DBA to build a lot of various reports.</p>
<p>The Oracle Management Service collects a huge amount of raw data from the agents installed on each managed host you administer with EM 12c.</p>
<p>Those raw data are inserted in various tables like EM_METRIC_VALUES for example. Enterprise Manager aggregates those management data by hour and by day. Those raw data are kept 7 days; the one hour aggregated data are kept 31 days, while one day aggregated data are kept one year.</p>
<p>A good way to get information in the Oracle Management Repository is to build queries against the GC%METRIC% views. The GC_METRIC% views are built from EM_METRIC_VALUES. EM_METRIC_ITEMS and EM_METRIC_KEYS tables and the GC$METRIC% views are built from the GC_METRIC% views. There are a lot of GC%METRIC% views :</p>
<pre class="brush: sql; gutter: false; first-line: 1">SQL&gt; select distinct view_name from user_views where view_name like 'GC%METRIC%' order by 1;</pre>
<pre class="brush: actionscript3; gutter: false; first-line: 1">GC$METRIC_CATEGORIES
GC$METRIC_COLUMNS
GC$METRIC_COLUMNS_TARGET 
GC$METRIC_ERROR_CURRENT
GC$METRIC_ERROR_HISTORY
GC$METRIC_GROUPS
GC$METRIC_GROUPS_TARGET
$METRIC_KEYS
GC$METRIC_LATEST
GC$METRIC_STR_VALUES
GC$METRIC_STR_VALUES_LATEST
GC$METRIC_VALUES
GC$METRIC_VALUES_DAILY
GC$METRIC_VALUES_HOURLY
GC$METRIC_VALUES_LATEST
GC$TARGET_METRIC_COLLECTIONS
GC_METRIC_COLLECTIONS
GC_METRIC_COLUMNS
GC_METRIC_COLUMNS_TARGET
GC_METRIC_COMPOSITE_KEYS
GC_METRIC_GROUPS
GC_METRIC_GROUPS_TARGET
GC_METRIC_KEYS
GC_METRIC_LATEST
GC_METRIC_LATEST_WO_TGT
GC_METRIC_STATS_METRIC
GC_METRIC_STATS_METRIC_DAILY
GC_METRIC_STATS_TARGET
GC_METRIC_STATS_TARGET_DAILY
GC_METRIC_STR_VALUES
GC_METRIC_STR_VALUES_LATEST
GC_METRIC_STR_VALUES_WO_TGT
GC_METRIC_THRESHOLDS
GC_METRIC_VALUES
GC_METRIC_VALUES_DAILY
GC_METRIC_VALUES_HOURLY
GC_METRIC_VALUES_LATEST
GC_METRIC_VAL_HOURLY_WO_TGT
GC_RAT_TRIAL_METRIC_VALUES
GC_RAT_TRIAL_TARGET_METRICS</pre>
<p>For example if we are interested by the load for a host, you can use the console:</p>
<p><img loading="lazy" decoding="async" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/qomr1.png" alt="qomr1" width="248" height="272" /></p>
<p>&nbsp;</p>
<p>You can also find this information by querying the OMR in the view gc$metric_columns for an entity of type host and a metric_group_label of type Load:</p>
<pre class="brush: actionscript3; gutter: false; first-line: 1">SQL&gt; select entity_type,metric_column_label,metric_group_label
from gc$metric_columns
where entity_type = 'host'
and metric_group_label = 'Load';</pre>
<p>&nbsp;</p>
<pre class="brush: sql; gutter: false; first-line: 1">host       Active Logical Memory, Kilobytes              Load
host       Active Memory, Kilobytes                      Load
host       CPU Interrupt Time (%)                        Load
host       CPU Queue Length                              Load
host       CPU Utilization (%)                           Load
host       CPU in I/O Wait (%)                           Load
host       CPU in System Mode (%)                        Load
host       CPU in User Mode (%)                          Load
host       Free Memory (%)                               Load
host       Free Memory, Kilobytes                        Load
host       Logical Free Memory (%)                       Load
host       Memory Page Scan Rate (per second)            Load
host       Memory Utilization (%)                        Load
host       Page Transfers Rate                           Load
host       Run Queue Length (1 minute average,per core)  Load
host       Run Queue Length (15 minute average,per core) Load
host       Run Queue Length (5 minute average,per core)  Load
host       Swap Free (KB)                                Load
host       Swap Utilization (%)                          Load
host       Swap Utilization, Kilobytes                   Load
host       Total Processes                               Load
host       Total Users                                   Load

</pre>
<p>We can sort the metrics collected by entity type for example host :</p>
<pre class="brush: actionscript3; gutter: false; first-line: 1">SQL&gt; select entity_type,metric_group_label
from gc$metric_columns
where entity_type = 'host'
group by entity_type,metric_group_label
order by 1,2;</pre>
<pre class="brush: sql; gutter: false; first-line: 1">host                                     All Processes
host                                     Battery details
host                                     Buffer Activity
host                                     CCCAppFileParser
host                                     CCCData_base
host                                     CCCData_group
host                                     CCCData_mapping
host                                     CCCData_obs
host                                     CCCData_queue
host                                     CCCData_warning
host                                     CCCWatchdog
host                                     CPU Usage
host                                     CPU Usage Internal
host                                     CPUs Details
host                                     Compute Node Temperature
host                                     DiscoverNow
….

Or an oracle database:</pre>
<pre class="brush: actionscript3; gutter: false; first-line: 1">SQL&gt; select entity_type,metric_group_label
from gc$metric_columns
where entity_type = 'oracle_database'
group by entity_type,metric_group_label
order by 1,2;

oracle_database                         ADDM Report - Global
oracle_database                         ALL Privileges
oracle_database                         ANY Privileges
oracle_database                         Access To Important Tables And Views
oracle_database                         Active Sessions by CPU and Wait Classes
oracle_database                         Alert Log
oracle_database                         Alert Log Content
oracle_database                         Alert Log Error Status
oracle_database                         Archive Area
oracle_database                         Archive Area - RAC Instance
oracle_database                         Audit Settings
oracle_database                         Audit Syslog Level
oracle_database                         AutoTask Client
oracle_database                         CPU Usage
oracle_database                         Collect SQL Response Time
oracle_database                         Connect Role
oracle_database                         Control files
oracle_database                         DB Alert Log
oracle_database                         DB Audit Files Permissions
oracle_database                         DB Control Files Permission
oracle_database                         DB Data Files Permissions
oracle_database                         DB InitParameter File Permissions
oracle_database                         DB Link Usage
oracle_database                         DB Password Setting
oracle_database                         DB Profile Setting
oracle_database                         DB Scheduler Jobs
oracle_database                         DBA Group Assignment
oracle_database                         DGPrimaryDBName
oracle_database                         Data Base parameter collection
oracle_database                         Data Failure
oracle_database                         Data Guard - 10.1 Database
oracle_database                         Data Guard - 9.2 Database
oracle_database                         Data Guard Failover
oracle_database                         Data Guard Fast-Start Failover
oracle_database                         Data Guard Fast-Start Failover Observer</pre>
<pre class="brush: shell; gutter: false; first-line: 1"></pre>
<p>So the main interest is to collect data from those views, for example we can look more precisely in the CPU consumption for a host:</p>
<pre class="brush: actionscript3; gutter: false; first-line: 1">SQL&gt; select entity_name ,collection_time,min_value as min,avg_value as avg,max_value as max
from gc$metric_values_daily
where metric_group_name = 'Load'
and metric_column_name = 'cpuUtil'
and (entity_name like '%dbserver1%' )
order by 2,1 asc;</pre>
<pre class="brush: sql; gutter: false; first-line: 1">Entity_name                 collection_time         min         avg              max
dbserver1.localdomain         01-JUN-15            3.782      17.4089931       72.284
dbserver1.localdomain         02-JUN-15            2.788      11.3085764       38.61
dbserver1.localdomain         03-JUN-15            4.16       11.7149271       28.975
dbserver1.localdomain         04-JUN-15            5.526      11.6824271       29.451
dbserver1.localdomain         05-JUN-1             5.337      10.9915486       27.319
dbserver1.localdomain         06-JUN-15            5.664      16.7499653       45.798
dbserver1.localdomain         07-JUN-15            5.021      15.4098958       84.75
dbserver1.localdomain         08-JUN-15            4.664       9.7744375       28.159
dbserver1.localdomain         09-JUN-15            4.79        9.4026805       21.113
dbserver1.localdomain         10-JUN-15            5.17        9.5937881       31.238
dbserver1.localdomain         11-JUN-15            5.162       8.8185104       16.562
dbserver1.localdomain         12-JUN-15            5.666      11.0074132       33.058
dbserver1.localdomain         13-JUN-15            6.412      15.4432917       42.709
dbserver1.localdomain         14-JUN-15            5.897       9.6474548       40.575
dbserver1.localdomain         15-JUN-15            5.675      14.5982083       34.483</pre>
<p>&nbsp;</p>
<p>For a more precise measure you can select on gc$metric_values_hourly:</p>
<pre class="brush: actionscript3; gutter: false; first-line: 1">SQL&gt; select entity_name,collection_time,min_value as min,avg_value as avg,max_value as max
from gc$metric_values_hourly
where metric_group_name = 'Load'
and metric_column_name = 'cpuUtil'
and (entity_name like 'dbserver1%' )
order by 1,2
/</pre>
<p>&nbsp;</p>
<pre class="brush: html; gutter: false; first-line: 1">Entity_name              collection_time                min            avg        max
….
dbserver1.localdomain   15-JUN-15 14:00:00            15.23            18.65     22.025
dbserver1.localdomain   15-JUN-15 15:00:00             7.844            9.17     11.406
dbserver1.localdomain   15-JUN-15 16:00:00             8.635           10.76     13.625
dbserver1.localdomain   15-JUN-15 17:00:00             7.928            9.57     16.607
dbserver1.localdomain   15-JUN-15 18:00:00             8.439           13.39     21.518
dbserver1.localdomain   15-JUN-15 19:00:00             7.722           10.56     14.767
dbserver1.localdomain   15-JUN-15 20:00:00             7.993            9.09     12.934
dbserver1.localdomain   15-JUN-15 21:00:00             7.449            9.20     12.2
dbserver1.localdomain   15-JUN-15 22:00:00             8.001           10.47     16.328
dbserver1.localdomain   15-JUN-15 23:00:00             7.366            8.77     14.51
….</pre>
<p>We can also display those values in the EM12c console:</p>
<p><img loading="lazy" decoding="async" class="alignnone" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/qomr2.png" alt="qomr2" width="605" height="153" /></p>
<p>&nbsp;</p>
<p>Thus there are great possibilities to query the gc$metric_values% views in order to build reports. For example if we look at the different metric_group_label for an oracle database entity:</p>
<pre class="brush: actionscript3; gutter: false; first-line: 1">SQL&gt; select distinct metric_group_label from gc$metric_values_daily
2   where entity_type = 'oracle_database' order by 1;</pre>
<pre class="brush: sql; gutter: false; first-line: 1">Alert Log Error Status
Archive Area
CPU Usage
Database Job Status
Database Limits
Database Size
Deferred Transactions
Dump Area
Efficiency
Flash Recovery
Global Cache Statistics
Interconnect Traffic
Invalid Objects by Schema
Memory Usage
Messages per buffered queue
Messages per buffered queue per subscriber
Messages per persistent queue
Messages per persistent queue per subscriber
OCM Instrumentation
Optimal SGA
PGA Allocated
Recovery Area
Response
SCN Growth Statistics
SCN Instance Statistics
SCN Max Statistics
SGA Pool Wastage
Segment Advisor Recommendations
Space usage by buffered queues
System Response Time Per Call
Tablespace Allocation
Tablespaces Full
Throughput
User Audit
User Block
User Locks
Wait Bottlenecks
Waits by Wait Class
backup_archive_log_age
datafile_backup
flashback available
incident_meter
max number of datafiles</pre>
<p>&nbsp;</p>
<p>Then we can ask for more precise measures:</p>
<pre class="brush: actionscript3; gutter: false; first-line: 1">SQL&gt; select distinct key_part_1 from gc$metric_values_daily 
where metric_group_name = 'wait_sess_cls' 
order by 1;</pre>
<pre class="brush: html; gutter: false; first-line: 1">Administrative
Application
Cluster
Commit
Concurrency
Configuration
Idle
Network
Other
Queueing
Scheduler
System I/O
User I/O</pre>
<p>&nbsp;</p>
<p>And we can write a SQL request to analyse the User I/O wait:</p>
<pre class="brush: actionscript3; gutter: false; first-line: 1">SQL&gt; select collection_time,
min_value as min_wait ,
avg_value as avg_wait ,
max_value as max_wait
from gc$metric_values_daily
where metric_group_name = 'wait_sess_cls'
and metric_column_name = 'dbtime_waitclass_pct'
and (entity_name like 'dbserver1%' )
and key_part_1 = 'User I/O'
order by 1,2 asc;</pre>
<p>&nbsp;</p>
<pre class="brush: html; gutter: false; first-line: 1">Collection_time       min_wait          avg_wait          max_wait
01-JUN-15            .190094016        45.7777238        86.9431254
02-JUN-15            .026723742        49.4623178        98.6886502
03-JUN-15            .09020789          32.6063701        98.7430495
04-JUN-15            .066328202        26.342438          97.1319971
05-JUN-15            .032959651        22.7424382        96.1533236
06-JUN-15            .574570414        22.2140084        93.9315499
07-JUN-15            .022970399        20.6773665        88.9020253
08-JUN-15            .058117038        17.5328715        98.5629756
09-JUN-15            .080441214        20.5507072        98.4615166
10-JUN-15            .057529812        19.1080933        97.4292408
11-JUN-15            .038726475        21.6932703        96.48269
12-JUN-15            .106343267        25.0541945        89.5404451
13-JUN-15            .257816863        13.5371153        80.1841142
14-JUN-15            .004258955        16.5949771        84.7824337
15-JUN-15            .020058791        19.1270265        89.8952919</pre>
<p>&nbsp;</p>
<p>Naturally we find back those I/O values in the EM12c console:</p>
<p>&nbsp;</p>
<p><img loading="lazy" decoding="async" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/qomr3.png" alt="qomr3" width="753" height="313" /></p>
<p>Conclusion: querying the OMR views might allow Oracle DBA to build interesting reports on Hosts and Databases activities.</p>
<p>L’article <a href="https://www.dbi-services.com/blog/querying-the-oracle-management-repository/">Querying the Oracle Management Repository</a> est apparu en premier sur <a href="https://www.dbi-services.com/blog">dbi Blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbi-services.com/blog/querying-the-oracle-management-repository/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Oracle Compliance Standard</title>
		<link>https://www.dbi-services.com/blog/oracle-compliance-standard/</link>
					<comments>https://www.dbi-services.com/blog/oracle-compliance-standard/#respond</comments>
		
		<dc:creator><![CDATA[Oracle Team]]></dc:creator>
		<pubDate>Mon, 23 Nov 2015 15:37:25 +0000</pubDate>
				<category><![CDATA[Database Administration & Monitoring]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Oracle Enterprise Manager Cloud 12c]]></category>
		<guid isPermaLink="false">https://www.dbi-services.com/blog/oracle-compliance-standard/</guid>

					<description><![CDATA[<p>In Enterprise Manager 12c, using the compliance standard results might be a good solution for DBA’s to detect security incoherences (for example a lambda user who has the sysdba role …) for their various targets. From the 12.1.0.3 version, a new column named ‘Required Data Available’ appeared in the Compliance Standard Result screen. This column [&#8230;]</p>
<p>L’article <a href="https://www.dbi-services.com/blog/oracle-compliance-standard/">Oracle Compliance Standard</a> est apparu en premier sur <a href="https://www.dbi-services.com/blog">dbi Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In Enterprise Manager 12c, using the compliance standard results might be a good solution for DBA’s to detect security incoherences (for example a lambda user who has the sysdba role …) for their various targets.</p>
<p>From the 12.1.0.3 version, a new column named ‘Required Data Available’ appeared in the Compliance Standard Result screen. This column defines if the data for the compliance evaluation rules for each target are in the repository or not.</p>
<p>If the value is ‘YES’, it means that the data necessary for the compliance rule has been collected. If the value is ‘NO’, it means that nothing has been collected nor evaluated. Thus we can consider that for this target the compliance rule is not OK.</p>
<p>Let’s have a look on my EM12c configuration. I added the OMSREP database in order to apply on the target the High Security Configuration for Oracle Database. Apparently everything is fine, except the required data available:</p>
<p><a href="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/co11.png"><img loading="lazy" decoding="async" class="alignnone wp-image-5469 " src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/co11.png" alt="co1" width="640" height="188" /></a></p>
<p>The requested configuration data is not available, and we do not have any violations available for this target’s security compliance.</p>
<p>EM 12c provides many compliance standards for various targets, in our case High Security Configuration for Oracle Database. But by default the configuration is not collected. We can notice that when we associate a target to a compliance standard, we receive the following message:</p>
<p><a href="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/co2.png"><img loading="lazy" decoding="async" class="alignnone size-medium wp-image-5470" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/co2.png" alt="co2" width="300" height="165" /></a></p>
<p>We have to enable those collections by applying an Oracle Certified Template to the target, in our case it will be Oracle Certified – Enable Database Security Configuration Metrics, because those configuration metrics are not enabled by default in order not to overload the OMR (Oracle Management Repository):</p>
<p><a href="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/co3.png"><img loading="lazy" decoding="async" class="alignnone wp-image-5471 " src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/co3.png" alt="co3" width="539" height="313" /></a></p>
<p>You choose the Oracle Certified Database Security Configuration Metrics, you select Apply, you select your target database, and then select OK:</p>
<p><a href="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/co5.png"><img loading="lazy" decoding="async" class="alignnone wp-image-5472 " src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/co5.png" alt="co5" width="637" height="275" /></a></p>
<p>Now the target has its collections enabled.</p>
<p>At the beginning of our test we did not have any schedule about oracle security. Using emctl staus agent scheduler combined with a grep on the instance name and another grep with the metric collection gived no result:</p>
<pre class="brush: sql; gutter: false; first-line: 1">oracle@em12c:&gt; emctl status agent scheduler | grep OMSREP | grep oracle_security
oracle@em12c:&gt;</pre>
<p>Now the collection for the certified template has been applied, but we have to start the schedule:</p>
<pre class="brush: sql; gutter: false; first-line: 1">oracle@em12c:&gt; emctl startschedule agent -type oracle_database
Oracle Enterprise Manager Cloud Control 12c Release 5
Copyright (c) 1996, 2015 Oracle Corporation. All rights reserved.
Start Schedule TargetType succeeded</pre>
<p>And the agent status agent scheduler command shows the oracle_security collections and their scheduled time:</p>
<pre class="brush: sql; gutter: false; first-line: 1">oracle@em12c:&gt;emctl status agent scheduler | grep OMSREP | grep oracle_security

2015-11-23 10:33:59.854 : oracle_database:OMSREP:oracle_security_inst2
2015-11-23 10:34:50.068 : oracle_database:OMSREP:oracle_security</pre>
<p>We can run a collection from the agent12c with emctl:</p>
<pre class="brush: sql; gutter: false; first-line: 1">oracle@em12c:&gt;emctl control agent runCollection 
OMSREP:oracle_database oracle_security 
Oracle Enterprise Manager Cloud Control 12c Release 5 
Copyright (c) 1996, 2015 Oracle Corporation. 
All rights reserved. 
--------------------------------------------------------------- 
EMD runCollection completed successfully</pre>
<p>&nbsp;</p>
<p>Finally now we can visualize the violations and target evaluations:</p>
<p><a href="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/co6.png"><img loading="lazy" decoding="async" class="alignnone  wp-image-5473" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/co6.png" alt="co6" width="662" height="132" /></a></p>
<p>&nbsp;</p>
<p>Conclusion</p>
<p>If you use the compliance standard, be careful with the column ‘Required Data Available’, you won’t be sure you will have correct compliance results. Don’t forget that some configuration metrics are not enabled by default.</p>
<p>&nbsp;</p>
<p>L’article <a href="https://www.dbi-services.com/blog/oracle-compliance-standard/">Oracle Compliance Standard</a> est apparu en premier sur <a href="https://www.dbi-services.com/blog">dbi Blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbi-services.com/blog/oracle-compliance-standard/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Oracle EM Cloud Control 12c (CC12c)- Repeat alert notification</title>
		<link>https://www.dbi-services.com/blog/oracle-em-cloud-control-12c-cc12c-repeat-alert-notification/</link>
					<comments>https://www.dbi-services.com/blog/oracle-em-cloud-control-12c-cc12c-repeat-alert-notification/#respond</comments>
		
		<dc:creator><![CDATA[David Schmitt]]></dc:creator>
		<pubDate>Fri, 30 Oct 2015 13:51:28 +0000</pubDate>
				<category><![CDATA[Database Administration & Monitoring]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Oracle Enterprise Manager]]></category>
		<category><![CDATA[Oracle Enterprise Manager Cloud 12c]]></category>
		<guid isPermaLink="false">https://www.dbi-services.com/blog/oracle-em-cloud-control-12c-cc12c-repeat-alert-notification/</guid>

					<description><![CDATA[<p>Oracle EM Cloud Control 12c (CC12c) &#8211; Repeat alert notification In your EM installation, CC12c will notify your different administrators when specific incidents, events, or problems occurs. But from standard configuration, you will receive only one warning or critical notification/alert &#8230; until the Clear or an Acknowledge of the alert. Some times and for different [&#8230;]</p>
<p>L’article <a href="https://www.dbi-services.com/blog/oracle-em-cloud-control-12c-cc12c-repeat-alert-notification/">Oracle EM Cloud Control 12c (CC12c)- Repeat alert notification</a> est apparu en premier sur <a href="https://www.dbi-services.com/blog">dbi Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Oracle EM Cloud Control 12c (CC12c) &#8211; Repeat alert notification</p>
<p>In your EM installation, CC12c will notify your different administrators when specific incidents, events, or problems occurs.<br />
But from standard configuration, you will receive only one warning or critical notification/alert &#8230; until the Clear or an Acknowledge of the alert.<br />
Some times and for different reasons (human error, email was deleted, Mail server issues, &#8230;) you can lost or forgot this alert.<br />
Hummm this is not good &#8230; especially for a critical alert on a productive environment!<br />
To avoid such incomfortable case, you can configure Repeat of Notification in your Incident Rules.</p>
<p>Description:<br />
Repeat notifications allow administrators to be notified repeatedly until an incident is either acknowledged or the number of Maximum Repeat Notifications has been reached.<br />
CC12c supports repeat notification for all different notification methods (e-mail, OS command, PL/SQL procedure, and SNMP trap).<br />
To enable this feature for a notification method, select the Send Repeat Notifications option.<br />
In addition to setting the maximum number of repeat notifications, you can also set the time interval at which the notifications are sent.</p>
<p>Very important: Repeat notifications for rules will only be sent if the Send Repeat Notifications option is enabled in the Global Notification Methods page.</p>
<p>Here an example how to configure the Global Notification Methods in the Notification Methods page:</p>
<p><a href="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/Repeat_in_Notification_Method_DA.jpg"><img loading="lazy" decoding="async" class="alignnone size-medium wp-image-4239" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/Repeat_in_Notification_Method_DA.jpg" alt="Repeat_in_Notification_Method_DA" width="300" height="175" /></a></p>
<p>Configuring Repeat Notifications in Incident Rules:</p>
<p>Setting repeat notifications globally at the notification method level may not be provide sufficient flexibility. For example, you may want to have different repeat notification settings based on event type. Enterprise Manager accomplishes this by allowing you to set repeat notifications for individual incident rule sets or individual rules within a rule set. Repeat notifications set at the rule level take precedence over those defined at the notification method level.</p>
<p>Here an example how to configure a Repeat Notifications in an individual incident Rule:</p>
<p>Edit one of your individual Incident Rule (within one of your Rule).</p>
<p><a href="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/Repeat_Incident_rules_DA_Edit_Rule_11.jpg"><img loading="lazy" decoding="async" class="alignnone size-medium wp-image-4240" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/Repeat_Incident_rules_DA_Edit_Rule_11.jpg" alt="Repeat_Incident_rules_DA_Edit_Rule_1" width="300" height="157" /></a></p>
<p>Choose Next in your individual Incident Rule.</p>
<p><a href="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/Repeat_Incident_rules_DA_Edit_Rule_21.jpg"><img loading="lazy" decoding="async" class="alignnone size-medium wp-image-4242" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/Repeat_Incident_rules_DA_Edit_Rule_21.jpg" alt="Repeat_Incident_rules_DA_Edit_Rule_2" width="300" height="112" /></a></p>
<p>On next page, &#8220;Add&#8221; or &#8220;Edit&#8221; an Action.</p>
<p><a href="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/Repeat_Incident_rules_DA_Edit_Rule_31.jpg"><img loading="lazy" decoding="async" class="alignnone size-medium wp-image-4243" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/Repeat_Incident_rules_DA_Edit_Rule_31.jpg" alt="Repeat_Incident_rules_DA_Edit_Rule_3" width="300" height="82" /></a></p>
<p>In the Action pages, configure your Repeat Notification.</p>
<p>You can choice to select the Global Notification Methods or to create your own method for this rule. Click Continue.</p>
<p><a href="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/Repeat_Incident_rules_DA_Edit_Rule_41.jpg"><img loading="lazy" decoding="async" class="alignnone size-medium wp-image-4244" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/Repeat_Incident_rules_DA_Edit_Rule_41.jpg" alt="Repeat_Incident_rules_DA_Edit_Rule_4" width="300" height="140" /></a></p>
<p>In the Review page, control your settings. Click Continue.</p>
<p><a href="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/Repeat_Incident_rules_DA_Edit_Rule_51.jpg"><img loading="lazy" decoding="async" class="alignnone size-medium wp-image-4245" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/Repeat_Incident_rules_DA_Edit_Rule_51.jpg" alt="Repeat_Incident_rules_DA_Edit_Rule_5" width="300" height="128" /></a></p>
<p>Click &#8220;Save&#8221; to enable your settings. !!! Do not forget to save !!!</p>
<p><a href="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/Repeat_Incident_rules_DA_Edit_Rule_6.jpg"><img loading="lazy" decoding="async" class="alignnone size-medium wp-image-4246" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/Repeat_Incident_rules_DA_Edit_Rule_6.jpg" alt="Repeat_Incident_rules_DA_Edit_Rule_6" width="300" height="156" /></a></p>
<p>Now you can simulate an incident or event to test that your Repeat settings are working correctly.</p>
<p>&nbsp;</p>
<p>Visit our partner&#8217;s Oracle Website for more informations about Repeat Notification.</p>
<p>Ref: Oracle® Enterprise Manager Cloud Control Administrator&#8217;s Guide:<br />
&#8211; Chapter 3. Notifications &#8211;&gt; http://docs.oracle.com/cd/E25054_01/doc.1111/e24473/notification.htm<br />
&#8211; Chapter 4. Using Notifications &#8211;&gt; https://docs.oracle.com/cd/E24628_01/doc.121/e24473/notification.htm#EMADM9066<br />
4.1.5 Setting Up Repeat Notifications &#8211;&gt; https://docs.oracle.com/cd/E24628_01/doc.121/e24473/notification.htm#EMADM9072</p>
<p>That&#8217;s it.</p>
<p>L’article <a href="https://www.dbi-services.com/blog/oracle-em-cloud-control-12c-cc12c-repeat-alert-notification/">Oracle EM Cloud Control 12c (CC12c)- Repeat alert notification</a> est apparu en premier sur <a href="https://www.dbi-services.com/blog">dbi Blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbi-services.com/blog/oracle-em-cloud-control-12c-cc12c-repeat-alert-notification/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>statistics_level parameter</title>
		<link>https://www.dbi-services.com/blog/statisticslevel-parameter/</link>
					<comments>https://www.dbi-services.com/blog/statisticslevel-parameter/#respond</comments>
		
		<dc:creator><![CDATA[Oracle Team]]></dc:creator>
		<pubDate>Mon, 15 Jun 2015 11:24:57 +0000</pubDate>
				<category><![CDATA[Database management]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[Oracle 11g]]></category>
		<category><![CDATA[Oracle Enterprise Manager Cloud 12c]]></category>
		<guid isPermaLink="false">https://www.dbi-services.com/blog/statisticslevel-parameter/</guid>

					<description><![CDATA[<p>With Enterprise Manager Cloud Control 12c configuring and using the compliance standard utility allows us to discover events we should not have seen in other ways. Today at a customer’s site I discovered the following message: &#160; The configuration Best Practice for Oracle Database discovered the statistics_level parameter was set to the value ALL. &#160; [&#8230;]</p>
<p>L’article <a href="https://www.dbi-services.com/blog/statisticslevel-parameter/">statistics_level parameter</a> est apparu en premier sur <a href="https://www.dbi-services.com/blog">dbi Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>With Enterprise Manager Cloud Control 12c configuring and using the compliance standard utility allows us to discover events we should not have seen in other ways. Today at a customer’s site I discovered the following message:</p>
<p><img loading="lazy" decoding="async" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/ap1.png" alt="ap1" width="605" height="212" /></p>
<p>&nbsp;</p>
<p>The configuration Best Practice for Oracle Database discovered the statistics_level parameter was set to the value ALL.</p>
<p><img loading="lazy" decoding="async" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/ap2.png" alt="ap2" width="605" height="192" /></p>
<p>&nbsp;</p>
<p>By selecting the Violation in the Configuration Best Practice for Oracle Database, we can display the message:</p>
<p>&nbsp;</p>
<p><img loading="lazy" decoding="async" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/ap3.png" alt="ap3" width="462" height="91" /></p>
<p>&nbsp;</p>
<p>By the way Oracle recommends setting this value to TYPICAL in place of ALL, because of possible additional overhead on the system. If we look at the different statistics collected in TYPICAL or ALL modes, we can see that the difference concerns Plan Execution Statistics and Timed OS Statistics:</p>
<pre class="brush: sql; gutter: true; first-line: 1">SQL&gt; SELECT statistics_name,session_status,system_status,
activation_level,session_settable
FROM   v$statistics_level
ORDER BY statistics_name;</pre>
<p>&nbsp;</p>
<pre class="brush: sql; gutter: true; first-line: 1">Typical:
STATISTICS_NAME                                        SESSION_ SYSTEM_S ACTIVAT SES
Active Session History                                    ENABLED ENABLED TYPICAL NO
Adaptive Thresholds Enabled                               ENABLED ENABLED TYPICAL NO
Automated Maintenance Tasks                               ENABLED ENABLED TYPICAL NO
Bind Data Capture                                         ENABLED ENABLED TYPICAL NO
Buffer Cache Advice                                       ENABLED ENABLED TYPICAL NO
Global Cache Statistics                                   ENABLED ENABLED TYPICAL NO
Longops Statistics                                        ENABLED ENABLED TYPICAL NO
MTTR Advice                                               ENABLED ENABLED TYPICAL NO
Modification Monitoring                                   ENABLED ENABLED TYPICAL NO
PGA Advice                                                ENABLED ENABLED TYPICAL NO
Plan Execution Sampling                                   ENABLED ENABLED TYPICAL YES
<strong>Plan Execution Statistics                                 DISABLED DISABLED ALL   YES</strong>
SQL Monitoring                                            ENABLED ENABLED TYPICAL YES
Segment Level Statistics                                  ENABLED ENABLED TYPICAL NO
Shared Pool Advice                                        ENABLED ENABLED TYPICAL NO
Streams Pool Advice                                       ENABLED ENABLED TYPICAL NO
Threshold-based Alerts                                    ENABLED ENABLED TYPICAL NO
Time Model Events                                         ENABLED ENABLED TYPICAL YES
<strong>Timed OS Statistics                                       DISABLED DISABLED ALL   YES</strong>
Timed Statistics                                          ENABLED ENABLED TYPICAL YES
Ultrafast Latch Statistics                                ENABLED ENABLED TYPICAL NO
Undo Advisor, Alerts and Fast Ramp up                     ENABLED ENABLED TYPICAL NO
V$IOSTAT_* statistics                                     ENABLED ENABLED TYPICAL NO</pre>
<p>&nbsp;</p>
<pre class="brush: sql; gutter: false; first-line: 1">ALL:

STATISTICS_NAME                                        SESSION_ SYSTEM_S ACTIVAT SES
Active Session History                                    ENABLED ENABLED TYPICAL NO
Adaptive Thresholds Enabled                               ENABLED ENABLED TYPICAL NO
Automated Maintenance Tasks                               ENABLED ENABLED TYPICAL NO
Bind Data Capture                                         ENABLED ENABLED TYPICAL NO
Buffer Cache Advice                                       ENABLED ENABLED TYPICAL NO
Global Cache Statistics                                   ENABLED ENABLED TYPICAL NO
Longops Statistics                                        ENABLED ENABLED TYPICAL NO
MTTR Advice                                               ENABLED ENABLED TYPICAL NO
Modification Monitoring                                   ENABLED ENABLED TYPICAL NO
PGA Advice                                                ENABLED ENABLED TYPICAL NO
Plan Execution Sampling                                   ENABLED ENABLED TYPICAL YES
<strong>Plan Execution Statistics                                 ENABLED ENABLED ALL     YES</strong>
SQL Monitoring                                            ENABLED ENABLED TYPICAL YES
Segment Level Statistics                                  ENABLED ENABLED TYPICAL NO
Shared Pool Advice                                        ENABLED ENABLED TYPICAL NO
Streams Pool Advice                                       ENABLED ENABLED TYPICAL NO
Threshold-based Alerts                                    ENABLED ENABLED TYPICAL NO
Time Model Events                                         ENABLED ENABLED TYPICAL YES
<strong>Timed OS Statistics                                       ENABLED ENABLED ALL     YES</strong>
Timed Statistics                                          ENABLED ENABLED TYPICAL YES
Ultrafast Latch Statistics                                ENABLED ENABLED TYPICAL NO
Undo Advisor, Alerts and Fast Ramp up                     ENABLED ENABLED TYPICAL NO
V$IOSTAT_* statistics                                     ENABLED ENABLED TYPICAL NO</pre>
<p>&nbsp;</p>
<p>Another side effect is documented in the 874518.1 Oracle Metalink note. The statistics_level parameter initiated to ALL records a lot of additional information in the AWR repository, the table wrh$_latch_chidren might grow to a huge size.</p>
<p>For example in a database with statistics_level set to ALL:</p>
<pre class="brush: sql; gutter: false; first-line: 1">SQL&gt; SELECT sum(bytes)from dba_segments
where SEGMENT_NAME ='WRH$_LATCH_CHILDREN';

SUM(BYTES)
1985085440</pre>
<p>And with statistics_level set to for TYPICAL:</p>
<pre class="brush: sql; gutter: true; first-line: 1">SQL&gt; SELECT sum(bytes)from dba_segments
where SEGMENT_NAME ='WRH$_LATCH_CHILDREN';

SUM(BYTES)  
262144</pre>
<p>&nbsp;</p>
<p>Another proof consists at looking the object occupying most of the place in the SYSAUX tablespace:</p>
<p>With statistics_level set to TYPICAL:</p>
<pre class="brush: sql; gutter: true; first-line: 1">SQL&gt; select * from
2   (select owner,segment_name,bytes/(1024*1024) size
3   from dba_segments
4   where tablespace_name = 'SYSAUX'
5   ORDER BY BLOCKS desc);

OWNER              SEGMENT_NAME                         SIZE

SYS              WRH$_ACTIVE_SESSION_HISTORY            1242

SYS              WRM$_SNAPSHOT_DETAILS_INDEX             629

SYS              WRH$_EVENT_HISTOGRAM_PK                 596

….</pre>
<p>With statistics_level set to ALL:</p>
<pre class="brush: sql; gutter: true; first-line: 1">OWNER             SEGMENT_NAME                          SIZE

SYS              WRH$_LATCH_CHILDREN                    1893

SYS              WRH$_LATCH_CHILDREN_PK                 1368

SYS              SYS_LOB0000006298C00004$$               580

…</pre>
<p>&nbsp;</p>
<p>We can obviously see that the two segments WRH$_LATCH_CHILDREN and WRH$_LATCH_CHILDREN_PK are the biggest objects in the SYSAUX tablespace where statistics_level is set to ALL.</p>
<p>&nbsp;</p>
<p>Conclusion:</p>
<p>I would recommend to always let the default value for statistics_level (i.e TYPICAL), but if you need to set statistics_level to ALL in order to diagnose SQL plan performance issues, you can do it at session level:</p>
<pre class="brush: sql; gutter: true; first-line: 1">SQL&gt; alter session set statistics_level='ALL';
Session altered.</pre>
<p>L’article <a href="https://www.dbi-services.com/blog/statisticslevel-parameter/">statistics_level parameter</a> est apparu en premier sur <a href="https://www.dbi-services.com/blog">dbi Blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbi-services.com/blog/statisticslevel-parameter/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Oracle cloud control / SQL Details / Statistics</title>
		<link>https://www.dbi-services.com/blog/oracle-cloud-control-sql-details-statistics/</link>
					<comments>https://www.dbi-services.com/blog/oracle-cloud-control-sql-details-statistics/#respond</comments>
		
		<dc:creator><![CDATA[Oracle Team]]></dc:creator>
		<pubDate>Wed, 29 Oct 2014 09:06:09 +0000</pubDate>
				<category><![CDATA[Database management]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Oracle Enterprise Manager Cloud 12c]]></category>
		<guid isPermaLink="false">https://www.dbi-services.com/blog/oracle-cloud-control-sql-details-statistics/</guid>

					<description><![CDATA[<p>By Franck Pachot . A question that I had several times: in Enterprise Manager, in the screen about one SQL statement, the &#8216;statistics&#8217; tab shows the number of executions, elapsed time, etc. Question is: which time window does it cover? There is a one hour chart above, and two timestamps displayed as &#8216;First Load Time&#8217; [&#8230;]</p>
<p>L’article <a href="https://www.dbi-services.com/blog/oracle-cloud-control-sql-details-statistics/">Oracle cloud control / SQL Details / Statistics</a> est apparu en premier sur <a href="https://www.dbi-services.com/blog">dbi Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>By Franck Pachot</h2>
<p>.<br />
A question that I had several times: in Enterprise Manager, in the screen about one SQL statement, the &#8216;statistics&#8217; tab shows the number of executions, elapsed time, etc. Question is: which time window does it cover? There is a one hour chart above, and two timestamps displayed as &#8216;First Load Time&#8217; and &#8216;Last load Time&#8217;, and we don&#8217;t know which one is related with the execution statistics numbers. I&#8217;ll explain it clearly on an example.</p>
<p>I&#8217;ll check a query I have on my system which has several cursors, with two different execution plans. And I check from V$SQL because here is where is the most detailed information, and columns are well documented.</p>
<p>From the <a href="http://docs.oracle.com/database/121/REFRN/refrn30246.htm#REFRN30246">documentation</a>:</p>
<ul>
<li>FIRST_LOAD_TIME is the Timestamp of the parent creation time</li>
<li>LAST_LOAD_TIME is the Time at which the query plan was loaded into the library cache</li>
</ul>
<p>It&#8217;s clear that because V$SQL show information about child cursors, the FIRST_LOAD_TIME will be the same for all children.</p>
<pre class="brush: sql; gutter: true; first-line: 1">SQL&gt; select sql_id,plan_hash_value,executions,first_load_time,last_load_time,last_active_time from v$sql where sql_id='dcstr36r0vz0d' order by child_number

SQL_ID        PLAN_HASH_VALUE EXECUTIONS FIRST_LOAD_TIME     LAST_LOAD_TIME      LAST_ACTIVE_TIME
------------- --------------- ---------- ------------------- ------------------- -------------------
dcstr36r0vz0d        17720163         60 2014-10-29/07:01:59 2014-10-29/07:01:59 2014-10-29/13:01:25
dcstr36r0vz0d      3798950322        102 2014-10-29/07:01:59 2014-10-29/07:03:49 2014-10-29/13:05:54
dcstr36r0vz0d      3798950322         24 2014-10-29/07:01:59 2014-10-29/07:05:55 2014-10-29/13:05:54
dcstr36r0vz0d      3798950322          1 2014-10-29/07:01:59 2014-10-29/08:11:19 2014-10-29/08:11:19
dcstr36r0vz0d      3798950322          1 2014-10-29/07:01:59 2014-10-29/08:29:34 2014-10-29/08:29:34
</pre>
<p>The plan with hash value 17720163 has been executed 60 times since 07:01:59. It was the first child cursor (child_number=0) for that parent, so this is why FIRST_LOAD_TIME=LAST_LOAD_TIME</p>
<p>And, the plan with hash value 3798950322 has been executed 128 times since 07:03:49 by cursors that are not shared but have come to the same plan anyway</p>
<p>Two remarks:</p>
<ul>
<li>FIRST_LOAD_TIME is the same for all children because it is a parent information</li>
<li>LAST_LOAD_TIME is different for each child and that&#8217;s important because Enterprise Manager don&#8217;t show that detail, aggregating together the children with same execution plan.</li>
</ul>
<div>Time to look at the Enterprise Manager screen.</div>
<div></div>
<div>I&#8217;m talking about the &#8216;Real Time&#8217;  statistics:</div>
<div></div>
<div><a class="easyblog-thumb-preview" title="EMLastLoadTime1.png" href="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/EMLastLoadTime1.png"><img decoding="async" title="EMLastLoadTime1.png" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/EMLastLoadTime1.png" alt="EMLastLoadTime1.png" /></a></div>
<div></div>
<div>and I&#8217;ve selected the plan hash value 17720163:</div>
<div></div>
<div><a class="easyblog-thumb-preview" title="EMLastLoadTime2.png" href="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/EMLastLoadTime2.png"><img decoding="async" title="EMLastLoadTime2.png" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/EMLastLoadTime2.png" alt="EMLastLoadTime2.png" /></a></div>
<div></div>
<div>Ok. So we have 60 executions here. This matches the line in V$SQL. And we know that is it 60 executions since 07:01:59 because both timestamps are the same. No doubt here.</div>
<div></div>
<div>Then, let&#8217;s select the other plan hash value from the popup:</div>
<div></div>
<div><a class="easyblog-thumb-preview" title="EMLastLoadTime3.png" href="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/EMLastLoadTime3.png"><img decoding="async" title="EMLastLoadTime3.png" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/EMLastLoadTime3.png" alt="EMLastLoadTime3.png" /></a></div>
<div></div>
<div>128 executions for this plan. This is what we had when summing the lines from V$SQL. And look at the Shared Cursor Statistics. The number of &#8216;Child Cursors&#8217; is 4 which is what we know. The &#8216;First Load Time&#8217; is the one of the parent.</div>
<div></div>
<div>However, what is the &#8216;Last Load Time&#8217; when we know that there are 4 different values in V$SQL for it? Look, they choose the latest one, 08:29:34, and that&#8217;s a good choice according to the name. It&#8217;s the last load time.</div>
<div></div>
<div>But what I want to know is the time from which the 128 executions are counted. And that should be the earliest one. In my example, we know from V$SQL what we had 128 executions since 07:03:49 but that timestamp is not displayed here.</div>
<div></div>
<div>If you want a date, you should take the &#8216;First Load time&#8217; because it&#8217;s true that there were 128 executions of cursors with that plan hash value since 07:01:59</div>
<div></div>
<div>Sometimes the first load time is very old and it would be better to have the MIN(LAST_LOAD_TIME). But anyway if we want better time detail, we can choose the &#8216;Historical&#8217; view instead of the &#8216;Real Time&#8217; one and we have the numbers related with the AWR snapshots.</div>
<div></div>
<div>Here is an example for the cursor with plan hash value 17720163:</div>
<div></div>
<div><a class="easyblog-thumb-preview" title="EMLastLoadTime4.png" href="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/EMLastLoadTime4.png"><img decoding="async" title="EMLastLoadTime4.png" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/EMLastLoadTime4.png" alt="EMLastLoadTime4.png" /></a></div>
<div></div>
<div>From the historical view, we select a timestamp, we see the begin and end timestamps. Here I have 10 executions per hour.</div>
<div></div>
<div>Everything looks good there, except that &#8216;Child Cursors&#8217; is 5, which is for the whole statement and not only for the cursors selected by the plan hash value.</div>
<div></div>
<div>Then I&#8217;ve two conclusions:</div>
<div>
<ul>
<li>&#8216;Last Load Time&#8217; is not useful to know the time window covered by the Real Time statistics. Use First &#8216;Load time instead&#8217;</li>
<li>In case of any doubt, fall back to V$ views which are much more documented, and give more detail.</li>
</ul>
</div>
<p>L’article <a href="https://www.dbi-services.com/blog/oracle-cloud-control-sql-details-statistics/">Oracle cloud control / SQL Details / Statistics</a> est apparu en premier sur <a href="https://www.dbi-services.com/blog">dbi Blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbi-services.com/blog/oracle-cloud-control-sql-details-statistics/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Oracle Cloud Control 12c: removing an agent is much easier in OEM 12.1.0.4</title>
		<link>https://www.dbi-services.com/blog/oracle-cloud-control-12c-removing-an-agent-is-much-easier-in-oem-12104/</link>
					<comments>https://www.dbi-services.com/blog/oracle-cloud-control-12c-removing-an-agent-is-much-easier-in-oem-12104/#respond</comments>
		
		<dc:creator><![CDATA[Oracle Team]]></dc:creator>
		<pubDate>Thu, 16 Oct 2014 23:54:00 +0000</pubDate>
				<category><![CDATA[Database management]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Oracle Enterprise Manager Cloud 12c]]></category>
		<category><![CDATA[Upgrade]]></category>
		<guid isPermaLink="false">https://www.dbi-services.com/blog/oracle-cloud-control-12c-removing-an-agent-is-much-easier-in-oem-12104/</guid>

					<description><![CDATA[<p>To remove an agent in the previous Oracle OEM Cloud Control 12c versions, you first had to delete its targets, stop the agent, and remove the host target. Only then were you able to remove the agent. In version 12.1.0.4, the decommission agent feature has been greatly improved. From the agent menu, you select the [&#8230;]</p>
<p>L’article <a href="https://www.dbi-services.com/blog/oracle-cloud-control-12c-removing-an-agent-is-much-easier-in-oem-12104/">Oracle Cloud Control 12c: removing an agent is much easier in OEM 12.1.0.4</a> est apparu en premier sur <a href="https://www.dbi-services.com/blog">dbi Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>To remove an agent in the previous Oracle OEM Cloud Control 12c versions, you first had to delete its targets, stop the agent, and remove the host target. Only then were you able to remove the agent. In version 12.1.0.4, the decommission agent feature has been greatly improved.</p>
<p>From the agent menu, you select the new feature Agent Decommission:</p>
<p><img loading="lazy" decoding="async" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/ag1.png" alt="ag1" width="235" height="281" /></p>
<p>The agent must be in stopped status to be decommissioned:</p>
<p><img loading="lazy" decoding="async" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/ag2.png" alt="ag2" width="249" height="82" /></p>
<p><img loading="lazy" decoding="async" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/ag3.png" alt="ag3" width="591" height="120" /></p>
<p>It shows the targets which will be removed.</p>
<p><img loading="lazy" decoding="async" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/ag4.png" alt="ag4" width="222" height="87" /></p>
<p>In a very short time, the targets are delete, and the agent is removed.</p>
<p>The agent decommissioning feature is just a little new feature, but this will greatly simplify the agent emoval procedure :=)</p>
<p>L’article <a href="https://www.dbi-services.com/blog/oracle-cloud-control-12c-removing-an-agent-is-much-easier-in-oem-12104/">Oracle Cloud Control 12c: removing an agent is much easier in OEM 12.1.0.4</a> est apparu en premier sur <a href="https://www.dbi-services.com/blog">dbi Blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbi-services.com/blog/oracle-cloud-control-12c-removing-an-agent-is-much-easier-in-oem-12104/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Oracle OEM Cloud Control 12c upgrade to 12.1.0.4</title>
		<link>https://www.dbi-services.com/blog/oracle-enterprise-manager-cloud-control-12c-upgrade-to-12104/</link>
					<comments>https://www.dbi-services.com/blog/oracle-enterprise-manager-cloud-control-12c-upgrade-to-12104/#respond</comments>
		
		<dc:creator><![CDATA[Oracle Team]]></dc:creator>
		<pubDate>Thu, 02 Oct 2014 06:12:00 +0000</pubDate>
				<category><![CDATA[Database management]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Oracle Enterprise Manager]]></category>
		<category><![CDATA[Oracle Enterprise Manager Cloud 12c]]></category>
		<category><![CDATA[Upgrade]]></category>
		<guid isPermaLink="false">https://www.dbi-services.com/blog/oracle-enterprise-manager-cloud-control-12c-upgrade-to-12104/</guid>

					<description><![CDATA[<p>In this blog post, I will describe how to upgrade from Oracle Enterprise Manager Cloud Control 12.1.0.3 to OEM 12.1.0.4.0. I have already described the main new features of Cloud Control 12.1.0.4 version in an earlier post (Oracle OEM Cloud Control 12.1.0.4 &#8211; the new features). The first pre-requisite is to apply the patch 11061801 [&#8230;]</p>
<p>L’article <a href="https://www.dbi-services.com/blog/oracle-enterprise-manager-cloud-control-12c-upgrade-to-12104/">Oracle OEM Cloud Control 12c upgrade to 12.1.0.4</a> est apparu en premier sur <a href="https://www.dbi-services.com/blog">dbi Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In this blog post, I will describe how to upgrade from Oracle Enterprise Manager Cloud Control 12.1.0.3 to OEM 12.1.0.4.0. I have already described the main new features of Cloud Control 12.1.0.4 version in an earlier post (<a href="index.php?option=com_easyblog&amp;view=entry&amp;id=379&amp;Itemid=82">Oracle OEM Cloud Control 12.1.0.4 &#8211; the new features</a>). The first pre-requisite is to apply the patch 11061801 on the repository database in 11.2.0.3 version, using the classical opatch apply method. Then, we can begin the upgrade phase.</p>
<p>First, we should explicitly stop the OMS jvmd and adp engines:</p>
<pre class="brush: actionscript3; gutter: true; first-line: 1"><a href="mailto:oracle@vmtestoraem12c:/home/oracle/">oracle@vmtestoraem12c:/home/oracle/</a> [oms12c] emctl extended oms jvmd stop -allOracle Enterprise Manager Cloud Control 12c Release 3Copyright (c) 1996, 2013 Oracle Corporation. All rights reserved.Please enter the SYSMAN password:Stopping all Engines{}
No engines found for this operation
<a href="mailto:oracle@vmtestoraem12c:/home/oracle/">oracle@vmtestoraem12c:/home/oracle/</a> [oms12c] emctl extended oms adp stop -a
Oracle Enterprise Manager Cloud Control 12c Release 3
Copyright (c) 1996, 2013 Oracle Corporation. All rights reserved.
No valid registry entry found for verb jv</pre>
<p>Then we stop the OMS:</p>
<pre class="brush: actionscript3; gutter: true; first-line: 1"><a href="mailto:oracle@vmtestoraem12c:/home/oracle/">oracle@vmtestoraem12c:/home/oracle/</a> [oms12c] emctl stop oms -all
Oracle Enterprise Manager Cloud Control 12c Release 3
Copyright (c) 1996, 2013 Oracle Corporation.
All rights reserved.Stopping WebTier...
WebTier Successfully Stopped
Stopping Oracle Management Server...
Oracle Management Server Successfully Stopped
AdminServer Successfully Stopped
Oracle Management Server is Down</pre>
<p>We stop the management agent:</p>
<pre class="brush: actionscript3; gutter: true; first-line: 1"><a href="mailto:oracle@vmtestoraem12c:/home/oracle/">oracle@vmtestoraem12c:/home/oracle/</a> [agent12c] emctl stop agent
Oracle Enterprise Manager Cloud Control 12c Release 3
Copyright (c) 1996, 2013 Oracle Corporation.
All rights reserved.
Stopping agent ..... stopped.</pre>
<p>Finally after unzipping the 12.1.0.4 binary files, we can run the installer:</p>
<p><img loading="lazy" decoding="async" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/cc1.png" alt="cc1" width="436" height="345" /></p>
<p>We choose not to receive security updates:</p>
<p><img loading="lazy" decoding="async" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/cc2.png" alt="cc2" width="225" height="95" /></p>
<p><img loading="lazy" decoding="async" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/cc3.png" alt="cc3" width="442" height="349" /></p>
<p>We choose to skip the updates:</p>
<p><img loading="lazy" decoding="async" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/cc4.png" alt="cc4" width="446" height="353" /></p>
<p>All the prerequisites checks have succeeded :=)</p>
<p><img loading="lazy" decoding="async" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/cc5.png" alt="cc5" width="452" height="358" /></p>
<p>We select a One System Upgrade and the Oracle_Home where the 12.1.0.3 version is installed:</p>
<p><img loading="lazy" decoding="async" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/cc7.png" alt="cc7" width="441" height="346" /></p>
<p>We select the new Middleware Home:</p>
<p><img loading="lazy" decoding="async" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/cc8.png" alt="cc8" width="437" height="344" /></p>
<p>We enter the administration passwords:</p>
<p><img loading="lazy" decoding="async" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/cc9.png" alt="cc9" width="391" height="173" /></p>
<p>The installer reminds you that you have correctly patched the repository database. Let&#8217;s check if it is correct:</p>
<pre class="brush: actionscript3; gutter: true; first-line: 1">Interim patches (1) :
Patch 11061801 : applied on Mon Aug 04 16:52:51 CEST 2014
Unique Patch ID: 16493357
Created on 24 Jun 2013, 23:28:20 hrs PST8PDT
Bugs fixed: 11061801</pre>
<p>&nbsp;</p>
<p><img loading="lazy" decoding="async" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/cc10.png" alt="cc10" width="323" height="195" /></p>
<p>We did not copy the emkey to the repository, so we have to run:</p>
<pre class="brush: actionscript3; gutter: true; first-line: 1"><a href="mailto:oracle@vmtestoraem12c:/u01/app/oracle/MiddleWare_12103/oms/bin/">oracle@vmtestoraem12c:/u01/app/oracle/MiddleWare_12103/oms/bin/</a> [oms12c] emctl config emkey -copy_to_repos_from_file -repos_conndesc '"(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=vmtestoraem12c.it.dbi-services.com)(PORT=1521)))(CONNECT_DATA=(SID=OMSREP)))"' -repos_user sysman -emkey_file /u01/app/oracle/MiddleWare_12103/oms/sysman/config/emkey.ora
Oracle Enterprise Manager Cloud Control 12c Release 3
Copyright (c) 1996, 2013 Oracle Corporation.
All rights reserved.
Enter Admin User's Password :
Enter Enterprise Manager Root (SYSMAN) Password :
The EMKey has been copied to the Management Repository.
This operation will cause the EMKey to become unsecure.</pre>
<p>After the required operation has been completed, secure the EMKey by running &#8220;emctl config emkey -remove_from_repos&#8221;:</p>
<p class="dbiNormal"><img loading="lazy" decoding="async" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/cc11.png" alt="cc11" width="361" height="205" /></p>
<p>We select Yes to let the installer fix the isssue automatically:</p>
<p><img loading="lazy" decoding="async" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/cc12.png" alt="cc12" width="438" height="346" /></p>
<p>We select Next:</p>
<p><img loading="lazy" decoding="async" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/cc13.png" alt="cc13" width="451" height="358" /></p>
<p>We can select additionnal plugins:</p>
<p><img loading="lazy" decoding="async" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/cc14.png" alt="cc14" width="436" height="344" /></p>
<p>We enter the weblogic password:</p>
<p><img loading="lazy" decoding="async" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/cc15.png" alt="cc15" width="437" height="345" /></p>
<p>We select install:</p>
<p><img loading="lazy" decoding="async" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/cc16.png" alt="cc16" width="407" height="291" /></p>
<p>And finally we run the allroot.sh script connected as root:</p>
<p><img loading="lazy" decoding="async" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/cc17.png" alt="cc17" width="451" height="355" /></p>
<p>The upgrade is successfull! Let&#8217;s check the OMs status:</p>
<pre class="brush: actionscript3; gutter: true; first-line: 1"><a href="mailto:oracle@vmtestoraem12c:/u01/app/oracle/MiddleWare_12cR4/oms/">oracle@vmtestoraem12c:/u01/app/oracle/MiddleWare_12cR4/oms/</a> [oms12c] emctl status oms -details
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation.
All rights reserved.
Enter Enterprise Manager Root (SYSMAN) Password :
Console Server Host : vmtestoraem12c.it.dbi-services.com
HTTP Console Port : 7789
HTTPS Console Port : 7801
HTTP Upload Port : 4890
HTTPS Upload Port : 4901
EM Instance Home : /u01/app/oracle/gc_inst/em/EMGC_OMS1
OMS Log Directory Location : /u01/app/oracle/gc_inst/em/EMGC_OMS1/sysman/log
OMS is not configured with SLB or virtual hostname
Agent Upload is locked.
OMS Console is locked.
Active CA ID: 1
Console URL: <a href="https://vmtestoraem12c.it.dbi-services.com">https://vmtestoraem12c.it.dbi-services.com</a>:7801/em
Upload URL: <a href="https://vmtestoraem12c.it.dbi-services.com">https://vmtestoraem12c.it.dbi-services.com</a>:4901/empbs/upload
WLS Domain InformationDomain Name : GCDomain
Admin Server Host : vmtestoraem12c.it.dbi-services.com
Admin Server HTTPS Port: 7102
Admin Server is RUNNING
Oracle Management Server Information
Managed Server Instance Name: EMGC_OMS1
Oracle Management Server Instance Host: vmtestoraem12c.it.dbi-services.com
WebTier is Up
Oracle Management Server is Up
BI Publisher is not configured to run on this host.</pre>
<p>Now we have access to the Enterprise Manager Cloud Control 12.1.0.4:</p>
<p><img loading="lazy" decoding="async" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/cc18.png" alt="cc18" width="605" height="250" /></p>
<p>The next step consists in upgrading the management agents. From the Setup menu, we select Upgrade Agents:</p>
<p><img loading="lazy" decoding="async" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/cc19.png" alt="cc19" width="235" height="277" /></p>
<p><img loading="lazy" decoding="async" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/cc20.png" alt="cc20" width="605" height="204" /></p>
<p>The management agent is detected:</p>
<p><img loading="lazy" decoding="async" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/cc21.png" alt="cc21" width="539" height="205" /></p>
<p>The operation is successfull:</p>
<p><img loading="lazy" decoding="async" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/cc22.png" alt="cc22" width="605" height="234" /></p>
<p>The update to 12.1.0.4 Enterprise Manager version did not cause any problem and has a new feature which checks the correct patching of the Enterprise Manager repository database.</p>
<p>L’article <a href="https://www.dbi-services.com/blog/oracle-enterprise-manager-cloud-control-12c-upgrade-to-12104/">Oracle OEM Cloud Control 12c upgrade to 12.1.0.4</a> est apparu en premier sur <a href="https://www.dbi-services.com/blog">dbi Blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbi-services.com/blog/oracle-enterprise-manager-cloud-control-12c-upgrade-to-12104/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Lazy Loading (feed)

Served from: www.dbi-services.com @ 2026-10-17 04:26:58 by W3 Total Cache
-->