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文件夹没有删除的原 ...
随机推荐
- C#程序中将图片转换为byte数组,并将byte数组转换为图片
/// <summary> /// 将图片以二进制流 /// </summary> /// <param name="path"></pa ...
- Extjs4.1.x使用Application动态按需加载MVC各模块
我们知道Extjs4之后提出了MVC模块开发,将以前肥厚的js文件拆分成小的js模块[model\view\controller\store\form\data等],通过controller拼接黏合, ...
- KEIL C51高级编程
第一节 绝对地址访问C51提供了三种访问绝对地址的方法: 1. 绝对宏:在程序中,用“#include”即可使用其中定义的宏来访问绝对地址,包括:CBYTE.XBYTE.PWORD.DBYTE.CWO ...
- redis 源码分析
参考: http://redisbook.readthedocs.org/en/latest/index.html http://www.databaseskill.com/3421161/ The ...
- 产生文件命令touch,echo,cat<<EOF>test,less,more,tail,head
. 输出命令 echo,cat,管道(|),tee,重定向(>, >>)等 . 创建一个文件:用 touch.echo.cat.tee, 重定向(>, >>)等 [ ...
- Introduction to Web Services
What are Web Services? Web Services are client and server applications that communicate over the Wor ...
- 关于 IOS Runtime Runloop 2
Runtime 也就是运行时组件,一个纯C语言写的基础库. 我们平时编写的OC代码中, 程序运行过程时, 其实最终都是转成了runtime的C语言代码 Objective-C编写出来的程序必须得到ru ...
- 港股street和nominee区别
股票的street和nominee区别主要用在公司行动的过户费方面,street股票需要收取过户费,nominee不收过户费. street股票通过做公司行动收取过户费后会变成nominee股票,下次 ...
- shell编程(一)--常用变量及表达式
$? 表示执行上一个命令的返回值:如果为0表示执行成功,非0表示执行失败$1.$2.... 分别表示参数1.参数2....$# 表示这个程序的参数个数$*/$@ 表示这个程序的所有参数$$ 表示这个程 ...
- JVM性能调优监控工具
命令:jps.jstat.jmap.jhat.jstack 简介:(1) jmap -dump:format=b,file=eclipse.bin 10481 生成堆转储快照eclipse.bin ...