关于 TNS-04404 TNS-04414 TNS-04610 的解决办法

  • Post author:
  • Post category:其他


C:\Users\Administrator>netca

Oracle Net Services 配置:

正在配置监听程序:LISTENER

ServiceAliasException: 无法初始化服务别名: TNS-04404: 没有错误

caused by: oracle.net.config.ConfigException: TNS-04414: 文件错误

caused by: TNS-04610: 没有其他文字, 已到达 NV 对结尾

今天在Windows 2008 oracle 11.0.2  上添加监听器时遇见上述错误提示

解决办法如下:

拷贝下面代码 新建文件listener.ora  并保存oracle安装目录\dbhome_1\NETWORK\ADMIN\中,注意更改红色部分文字

——————————————————————————————————————————–


# listener.ora Network Configuration File: E:\Oracle11.2.0.2.64\dbhome_1\NETWORK\ADMIN\listener.ora

# Generated by Oracle configuration tools.

SID_LIST_LISTENER =

(SID_LIST =

(SID_DESC =

(SID_NAME = CLRExtProc)

(ORACLE_HOME =E:\Oracle11.2.0.2.64\dbhome_1)

(PROGRAM = extproc)

(ENVS = “EXTPROC_DLLS=ONLY:E:\Oracle11.2.0.2.64\dbhome_1\bin\oraclr11.dll”)

)

)

LISTENER =

(DESCRIPTION_LIST =

(DESCRIPTION =

(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))

(ADDRESS = (PROTOCOL = TCP)(HOST =DBMaster)(PORT = 1521))

)

)

ADR_BASE_LISTENER = E:\Oracle11.2.0.2.64\

——————————————————————————————————————————–

然后 cmd 下重新启动一下监听器

C:\Users\Administrator>lsnrctl

LSNRCTL for 64-bit Windows: Version 11.2.0.2.0 – Production on 14-12月-2011 22:45:16

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

欢迎来到LSNRCTL, 请键入”help”以获得信息。

LSNRCTL> stop

正在连接到 (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))

命令执行成功

LSNRCTL> start

启动tnslsnr: 请稍候…

TNSLSNR for 64-bit Windows: Version 11.2.0.2.0 – Production

写入E:\Oracle11.2.0.2.64\diag\tnslsnr\DBMaster\listener\alert\log.xml的日志信息

监听: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=DBMaster)(PORT=1521)))

正在连接到 (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))

LISTENER 的 STATUS

————————

别名                      LISTENER

版本                      TNSLSNR for 64-bit Windows: Version 11.2.0.2.0 – Production

启动日期                  14-12月-2011 22:45:31

正常运行时间              0 天 0 小时 0 分 5 秒

跟踪级别                  off

安全性                    ON: Local OS Authentication

SNMP                      OFF

监听程序日志文件          E:\Oracle11.2.0.2.64\diag\tnslsnr\DBMaster\listener\alert\log.xml

监听端点概要…

(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=DBMaster)(PORT=1521)))

监听程序不支持服务

命令执行成功