Oracle的组件需要一个一个卸载,而且方法也有差异。这里说一下Spatial 组件卸载。

参考文档:

MOS:Steps for Manual De-installation of Oracle Spatial (Doc ID 179472.1)

https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=320026192621105&id=179472.1&_afrWindowMode=0&_adf.ctrl-state=19n0vc396r_4

适用的版本:

Oracle Spatial and Graph - Version 9.2.0.1 to 11.2.0.4 [Release 9.2 to 11.2]

Manual deinstallation of Spatial objects

--手动删除Spatial对象

1、环境检查(检查索引和表)

Before deinstalling Oracle Spatial, it is best to drop all Spatial indexes.

--在卸载Oracle Spatial组件前,最好删除所有Spatial indexes

Check if Spatial indexes exist in the database:--可以使用下面的语句来检查

connect / as sysdba

select owner,index_name from dba_indexes where ityp_name = 'SPATIAL_INDEX';

Check if tables having Spatial columns (columns having datatype SDO_GEOMETRY) exist:--检查是否有表使用Spatial 的列,即数据类型为SDO_GEOMETRY。

可以用下面的语句来检查

set pages 200

col owner for a20

col table_name for a30

col column_name for a25

select owner, table_name, column_name

from dba_tab_columns

where data_type = 'SDO_GEOMETRY'

and owner != 'MDSYS'

order by 1,2,3;

2、删除索引和表Note: Removing MDSYS will drop (!) existing SDO_GEOMETRY columns from above tables!

In case of a re-installation see:Note 250791.1Re-installing Spatial with Existing Tables Having an SDO_GEOMETRY Column

注意:在删除MDSYS 会drop所有存在SDO_GEOMETRY 类型列的表。如果存在表可以参考MOS:250791.1文档处理

To drop Spatial indexes:

--删除Spatial indexes

drop index .;

-- If some indexes cannot be dropped use the FORCE option:

--如果有索引不能删除就加FORCE参数强制删除

drop index . force;

To automate:

--使用脚本批量删除

set pagesize 0

spool DropIndexes.sql

select 'drop index ' || owner || '.' || index_name ||';'

from dba_indexes where ityp_name = 'SPATIAL_INDEX';

spool off

@DropIndexes.sql

If want to just remove the tables without backing them up:

--如果需要删除表就如下操作

set pages 200

col owner for a20

col table_name for a30

col column_name for a25

select owner, table_name, column_name

from dba_tab_columns

where data_type = 'SDO_GEOMETRY'

and owner != 'MDSYS'

order by 1,2,3;

set pagesize 0

spool DropTables.sql

select 'drop table '|| owner ||'.'|| table_name||';'

from dba_tab_columns

where data_type = 'SDO_GEOMETRY'

and owner != 'MDSYS';

spool off

@DropTables.sql

set pages 200

col owner for a20

col table_name for a30

col column_name for a25

select owner, table_name, column_name

from dba_tab_columns

where data_type = 'SDO_GEOMETRY'

and owner != 'MDSYS'

order by 1,2,3;

connect to each user and execute:

purge recyclebin;

set pages 200

col owner for a20

col table_name for a30

col column_name for a25

select owner, table_name, column_name

from dba_tab_columns

where data_type = 'SDO_GEOMETRY'

and owner != 'MDSYS'

order by 1,2,3;

3、删除用户

Then drop the user MDSYS:

-----删除MDSYS用户

drop user MDSYS cascade;

Optionally drop all remaining public synonyms created for Spatial:

---删除所有到MDSYS的同义词(可选操作)

set pagesize 0

set feed off

spool dropsyn.sql

select 'drop public synonym "' || synonym_name || '";' from dba_synonyms where table_owner='MDSYS';

spool off;

@dropsyn.sql

Spatial also creates a few user schemas during installation which can be dropped as well:

---Spatial 在安装期间会创建一些新的用户,需要删除

drop user mddata cascade;

-- Only created as of release 11g:

--下面两个用户只有在11g版本才有

drop user spatial_csw_admin_usr cascade;

drop user spatial_wfs_admin_usr cascade;

4、其他注意事项

IMPORTANT NOTE: Spatial will still appear in V$OPTION but this is expected behavior as explained in Note:273573.1 - Removed Spatial Option But Spatial Still Appears In V$Option

IMPORTANT NOTE: After having de-installed Spatial and if there are no plans to re-install the Spatial product you should at least install Oracle Locator (subset of Spatial) again to prevent possible issues with future upgrades due to dependencies with for example the XDB product.

Note: If Spatial has accidentally been installed earlier in another schema see Note 413693.1 to cleanup these objects as well.

