故障:


TNS-12542: TNS:address already in use
 TNS-12560: TNS:protocol adapter error
  TNS-00512: Address already in use
   Linux Error: 98: Address already in use

解决:

查询已经存在的 LISTENER进程

$ ps -ef | grep LISTENER

oracle    3214     1  0 Mar29 ?        00:02:43 /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr LISTENER -inherit
oracle   11237 11031  0 09:14 pts/6    00:00:00 grep LISTENER
oracle   31077  3214  0 Apr14 ?        00:00:00 /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr LISTENER -inherit

kill 已经存在的 LISTENER进程

$ kill 3214
$ kill 31077
$ lsnrctl start