ORACLE搭建Stream过程中报错【error收集】

错误一:在配置完源库和目标数据库后,创建复制管理员。连接上复制管理员后,在源库执行MAINTAIN_TABLE过程:

declare
  v_tables DBMS_UTILITY.UNCL_ARRAY;
begin
  v_tables(1) := ‘hr.test01‘;
  v_tables(2) := ‘hr.test02‘;
  v_tables(3) := ‘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 1:
ORA-23616: Failure in executing block 22 for script
06F6BBB2E70137C5E05054B4F621416C
ORA-06512: at "SYS.DBMS_RECOVERABLE_SCRIPT", line 593
ORA-06512: at "SYS.DBMS_RECOVERABLE_SCRIPT", line 616
ORA-06512: at "SYS.DBMS_STREAMS_MT", line 7747
ORA-06512: at "SYS.DBMS_STREAMS_ADM", line 2458
ORA-06512: at line 7

解决方案:

解决方案:

通过捕获源库的执行脚本,根据错误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
  8   where script_id = ‘06F6BBB2E70137C5E05054B4F621416C‘
  9  ;

OWNER                   PACKAGE
------------------------------ ------------------------------
PROCEDURE               STATUS        TOTAL_BLOCKS DONE_BLOCK_NUM
------------------------------ ------------ ------------ --------------
SYS                   DBMS_STREAMS_ADM
MAINTAIN_TABLES            ERROR              48         21

再查一下究竟是什么原因:

select error_number, error_message
  from dba_recoverable_script_errors
  3   where script_id = ‘06F6BBB2E70137C5E05054B4F621416C‘ and block_num=22;

ERROR_NUMBER
------------
ERROR_MESSAGE
--------------------------------------------------------------------------------
      -25153
ORA-25153: Temporary Tablespace is Empty

原来是临时表空间报错报空。那么就查一下源库的临时文件情况,结果显示存在。那就纳闷了。

SQL> select tablespace_name,file_name from dba_temp_files
  2  ;

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,发现没有报错!

时间: 2024-07-31 16:12:26

ORACLE搭建Stream过程中报错【error收集】的相关文章

词云:解决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: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- Failed building wheel for wordcloud Running setup.py

PXE部署系统过程中报错0x80070490如何排错?举一反三的IT技术学习方式

PXE部署系统过程中报错0x80070490如何排错?举一反三的IT技术学习方式 ?Lander Zhang 专注外企按需IT基础架构运维服务,IT Helpdesk 实战培训践行者http://blog.51cto.com/lander 2018/09/3 7:30 问题描述 相信很多同学在照着某些技术视频或博客学习SCCM服务器是都以为安装配置好了,但在测试的时候总会出现一些莫名其妙的问题,于是在网络上按错误提示去搜索,花了N多时间但进展又缓慢,还经常找不到有效的解决建议,即使找到了这个问题

[RN] React Native 使用 react-native-camera 过程中报错 Found react-native-camera 'mlkit' but wasn't required.`

详细报错如下: Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'. Could not resolve project :react-native-camera. Required by: project :app > Cannot choose between the following configurations of project :react-native-ca

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 '/u01/app/oracle/product/11.2.0.4/sysman/lib/ins_emagent.mk'. Workaround: in $ORACLE_HOME/sysman/lib/ins_emagent.mk Search for the line: $(MK_EMAGENT_NMEC

opencv3.0在嵌入式linux编译过程中报错的处理方法。

http://m.blog.csdn.net/blog/wanghao225225/39252757 上边链接中的文章介绍了opencv3.0的编译方法,但是编译过程中会报错. 错误1:undefined reference to `parallel_pthreads_set_threads_num(int)' ../../lib/libopencv_core.so.3.0.0: undefined reference to `parallel_pthreads_set_threads_num(

sshd升级过程中报错问题解决汇总.txt

redhat 4.8 升级openssh 6.6 报错 现象:提示OpenSSL version mismatch. Built against 1000000f, you have信息, whereis sshd ssh:/usr/local/sshd 发现 该sshd 的路径跟 正常的 as 4.8 的路径不一样:sshd: /usr/sbin/sshd 登陆进去,发现sshd的路径为/usr/local/sbin/sshd,现在已改为/usr/sbin/sshd,现可正常登陆 more /

静态成员变量初始化在vs中报错“error LNK2005 static VimbaSystem...已经在...obj中定义”

今天在做AVT相机驱动的时候,编译后出现这个问题,我在一个类中定义了一个静态成员变量,但是编译总是报错:“error LNK2005 static VimbaSystem...已经在...obj中定义”. 代码大致如下: cameraBase.h 1 #pragma once 2 class cameraBase 3 { 4 public: 5 static void instance(); 6 virtual void open()=0; 7 8 protected: 9 static Vim

pip升级到18.0版本过程中报错解决方法

我这台电脑是windows10系统,一般在cmd命令行界面下执行pip的升级命令:pip install –upgrade pip 安装的时候,会有拒绝访问报错:这个时候应该是权限的问题,于是在win10系统的搜索框输入cmd,然后在命令提示符上点右键,选择以管理员身份运行. 然后就执行pip的升级命令:pip install –upgrade pip就可以了. 原文地址:https://www.cnblogs.com/shanghongyun/p/9631764.html

ambari 创建集群过程中报错

Confirm Hosts Registering your hosts.Please confirm the host list and remove any hosts that you do not want to include in the cluster. 步骤出现 Host registration aborted. 错误 解决方法: 升级openssl yum upgrade openssl 重启 ambari-server