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.

  • 相关阅读:
    iOS 关于NSNotificationCenter
    IOS UITableView reload 刷新某一个cell 或 section
    IOS AFNetWorking 设置超时时间
    IOS AFNetWorking
    IOS 十六进制字符串转换成UIColor
    IOS 长姿势---双击Home键
    IOS 关于 NSUserDefault
    方正璞华培训讲师
    localStorage使用总结
    Promise的简单用法
  • 原文地址:https://www.cnblogs.com/yanlixin/p/2169611.html
Copyright © 2011-2022 走看看