我有Oracle 10g
SQL> show addressIP + PORT
是否可以从SQL * plus显示机器的地址IP +端口?
答案 0 :(得分:4)
select sys_context('userenv', 'ip_address') ip_address, port
from gv$session
where gv$session.inst_id = sys_context('userenv', 'instance')
and gv$session.sid = sys_context('userenv', 'sid');