[oracle@ora12c1 ~]$ ps -ef |grep LOCAL=NO
oracle 625 1 1 11:05 ? 00:00:01 oracleorcl11 (LOCAL=NO) -->使用PLSQL DEVELOPER1连接orcl1pdb1
oracle 946 1 2 11:07 ? 00:00:00 oracleorcl11 (LOCAL=NO) -->使用PLSQL DEVELOPER2连接orcl1pdb2
oracle 996 32059 0 11:07 pts/2 00:00:00 grep --color=auto LOCAL=NO
[oracle@ora12c1 ~]$ sqlplus / as sysdba
SQL*Plus: Release 12.2.0.1.0 Production on Thu Mar 22 11:08:41 2018
Copyright (c) 1982, 2016, Oracle. All rights reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
SQL>
oracle 625 1 1 11:05 ? 00:00:01 oracleorcl11 (LOCAL=NO) -->使用PLSQL DEVELOPER1连接orcl1pdb1
oracle 946 1 2 11:07 ? 00:00:00 oracleorcl11 (LOCAL=NO) -->使用PLSQL DEVELOPER2连接orcl1pdb2
oracle 996 32059 0 11:07 pts/2 00:00:00 grep --color=auto LOCAL=NO
[oracle@ora12c1 ~]$ sqlplus / as sysdba
SQL*Plus: Release 12.2.0.1.0 Production on Thu Mar 22 11:08:41 2018
Copyright (c) 1982, 2016, Oracle. All rights reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
SQL>

在Oracle 12c环境中,当进入一个PDB(Pluggable Database)后,通过v$session查询只会显示该PDB内的会话信息。例如,使用PLSQL Developer分别连接到ORCL1PDB1和ORCL1PDB2,然后在sysdba模式下切换到ORCL1PDB2,v$session将只显示ORCL1PDB2的相关进程。示例中展示了如何查看和操作这些进程。
最低0.47元/天 解锁文章
6490

被折叠的 条评论
为什么被折叠?



