ORACLE搭建Stream过程中报错【error收集】
错误一:在配置完源库和目标数据库后,创建复制管理员。连接上复制管理员后,在源库执行MAINTAIN_TABLE过程:
declare
v_tables DBMS_UTILITY.UNCL_ARRAY;
begin
v_tables() := 'hr.test01';
v_tables() := 'hr.test02';
v_tables() := 'hr.test03';
dbms_streams_adm.maintain_tables(table_names => v_tables,
source_directory_object => null,
destination_directory_object => null,
source_database => 'orcl.net',
destination_database => 'weber.net',
perform_actions => true,
bi_directional => true,
include_ddl => true,
instantiation => dbms_streams_adm.instantiation_table_network);
end;
/
就发现是这个错误:
就发现是这个错误:
ERROR at line :
ORA-: Failure in executing block for script
06F6BBB2E70137C5E05054B4F621416C
ORA-: at "SYS.DBMS_RECOVERABLE_SCRIPT", line
ORA-: at "SYS.DBMS_RECOVERABLE_SCRIPT", line
ORA-: at "SYS.DBMS_STREAMS_MT", line
ORA-: at "SYS.DBMS_STREAMS_ADM", line
ORA-: at line
解决方案:
解决方案:
通过捕获源库的执行脚本,根据错误id找到是第几步执行出错
select invoking_package_owner as owner,
invoking_package as package,
invoking_procedure as procedure,
status,
total_blocks,
done_block_num
from dba_recoverable_script
where script_id = '06F6BBB2E70137C5E05054B4F621416C'
; OWNER PACKAGE
------------------------------ ------------------------------
PROCEDURE STATUS TOTAL_BLOCKS DONE_BLOCK_NUM
------------------------------ ------------ ------------ --------------
SYS DBMS_STREAMS_ADM
MAINTAIN_TABLES ERROR
再查一下究竟是什么原因:
select error_number, error_message
from dba_recoverable_script_errors
where script_id = '06F6BBB2E70137C5E05054B4F621416C' and block_num=; ERROR_NUMBER
------------
ERROR_MESSAGE
--------------------------------------------------------------------------------
-
ORA-: Temporary Tablespace is Empty
原来是临时表空间报错报空。那么就查一下源库的临时文件情况,结果显示存在。那就纳闷了。
SQL> select tablespace_name,file_name from dba_temp_files
; TABLESPACE_NAME
------------------------------
FILE_NAME
--------------------------------------------------------------------------------
TEMP
/u01/app/oracle/oradata/orcl/temp01.dbf
再查一下目标数据库的临时文件:
SQL> select name from v$tempfile; no rows selected
擦,居然没有,这个时候就基本可以发现了是这个问题。把目标数据库的临时文件加上去就好了。
alter tablespace temp add tempfile '/u01/app/oracle/oradata/weber/temp01.dbf'; Tablespace altered.
再次执行在源库执行MAINTAIN_TABLE过程。OK,发现没有报错!
ORACLE搭建Stream过程中报错【error收集】的更多相关文章
- centos6安装oracle11g过程中报错Error in invoking target “install” of makefile ‘/home/oracle/app/oracle/product/11.2.0/dbhome_1/ctx/lib/ins_ctx.mk’
报这个错误的原因是由于缺少compat_libstdc包所导致.安装即可 1.在http://www.rpm-find.net/linux/rpm2html/search.php?query=comp ...
- 词云:解决pip install wordcloud安装过程中报错“error: command 'x86_64-linux-gnu-gcc' failed with exit status 1”问题
外部环境:ubuntu16.04, 64bits, 全局环境python2.7 在虚拟环境(python3.5)中执行 pip install wordcloud 时安装失败,报错: error: c ...
- oracle linux 安装过程错误 :Error in invoking target ‘agent nmhs’ of makefile
Problem:When installing 11.2.0.4 on Redhat 7: Error in invoking target 'agent nmhs' of makefile '/u0 ...
- Centos 6.9安装 php5.6 过程中报错:Error: Package: php56w-mcrypt-5.6.40-1.w6.x86_64 (webtatic)
在 CentOS 6.9 系统下安装 php 5.6 的过程中,执行如下命令: yum -y install php56w-pdo php56w-xml php56w-gd php56w-gd.x86 ...
- 关于mdb数据库在插入过程中报错->Syntax error in INSERT INTO statement.(sql语句没问题)
今天,在做mdb数据库的增删改查的时候,代码报错插入语句有问题,但是在数据库中正常执行,苦苦探索了多次,终于找到了问题所在. 结果如图: 上面是报错 下面是解决方案 解决方案:主要原因是offic ...
- 记录一次对接XX支付SDK过程中报错问题
我们支付平台以前我不做对接上游的,偶然间替别人做"对接了XX支付的相关接口的工作".在工作过程中发现SDK和对外提供服务过程中很容易出问题.在此做个记录,为了以后相关工作中作为自己 ...
- npm 使用过程中报错问题-及npm使用
原文地址:https://blog.csdn.net/u013022210/article/details/77740519 1.以下为报错具体详情:node 8.1.2 版本问题:其他空间安装成功但 ...
- mysql修改root密码及修改密码过程中报错的解决方案
参考网站: https://www.linuxidc.com/Linux/2018-05/152586.htmhttps://www.cnblogs.com/wangbaobao/p/7087032. ...
- 从新安装SQLserver 过程中报错问题合集
1.安装SQL SERVER2008 到安装支持文件就闪退? 分析:这个是由于安装目录没有删除干净导致的,我遗漏了一个文件夹:microsoft Management console文件夹没有删除的原 ...
随机推荐
- 获取win7时区所有信息
打开命令行工具: tzutil /l # 或者输入到文件中tzutil /l > data.txt # -*- utf-8 -*- """获取win7所有时区信息, ...
- Javascript图片轮播
原文链接:http://www.imooc.com/article/7393 编辑HTML代码: <div id="wrap"><!--图片展示区--> & ...
- codevs 4310 复制书稿
4310 复制书稿 时间限制: 1 s 空间限制: 4000 KB 题目等级 : 黄金 Gold 题解 查看运行结果 题目描述 Description 现在要把m本有顺序的书分给k个人 ...
- Python的XMLRPC机制:实现跨进程间、client/server端通信
SimpleXMLRPCServer模块式python语言的一个基于 xml 格式的进程间通信的基础框架. SimpleXMLRPCServer是一个单线程的服务器,这意味着,如果几个客户端同时发出多 ...
- Android Service 启动和停止服务
activity_main.xml 定义两个Button控件,start_service和stop_service. <LinearLayout xmlns:android="http ...
- PS微观效果
贴入命令必须在建立选区的情况下,然后设置图层的混合模式为“叠加”,这个是必须的. 专业相机的移轴镜头效果很好……PS搞出的不行 原素材如下(去云台山时照的): 打开渐变工具,在快速蒙版模式下选人,然后 ...
- poj A Round Peg in a Ground Hole
http://poj.org/problem?id=1584 #include<cstdio> #include<cstring> #include<cmath> ...
- 来晚了--SALTSTACK要弄起
PUPPET就算了,我多少都有PYTHON基础,还是专SALTSTACK吧. 今天小玩玩,以后深入.
- 【转】BLE开发的各种坑
原文网址:http://www.race604.com/android-ble-tips/ 这段时间在做低功耗蓝牙(BLE)应用的开发(并不涉及蓝牙协议栈).总体感觉 Android BLE 还是不太 ...
- Hadoop Compression
文件压缩主要有两方面的好处:一方面节省文件存储空间:另一方面加速网络数据传输或磁盘读写.当处理大规模的数据时这些效果提升更加明显,因此我们需要仔细斟酌压缩在Hadoop环境下的使用. 目前已经存在 ...