“ora-12542,TNS地址已被占用”这个错误是由于什么引起的?怎么解决?

谢谢!
[3 byte] By [xwchena-天雨] at [2007-12-16]
# 1
监听器监听的地址已经被使用了
jiezhi-风满袖 at 2007-10-23 > top of Msdn China Tech,Oracle,基础和管理...
# 2
Ensure that the port number specified in the listener.ora. and the tnsnames.ora is not already in use. You may also get this error if you shut the listener down for any reason, and then try to start it back up.

Basically your errors 12542 indicates that the listener port is already in use by another application. Or maybe have another listener running or perhaps added another instance but it's trying to listen on the same port.

Check the ports in use, make appropriate corrections to listener.ora and tnsnames.ora files with new port number and restart the listener.

With Windows NT, do a netstat. This will search all the ports being used in your machine.

If there are multiple address for 'PROTOCOL=IPC' in the same LISTENER.ORA file for a listener, make sure none of the 'KEY' parameter values are duplicated.

Check if this parameter is set in the listener.ora:
USE_CKPFILE_LISTENER = true
If this setting exists, it means you are using a checkpoint file for your listener. Check the port settings in use in the file - they may be an already allocated port. If your listener.ora is correct, set this parameter to FALSE. This will keep the listener from reading the checkpoint file.
# 3
我有个客户端程序用ADO访问ORACLE,要依次处理几个表,我在处理每个表的时候都进行一次数据库的连接和断开,会不会是这个原因引起的?
xwchena-天雨 at 2007-10-23 > top of Msdn China Tech,Oracle,基础和管理...
# 4
多次连接数据库是会引起这种现象
zyme007-长春藤 at 2007-10-23 > top of Msdn China Tech,Oracle,基础和管理...