Oracle dblink監聽問題
Oracle dblink監聽不能簡單重啟監聽。(MySQL的dblink)
透過lsnrctl stop、lsnrctl start無法啟動Oracle dblink的監聽。
dblink查詢報錯:
SQL> select count(*) from CUX_IMP_INTERFACE_HEADERS@MYODBC.BENLAILIFE.COM;
select count(*) from CUX_IMP_INTERFACE_HEADERS@MYODBC.BENLAILIFE.COM
*
ERROR at line 1:
ORA-28545: error diagnosed by Net8 when connecting to an agent
Unable to retrieve text of NETWORK/NCR message 65535
ORA-02063: preceding 2 lines from MYODBC
正確重啟Oracle dblink監聽方式:
[oraprod@erpdbp PROD_erpdbp]$ pwd
/u01/prod/db/12.1.0/appsutil/scripts/PROD_erpdbp
[oraprod@erpdbp PROD_erpdbp]$ /u01/prod/db/12.1.0/appsutil/scripts/PROD_erpdbp/addlnctl.sh stop PROD
[oraprod@erpdbp PROD_erpdbp]$ /u01/prod/db/12.1.0/appsutil/scripts/PROD_erpdbp/addlnctl.sh start PROD
[oraprod@erpdbp PROD_erpdbp]$ /u01/prod/db/12.1.0/appsutil/scripts/PROD_erpdbp/addlnctl.sh status PROD
Service "PROD" has 2 instance(s).
Instance "PROD", status UNKNOWN, has 1 handler(s) for this service...
Instance "PROD", status READY, has 1 handler(s) for this service...
Service "ebs_patch" has 1 instance(s).
Instance "PROD", status READY, has 1 handler(s) for this service...
Service "myodbc3" has 1 instance(s).
Instance "myodbc3", status UNKNOWN, has 1 handler(s) for this service...
Service "myodbc4" has 1 instance(s).
Instance "myodbc4", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
SQL> set linesize 600
SQL> set pagesize 600
SQL> select owner,object_name from dba_objects where object_type='DATABASE LINK';
OWNER OBJECT_NAME
-------------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------------
PUBLIC DEV_LINK.BENLAILIFE.COM
PUBLIC GUOFANG.BENLAILIFE.COM
PUBLIC MYODBC.BENLAILIFE.COM
PUBLIC PROD_BAK_DBLINK.BENLAILIFE.COM
APPS TEST_TO_PROD.TEST.BENLAILIFE.COM
報錯:
SQL> select count(*) from CUX_IMP_INTERFACE_HEADERS@MYODBC.BENLAILIFE.COM;
select count(*) from CUX_IMP_INTERFACE_HEADERS@MYODBC.BENLAILIFE.COM
*
ERROR at line 1:
ORA-28545: error diagnosed by Net8 when connecting to an agent
Unable to retrieve text of NETWORK/NCR message 65535
ORA-02063: preceding 2 lines from MYODBC
PS:
CUX_IMP_INTERFACE_HEADERS是MySQL的表。
監聽正常後:
SQL> select count(*) from CUX_IMP_INTERFACE_HEADERS@MYODBC.BENLAILIFE.COM;
COUNT(*)
----------
2570886
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22996654/viewspace-2660098/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle的監聽問題Oracle
- 關於oracle的監聽問題Oracle
- oracle dblink問題Oracle
- oracle em與監聽改名的問題Oracle
- 一個Oracle監聽問題的網路排查Oracle
- 關於oracle11g RAC 監聽器問題Oracle
- ORACLE監聽器 The listener supports no services 問題解決方法Oracle
- Oracle監聽日誌過大導致的問題Oracle
- ORACLE10G 監聽僵死問題的解決Oracle
- Oracle 監聽Oracle
- oracle 9i 刪除dblink問題Oracle
- ORACLE啟動監聽器 The listener supports no services 問題解決方法Oracle
- Oracle監聽(1)Oracle
- ORACLE動態監聽與靜態監聽Oracle
- oracle靜態監聽和動態監聽Oracle
- 【oracle】動態監聽與靜態監聽Oracle
- 【Oracle】修改oracle監聽埠Oracle
- AIX maxperm引數導致監聽問題AI
- oracle靜態監聽Oracle
- JMS監聽Oracle AQOracle
- oracle 監聽器配置Oracle
- Oracle監聽的作用Oracle
- ORACLE監聽簡介Oracle
- oracle 監聽重啟Oracle
- 關於vue事件監聽的一個問題Vue事件
- win下oracle監聽日誌過大造成的連線超時問題Oracle
- Oracle10g 監聽註冊問題 - Ready及Unknown狀態Oracle
- 【listener】oracle靜態監聽和動態監聽 【轉載】Oracle
- oracle清理監聽日誌Oracle
- Oracle資料庫監聽Oracle資料庫
- oracle 多庫配監聽Oracle
- Oracle 監聽配置詳解Oracle
- Oracle 動態監聽配置Oracle
- oracle 監聽器學習Oracle
- 6、oracle網路(監聽)Oracle
- oracle監聽啟動時報TNS-00507問題解決一例Oracle
- kafka監聽出現的問題,解決和剖析Kafka
- 監聽器中spring注入相關的問題Spring