zoukankan      html  css  js  c++  java
  • Terminating the Session with ALTER SYSTEM

    You can identify the Oracle session ID for an RMAN channel by looking in the RMAN log for messages with the format shown in the following example:

    channel ch1: sid=15 devtype=SBT_TAPE
    
    

    The sid and devtype are displayed for each allocated channel. Note that the Oracle sid is different from the operating system process ID. You can kill the session by specifying the sid in a SQL statement, but the commands are not the same as the operating system process kill commands.

    You can specify the sid in the SQL statement ALTER SYSTEM KILL SESSION command. It takes two arguments (the sid printed in the RMAN message and a serial number), both of which can be obtained by querying V$SESSION. For example, run the following statement, where sid_in_rman_output is the number from the RMAN message:

    SELECT SERIAL# FROM V$SESSION WHERE SID=sid_in_rman_output;
    
    

    Then, run the following statement, substituting the sid_in_rman_output and serial number obtained from the query:

    ALTER SYSTEM KILL SESSION 'sid_in_rman_output,serial#'; 
    
    

    Note that this is no more effective than killing at the operating system level if the process is hung in the media manager.

  • 相关阅读:
    个人附加作业
    个人作业3——个人总结(Alpha阶段)
    四则运算-单元测试
    英语学习APP案例分析
    基于GUI的四则运算
    基于控制台的四则运算
    对forEach、for-in还有es6的for-of的一些整理
    ASP.NET学习笔记5
    ASP.NET学习笔记4
    String类型的二进制数求和
  • 原文地址:https://www.cnblogs.com/yanlixin/p/2169611.html
Copyright © 2011-2022 走看看