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

 找回密码
 注册

QQ登录

只需一步,快速开始

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

EM12C 12.1.0.5安装中断,干净的删除EMREP库中的步骤

[复制链接]
跳转到指定楼层
楼主
发表于 2020-2-20 20:39:01 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Login to the repository database as SYS user and execute the below:

1. Drop the repository users:
drop user SYSMAN cascade;
drop user SYSMAN_MDS cascade;
drop user MGMT_VIEW cascade;
drop user SYSMAN_RO cascade;
drop user SYSMAN_OPSS cascade;
drop user SYSMAN_APM cascade;
drop user SYSMAN_BIP;
drop user CLOUD_SWLIB_USER cascade;
drop user CLOUD_ENGINE_USER cascade;
drop role MGMT_USER;


2. Drop the synonyms:
SQL> spool synonyms.lst
SQL> select 'drop '|| decode(owner,'PUBLIC',owner||' synonym '||synonym_name, ' synonym '||owner||'.'||synonym_name) ||';' from dba_synonyms where table_owner in ('SYSMAN', 'SYSMAN_MDS', 'MGMT_VIEW', 'SYSMAN_BIPLATFORM', 'SYSMAN_APM', 'SYSMAN_OPSS', 'SYSMAN_RO') ;
SQL> Spool off
SQL> @synonyms.lst

Note: The above query spools the list of synonyms (including the public synonyms) into a file named synonyms.lst. Execute the synonyms.lst at the sql prompt to drop all the listed synonyms.
After running the spooled output, execute the below query again to confirm that none of the synonyms are left behind:

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') ;

Query should not return any rows.

3. Drop the tablespace objects:
SQL> spool tablespaces.lst
SQL> select 'drop tablespace '||tablespace_name||' including contents and datafiles;' from dba_tablespaces where tablespace_name like 'MGMT%';
SQL> Spool off
SQL> @tablespaces.lst

Note: The above query should return three tablespaces (MGMT_ECM_DEPOT_TS, MGMT_TABLESPACE and MGMT_AD4J_TS).  Confirm that only these three tablespaces are returned. This query spools the list of the three tablespaces ( into a file named tablespaces.lst,. Execute the tablespaces.lst file at the sql prompt to drop all the tablespaces.

4. Drop the registry objects:

delete from SCHEMA_VERSION_REGISTRY where COMP_NAME='Metadata Services';
delete from SCHEMA_VERSION_REGISTRY where COMP_NAME='Authorization Policy Manager';
delete from SCHEMA_VERSION_REGISTRY where COMP_NAME='Oracle Platform Security Services';
commit;

Retry the installation after dropping the repository objects.

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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-24 21:50 , Processed in 0.090179 second(s), 19 queries .

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

© 2001-2020

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