[oracle@dg-01 admin]$ lsnrctl

 

LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 23-JUN-2010 02:35:37

 

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

 

Welcome to LSNRCTL, type "help" for information.

 

LSNRCTL> start

Starting /u01/oracle/product/database/bin/tnslsnr: please wait...

 

TNSLSNR for Linux: Version 10.2.0.1.0 - Production

System parameter file is /u01/oracle/product/database/network/admin/listener.ora

Log messages written to /u01/oracle/product/database/network/log/listener.log

Error listening on: (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))

TNS-12560: TNS:protocol adapter error

TNS-00583: Valid node checking: unable to parse configuration parameters

 

 

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

 
造成以上错误的原因为:配置监听和手动创建数据库的顺序倒了,应该在先安装完数据库软件后,再配置网络监听,接下来再进行数据库的手动创建工作。
 
把之前创建的数据库test1,用DBCA图形工具删除,再用netca命令重新配置网络监听,即可。
 
 
[oracle@dg-01 admin]$ lsnrctl
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 23-JUN-2010 16:28:17
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Welcome to LSNRCTL, type "help" for information.
LSNRCTL> status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=dg-01.primary.com)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 23-JUN-2010 16:22:49
Uptime 0 days 0 hr. 5 min. 29 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/oracle/product/database/network/admin/listener.ora
Listener Log File /u01/oracle/product/database/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=dg-01.primary.com)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully