- 浏览: 978352 次
- 性别:
- 来自: 杭州
文章分类
最新评论
-
孤星119:
好熟悉的数据库字段啊, 上家公司做的项目每天都跟这些字段打招呼 ...
Oracle exp compress参数引起的空间浪费 -
itspace:
quxiaoyong 写道遇到个问题,网上一搜,全他妈这篇文章 ...
数据库连接错误ORA-28547 -
quxiaoyong:
遇到个问题,网上一搜,全他妈这篇文章。你转来转去的有意思吗?
数据库连接错误ORA-28547 -
hctech:
关于version count过高的问题,不知博主是否看过ey ...
某客户数据库性能诊断报告 -
itspace:
invalid 写道写的不错,我根据这个来安装,有点理解错误了 ...
AIX 配置vncserver
【转】How to Deinstall and Reinstall XML Database (XDB) [ID 243554.1]
- 博客分类:
- ORACLE管理
Applies to:
Oracle Server - Enterprise Edition - Version: 9.2.0.1 to 10.2.0.5 - Release: 9.2 to 10.2
Oracle Server - Personal Edition - Version: 9.2.0.1 to 10.2.0.5 [Release: 9.2 to 10.2]
Oracle Server - Standard Edition - Version: 9.2.0.1 to 10.2.0.5 [Release: 9.2 to 10.2]
Information in this document applies to any platform.
Purpose
This article provides the steps to manually deinstall and install the XML Database feature into a database that is version 9i R2 through 10g release 2. THIS NOTE IS NOT FOR 11G and above.
WARNING FOR ALL READERS: If the XML DB features are currently being utilized and you have experienced an invalid XML DB repository or installation, point-in-time recovery to a point prior to when the problem occurred is recommended. XDB should not be reinstalled if the feature is being used. Please confirm whether XDB is being used in your environment prior to attempting reinstall. In addition, the following DB features also use XDB: Oracle Intermedia EXIF metadata, Oracle GEORASTER, EXFSYS, Oracle Locator
If directed to this note for an 11g case by accident please review the following items. Please not this only applies to release 11.1.0.1.0 and above.
Is there anything else I should know about binary XMLType?
When you create a binary XMLType the data is stored is a proprietary format on disk that represents a post parse persistence model. In doing this we have the need to store information about how to transverse the XML data without having to parse it again. The data that we store in order to accomplish this is maintained in dictionary type tables in the XDB user schema, not in the user schema of the user that created the table. What this means is that if you are ever directed to remove and reinstall the XDB feature with the catqnoqm.sql and catqm.sql scripts, that you must verify that you do not have any XMLType tables and/or columns that are stored as binary. The removal scripts drop the XDB user and in turn lose this information. As an additional item this section also applies to schema base XMLType tables and/or columns so the code block will check for those as well.
conn / as sydba
--
-- Check the storage of XMLType tables.
--
SELECT OWNER, TABLE_NAME
FROM DBA_XML_TABLES
where STORAGE_TYPE in('OBJECT-RELATIONAL','BINARY');
-- A default seed database with the example schemas installed
-- will have ones owned by XDB,MDSYS and OE.
--
-- Check the storage of XMLType columns.
--
SELECT OWNER, TABLE_NAME
from DBA_XML_TAB_COLS
where STORAGE_TYPE in('OBJECT-RELATIONAL','BINARY');
-- A default seed database with the example schemas installed
-- will have ones owned by XDB,MDSYS,ORDDATA,APEX_030200 and OE.
-- Please see the following section as it relates to ORDDATA and APEX_030200.
What if the database is using the DICOM and/or Oracle Applications Express(APEX) features?
If the above code block has objects owned by ORDDATA and/or APEX_030200 it means the features are installed in the database. If you are using these items in a production capacity then you can not remove and reinstall the XDB feature because if the aforementioned loss of data that is maintained in the XDB user schema.
Scope and Application
This article is for DBA's that need to remove, install and/or reinstall the XDB feature into an existing Oracle database.
How to Deinstall and Reinstall XML Database (XDB)
XDB Reload Procedures for 10.2 and above.
SQL> conn / as sysdba
SQL> Shutdown Immediate;
SQL> Startup upgrade;
SQL> @?/rdbms/admin/xdbrelod.sql
alternatively xdbpatch.sql can be run both xdbpatch and xdbrelod perform the same actions.SQL> Shutdown Immediate;
SQL> Startup
SQL> @?/rdbms/admin/utlrp.sql
Then check the error conditions that necessitated the steps in the first place. If the error condition is not resolved consider point in time recovery back to before the error state existed. If that is not an option proceed to removal and reinstall if on version 10.2 and below and you have read all the warnings.
XDB SCHEMA REMOVAL STEPS:
WARNING: The steps to remove the XML Database feature (XDB schema) will completely remove the XDB repository including any user defined information contained within it.
Therefore, if there are any registered schemas or XML Database items created, you will be required to recreate all of your user defined structures, data and re-register all schemas previously registered.
If you are running Oracle Applications with iSetup see NOTE:402785.1 linked below.
WARNING: If you are on database release 10.1.x or 10.2.x the XDB Feature is Mandatory in order to use any of the member functions of the XMLTYPE. This is true even if you are not using the repository , or registered schema aspects of the XDB feature.
WARNING: This is not for 11g.
1. Shutdown and restart the database.
2. Connect as sysdba and run the catnoqm.sql script. Maintain a spool of the
script running:
UNIX: $ORACLE_HOME/rdbms/admin subdirectory
WINDOWS: $ORACLE_HOME\rdbms\admin subdirectory
For Example:
SQL> set echo on
SQL> spool xdb_removal.log
SQL> @?/rdbms/admin/catnoqm.sql
3. Modify the init.ora file or spfile to include the following minimums to prepare the DB for reinstalling the XDB schema:
shared_pool_size =150M
java_pool_size =150M
4. Turn on AUTO EXTEND on the XDB tablespace.
If you do not want to do this , make sure you target a tablespace with at
least
.100 MB of free space for non-UTF8 DB
.150 MB of free space for an AL32UTF8 DB
5. Shutdown the database immediate, and startup the database normal
NOTE: Failure to restart the database at this step can cause XDB catqm.sql installation to fail with an internal error similar to the following: ORA-7445 [qmr_hdl_copy()+48]
XDB SCHEMA INSTALL STEPS:
1. Connect as sysdba and run the catqm.sql script. Maintain a spool of the
script running:
UNIX: $ORACLE_HOME/rdbms/admin subdirectory
WINDOWS: $ORACLE_HOME\rdbms\admin subdirectory
The catqm.sql script requires the following parameters be passed to it when
run:
A. XDB user password
B. XDB user default tablespace (You can use any tablespace other than system undo and temp. This tablespace has to exist prior to running the script.)
C. XDB user temporary tablespace
Therefore the syntax to run catqm.sql will be:
SQL> catqm.sql A B C
For Example:
SQL> set echo on
SQL> spool xdb_install.log
SQL>@?/rdbms/admin/catqm.sql XDB XDB TEMP
The Following Step is for Release 9.2.x ONLY skip to step 3 if running 10.1.x or above
2.Reconnect to SYS again and run the following to load the XDB java library.
SQL>@?/rdbms/admin/catxdbj.sql
NOTE: In order to load the XDB java libraries in catxdbj.sql, you must first have a valid Java Virtual Machine installation in the DB (JVM) and a valid XDK.
Also, make sure that the database is started with Oracle9i Release 2 (9.2.0) compatibility or higher for database version 9.2. This script creates objects that are specific to 9.2 even though the the database requires the JVM in 10.1 and above, the itmes that the script creates are no longer built in java in 10.1 and above.
3. If the following line is not already apart of the database system parameters (init.ora/spfile).
NOTE: PLEASE REPLACE ,instanceid1,2 etc with your actual values
a. Non-RAC
dispatchers="(PROTOCOL=TCP) (SERVICE=<SID>XDB)"
b. RAC
instanceid1.dispatchers="(PROTOCOL=TCP) (SERVICE=<SID>XDB)"
instanceid2.dispatchers="(PROTOCOL=TCP) (SERVICE=<SID>XDB)"
etc ...
c.If you are not using the default Listener ensure you have set LOCAL_LISTENER in the (init.ora/spfile)
as prescribed for RAC/NON-RAC instances or the end points will not register.
4. Check for any invalid XDB owned objects:
SQL> select count(*) from dba_objects
where owner='XDB' and status='INVALID';
COUNT(*)
----------
0
5. Check DBA_REGISTRY for XDB status:
SQL> select comp_name, status, version from DBA_REGISTRY where comp_name=
'Oracle XML Database'
The results should indicate the correct version and patch in a valid status.
6. Restart database and listener to enable Oracle XML DB protocol access.
NOTE:
If for any reason the catqm.sql script fails you can repeat the steps. However doing so May result in :
ORA-04098: trigger 'SYS.XDB_INSTALLATION_TRIGGER' is invalid and failed re-validation
If this occurs follow the steps in article:
NOTE:331378.1 - Running catqm.sql Leads to ORA-4098 Trigger 'SYS.XDB_INSTALLATION_TRIGGER' is Invalid
Oracle Server - Enterprise Edition - Version: 9.2.0.1 to 10.2.0.5 - Release: 9.2 to 10.2
Oracle Server - Personal Edition - Version: 9.2.0.1 to 10.2.0.5 [Release: 9.2 to 10.2]
Oracle Server - Standard Edition - Version: 9.2.0.1 to 10.2.0.5 [Release: 9.2 to 10.2]
Information in this document applies to any platform.
Purpose
This article provides the steps to manually deinstall and install the XML Database feature into a database that is version 9i R2 through 10g release 2. THIS NOTE IS NOT FOR 11G and above.
WARNING FOR ALL READERS: If the XML DB features are currently being utilized and you have experienced an invalid XML DB repository or installation, point-in-time recovery to a point prior to when the problem occurred is recommended. XDB should not be reinstalled if the feature is being used. Please confirm whether XDB is being used in your environment prior to attempting reinstall. In addition, the following DB features also use XDB: Oracle Intermedia EXIF metadata, Oracle GEORASTER, EXFSYS, Oracle Locator
If directed to this note for an 11g case by accident please review the following items. Please not this only applies to release 11.1.0.1.0 and above.
Is there anything else I should know about binary XMLType?
When you create a binary XMLType the data is stored is a proprietary format on disk that represents a post parse persistence model. In doing this we have the need to store information about how to transverse the XML data without having to parse it again. The data that we store in order to accomplish this is maintained in dictionary type tables in the XDB user schema, not in the user schema of the user that created the table. What this means is that if you are ever directed to remove and reinstall the XDB feature with the catqnoqm.sql and catqm.sql scripts, that you must verify that you do not have any XMLType tables and/or columns that are stored as binary. The removal scripts drop the XDB user and in turn lose this information. As an additional item this section also applies to schema base XMLType tables and/or columns so the code block will check for those as well.
conn / as sydba
--
-- Check the storage of XMLType tables.
--
SELECT OWNER, TABLE_NAME
FROM DBA_XML_TABLES
where STORAGE_TYPE in('OBJECT-RELATIONAL','BINARY');
-- A default seed database with the example schemas installed
-- will have ones owned by XDB,MDSYS and OE.
--
-- Check the storage of XMLType columns.
--
SELECT OWNER, TABLE_NAME
from DBA_XML_TAB_COLS
where STORAGE_TYPE in('OBJECT-RELATIONAL','BINARY');
-- A default seed database with the example schemas installed
-- will have ones owned by XDB,MDSYS,ORDDATA,APEX_030200 and OE.
-- Please see the following section as it relates to ORDDATA and APEX_030200.
What if the database is using the DICOM and/or Oracle Applications Express(APEX) features?
If the above code block has objects owned by ORDDATA and/or APEX_030200 it means the features are installed in the database. If you are using these items in a production capacity then you can not remove and reinstall the XDB feature because if the aforementioned loss of data that is maintained in the XDB user schema.
Scope and Application
This article is for DBA's that need to remove, install and/or reinstall the XDB feature into an existing Oracle database.
How to Deinstall and Reinstall XML Database (XDB)
XDB Reload Procedures for 10.2 and above.
SQL> conn / as sysdba
SQL> Shutdown Immediate;
SQL> Startup upgrade;
SQL> @?/rdbms/admin/xdbrelod.sql
alternatively xdbpatch.sql can be run both xdbpatch and xdbrelod perform the same actions.SQL> Shutdown Immediate;
SQL> Startup
SQL> @?/rdbms/admin/utlrp.sql
Then check the error conditions that necessitated the steps in the first place. If the error condition is not resolved consider point in time recovery back to before the error state existed. If that is not an option proceed to removal and reinstall if on version 10.2 and below and you have read all the warnings.
XDB SCHEMA REMOVAL STEPS:
WARNING: The steps to remove the XML Database feature (XDB schema) will completely remove the XDB repository including any user defined information contained within it.
Therefore, if there are any registered schemas or XML Database items created, you will be required to recreate all of your user defined structures, data and re-register all schemas previously registered.
If you are running Oracle Applications with iSetup see NOTE:402785.1 linked below.
WARNING: If you are on database release 10.1.x or 10.2.x the XDB Feature is Mandatory in order to use any of the member functions of the XMLTYPE. This is true even if you are not using the repository , or registered schema aspects of the XDB feature.
WARNING: This is not for 11g.
1. Shutdown and restart the database.
2. Connect as sysdba and run the catnoqm.sql script. Maintain a spool of the
script running:
UNIX: $ORACLE_HOME/rdbms/admin subdirectory
WINDOWS: $ORACLE_HOME\rdbms\admin subdirectory
For Example:
SQL> set echo on
SQL> spool xdb_removal.log
SQL> @?/rdbms/admin/catnoqm.sql
3. Modify the init.ora file or spfile to include the following minimums to prepare the DB for reinstalling the XDB schema:
shared_pool_size =150M
java_pool_size =150M
4. Turn on AUTO EXTEND on the XDB tablespace.
If you do not want to do this , make sure you target a tablespace with at
least
.100 MB of free space for non-UTF8 DB
.150 MB of free space for an AL32UTF8 DB
5. Shutdown the database immediate, and startup the database normal
NOTE: Failure to restart the database at this step can cause XDB catqm.sql installation to fail with an internal error similar to the following: ORA-7445 [qmr_hdl_copy()+48]
XDB SCHEMA INSTALL STEPS:
1. Connect as sysdba and run the catqm.sql script. Maintain a spool of the
script running:
UNIX: $ORACLE_HOME/rdbms/admin subdirectory
WINDOWS: $ORACLE_HOME\rdbms\admin subdirectory
The catqm.sql script requires the following parameters be passed to it when
run:
A. XDB user password
B. XDB user default tablespace (You can use any tablespace other than system undo and temp. This tablespace has to exist prior to running the script.)
C. XDB user temporary tablespace
Therefore the syntax to run catqm.sql will be:
SQL> catqm.sql A B C
For Example:
SQL> set echo on
SQL> spool xdb_install.log
SQL>@?/rdbms/admin/catqm.sql XDB XDB TEMP
The Following Step is for Release 9.2.x ONLY skip to step 3 if running 10.1.x or above
2.Reconnect to SYS again and run the following to load the XDB java library.
SQL>@?/rdbms/admin/catxdbj.sql
NOTE: In order to load the XDB java libraries in catxdbj.sql, you must first have a valid Java Virtual Machine installation in the DB (JVM) and a valid XDK.
Also, make sure that the database is started with Oracle9i Release 2 (9.2.0) compatibility or higher for database version 9.2. This script creates objects that are specific to 9.2 even though the the database requires the JVM in 10.1 and above, the itmes that the script creates are no longer built in java in 10.1 and above.
3. If the following line is not already apart of the database system parameters (init.ora/spfile).
NOTE: PLEASE REPLACE ,instanceid1,2 etc with your actual values
a. Non-RAC
dispatchers="(PROTOCOL=TCP) (SERVICE=<SID>XDB)"
b. RAC
instanceid1.dispatchers="(PROTOCOL=TCP) (SERVICE=<SID>XDB)"
instanceid2.dispatchers="(PROTOCOL=TCP) (SERVICE=<SID>XDB)"
etc ...
c.If you are not using the default Listener ensure you have set LOCAL_LISTENER in the (init.ora/spfile)
as prescribed for RAC/NON-RAC instances or the end points will not register.
4. Check for any invalid XDB owned objects:
SQL> select count(*) from dba_objects
where owner='XDB' and status='INVALID';
COUNT(*)
----------
0
5. Check DBA_REGISTRY for XDB status:
SQL> select comp_name, status, version from DBA_REGISTRY where comp_name=
'Oracle XML Database'
The results should indicate the correct version and patch in a valid status.
6. Restart database and listener to enable Oracle XML DB protocol access.
NOTE:
If for any reason the catqm.sql script fails you can repeat the steps. However doing so May result in :
ORA-04098: trigger 'SYS.XDB_INSTALLATION_TRIGGER' is invalid and failed re-validation
If this occurs follow the steps in article:
NOTE:331378.1 - Running catqm.sql Leads to ORA-4098 Trigger 'SYS.XDB_INSTALLATION_TRIGGER' is Invalid
发表评论
-
buffer cache 的内部结构
2020-03-18 14:21 576BUFFER CACHE作为数据块的 ... -
Oracle OMC介绍
2020-03-18 13:19 484Oracle管理云服务(OMC)的大数据平台,自动收集的企业 ... -
参加Oracle勒索病毒防范专题培训会议
2019-09-27 17:15 5112019年7月22日,受邀参加Oracle勒索病毒防范专题培训 ... -
记一次内存换IO的Oracle优化
2019-09-27 16:50 826某客户数据库从P595物理 ... -
如何定位Oracle SQL执行计划变化的原因
2019-07-03 14:49 1458性能优化最难的是能够 ... -
如何定位Oracle SQL执行计划变化的原因
2018-10-30 09:24 1185性能优化最难的是能够 ... -
数据库性能优化目标
2018-10-08 10:59 518从数据库性能优化的场 ... -
数据库无法打开的原因及解决办法
2018-10-05 20:45 2117数据库的启动是一个相当复杂的过程。比如,Oracle在启动之前 ... -
怎么样彻底删除数据库?
2018-09-18 11:10 598Oracle提供了drop database命令用来删除数据库 ... -
Oracle减少日志量的方法
2018-09-10 10:17 865LGWR进程将LOG BUFFER中的 ... -
如何快速关闭数据库
2018-09-09 13:14 1231“一朝被蛇咬,十年怕井绳”。在没被“蛇”咬之前,很多DBA喜欢 ... -
关于《如何落地智能化运维》PPT
2018-05-17 10:19 1128在DTCC 2018发表《如何落地智能化运维》演讲,主要内容如 ... -
记录在redhat5.8平台安装oracle11.2容易忽视的几个问题
2018-05-11 19:58 577问题一:ping不通问题 在虚拟机上安装好linux系统后, ... -
《Oracle DBA实战攻略》第一章
2018-05-11 10:42 945即日起,不定期更新《OracleDBA实战攻略》一书电子版,请 ... -
Oracle 12c新特性
2018-05-11 10:33 898查询所有pdb [oracle@gj4 ~]$ sqlplu ... -
关于修改memory_target的值后数据库无法启动的问题
2017-02-28 12:24 3981操作系统:RHEL6.5 数据库版本:11.2.0.4 ... -
10g rac安装error while loading shared libraries libpthread.so.0 问题
2017-02-28 12:22 69311g rac安装在二节点跑脚本一般会报此错误: 解决这个问 ... -
记一次Oracle会话共享模式故障处理过程
2017-02-27 19:16 798故障简述 XXX第八人民医院HIS数据库7月13日11点左右从 ... -
RESMGR:cpu quantum等待事件处理过程
2017-02-27 18:23 2615由于数据库上线过程中出现大量的RESMGR:cpu quant ... -
谈谈log file sync
2014-03-19 14:18 1757数据库中的log file sync等待事件指的是,当user ...
相关推荐
p13390677_112040_Linux-x86-64_1of7.zip database安装介质 p13390677_112040_Linux-x86-64_2of7.zip database安装介质 p13390677_112040_Linux-x86-64_3of7.zip grid安装介质 p13390677_112040_Linux-x86-64_4of7....
1. **停止Oracle服务**:首先,批处理文件会列出所有与Oracle相关的服务,并逐一停止它们。这可以通过`net stop service_name`命令来实现,确保数据库实例、监听器和其他相关服务不再运行。 2. **删除Oracle目录**...
Oracle Database 11gR2 (linux.x64_11gR2_deinstall.zip) ,适用于 Linux Linux x86-64 的 Oracle De-install Utility (11.2.0.1.0)
nbu8_deinstall.txt
Oracle Database 11g 标准版和企业版下载地址详细列表 Oracle Database 11g 是一个关系型数据库管理系统,由 Oracle Corporation 推出的。它提供了标准版和企业版两个版本,以满足不同的企业需求。在这个下载地址...
Oracle Database 11gR2 (linux.x64_11202_deinstall.zip) ,适用于 Linux Linux x86-64 的 Oracle De-install Utility (11.2.0.2.0)
因为感觉I5comp是DOS程序,用起来奇不爽,所以就封装了个界面,与大家共享,有好的建议可EMAILTO: fanjunxing@163.com,如果BUG,还请原谅,另外包里的三个DLL是InstallShield的动态连接库,最好能放在 C:WINDOWS...
p102025301120——Linux-x86-64_1of7.zip database安装介质 p102025301120——Linux-x86-64_2of7.zip database安装介质 p102025301120——Linux-x86-64_3of7.zip grid安装介质 p102025301120——Linux-x86-64_4of7....
在“开始”菜单中找到“所有程序”->“Oracle”->“Oracle安装产品”->“Universal Installer”,在启动的界面中选择“卸载产品”,然后找到Oracle主目录下的OraDb11g_home1,选中“Oracle Database 11g 11.2.0.1.0...
Program: DelforExp, Delphi Formatter Version: 2.4.1 for Delphi 2-7 ... are removed) If someone knows how to get and set the locations of these points I would be happy to hear from you.
1. **Database (1、2)**: 这部分是Oracle数据库的核心,包含了安装和升级数据库所需的所有组件。Oracle数据库11.2.0.4提供了高性能、高可用性和安全性,支持事务处理、数据仓库和混合工作负载。它引入了诸如...
使用 `DROP DATABASE` 命令,但要确保所有数据文件和控制文件的位置是正确的,以避免数据丢失。 3. 清理注册表和配置文件: 在操作系统层面删除与数据库相关的注册表项和配置文件,例如 TNS 配置、环境变量等。 ...
1、2为Database, 用来安装或升级数据库;若仅安装数据库,下载这两个包即可。 3:grid infrastructure,用来安装RAC。 4:客户端(Client); 5:Gateway software,透明网关 6:examples, 示例文件安装包; 7...
插入Oracle数据库CD,选择“Install/Deinstall Products”选项。如果使用的是下载的软件包,则需遵循Oracle网站上的指南进行操作。 3. 在OUI欢迎界面上点击“Next”开始安装。 4. 对于UNIX和Linux系统,指定安装...
1. 找到 Oracle 安装目录下的 deinstall.bat 文件,双击运行卸载 Oracle。 2. 手动删除 Oracle 基目录、软件位置目录和数据库文件位置目录。 3. 进入服务,停止所有 Oracle 服务,并删除这些服务。 4. 重新进行安装...
1. 控制台 / 终端 / shell 的使用 控制台、终端和 shell 是同一个概念,都是命令行界面,可以用来控制系统。要打开控制台,可以通过应用程序 --> 附件 --> 终端来实现。 2. 使用 sudo 命令 任何以 "sudo" 作为...
make deinstall reinstall clean ``` 通过以上步骤,你可以将FreeBSD的软件安装源切换至国内的镜像站点,从而提高下载和更新软件的速度。记得在进行这些操作时,确保系统已获得足够的权限,且在编辑配置文件后,...
1. **运行卸载脚本**:首先需要定位到 `%Oracle_Home%\product\11.2.0\dbhome_1\deinstall` 目录下,找到并运行 `deinstall.bat` 批处理文件。 2. **确认卸载选项**:按照屏幕提示选择需要卸载的组件和服务。 3. **...
3. **卸载Oracle软件**:在待删除节点(nodea)上,进入Oracle Home目录(例如`/u01/app/oracle/product/11.2.0/db_1`),执行卸载脚本`deinstall/deinstall -local`。这个过程会检查必要的文件,初始化卸载过程,并...