Database Control

Deinstall

  • Enterprise Manager Database Control is no longer supported in 12.1 and above and will be removed post upgrade while executing catuppst.sql.

  • To save time, this action may be completed BEFORE the upgrade by invoking emremove.sql.

  • This is an optional preparation step to speed up the upgrade.

  • This script removes Oracle Enterprise Manager Database Control from the target database.

  • It does not affect Oracle Enterprise Manager Cloud Control.

Stop dbconsole (if it is running):

emctl stop dbconsole

Connect to the Database using the SYS account AS SYSDBA:

export NEWVER=12.1.0.2

cd /u01/app/oracle/product/${NEWVER}/rdbms/admin

sqlplus / as sysdba

spool /tmp/emremove.log

SET ECHO ON;

SET SERVEROUTPUT ON;

@emremove.sql

spool off

exit

rm -r ${ORACLE_HOME}/$(hostname)_${ORACLE_SID}

rm -r ${ORACLE_HOME}/oc4j/j2ee/OC4J_DBConsole_$(hostname)_${ORACLE_SID}

rm -r ${ORACLE_HOME}/$(hostname)_${ORACLE_SID}.upgrade

rm -r ${ORACLE_HOME}/oc4j/j2ee/OC4J_DBConsole_$(hostname)_${ORACLE_SID}.upgrade