卸载oracle exp 组件,oracle Spatial 组件卸载相关推荐

  1. oracle exp 二进制,Oracle备份之exp自动逻辑备份(二)

    exp是oracle的逻辑备份,是将数据库中的数据导出到二进制数据库文件. exp的三种导出方式 1.表方式(T方式),将指定表的数据导出. 2.用户方式(U方式),将指定用户的所有对象及数据导出. ...

  2. oracle exp 00006,Oracle 12.1新特性----使用RMAN从备份中实现recover table

    Oracle 12.1新特性----使用RMAN从备份中实现recover table 发布时间:2020-06-26 19:41:44 来源:51CTO 阅读:4750 作者:hbxztc 在Ora ...

  3. oracle exp imp

    oracle exp imp oracle exp/imp 脚本 posted on 2014-07-04 16:43 秦瑞It行程实录 阅读(...) 评论(...) 编辑 收藏 转载于:https ...

  4. oracle解决00302,oracle exp出现ORA-00302:必须说明SET_NO_OUTLINES 组件 解决办法

    oracle exp出现"ORA-00302:必须说明SET_NO_OUTLINES 组件" 解决方法 1.问题描述 使用oracle的exp工具,我客户端上安装的是oracle ...

  5. 水晶报表-oracle错误:未找到 Oracle 客户端和网络组件。这些组件是由 Oracle 公司提供的

    错误情景:水晶报表2008(32位),oracle11g(64位) 报错:未找到 Oracle 客户端和网络组件.这些组件是由 Oracle 公司提供的,是 Oracle 7.3.3 版(或更高)客户 ...

  6. 必须先说明组件oracle,Oracle Enterprise Manager 组件 说明 .

    一.    Enterprise Manager 组件说明 在说明之前,我们先用如下SQL 查看一下DB中的组件: SQL> col comp_id for a15 SQL> col ve ...

  7. php oracle组件,Oracle 组件 系列 小结

    Oracle 组件 系列 小结 Oracle 组件的信息可以通过v$option 和 dba_registry 查看: --查看v$option: V$OPTIONdisplaysOracle Dat ...

  8. 与Oracle配套组件,oracle 组件和体系结构

    1.用户相关的进程 用户相关的进程包括用户进程和服务器进程. 一个用户进程只能连接到一个服务器进程 但是在某些oracle配置中,多个用户进程可以共享同一个服务器进程. PAG也被创建,每一个服务器进 ...

  9. oracle 11gR2 新增deinstall命令来卸载grid和database

    在oracle 11gR2以前的版本中,卸载CRS和oracle database时需要手工去删除部分东西,从oracle 11gR2版本开始新增deinstall命令可以卸载grid和databas ...

最新文章

  1. Windows和Linux的C/C++ IDE选择
  2. 从生成对抗网络到更自动化的人工智能
  3. SGU 332 Largest Circle(凸包内接圆半径nlogn)
  4. Linux内核探讨-- 第一章
  5. python项目面试_Python面试中最常见的25个问题-结束
  6. 烂泥:centos单独编译安装gd库
  7. sql语句练习(一)
  8. .Net Core中使用Quartz.Net Vue开即用的UI管理
  9. dtm文件生成等高线 lisp_南方cass如何用图面高程点生成等高线
  10. java byte 判断相等_你真的了解Java中quot;==quot;和equals()的区别?
  11. springBoot 简单优雅是实现文件上传和下载
  12. 1 MLP-Mixer: An all-MLP Architecture for Vision
  13. Zotero入门——安装插件
  14. 计算机控制实验室装置,自控/计控原理实验箱 实验仪 实验装置 教学实训设备...
  15. 第三章、Zigbee模块参数(DRF2658C、DRF2659C、DRF2670C)
  16. 如何加声调口诀_拼音顺口溜儿歌和口诀 学拼音的重点难点详解
  17. 30行代码实现微信自动回复机器人
  18. 女生做数据分析师累吗?零基础可以转行吗?
  19. 0704-Scala函数式编程高级
  20. GNSS抗干扰和GNSS抗欺骗

热门文章

  1. 【板栗糖GIS】进行npm插件安装时出现verb npm-session
  2. 将一个数分解为质因数的乘积
  3. 妈妈,我会自己上厕所尿尿了!
  4. Java hook qpi_*信bA0 6.1.1 hook
  5. 第16章 Linux的常用服务搭建
  6. rpm命令和npm命令是什么
  7. JS函数判断一个数是否是质数
  8. 目标检测论文解读复现【NO.24】改进 YOLOv5s 的轨道障碍物检测模型轻量化研究
  9. 南京银行的低版本jvm监控
  10. RFID在模块管理中的应用