windows drop em
DECLARE
CURSOR c1 IS
SELECT owner, synonym_name name
FROM dba_synonyms
WHERE table_owner = 'SYSMAN';
BEGIN
FOR r1 IN c1
LOOP
IF r1.owner = 'PUBLIC' THEN
EXECUTE IMMEDIATE 'DROP PUBLIC SYNONYM '||r1.name;
ELSE
EXECUTE IMMEDIATE 'DROP SYNONYM '||r1.owner||'.'||r1.name;
END IF;
END LOOP;
END;
DROP ROLE mgmt_user;
drop user mgmt_view cascade;
drop user sysman cascade;[@more@]
CURSOR c1 IS
SELECT owner, synonym_name name
FROM dba_synonyms
WHERE table_owner = 'SYSMAN';
BEGIN
FOR r1 IN c1
LOOP
IF r1.owner = 'PUBLIC' THEN
EXECUTE IMMEDIATE 'DROP PUBLIC SYNONYM '||r1.name;
ELSE
EXECUTE IMMEDIATE 'DROP SYNONYM '||r1.owner||'.'||r1.name;
END IF;
END LOOP;
END;
DROP ROLE mgmt_user;
drop user mgmt_view cascade;
drop user sysman cascade;[@more@]
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9907339/viewspace-1046072/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle EM Https WIndows不能訪問防火牆配置OracleHTTPWindows防火牆
- windows叢集下 ORACLE EM 的啟動問題WindowsOracle
- (EM演算法)The EM Algorithm演算法Go
- EM
- Windows +oracle 10g EM中的主機身份問題WindowsOracle 10g
- drop asm disk、撤銷drop asm diskASM
- Drop DatabaseDatabase
- 【EM】重新建立EM Database ControlDatabase
- JavaScript drop 事件JavaScript事件
- SQL__DROPSQL
- oracle drop columnsOracle
- mysql drop keyMySql
- ORACLE EM recreateOracle
- 重建oracle EMOracle
- em 和 remREM
- alter database drop datafile 與 drop tablespace file 的區別Database
- Oracle中drop user和drop user cascade的區別Oracle
- rem與em的區別||結合使用rem與emREM
- drag &drop 拖拽事件事件
- drag & drop 拖拽事件事件
- drop materialized view hung !!!ZedView
- drop、delete 與truncatedelete
- KEEP INDEX | DROP INDEXIndex
- torch--drop out
- oracle EM 優化Oracle優化
- em,rem和vhREM
- oracle 重建EM databaseOracleDatabase
- oracle em 修改埠Oracle
- alter database datafile offline drop 與 alter tablespace drop datafile 區別Database
- 04EM演算法-EM演算法收斂證明演算法
- Drag & Drop 拖拽詳解
- HTML5 : Drag & DropHTML
- mysql恢復drop表MySql
- 快速drop mysql大表MySql
- truncate delete drop 區別delete
- Oracle 19C EMOracle
- px em rem 探討REM
- CSS中強大的EMCSS