重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1025|回复: 0
打印 上一主题 下一主题

手动删除oem 13c EM REPOSITORY 数据库

[复制链接]
跳转到指定楼层
楼主
发表于 2021-4-30 01:13:44 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 郑全 于 2021-4-30 01:21 编辑

在EM13C安装失败,想重新安装EM,需要按以下步骤把EM repostiory删除,具体参照如下文档:

13c Cloud Control Repository: How to Manually Drop Repository Database Objects in 13c Cloud Control (文档 ID 2107485.1)

In this Document

GoalSolutionReferences


APPLIES TO:
Enterprise Manager Base Platform - Version 13.1.0.0.0 and later
Information in this document applies to any platform.
GOAL
This document provides the steps for dropping the 13c Cloud Control Repository Database Objects manually.

Note:   

-  "RepManager dropall" is the supported method for dropping the Repository objects and it is  highly recommended  to drop repository objects only using the RepManager utility as described here:

Enterprise Manager Cloud Control Administrator's Guide
Release 13.2
Chapter 20 Maintaining and Troubleshooting the Management Repository
20.3 Dropping and Recreating the Management Repository
20.3.1 Dropping the Management Repository



-  This document should be used in extreme cases like:

1) The OMS home is lost or removed and there is no RepManager utility availableto drop the repository objects
2) The RepManager utility fails to completely remove all repository objects.

SOLUTION
Login to repository database as  sys  user and perform the following steps to cleanup the repository database manually:

1. Drop the repository users:

SQL> drop user sysman cascade;
SQL> drop user sysman_types cascade;
SQL> drop user sysman_stb cascade;
SQL> drop user sysman_opss cascade;
SQL> drop user sysman_biplatform cascade;
SQL> drop user sysman_bip cascade;
SQL> drop user sysmanupgr_opss cascade;
SQL> drop user sysman_apm cascade;
SQL> drop user sysman_ro cascade;
SQL> drop user sysman_mds cascade;
SQL> drop user cloud_engine_user cascade;
SQL> drop user cloud_swlib_user cascade;
SQL> drop user mgmt_view cascade;
SQL> drop user eus_engine_user cascade;
SQL> drop role mgmt_user;

2. Verify if there are any leftover synonyms:

SQL> spool synonyms.lst
SQL> select owner,synonym_name from dba_synonyms where table_owner in ('SYSMAN', 'SYSMAN_MDS', 'MGMT_VIEW', 'SYSMAN_BIP', 'SYSMAN_APM', 'SYSMAN_OPSS', 'SYSMAN_RO', 'SYSMAN_BIPLATFORM', 'SYSMANUPGR_OPSS', 'CLOUD_ENGINE_USER', 'CLOUD_SWLIB_USER', 'EUS_ENGINE_USER', 'SYSMAN_TYPES', 'SYSMAN_STB') ;
SQL> spool off
SQL> @synonyms.lst

3. Drop the tablespaces:

SQL> drop tablespace MGMT_ECM_DEPOT_TS including contents and datafiles;
SQL> drop tablespace MGMT_TABLESPACE including contents and datafiles;
SQL> drop tablespace MGMT_AD4J_TS including contents and datafiles;

4. Delete the entries from registry:

SQL> delete from SCHEMA_VERSION_REGISTRY where COMP_NAME='Metadata Services';
SQL> delete from SCHEMA_VERSION_REGISTRY where COMP_NAME='Authorization Policy Manager';
SQL> delete from SCHEMA_VERSION_REGISTRY where COMP_NAME='Oracle Platform Security Services';
SQL> delete from SCHEMA_VERSION_REGISTRY where COMP_NAME='OracleBI and EPM'
SQL> delete from SCHEMA_VERSION_REGISTRY where COMP_NAME='Service Table';
SQL> commit;



REFERENCES
NOTE:2096776.1  - EM13c: 13c Cloud Control Installation Fails at Repository Configuration With "ORA-02303: cannot drop or replace a type with type or table dependents"

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-11-28 18:10 , Processed in 0.103168 second(s), 19 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表