码迷,mamicode.com
首页 > 数据库 > 详细

3.1 创建预配置管理资料数据库

时间:2020-03-12 10:05:18      阅读:83      评论:0      收藏:0      [点我收藏+]

标签:security   acl   rem   commit   synonym   contents   reg   sysman   comm   

3.1 创建预配置管理资料数据库

 

Cloud Control资料数据库的选择

按照规划可以选择单实例或者集群。
OMR可以通过DBCA新建或者EM模板

如果采用DBCA新建实例,可以会在安装12c Cloud Control时遭遇Check the existence of public synonyms, Remove the public synonyms错误,解决方法如下:

1.删除资料库用户:
  1. drop user SYSMAN cascade;
  2. drop user SYSMAN_MDS cascade;
  3. drop user MGMT_VIEW cascade;
  4. drop user SYSMAN_RO cascade;
  5. drop user SYSMAN_OPSS cascade;
  6. drop user SYSMAN_APM cascade;
  7. drop user SYSMAN_BIP;
  8. drop user CLOUD_SWLIB_USER cascade;
  9. drop user CLOUD_ENGINE_USER cascade;
  10. drop role MGMT_USER;
2.删除同义词:
  1. 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‘) ;
删除之后用如下语句查询一下:
  1. select owner,synonym_name from dba_synonyms where table_owner in (‘SYSMAN‘, ‘SYSMAN_MDS‘,‘MGMT_VIEW‘,‘SYSMAN_BIP‘,‘SYSMAN_APM‘,‘SYSMAN_OPSS‘,‘SYSMAN_RO‘) ;
3.删除表空间;
  1. select ‘drop tablespace ‘||tablespace_name||‘ including contents and datafiles;‘ from dba_tablespaces where tablespace_name like ‘MGMT%‘;
4.删除对象:
  1. delete from SCHEMA_VERSION_REGISTRY where COMP_NAME=‘Metadata Services‘;
  2. delete from SCHEMA_VERSION_REGISTRY where COMP_NAME=‘Authorization Policy Manager‘;
  3. delete from SCHEMA_VERSION_REGISTRY where COMP_NAME=‘Oracle Platform Security Services‘;
  4. commit;
执行以上步骤之后,安装顺利完成!

 

3.1 创建预配置管理资料数据库

标签:security   acl   rem   commit   synonym   contents   reg   sysman   comm   

原文地址:https://www.cnblogs.com/sg1005/p/10070615.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!