额。。那个是我黏贴时候的错误 现在吧启动监听的时候的信息发出来 麻烦再给看一下吧 [oracle@database admin]$ lsnrctl startLSNRCTL for Linux: Version 10.2.0.1.0 - Production on 18-APR-2011 15:45:47Copyright (c) 1991, 2005, Oracle. All rights reserved.Starting /home/oracle/oracle/product/10.2.0/db_2/bin/tnslsnr: please wait...TNSLSNR for Linux: Version 10.2.0.1.0 - Production System parameter file is /home/oracle/oracle/product/10.2.0/db_2/network/admin/listener.ora Log messages written to /home/oracle/oracle/product/10.2.0/db_2/network/log/listener.log Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=database)(PORT=1521))) Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=database)(PORT=1522)))Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=database)(PORT=1521))) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production Start Date 18-APR-2011 15:45:47 Uptime 0 days 0 hr. 0 min. 0 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /home/oracle/oracle/product/10.2.0/db_2/network/admin/listener.ora Listener Log File /home/oracle/oracle/product/10.2.0/db_2/network/log/listener.log Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=database)(PORT=1521))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=database)(PORT=1522))) Services Summary... Service "POD" has 1 instance(s). Instance "POD", status UNKNOWN, has 1 handler(s) for this service... Service "repos" has 1 instance(s). Instance "repos", status UNKNOWN, has 1 handler(s) for this service... The command completed successfully [oracle@database admin]$
[oracle@database admin]$ tnsping podsTNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 18-APR-2011 18:00:37Copyright (c) 1997, 2005, Oracle. All rights reserved.Used parameter files: /home/oracle/oracle/product/10.2.0/db_2/network/admin/sqlnet.ora Used TNSNAMES adapter to resolve the alias Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = database)(PORT = 1522))) (CONNECT_DATA = (SERVER = SHARED) (SERVICE_NAME = PODS) TNS-12533: TNS:illegal ADDRESS parameters __________________________________________________________________ sqlnet.ora内容# sqlnet.ora Network Configuration File: /home/oracle/oracle/product/10.2.0/db_2/network/admin/sqlnet.ora # Generated by Oracle configuration tools.NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = database)(PORT = 1522))
)
(CONNECT_DATA =
(SERVIER = SHARED)
(SERVICE_NAME = PODS)
)
)看清没,打错了,应该是 SERVER
现在吧启动监听的时候的信息发出来 麻烦再给看一下吧
[oracle@database admin]$ lsnrctl startLSNRCTL for Linux: Version 10.2.0.1.0 - Production on 18-APR-2011 15:45:47Copyright (c) 1991, 2005, Oracle. All rights reserved.Starting /home/oracle/oracle/product/10.2.0/db_2/bin/tnslsnr: please wait...TNSLSNR for Linux: Version 10.2.0.1.0 - Production
System parameter file is /home/oracle/oracle/product/10.2.0/db_2/network/admin/listener.ora
Log messages written to /home/oracle/oracle/product/10.2.0/db_2/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=database)(PORT=1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=database)(PORT=1522)))Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=database)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 18-APR-2011 15:45:47
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /home/oracle/oracle/product/10.2.0/db_2/network/admin/listener.ora
Listener Log File /home/oracle/oracle/product/10.2.0/db_2/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=database)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=database)(PORT=1522)))
Services Summary...
Service "POD" has 1 instance(s).
Instance "POD", status UNKNOWN, has 1 handler(s) for this service...
Service "repos" has 1 instance(s).
Instance "repos", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
[oracle@database admin]$
/home/oracle/oracle/product/10.2.0/db_2/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = database)(PORT = 1522))) (CONNECT_DATA = (SERVER = SHARED) (SERVICE_NAME = PODS)
TNS-12533: TNS:illegal ADDRESS parameters
__________________________________________________________________
sqlnet.ora内容# sqlnet.ora Network Configuration File: /home/oracle/oracle/product/10.2.0/db_2/network/admin/sqlnet.ora
# Generated by Oracle configuration tools.NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)