Sessions connected to a pluggable database in Oracle 12c

5k views Asked by At

Is there a way of identifying the connections made to a pluggable Oracle database? I can use the v$sessions and v$process views, but this seems to show all sessions within the container and all pluggable databases (with no indication on those views as to which database the session is linked to).

Any ideas?

1

There are 1 answers

1
o0x258 On BEST ANSWER

You can use the column SERVICE_NAME of v$session to identify to which service a session is connected to. Each PDB has at least one service name. You can set more than one service name for a PDB but this might still help.