NOTE: Without the set echo and serveroutput commands you will not be able to follow the progress of the script.NOTE: If OEM Database Control has never been started then the directories will not exist
This script will drop the Oracle Enterprise Manager related schemas and objects.This script might take few minutes to complete; it has 6 phases to complete theprocess.The script may take longer if you have SYSMAN and related sessions are activefrom Oracle Enterprise Manager(OEM) application.Recommendations:You are recommended to shutdown DB Control application immediately beforerunning thisOEM repository removal script.To shutdown DB Control application, you need to run: emctl stop dbconsoleSteps to be performed manually (after this script is run):Please note that you need to remove the DB Control Configuration Filesmanually to remove DB Control completly; remove the followingdirectories from your filesystem:<ORACLE_HOME>/<hostname_sid><ORACLE_HOME>/oc4j/j2ee/OC4J_DBConsole_<hostname>_<sid>If the dbcontrol is upgraded from lower version, for example, from 10.2.0.3 to10.2.0.4,then the following directory also needs to be removed from the file system.<ORACLE_HOME>/<hostname_sid>.upgrade<ORACLE_HOME>/oc4j/j2ee/OC4J_DBConsole_<hostname>_<sid>.upgradeOn Microsoft platforms, also delete the DB Console service, generally with nameOracleDBConsole<sid>Starting phase 1 : Dropping AQ related objests, EM jobs and all OracleEnterprise Manager related schemas; except SYSMAN ...dropping AQ related objests from SYSMAN ...saved job_queue_process=10, set to 0, now removing Oracle EM jobs ...finding users who needs to be dropped ...found user name: MGMT_VIEWfound [sql%notfound]: no session found; or already killed.Dropping user : "MGMT_VIEW"...Finished phase 1Starting phase 2 : Dropping SYSMAN schema ...found [sql%notfound]: SYSMAN related sessions are already killed; no sessionfounddropping user : MGMT_VIEW...SYSMAN droppedFinished phase 3Starting phase 4 : Dropping Oracle Enterprise Manager related MGMT_USER role ...Finished phase 4Starting phase 5 : Dropping Oracle Enterprise Manager related public synonyms...Dropping synonym : SETEMVIEWUSERCONTEXT ...Dropping synonym : MGMT_VIEW_UTIL ...Dropping synonym : MGMT_TARGET_BLACKOUTS ...Dropping synonym : MGMT_PAF_PROCS_LATEST ...Dropping synonym : MGMT_PAF_JOBS ...Dropping synonym : MGMT_PAF$STATES ...Dropping synonym : MGMT_PAF$PROCEDURES ...Dropping synonym : MGMT_PAF$INSTANCES ...Dropping synonym : MGMT_PAF$APPLICATIONS ...Dropping synonym : MGMT_MESSAGES ...Dropping synonym : MGMT_IP_TGT_GUID_ARRAY ...Dropping synonym : MGMT$TXN_PERF_RAW ...Dropping synonym : MGMT$TXN_PERF_HOUR ...Dropping synonym : MGMT$TXN_PERF_DAY ...Dropping synonym : MGMT$TARGET_TYPE ...Dropping synonym : MGMT$TARGET_PROPERTIES ...Dropping synonym : MGMT$TARGET_COMPOSITE ...Dropping synonym : MGMT$TARGET_COMPONENTS ...Dropping synonym : MGMT$TARGET ...Dropping synonym : MGMT$STEP_METRICS_RAW ...Dropping synonym : MGMT$STEP_METRICS_HOURLY ...Dropping synonym : MGMT$STEP_METRICS_DAILY ...Dropping synonym : MGMT$STEP_GROUPS ...Dropping synonym : MGMT$STEPS ...Dropping synonym : MGMT$SOFTWARE_PATCHSETS ...Dropping synonym : MGMT$SOFTWARE_PATCHES_IN_HOMES ...Dropping synonym : MGMT$SOFTWARE_OTHERS ...Dropping synonym : MGMT$SOFTWARE_ONEOFF_PATCHES ...Dropping synonym : MGMT$SOFTWARE_HOMES ...Dropping synonym : MGMT$SOFTWARE_DEPENDENCIES ...Dropping synonym : MGMT$SOFTWARE_COMP_PATCHSET ...Dropping synonym : MGMT$SOFTWARE_COMPONENT_ONEOFF ...Dropping synonym : MGMT$SOFTWARE_COMPONENTS ...Dropping synonym : MGMT$RACDB_INTERCONNECTS ...Dropping synonym : MGMT$OS_SUMMARY ...Dropping synonym : MGMT$OS_PATCHES ...Dropping synonym : MGMT$OS_KERNEL_PARAMS ...Dropping synonym : MGMT$OS_HW_SUMMARY ...Dropping synonym : MGMT$OS_FS_MOUNT ...Dropping synonym : MGMT$OS_COMPONENTS ...Dropping synonym : MGMT$MISSING_TARGETS_IN_GROUPS ...Dropping synonym : MGMT$MISSING_TARGETS ...Dropping synonym : MGMT$METRIC_HOURLY ...Dropping synonym : MGMT$METRIC_DETAILS ...Dropping synonym : MGMT$METRIC_DAILY ...Dropping synonym : MGMT$METRIC_CURRENT ...Dropping synonym : MGMT$METRIC_COLLECTION ...Dropping synonym : MGMT$INTERFACE_STATS ...Dropping synonym : MGMT$HW_NIC ...Dropping synonym : MGMT$HA_RMAN_CONFIG ...Dropping synonym : MGMT$HA_MTTR ...Dropping synonym : MGMT$HA_INIT_PARAMS ...Dropping synonym : MGMT$HA_INFO ...Dropping synonym : MGMT$HA_FILES ...Dropping synonym : MGMT$HA_BACKUP ...Dropping synonym : MGMT$GRP_METRICS_RAW ...Dropping synonym : MGMT$GRP_METRICS_HOURLY ...Dropping synonym : MGMT$GRP_METRICS_DAILY ...Dropping synonym : MGMT$GROUP_MEMBERS ...Dropping synonym : MGMT$GROUP_FLAT_MEMBERSHIPS ...Dropping synonym : MGMT$GROUP_DERIVED_MEMBERSHIPS ...Dropping synonym : MGMT$ECM_VISIBLE_SNAPSHOTS ...Dropping synonym : MGMT$ECM_CURRENT_SNAPSHOTS ...Dropping synonym : MGMT$ECM_CONFIG_HISTORY_KEY6 ...Dropping synonym : MGMT$ECM_CONFIG_HISTORY_KEY5 ...Dropping synonym : MGMT$ECM_CONFIG_HISTORY_KEY4 ...Dropping synonym : MGMT$ECM_CONFIG_HISTORY_KEY3 ...Dropping synonym : MGMT$ECM_CONFIG_HISTORY_KEY2 ...Dropping synonym : MGMT$ECM_CONFIG_HISTORY_KEY1 ...Dropping synonym : MGMT$ECM_CONFIG_HISTORY ...Dropping synonym : MGMT$E2E_RAW ...Dropping synonym : MGMT$E2E_HOURLY ...Dropping synonym : MGMT$E2E_1DAY ...Dropping synonym : MGMT$DELTA_VIEW_DETAILS ...Dropping synonym : MGMT$DELTA_VIEW ...Dropping synonym : MGMT$DELTA_VENDOR_SW ...Dropping synonym : MGMT$DELTA_PATCHSET_DETAILS ...Dropping synonym : MGMT$DELTA_PATCHSETS ...Dropping synonym : MGMT$DELTA_OS_KERNEL_PARAMS ...Dropping synonym : MGMT$DELTA_OS_COMP_DETAILS ...Dropping synonym : MGMT$DELTA_OS_COMPONENTS ...Dropping synonym : MGMT$DELTA_ORACLE_HOME ...Dropping synonym : MGMT$DELTA_ONEOFF_PATCHES ...Dropping synonym : MGMT$DELTA_INIT ...Dropping synonym : MGMT$DELTA_HOST_CONFIG ...Dropping synonym : MGMT$DELTA_HARDWARE ...Dropping synonym : MGMT$DELTA_FS_MOUNT ...Dropping synonym : MGMT$DELTA_COMPONENT_DETAILS ...Dropping synonym : MGMT$DELTA_COMPONENTS ...Dropping synonym : MGMT$DB_TABLESPACES ...Dropping synonym : MGMT$DB_SGA ...Dropping synonym : MGMT$DB_ROLLBACK_SEGS ...Dropping synonym : MGMT$DB_REDOLOGS ...Dropping synonym : MGMT$DB_LICENSE ...Dropping synonym : MGMT$DB_INIT_PARAMS ...Dropping synonym : MGMT$DB_FEATUREUSAGE ...Dropping synonym : MGMT$DB_DBNINSTANCEINFO ...Dropping synonym : MGMT$DB_DATAFILES ...Dropping synonym : MGMT$DB_CONTROLFILES ...Dropping synonym : MGMT$CSA_HOST_SW ...Dropping synonym : MGMT$CSA_HOST_OS_PROPERTIES ...Dropping synonym : MGMT$CSA_HOST_OS_FILESYSTEMS ...Dropping synonym : MGMT$CSA_HOST_OS_COMPONENTS ...Dropping synonym : MGMT$CSA_HOST_NICS ...Dropping synonym : MGMT$CSA_HOST_IOCARDS ...Dropping synonym : MGMT$CSA_HOST_CUSTOM ...Dropping synonym : MGMT$CSA_HOST_CPUS ...Dropping synonym : MGMT$CSA_HOST_COOKIES ...Dropping synonym : MGMT$CSA_CLIENTS ...Dropping synonym : MGMT$CLUSTER_INTERCONNECTS ...Dropping synonym : MGMT$BLACKOUT_HISTORY ...Dropping synonym : MGMT$AVAILABILITY_HISTORY ...Dropping synonym : MGMT$AVAILABILITY_CURRENT ...Dropping synonym : MGMT$ALERT_HISTORY ...Dropping synonym : MGMT$ALERT_CURRENT ...Finished phase 5Starting phase 6 : Dropping Oracle Enterprise Manager related other roles ...Finished phase 6The Oracle Enterprise Manager related schemas and objects are dropped.Do the manual steps to studown the DB Control if not done before running thisscript and then delete the DB Control configuration files

Bibliography

Complete Checklist for Upgrading to Oracle Database 12c Release 1 using DBUA (Doc ID 1516557.1)