手工安装XDB 组件in oracle 11g
#############. sample 1
install guide
below step is only for oracle 11g database installation, 10g database did't need xdb install
step 1.Verify XDB Installation
add in f_getlist function
spool xdb_status.txt
set echo on;
connect / as sysdba
set pagesize 1000
col comp_name format a36
col version format a12
col status format a8
col owner format a12
col object_name format a35
col name format a25
-- Check status of XDB
select comp_name, version, status
from dba_registry
where comp_id = 'XDB';
-- Check for invalid objects
select owner, object_name, object_type, status
from dba_objects
where status = 'INVALID'
and owner in ('SYS', 'XDB');
spool off;
step 2.
## IMPORTANT: You must shutdown and restart the database between removal and reinstall ##
###FOR 11G DB
step 2.1
First, find out the current value of these parameters:
connect / as sysdba
show parameter aq_tm_processes
1
show parameter job_queue_processes
1000
Next, change the value to 0:
connect / as sysdba
alter system set aq_tm_processes=0 scope=both;
alter system set job_queue_processes=0 scope=both;
step 2.2
spool xdb_install.log
set echo on;
connect / as sysdba
shutdown immediate;
startup;
## /rdbms/admin/catqm.sql <XDB pwd> <XDB default tbs> <XDB temporary tbs> -- substitute the parameters with appropriate values
@?/rdbms/admin/catqm.sql xdb SYSAUX TEMP YES
@?/rdbms/admin/utlrp.sql
spool off
time: 12minutes
15:08 ~ 15:30
step 2.3
connect / as sysdba
alter system set aq_tm_processes=1 scope=both;
alter system set job_queue_processes=1000 scope=both;
shutdown immediate;
startup;
#######
step 3.after install :
select comp_name, version, status
from dba_registry
where comp_id = 'XDB';
-- Check for invalid objects
select owner, object_name, object_type, status
from dba_objects
where status = 'INVALID'
and owner in ('SYS', 'XDB');
--Get current XDB tablespace
set serveroutput on
declare
v_xdbtbs varchar2(30);
begin
select dbms_xdb.getxdb_tablespace into v_xdbtbs from dual;
dbms_output.put_line(a => 'Actual XDB tablespace is:'||v_xdbtbs);
end;
/
Actual XDB tablespace is:SYSAUX
http://www.dba-oracle.com/t_packages_dbms_current_XDB_tablespace.htm
##v1
select owner, object_name, object_type, status
from dba_objects
where
owner in ('XDB');
########2 XDB re-install
XDB install meet hang issue , waiting for Streams AQ: waiting for messages in the queue
1. Deinstall XDB by implementing the steps in the following document:
(Doc ID 1292089.1) Master Note for Oracle XML Database (XDB) Install / Deinstall
spool xdb_removal.log
set echo on;
connect / as sysdba
shutdown immediate;
startup
@?/rdbms/admin/catnoqm.sql
@?/rdbms/admin/utlrp.sql
spool off;
2.2. There will be invalid SYS objects after the removal of XDB. Validate them by running the scripts in the document below:
(Doc ID 1269470.1) XDB Deinstallation script catnoqm.sql leads to Invalid SYS Objects
SQL> connect / as sysdba
-- Make XDB Dummy views
start ?/rdbms/admin/catxdbdv.sql
-- update Data Pump related objects and KU$_ views
start ?/rdbms/admin/dbmsmeta.sql
start ?/rdbms/admin/dbmsmeti.sql
start ?/rdbms/admin/dbmsmetu.sql
start ?/rdbms/admin/dbmsmetb.sql
start ?/rdbms/admin/dbmsmetd.sql
start ?/rdbms/admin/dbmsmet2.sql
start ?/rdbms/admin/catmeta.sql
start ?/rdbms/admin/prvtmeta.plb
start ?/rdbms/admin/prvtmeti.plb
start ?/rdbms/admin/prvtmetu.plb
start ?/rdbms/admin/prvtmetb.plb
start ?/rdbms/admin/prvtmetd.plb
start ?/rdbms/admin/prvtmet2.plb
start ?/rdbms/admin/catmet2.sql
@?/rdbms/admin/utlrp.sql
REM Check to verify that all components are valid
select COMP_ID, COMP_NAME, VERSION, STATUS from dba_registry;
3. Change the value for init.ora parameters AQ_TM_PROCESSES and JOB_QUEUE_PROCESSES to 0 and restart the database in restricted mode.
First, find out the current value of these parameters:
connect / as sysdba
show parameter aq_tm_processes
1
show parameter job_queue_processes
1000
Next, change the value to 0:
connect / as sysdba
alter system set aq_tm_processes=0 scope=both;
alter system set job_queue_processes=0 scope=both;
shutdown immediate;
startup restrict;
4.
@?/rdbms/admin/catqm.sql xdb SYSAUX TEMP YES
@?/rdbms/admin/utlrp.sql
connect / as sysdba
alter system set aq_tm_processes=x scope=both;
alter system set job_queue_processes=x scope=both;
shutdown immediate;
startup;
手工安装XDB 组件in oracle 11g的更多相关文章
- Oracle XDB组件重建说明
Oracle XDB 组件重建 说明一. XDB 组件说明1.1 官网说明:XDB 全称XML DB,官网的说明如下:http://docs.oracle.com/cd/E11882_01/appde ...
- oracle 10g数据库下的 XDB组件的重新安装
emmmm,这是一个不做死就不会的过程!!! 今天在导出数据库时,遇到了报错信息,其实开发说这个报错没关系了,但作死如楼主,一定要把这个错给解决了,然后就有了下面的作死过程. 错误关键字是:packa ...
- Centos6.5下Oracle 11g R2安装过程
1准备 CentOS-6.5-x86_64-bin-DVD1 linux_11gR2_database_1of2 linux_11gR2_database_2of2 VMware Workstatio ...
- 单机 Oracle 11g(11.2.0.4)手动打补丁PSU(11.2.0.4.8)
环境说明:database : 11.2.0.4 x64os: centos6.7 x64 准备内容:OPatch : p6880880_112000_Linux-x86-64.zipDB PSU : ...
- 【Oracle 集群】Oracle 11G RAC教程之集群安装(七)
Oracle 11G RAC集群安装(七) 概述:写下本文档的初衷和动力,来源于上篇的<oracle基本操作手册>.oracle基本操作手册是作者研一假期对oracle基础知识学习的汇总. ...
- Linux平台oracle 11g单实例 + ASM存储 安装部署 快速参考
操作环境:Citrix虚拟化环境中申请一个Linux6.4主机(模板)目标:创建单机11g + ASM存储 数据库 1. 主机准备 2. 创建ORACLE 用户和组成员 3. 创建以下目录并赋予对应权 ...
- Oracle 11g静默安装软件+手工创建数据库
由于是二次跳转+远程操作,无法使用图形界面,不能直接图形界面安装.采用静默安装软件+手工创建数据库的方式完成需求. 静默模式安装Oracle软件,配置监听程序 手工建库 检查各组件是否符合要求 1. ...
- RedHat 6.7 Enterprise x64环境下使用RHCS部署Oracle 11g R2双机双实例HA
环境 软硬件环境 硬件环境: 浪潮英信服务器NF570M3两台,华为OceanStor 18500存储一台,以太网交换机两台,光纤交换机两台. 软件环境: 操作系统:Redhat Enterpris ...
- RedHat 6.7 Enterprise x64环境下使用RHCS部署Oracle 11g R2双机HA
环境 软硬件环境 硬件环境: 浪潮英信服务器NF570M3两台,华为OceanStor 18500存储一台,以太网交换机两台,光纤交换机两台. 软件环境: 操作系统:Redhat Enterprise ...
随机推荐
- Luogu 2322 [HNOI2006]最短母串问题
唔,太菜了,弄了好几个小时. 状压dp,设$f_{s, i}$表示选了集合$s$,以$i$结尾的最短长度,设$g_{i, j}$表示串$i$的后缀和串$j$的前缀的最长匹配长度. $f_{s, i} ...
- 学会使用postman工具模拟请求-----待补充
登录: backstop 密码:backstop的密码 记得加上header,在swagger中有content-type. 请求,则是api下对应的请求. get请求直接加入链接即可. post请求 ...
- About English Web Site Font
Which font will you choose when develop one website! Actually , I have no idea about this! If you ha ...
- RGB565的转换
RGB色彩模式也就是“红绿蓝”模式是一种颜色标准,是通过对红(R).绿(G).蓝(B)三种颜色通道的变化以及它们相互之间的叠加来得到各式各样的颜色的,RGB即是代表红.绿.蓝三个通道的颜色,这个标准几 ...
- Data Base mysql批量操作
mysql 批量操作 批量操作数据是利用 CommandBuilder 和 DataAdapter.Update() 方法 对数据库进行批量更新 说解: DataAdapter中有四个重要对象:S ...
- PHP 符号
注解符号: // 单行注解 /* */ 多行注解 引号的使用 ’ ’ 单引号,没有任何意义,不经任何处理直接拿过来; " "双引号,PHP动态处理然后输出,一般 ...
- linux惊群
基本概念:子进程继承父进程环境和上下文的大部分内容的拷贝,其中就包括文件描述符表. 父进程fork出来的子进程,复制父进程的文件描述符.这些文件描述符fd是独立的,但是文件描述符指向的系统文件表项是唯 ...
- atcoder 2579
You are taking a computer-based examination. The examination consists of N questions, and the score ...
- 10.Find All Anagrams in a String(在一个字符串中发现所有的目标串排列)
Level: Easy 题目描述: Given a string s and a non-empty string p, find all the start indices of p's ana ...
- LOJ2565 SDOI2018 旧试题 莫比乌斯反演、三元环计数
传送门 这道题的思路似乎可以给很多同时枚举三个量的反演题目提供一个很好的启发-- 首先有结论:\(d(ijk) = \sum\limits_{x|i}\sum\limits_{y|j}\sum\lim ...