|
|
我的解决办法是:(linux系统)
1。/etc/hosts
2. tnsnames.ora listener.ora中对应的IP或hostname
3. lsnrctl services 查看它的(ADDRESS=(PROTOCOL=tcp)(HOST=oracle)(PORT=37192))
host是不是你主机名字,若单重启lsnrctl是不会生效的,最好重启数据库,再用lsnrctl services 看看,若是不配置,重启lsnrctl后,oracle/product/8.1.7/network/log/listener.log日志总会出现:
service_register * orcl * 0
若是配置,则出现:
service_update * orcl * 0
也就是可更新监听
这是摘自metalink的:
If you change the case of the service-name to connect with you get the following error: ORA-12545: Connect failed because target host or object does not exist Cause: The address specified is not valid, or the program being connected to does not exist. Action: Ensure the ADDRESS parameters have been entered correctly; the most likely incorrect parameter is the node name. Ensure that the executable for the server exists (perhaps "oracle" is missing.) If the protocol is TCP/IP, edit the TNSNAMES.ORA file to change the host name to a numeric IP address and try again.
祝大家好运 |
|