Check the existence of public synonyms Remove the public synonyms
在安裝12c Cloud Control時遭遇Check the existence of public synonyms, Remove the public synonyms錯誤,由於之前安裝過一次,可能沒刪除乾淨
但是不知道public synonym名稱是什麼,上mos上查查,終於找到了一篇文章,解決方法如下:
1.刪除資料庫使用者:
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.刪除同義詞:
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> 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.刪除表空間;
select 'drop tablespace '||tablespace_name||' including contents and datafiles;' from dba_tablespaces where tablespace_name like 'MGMT%';
4.刪除物件:
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;
執行以上步驟之後,安裝順利完成!
但是不知道public synonym名稱是什麼,上mos上查查,終於找到了一篇文章,解決方法如下:
1.刪除資料庫使用者:
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.刪除同義詞:
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> 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.刪除表空間;
select 'drop tablespace '||tablespace_name||' including contents and datafiles;' from dba_tablespaces where tablespace_name like 'MGMT%';
4.刪除物件:
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;
執行以上步驟之後,安裝順利完成!
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/25462274/viewspace-2152143/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- [20190102]ORA-01775 looping chain of synonyms.txtOOPAI
- TestFlight Public Link
- public interface View介面和public interface ViewResolver介面介紹View
- Elasticsearch:使用同義詞 synonyms 來提高搜尋效率Elasticsearch
- 2.2.4.4 Grants to PUBLIC in a CDB
- public-image-mirror
- Oracle 12.2 RAC修改public ip address或public ip(subnet (netmask) or interface)Oracle
- Python 訪問限制 private publicPython
- 如何找到真正的 public 方法
- var和public的區別
- Angular Public API 介面設計AngularAPI
- 【Java小疑問】類和方法 前面新增public和不新增public的區別Java
- public @interface xxx 定義註解
- Oracle RAC修改public, VIP, SCAN IPOracle
- Public Easy Round #2 E. 2048
- Swift 3.0 的 open,public,internal,fiSwift
- PostgreSQL-PostgreSQL中的public(九)SQL
- [重慶思莊每日技術分享]-Oracle expdp ORA-01775: looping chain of synonymsOracleOOPAI
- 私有屬性的Get Set 與 Public
- 修改 Laravel 的預設 public 路徑Laravel
- 【SEED Labs】Public-Key Infrastructure (PKI) LabASTStruct
- Dotnet Core Public API的安全實踐API
- rac 新增第二public ip 和 vip
- public 和私有類欄位[雙語]
- Public NOIP Round #6 D 排序 題解排序
- public, private, protected 訪問許可權訪問許可權
- 陣列宣告為public final static缺陷陣列
- Oracle RAC修改Scan IP,Public IP的方法Oracle
- 為什麼類只能用public修飾?
- 【Java】private,protected,public,default的區別(形象生動)Java
- 為什麼 AI 時代更應該 Learn in PublicAI
- 一個由public關鍵字引發的bug
- php artisan serve 等同於 php -S localhost:8000 -t ./publicPHPlocalhost
- GitHub的Repository許可權將public轉為privateGithub
- 人臉識別資料集 - PubFig: Public Figures Face DatabaseDatabase
- Oracle 12. 2 RAC public IP與vip 互換方法Oracle
- Laravel 5中去掉URL中的public路徑方法Laravel
- php class中public,private,protected,static的區別,以及例項PHP