【翻译自mos文章】在RAC database中怎么独立于instance来kill session?
2015-03-06 19:25
381 查看
来源于:
How to Kill a Session on RAC Database In Instance Independent Fashion. (文档 ID 869777.1)
适用于:
Oracle Database - Enterprise Edition - Version 11.1.0.6 and later
Information in this document applies to any platform.
目标:
你可以在RAC database中来kill session,而不用考虑该session是从哪个intance上产生的。这是11g的新特性。
解决方案:
To kill a session in RAC database use the following syntax.
For Example :
How to Kill a Session on RAC Database In Instance Independent Fashion. (文档 ID 869777.1)
适用于:
Oracle Database - Enterprise Edition - Version 11.1.0.6 and later
Information in this document applies to any platform.
目标:
你可以在RAC database中来kill session,而不用考虑该session是从哪个intance上产生的。这是11g的新特性。
解决方案:
To kill a session in RAC database use the following syntax.
sql> conn / as sysdba sql> alter system kill session 'sid, serial#, @inst_id';
For Example :
SQL@racdb1> select inst_id,sid,serial#,username from gv$session where username is not null and username not like 'SYS%'; INST_ID SID SERIAL# USERNAME ---------- ---------- ---------- ------------------------------ 1 123 76 DBSNMP 1 rows selected. SQL@racdb2> conn scott/tiger Connected. SQL@racdb1> select inst_id,sid,serial#,username from gv$session where username is not null and username not like 'SYS%'; INST_ID SID SERIAL# USERNAME ---------- ---------- ---------- ------------------------------ 2 115 17816 SCOTT 1 123 76 DBSNMP 2 rows selected. SQL@racdb1> alter system kill session '115,17816,@2'; System altered. SQL@racdb1> conn scott/tiger Connected. SQL@racdb1> select inst_id,sid,serial#,username from gv$session where username is not null and username not like 'SYS%'; INST_ID SID SERIAL# USERNAME ---------- ---------- ---------- ------------------------------ 1 110 45316 SCOTT 1 123 76 DBSNMP 2 rows selected. sql> alter system kill session '110,45316,@1'; System altered.
相关文章推荐
- 【翻译自mos文章】怎么允许特定版本的client 登陆到database中
- 【翻译自mos文章】services与rac中的 Distributed Transaction Processing (DTP)
- 【翻译自mos文章】在rac中,使用asmcmd命令从 文件系统 move system datafile 到asm磁盘组的方法
- 【翻译自mos文章】怎么找到OGG Director Server使用的数据库和username?
- 【翻译自mos文章】怎么获得datafile备份的 增长信息
- 【翻译自mos文章】在Oracle单机数据库中定义database service
- 【翻译自mos文章】在windows平台上怎么启用Oracle database 企业版的partition?
- 翻译mos文章11gR2 RAC Service Not Failing Over To Other Node When Instance Is Shut Down (文档 ID 1324574.1)
- 【翻译自mos文章】怎么有效的drop 或者truncate 有大量extents的table?
- [翻译自mos文章]不完全恢复之后,open resetlogs之前,怎么快速的检查数据库是否处于一致性的状态?
- 【翻译自mos文章】Oracle GoldenGate 怎么在源头的传输进程和目的端的server/collector进程之间分配 port?
- 【翻译自mos文章】怎么获得Oracle Database 12c中的audit session id
- 【翻译自mos文章】什么是Oracle Clusterware 和RAC中的脑裂
- 【翻译自mos文章】加大数据库连接数(the Number of Database Connections )
- 【翻译自mos文章】检查$ORACLE_HOME是否是RAC的HOME的方法以及relink RAC的Oracle binary的方法
- 【翻译自mos文章】Oracle GoldenGate 怎么在源头的传输进程和目的端的server/collector进程之间分配 端口?
- 【翻译自mos文章】检查$ORACLE_HOME是否是RAC的HOME的方法以及relink RAC的Oracle binary的方法
- 【翻译自mos文章】怎么正确的使用SQLNET.ALLOWED_LOGON_VERSION参数
- 【翻译自mos文章】怎么检查Oracle Advanced Security Option 是否被安装上?
- 【翻译自mos文章】对于oracle 数据库来说,OGG的抽取进程什么时候到database中获取数据?