Blog Feed
Oracle Enterprise Manager – Reducing the noise, Part 1
Upgrade Oracle Enterprise Manager to 12.1.0.4
-
Download the software from (http://www.oracle.com/technetwork/oem/enterprise-manager/downloads/index.html) on your server and extract it to a stage directory.
-
Ensure that you have a valid OMS (middleware home & inventory), Repository and Software Library backup.
-
If you have BI Publisher installed, then stop BIP server through WebLogic Admin Console.
-
Drop any snapshot created against Repository tables.
-
Check and compile invalid objects in the Repository schema.
-
Execute privileges on DBMS_RANDOM are required during the upgrade, run the below commands to set them.
-
Copy the emkey from OMS to the Management Repository.
-
This is a critical mandatory step. You must apply the following patches to your Repository database in order to avoid an upgrade failure (full list can be found http://docs.oracle.com/cd/E24628_01/upgrade.121/e22625/upgrading_12101_PS1_gtgstrtd.htm#BABGEHCI). In my case need to apply patch 12419378 for 11.2.0.1 database version.
-
Stop OMS, extended instances and both OMS and Repository agents.
Upgrade
-
Run the runInstaller executable from the folder where the software was extracted.
-
Type My Oracle Support account details.
-
Choose if you want to search for any software updates.
-
Review and fix any prerequisite failure.
-
Choose the upgrade method, in my case One system Upgrade then select the Oracle Home.
-
Type the “NEW” Middleware Home location.
-
Type the required Repository credentials.
-
Some prerequisites failed, click Yes to let the installer fix them automatically.
-
Review the list of plug-ins that are going to be automatically upgraded.
-
Select any additional plug-ins to be deployed after the upgrade.
-
Type the required WebLogic Domain credentials.
-
Review the all the information provided and click Install.
-
Review the progress.
-
Run the required allroot.sh script as root.
-
Review the final information about the upgrade process.
-
Login to Cloud Control and verify the version. Note that some targets are marked as down, we are going to fix them in the post upgrade tasks.
-
Upgrade Oracle Management Agents (at least OMS and Repository). Go to Setup -> Manage Cloud Control -> Upgrade Agents.
-
Type a Job Name (or use the default name) and click Add to select the agents you want to upgrade to 12.1.0.4.
-
Select the agents from the list and click OK.
-
Choose credentials and click Submit. There’s the option to schedule the upgrade for later under Additional Inputs.
-
You must run the root.sh script after the upgrade, click OK.
-
Review the agent upgrade process.
-
Agent upgrade was successful.
Post Upgrade
-
Invoke the installer from the old OMS home
-
Select only the OMS-related plug-ins homes (from the Old Home only!!) and click Remove.
-
Select the Java Development Kit JDK home and click Remove.
-
Select the Oracle WebTier home and click Remove. After finishing the deinstall click Close.
-
Finally select the OMS home & the Oracle Common directories and click Remove.
Oracle Recursive Sessions ORA-00018
IOUG Collaborate 2014, final presentation
Today I want to share with you the final presentation of session 553 that I’m going to hold tomorrow morning in the IOUG Collaborate 2014.
Hope you enjoy it!
Extract AWR data to build Response Time graphs (awrrtsys.sql)
How to remove OEM agent in the release 3 of the Oracle Enterprise Manager.
OEM 12c R3 has a very useful Perl script which allows removing an installed OEM agent in the host. The process is quite straightforward just by invoking the AgentDeinstall.pl script located under:
$AGENT_HOME/sysman/install/AgentDeinstall.pl
[oracle@ol6-112 12.1.0.3.0]$ /u01/app/oracle/agent12cr3/core/12.1.0.3.0/perl/bin/perl /u01/app/oracle/agent12cr3/core/12.1.0.3.0/sysman/install/AgentDeinstall.pl -agentHome $AGENT_HOME
Agent Oracle Home: /u01/app/oracle/agent12cr3/core/12.1.0.3.0
NOTE: The agent base directory: /u01/app/oracle/agent12cr3 will be removed after successful deinstallation of agent home.
DetachHome Command executed:/u01/app/oracle/agent12cr3/core/12.1.0.3.0/oui/bin/runInstaller -detachHome -force -depHomesOnly -silent ORACLE_HOME=/u01/app/oracle/agent12cr3/core/12.1.0.3.0 -waitForCompletion -invPtrLoc /u01/app/oracle/agent12cr3/core/12.1.0.3.0/oraInst.loc
Starting Oracle Universal Installer...
Checking swap space: must be greater than 500 MB. Actual 8015 MB Passed
The inventory pointer is located at /u01/app/oracle/agent12cr3/core/12.1.0.3.0/oraInst.loc
'DetachHome' was successful.
Starting Oracle Universal Installer...
Checking swap space: must be greater than 500 MB. Actual 8015 MB Passed
The inventory pointer is located at /u01/app/oracle/agent12cr3/core/12.1.0.3.0/oraInst.loc
The Oracle home '/u01/app/oracle/agent12cr3/sbin' could not be updated as it does not exist.
Deinstall Command executed:/u01/app/oracle/agent12cr3/core/12.1.0.3.0/oui/bin/runInstaller -deinstall -silent "REMOVE_HOMES={/u01/app/oracle/agent12cr3/core/12.1.0.3.0}" -waitForCompletion -removeAllFiles -invPtrLoc /u01/app/oracle/agent12cr3/core/12.1.0.3.0/oraInst.loc
Starting Oracle Universal Installer...
Checking swap space: must be greater than 500 MB. Actual 8015 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2013-11-11_02-22-46PM. Please wait ...Oracle Universal Installer, Version 11.1.0.11.0 Production
Copyright (C) 1999, 2013, Oracle. All rights reserved.
Starting deinstall
Deinstall in progress (Monday, November 11, 2013 2:23:00 PM CST)
Configuration assistant "Agent Deinstall Assistant" succeeded
............................................................... 100% Done.
Deinstall successful
End of install phases.(Monday, November 11, 2013 2:23:37 PM CST)
End of deinstallations
Please check '/u01/app/oraInventory/logs/silentInstall2013-11-11_02-22-46PM.log' for more details.
Do you want us to delete the old oracle home [yes/no] :y
Hope this help you when need to remove an OEM agent installation.
Thanks,
Alfredo
Oracle Enterprise Manager 12c Release 3 New Features
- All Metrics Chart Enhancements
- Metrics Schedule Enhancements
- Service Target Dashboard
- Performance Diagnostics Enhancements
Understanding Oracle Histograms
SQL> INSERT INTO T_HIST SELECT LEVEL C1, mod(round(dbms_random.value(1,100000)),254) c2,
mod(round(dbms_random.value(1,100000)),254) c3, ‘P’ from dual connect by level < 301;
300 rows created.
SQL> INSERT INTO T_HIST SELECT LEVEL C1, mod(round(dbms_random.value(1,100000)),254) c2,
mod(round(dbms_random.value(1,100000)),254) c3, ‘R’ from dual connect by level < 301;
300 rows created.
SQL> INSERT INTO T_HIST SELECT LEVEL C1, mod(round(dbms_random.value(1,100000)),254) c2,
mod(round(dbms_random.value(1,100000)),254) c3, ‘T’ from dual connect by level < 301;
300 rows created.
SQL> INSERT INTO T_HIST SELECT LEVEL C1, mod(round(dbms_random.value(1,100000)),254) c2,
2 mod(round(dbms_random.value(1,100000)),254) c3, ‘A’ from dual connect by level < 500001;
500000 rows created.
SQL> COMMIT;
Commit complete.
SQL>
Index created.
SQL>
SET PAGESIZE 0
SELECT *
FROM TABLE(DBMS_XPLAN.DISPLAY); 2 3 4 5 6
Explained.
SQL> SQL> SQL> SQL> 2
Plan hash value: 3146893614
——————————————————————————————–
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
——————————————————————————————–
| 0 | SELECT STATEMENT | | 30 | 1260 | 387 (1)| 00:00:05 |
| 1 | SORT ORDER BY | | 30 | 1260 | 387 (1)| 00:00:05 |
| 2 | TABLE ACCESS BY INDEX ROWID| T_HIST | 30 | 1260 | 386 (0)| 00:00:05 |
|* 3 | INDEX RANGE SCAN | T_HIST_IDX1 | 3607 | | 375 (0)| 00:00:05 |
——————————————————————————————–
Predicate Information (identified by operation id):
—————————————————
3 – access(“C4″=’R’)
Note
—–
– dynamic sampling used for this statement (level=2)
MRP0: Background Media Recovery terminated with error 1237
· Shutdown standby database




