错误信息:
$ sess_sh -u scott/tiger -s sess_iiop://netra20:2481:cctest1
javax.naming.CommunicationException: Unknown service: :session1 [Root exception is
javax.naming.CommunicationException: Unknown service: ***.***.***.***:2481:cctest1]
查看listener.log,竟然是登录成功。
10-JUN-2003 15:31:52 * SUCCESS * (ADDRESS=(PROTOCOL=tcp)(HOST=***.***.***.***)(PORT=3
8833)) * establish * giop * 0
10-JUN-2003 15:31:52 * service_update * cctest1 * 0
10-JUN-2003 15:32:34 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=netra20)(USER=oracle))(CO
MMAND=services)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=150999040)) * services * 0
而使用lsnrctl service,发现该连接请求被拒绝:Service "cctest1" has 2 instance(s).
Instance "cctest1", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
Instance "cctest1", status READY, has 2 handler(s) for this service...
Handler(s):
"D000" established:0 refused:6 current:0 max:972 state:ready
DISPATCHER
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=netra20)(PORT=38759))(PRESENTATI
ON=oracle.aurora.server.SGiopServer)(SESSION=RAW))
listener.trc中得到的跟踪信息为(trc_level=5):
nsopen: transport is open
nsnainit: inf->nsinfflg[0]: 0xd inf->nsinfflg[1]: 0xd
nsopen: global context check-in (to slot 8) complete
nsanswer: deferring connect attempt; at stage 5
nscon: doing connect handshake...
nscon: got NSPTCN packet
nsevdansw: exit
nscon: sending NSPTAC packet
nscon: doing connect handshake...
nscon: nsctxinf[0]=0xd, [1]=0xc
nsdo: 2038 bytes to NS buffer
nsdo: 2038 bytes to NS buffer
nsdo: 2038 bytes to NS buffer
nsdo: 2038 bytes to NS buffer
nsdo: 2038 bytes to NS buffer
nsdo: 1036 bytes to NS buffer
nstimarmed: no timer allocated
nsclose: closing transport
nsclose: global context check-out (from slot 8) complete
请高手帮忙解决一下(已经困扰我一个星期了)。这里先多谢了。