oracle tcp.validnode_checking,TCP.VALIDNODE_CHECKING导致TNS12533

安装SES后,重启搜索服务器,searchctl start启动失败,检查发现监听没有起来,手工启动监听

localhost-> lsnrctl start

LSNRCTL for Linux: Version 10.1.0.5.0 - Production on 06-MAY-2009 16:25:37

Copyright (c) 1991, 2004, Oracle.  All rights reserved.

Starting /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 10.1.0.5.0 - Production

System parameter file is /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora

Log messages written to /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log

Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost.domain)(PORT=1524)))

TNS-12533: TNS:illegal ADDRESS parameters

TNS-12560: TNS:protocol adapter error

TNS-00503: Illegal ADDRESS parameters

Listener failed to start. See the error message(s) above...

这个错误实际没有显示正确的信息,开始从lisenter.ora,tnsnames.ora入手,但没有发现错误.最后检查sqlnet.ora,发现TCP参数,原来是IP地址限制的原因

localhost->     vi sqlnet.ora

# sqlnet.ora Network Configuration File: /u01/app/oracle/product/10.2.0/db_1/network/admin/sqlnet.ora

# Generated by Oracle configuration tools.

#TCP.VALIDNODE_CHECKING = yes

SQLNET.AUTHENTICATION_SERVICES= (ALL)

NAMES.DIRECTORY_PATH= (TNSNAMES)

#TCP.INVITED_NODES= (localhost.ldomain, 127.0.0.1)

"sqlnet.ora" 11L, 302C

localhost-> lsnrctl start

LSNRCTL for Linux: Version 10.1.0.5.0 - Production on 06-MAY-2009 16:22:55

Copyright (c) 1991, 2004, Oracle.  All rights reserved.

Starting /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 10.1.0.5.0 - Production

System parameter file is /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora

Log messages written to /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log

Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.domain)(PORT=1524)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost.domain)(PORT=1524)))

STATUS of the LISTENER

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

Alias                     LISTENER

Version                   TNSLSNR for Linux: Version 10.1.0.5.0 - Production

Start Date                06-MAY-2009 16:22:55

Uptime                    0 days 0 hr. 0 min. 0 sec

Trace Level               off

Security                  ON: Local OS Authentication

SNMP                      OFF

Listener Parameter File   /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora

Listener Log File         /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log

Listening Endpoints Summary...

(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.domain)(PORT=1524)))

The listener supports no services

The command completed successfully

修改以后,可以成功,但还是不理解,为什么加入正确IP,还是启动失败,暂时先注释了.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
可以考虑以下优化: 1. 使用预编译语句:如果该查询需要频繁执行,可以使用预编译语句,避免每次执行都需要重新解析和编译查询语句。 2. 添加索引:根据查询条件,可以为 xw_kefu 和 xw_user_applyloan_checking 表的 id 列、shoukuan_month 列添加索引,为 xw_kefu_performance_target 表的 kefuid 列、month 列添加索引。 3. 使用 EXISTS 子查询代替 LEFT JOIN:可以使用 EXISTS 子查询代替 LEFT JOIN,因为 EXISTS 子查询能够在找到第一个匹配项时立即停止查询,从而提高效率。 优化后的查询语句如下: SELECT a.id, b.is_manager_big, b.is_manager_bcompany, a.one_shoukuan, a.two_shoukuan, b.one_income, b.two_income FROM (SELECT a.id, SUM(CASE WHEN b.shoukuan_month = '2023-05' AND b.is_del = 0 THEN b.netincome ELSE 0 END) AS one_shoukuan, SUM(CASE WHEN b.shoukuan_month = '2023-04' AND b.is_del = 0 THEN b.netincome ELSE 0 END) AS two_shoukuan FROM xw_kefu a WHERE a.id IN (1748, 1749, 1776, 1834, 1913, 1921, 1922, 1778, 1830, 1829, 1833, 1835, 1750, 1753, 1754, 1756, 1758, 1761, 1892, 1905, 1762, 1764, 1902, 1915, 1751, 1773, 1792, 1774, 1788, 1917, 1791, 1793, 1795, 1909, 1775, 1787, 1752, 1757, 1771, 1772, 1914, 1768, 1898, 1760, 1767, 1769, 1863, 1770, 1827) AND a.is_del = 0 AND a.is_lizhi = 0 GROUP BY a.id) AS a, (SELECT a.id, a.is_manager_big, a.is_manager_bcompany, SUM(CASE WHEN b.month = '2023-05' THEN b.create_income ELSE 0 END) AS one_income, SUM(CASE WHEN b.month = '2023-04' THEN b.create_income ELSE 0 END) AS two_income FROM xw_kefu a WHERE a.id IN (1748, 1749, 1776, 1834, 1913, 1921, 1922, 1778, 1830, 1829, 1833, 1835, 1750, 1753, 1754, 1756, 1758, 1761, 1892, 1905, 1762, 1764, 1902, 1915, 1751, 1773, 1792, 1774, 1788, 1917, 1791, 1793, 1795, 1909, 1775, 1787, 1752, 1757, 1771, 1772, 1914, 1768, 1898, 1760, 1767, 1769, 1863, 1770, 1827) AND a.is_del = 0 AND a.is_lizhi = 0 AND EXISTS (SELECT 1 FROM xw_kefu_performance_target b WHERE b.kefuid = a.id AND b.is_del = 0) GROUP BY a.id) AS b WHERE b.id = a.id GROUP BY a.id;
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值