【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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 手動配置OEM管理資料庫資料庫
- mongodb怎麼手動建立資料庫MongoDB資料庫
- 怎樣移動Oracle資料庫的表空間Oracle資料庫
- 使用OEM複製資料庫資料庫
- 怎樣報表資料庫資料庫
- 怎樣查得資料庫的SID ?資料庫
- 手動建立資料庫資料庫
- OEM中找不到資料庫呢?資料庫
- 怎樣開啟mongodb資料庫MongoDB資料庫
- 資料庫的基本分類是怎樣的?資料庫
- EM資料庫重建 手動刪除資料庫資料庫
- 使用OEM管理RAC資料庫——RAC管理資料庫
- 手動建立oracle資料庫Oracle資料庫
- Oracle 手動建立資料庫Oracle資料庫
- 手動複製資料庫資料庫
- 手動刪除資料庫資料庫
- 怎樣啟動停止重啟MySQL資料庫伺服器MySql資料庫伺服器
- 怎樣設計一個好的資料庫資料庫
- 怎樣修改資料庫字符集資料庫
- 清除SQL Server資料庫日誌SQLServer資料庫
- oracle清除資料庫表空間Oracle資料庫
- 手動建立資料庫過程資料庫
- oracle手動刪除資料庫Oracle資料庫
- 手動刪除oracle資料庫Oracle資料庫
- 手動建立資料庫步驟資料庫
- 怎樣保持Oracle資料庫SQL效能的穩定性Oracle資料庫SQL
- 怎樣使用castor 存取oracl資料庫中的blobAST資料庫
- 怎樣檢查資料庫壞塊(DBV)資料庫
- Linux下啟動/關閉LINUX環境下ORACLE資料庫的OEMLinuxOracle資料庫
- 我應該手動修改線上資料庫的資料嗎?資料庫
- 資料說話:怎樣的程式設計師最搶手?程式設計師
- 怎樣快速查出Oracle 資料庫中的鎖等待Oracle資料庫
- (轉)怎樣才能dump資料庫的內部結構?資料庫
- 資料庫安全策略中資料保護有怎樣的功能?資料庫
- 怎樣在資料庫中儲存貨幣資料庫
- 怎麼樣dump資料庫內部結構資料庫
- 請問怎樣將資料庫驅動ENcode改為ISO88591?資料庫
- Win10怎麼清除所有資料?Win10電腦清除所有資料的方法和步驟Win10