ORA-12545: Connect failed because target host or object does not exist

2024-05-06 00:08

本文主要是介绍ORA-12545: Connect failed because target host or object does not exist,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!


ORA-12545: Connect failed because target host or object does not exist


SQL> select status,error_message,error_date from dba_propagation;

抓取进程

select  CAPTURE_NAME,QUEUE_NAME,ERROR_MESSAGE,CAPTURED_SCN,APPLIED_SCN,status from dba_capture;
STATUS
----------
ERROR_MESSAGE
----------------------------------------------------------------------
ERROR_DATE
-------------------
DISABLED
ORA- 25315: unsupported configuration for propagation of buffered messa
ges
2013-09-05 07:54:34

一、  

begin
    dbms_streams_adm.add_schema_propagation_rules(
     schema_name => 'qbjmes',
     streams_name => 'qbjmes_to_racdb',
    source_queue_name => 'strmadmin.qbjmes_queue',
     destination_queue_name => 'strmadmin.racdb_queue@racdb',
    include_dml => true,
     include_ddl => true,
     include_tagged_lcr => false,
    source_database => 'qbjmes',

inclusion_rule => true

queue_to_queue => true);   ------新添加的
   end;
   /

不报错了ora 25315

报错 ora 12545



SQL> select PROPAGATION_NAME,SOURCE_QUEUE_NAME,DESTINATION_QUEUE_NAME,DESTINATION_DBLINK,RULE_SET_NAME,STATUS,ERROR_MESSAGE from dba_propagation;


PROPAGAT SOURCE_Q DESTINATION_QUEUE_NAME

-------- -------- ------------------------------

DESTINATION_DBLINK

--------------------------------------------------------------------------------

RULE_SET_NAME STATUS    ERROR_MESSAGE

--------------- ---------- ----------------------------------------------------

QBJMES_T QBJMES_Q MES_QUEUE_QBJ

O_MES  UEUE

MES

RULESET$_54      DISABLED        ORA-12545: Connect failed because target host or object does not exist




建立传播进程

  1. Stop the propagation.

  2. Ensure that the source queue is empty.

  3. Ensure that the destination queue is empty and has no unapplied, spilled messages before you drop the propagation.

  4. Re-create the propagation with the queue_to_queue parameter set to TRUE in the creation procedure.


---------------------------------------------------------------------------------------------

Oracle RAC的ORA- 12545 Connect failed because target host or object does not exist问题

aix5.3系统上的oracle 10.2.0.3 RAC,连接数据库的时候经常报如下错误:

ORA-12545: Connect failed because target host or object does not exist

这个问题可以通过设置rac数据库各个节点的local_listener参数来解决,有两种方式:


方式1

在RAC的每个节点上编辑$ORACLE_HOME/network/admin/tnsnames.ora,增加
local_listener_rac=
(ADDRESS_LIST=
(ADDRESS=(PROTOCOL=tcp)(HOST=<vip>)(PORT=1521))
)
其中 <vip>对应每个节点各自的vip地址;

在rac的任意一个节点上修改数据库参数,设置local_listener为local_listener_rac
$ sqlplus / as sysdba
SQL> alter system set local_listener='local_listener_rac' scope=spfile;

重新启动各个节点上的数据库实例

方式2

也可以按照metallink上id为 364855.1的文档使用如下方法修改
在rac的每个节点上执行如下语句设置local_listener参数

sql>alter system set LOCAL_LISTENER="(ADDRESS=(PROTOCOL=TCP)(HOST=<VIP_address>)(PORT=1521))" scope=both sid='instance_name';

其中 <VIP_address>对应每个节点的vip地址;
instance_name对应当前节点的实例名,如rac1、rac2等,即每次只修改当前实例的参数

这篇关于ORA-12545: Connect failed because target host or object does not exist的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/963028

相关文章

【Python报错已解决】AttributeError: ‘list‘ object has no attribute ‘text‘

🎬 鸽芷咕:个人主页  🔥 个人专栏: 《C++干货基地》《粉丝福利》 ⛺️生活的理想,就是为了理想的生活! 文章目录 前言一、问题描述1.1 报错示例1.2 报错分析1.3 解决思路 二、解决方法2.1 方法一:检查属性名2.2 步骤二:访问列表元素的属性 三、其他解决方法四、总结 前言 在Python编程中,属性错误(At

Debugging Lua Project created in Cocos Code IDE creates “Waiting for debugger to connect” in Win-7

转自 I Installed Cocos Code IDE and created a new Lua Project. When Debugging the Project(F11) the game window pops up and gives me the message waiting for debugger to connect and then freezes. Also a

ora-01017 ora-02063 database link,oracle11.2g通过dblink连接oracle11.2g

错误图示: 问题解决 All database links, whether public or private, need username/password of the remote/target database. Public db links are accessible by all accounts on the local database, while private

android java.io.IOException: open failed: ENOENT (No such file or directory)-api23+权限受权

问题描述 在安卓上,清单明明已经受权了读写文件权限,但偏偏就是创建不了目录和文件 调用mkdirs()总是返回false. <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/><uses-permission android:name="android.permission.READ_E

UserWarning: mkl-service package failed to import

安装完成anaconda,并设置了两个环境变量  之后再控制台运行python环境,输入import numpy as np,提示错误 D:\InstallFolder\Anaconda3\lib\site-packages\numpy\__init__.py:143: UserWarning: mkl-service package failed to import, therefore

Python安装llama库出错“metadata-generation-failed”

Python安装llama库出错“metadata-generation-failed” 1. 安装llama库时出错2. 定位问题1. 去官网下载llama包 2.修改配置文件2.1 解压文件2.2 修改配置文件 3. 本地安装文件 1. 安装llama库时出错 2. 定位问题 根据查到的资料,发现时llama包中的execfile函数已经被下线了,需要我们手动修改代码后

Oracle start with connect BY 死循环

解决办法 检查start with前有没有where条件, 如果有的话,套一层select,再 Oracle start with connect BY

ERROR 2003 (HY000): Can't connect to MySQL server on (10061)

在linux系统上装了一个mysql-5.5,启动后本机都是可以访问的,操作都正常,同时建了一个%的用户(支持远程访问), root@debian:/# mysql -u loongson -pEnter password: Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id

ORA-25150:不允许对区参数执行ALTERING

在用PL/SQL工具修改表存储报错: 百度一下找到原因: 表空间使用本地管理,其中的表不能修改NEXT MAXEXTENTS和PCTINCREASE参数 使用数据自动管理的表空间,其中的表可以修改NEXT MAXEXTENTS和PCTINCREASE参数

ORA-01861:文字与格式字符串不匹配

select t.*, t.rowid from log_jk_dtl t; insert into log_jk_dtl (rq,zy,kssj,jssj,memo)  values (to_date(sysdate,'yyyy-mm-dd'),'插入供应商', to_char(sysdate,'hh24:mi:ss'),to_char(sysdate,'hh24:mi:ss'),'备注'