【OEM】怎樣手動清除OEM12的資料庫
適用版本
12.1.0.1.0 to 12.1.0.5.0 [Release 12.1]
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、刪除同義詞
點選( 此處)摺疊或開啟
-
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
3、執行完第二條後,檢查, 是否還存在
點選( 此處)摺疊或開啟
- 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' )
4、刪除表空間
點選( 此處)摺疊或開啟
-
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
5、刪除相關物件
點選( 此處)摺疊或開啟
-
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
If
BI Publisher
is associated with Enterprise Manager for running reports, then follow this procedure instead.
1. Run DBCA to create a template (structure only) of the existing repository database. 透過dbca根據原資料庫建立一個模板
2. Run DBCA to drop the instance storing the EM repository. 刪除原資料庫例項
3. Run DBCA to create a new instance, using the template created from the old repository instance, to support a new EM 12c installation. 根據模板建立新的例項
注意:如果OEM 12c 已配置了BI Publisher 報告,沒有其他方法可以刪除這個資料庫。
參考資料:
12c Cloud Control Repository: How to Manually Drop Repository Database Objects in 12c Cloud Control? (Doc ID 1395423.1)
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29487349/viewspace-2126549/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- mongodb怎麼手動建立資料庫MongoDB資料庫
- 怎樣開啟mongodb資料庫MongoDB資料庫
- 資料庫的基本分類是怎樣的?資料庫
- 怎樣設計一個好的資料庫資料庫
- zblog的資料庫配置檔案是哪個?怎樣修改資料庫配置資訊?資料庫
- 給Agent加上資料庫功能會怎樣?資料庫
- 怎樣清除v$archived_log檢視中的過期資訊Hive
- 萬里資料庫是一家怎樣的公司?資料庫
- Win10怎麼清除所有資料?Win10電腦清除所有資料的方法和步驟Win10
- 怎樣在資料庫中儲存貨幣資料庫
- 我應該手動修改線上資料庫的資料嗎?資料庫
- 自己動手寫Android資料庫框架Android資料庫框架
- MySQL手動資料校驗+雲資料庫資料校驗MySql資料庫
- 大模型時代究竟需要怎樣的 AI 資料庫?大模型AI資料庫
- oracle 資料庫徹底清除目錄指令碼Oracle資料庫指令碼
- 資料庫的花樣年華資料庫
- 怎樣從外網網訪問本地資料庫?資料庫
- 分散式資料庫怎樣才能叫好又賣座分散式資料庫
- 如何清除 Elasticsearch 中的資料Elasticsearch
- 8種手動和自動備份MySQL資料庫的方法MySql資料庫
- 怎樣高效的爬取資料?
- 怎樣從公網訪問內網Redis資料庫內網Redis資料庫
- 【OEM】Oracle oem取消開機自動啟動(linux)OracleLinux
- DG備庫手動管理 新增資料檔案
- 怎樣保護資料
- 達夢資料庫手動管理統計資訊方法資料庫
- 清除 Electron 中的快取資料快取
- 如何自動清除指定資料夾下的符號連結符號
- win10怎麼清除瀏覽器下拉地址_win10怎樣清除位址列下拉選單裡的地址Win10瀏覽器
- 完整的資料分析是怎樣的流程
- Macbook一鍵抹掉系統所有資料教程 Macbook怎麼清除所有資料?Mac
- 如何清除win10 所有資料_win10怎麼清空所有資料Win10
- Oracle DG備庫手動管理新增資料檔案Oracle
- mysql 清除重複資料MySql
- MHA實現mysql主從資料庫手動切換的方法MySql資料庫
- 怎樣獲取jstree的節點資料_大資料獲客是怎樣獲取精準客源的JS大資料
- 小白不懂就問:做介面測試產生的資料怎麼清除
- 面試官:資料庫自增ID用完了會怎麼樣?面試資料庫
- Elasticsearch Lucene是怎樣資料寫入的Elasticsearch