- 最后登录
- 2022-8-22
- 在线时间
- 39 小时
- 威望
- 109
- 金钱
- 695
- 注册时间
- 2012-4-13
- 阅读权限
- 50
- 帖子
- 69
- 精华
- 0
- 积分
- 109
- UID
- 349
|
1#
发表于 2012-12-14 21:55:59
|
查看: 4595 |
回复: 11
oracle服务器端操作系统 AIX 6.1,oracle 10.2.0.1 64位,监听状态
$ lsnrctl status
LSNRCTL for IBM/AIX RISC System/6000: Version 10.2.0.1.0 - Production on 14-DEC-2012 21:28:23
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.11.33)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for IBM/AIX RISC System/6000: Version 10.2.0.1.0 - Production
Start Date 14-DEC-2012 21:16:17
Uptime 0 days 0 hr. 12 min. 5 sec
Trace Level off
Security ON: Local OS Authentication
SNMP ON
Listener Parameter File /oracle/product/10.2.0/network/admin/listener.ora
Listener Log File /oracle/product/10.2.0/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.11.33)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
$ lsnrctl service
LSNRCTL for IBM/AIX RISC System/6000: Version 10.2.0.1.0 - Production on 14-DEC-2012 21:29:00
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.11.33)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
The command completed successfully
监听文件内容为
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /oracle/product/10.2.0)
(PROGRAM = extproc)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.11.33)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
)
)
oracle 客户端为win7 旗舰版,32位,tnsnames.ora文件内容如下
DB_192.168.11.201 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.11.201)(PORT = 1521))
)
(CONNECT_DATA =
(SID = db)
(SERVER = DEDICATED)
)
)
DB_LOCAL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.11.33)(PORT = 1521))
)
(CONNECT_DATA =
(SID = db_local)
(SERVER = DEDICATED)
)
)
DB_192.168.11.252 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.11.252)(PORT = 1521))
)
(CONNECT_DATA =
(SID = db)
(SERVER = DEDICATED)
)
)
使用tnsping命令检测正常
C:\Users\lich>tnsping db_local
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 14-12月-
2012 21:46:50
Copyright (c) 1997, 2005, Oracle. All rights reserved.
已使用的参数文件:
E:\oracleclient\network\admin\sqlnet.ora
已使用 TNSNAMES 适配器来解析别名
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
(HOST = 192.168.11.33)(PORT = 1521))) (CONNECT_DATA = (SID = db_local) (SERVE
R = DEDICATED)))
OK (20 毫秒)
但是
使用sqlplus连接时提示不能识别的SID
C:\Users\lich>sqlplus sys/sys@db_local
SQL*Plus: Release 10.2.0.1.0 - Production on 星期五 12月 14 21:51:47 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR:
ORA-12505: TNS: 监听程序当前无法识别连接描述符中所给出的 SID
请输入用户名:
请问这个是怎么回事? |
|